Comments (5)
That's a great idea. I'll try to implement it in the next few days.
from citron.
bump! Would really love this if possible.
from citron.
@dabrahams Instead of adding the #sourceLocation
before the function, it's added as the first line inside the function (so that the citron-generated function signature is not attributed to the grammar file).
from citron.
You are awesome! I know this is gonna make my development much better!
from citron.
Instead of adding the #sourceLocation before the function, it's added as the first line inside the function (so that the citron-generated function signature is not attributed to the grammar file).
This works great unless you happen to leave the body of the function empty, in which case the error ends up pointing at the signature of the function in the grammar file. Just FWIW.
from citron.
Related Issues (17)
- Running expr example HOT 3
- Make Citron a Swift package manager package? HOT 6
- LICENSE file and "public domain code?" HOT 5
- Generated parser should import CitronParserModule? HOT 1
- Package plugin HOT 3
- Grammar with no tokens produces invalid Swift
- %token requires a terminating .
- | not accepted in %token_set
- sourceLocation() line messes up error reporting for empty braces
- Nondeterministic behavior HOT 2
- More sourceLocation()s
- Option to ignore conflicts and accept the default resolution HOT 2
- Parser seems to spend most of its time doing type metadata lookup
- Is expr_ec_spm defunct now?
- `CitronTokenCode` should be public
- More #sourceLocation HOT 6
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from citron.