Comments (4)
I completely missed this question, sorry about that!
Unfortunately, it's not easily possible to use this library at compile-time because that would lead to macro-in-macro situations, which the Haxe compiler currently doesn't support.
from hxparse.
Thanks for the answer @Simn
Btw, I'm interested to find any nice haxe library for parsing custom DSLs (at compile time and runtime). Have you got any recommendation?
from hxparse.
I thought hxparse could be used in macros, it's just RuleBuilder and other sugar classes can't be.
from hxparse.
Hmm, technically yes. I remembered that I added Parser.parse for this which can be used instead of the @:build
macro. It's obviously less convenient, but there are chances it works.
from hxparse.
Related Issues (20)
- Fallthrough behaviour in Parser HOT 1
- regex flags? HOT 4
- haxelib release update HOT 9
- please expose the AST in the api. HOT 2
- position info wrong in case of unicode characters HOT 8
- usage from macros HOT 2
- Investigate ways to implement this without exceptions HOT 2
- Exponent on JSON parser example HOT 3
- "final" variable name conflicts with haxe 4 "final" keyword
- "final" property not compatible with Haxe 4 (in hxparse.State) HOT 2
- [REQUEST] An example for parsing simple dynamic language like 'Kaleidoscope' HOT 2
- Parser failed for Uppercase letter. HOT 2
- release a new version on haxelib HOT 2
- Haxe currently requires `this.stream` in the macro switch
- New Error regards statics on generic Classes HOT 6
- Warning : This case is unused HOT 1
- A generic class can't have static fields error when a subclass of Parser is used inside a macro HOT 3
- Stack overflow in RuleBuilder
- Can you detail the general flow of the parser and how of consuming tokens works bit more? HOT 2
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 hxparse.