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

New example for buildAst #47

Closed
wants to merge 2 commits into from
Closed

New example for buildAst #47

wants to merge 2 commits into from

Conversation

planetis-m
Copy link
Contributor

Fixes #43. This is a simplified (and ported to buildAst) version of the Reverse Polish Notation calculator macro from @PMunch blog post "Metaprogramming and read- and maintainability in Nim". Macro is tiny but together with the rest, amounts to a total 40 lines of code.

@planetis-m
Copy link
Contributor Author

planetis-m commented Nov 20, 2020

Oh boy found a compiler/macro bug, reported nim-lang/Nim#16072

@planetis-m
Copy link
Contributor Author

I think found a shorter example

@planetis-m planetis-m closed this Nov 20, 2020
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

Successfully merging this pull request may close these issues.

min example for fusion/astdsl.nim is wrong
1 participant