Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Is it possible to use this library at compile-time? #47

Closed
FrancisBourre opened this issue Aug 10, 2016 · 4 comments
Closed

Is it possible to use this library at compile-time? #47

FrancisBourre opened this issue Aug 10, 2016 · 4 comments

Comments

@FrancisBourre
Copy link

Hi,

thanks for the amazing work!

Just a quick question, is there a way to use this library from an expression macro?

@Simn
Copy link
Owner

Simn commented Oct 7, 2016

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.

@Simn Simn closed this as completed Oct 7, 2016
@FrancisBourre
Copy link
Author

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?

@nadako
Copy link
Contributor

nadako commented Oct 12, 2016

I thought hxparse could be used in macros, it's just RuleBuilder and other sugar classes can't be.

@Simn
Copy link
Owner

Simn commented Oct 12, 2016

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants