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

Allow optional arguments on macro tags #16

Open
marcioAlmada opened this issue Feb 6, 2016 · 1 comment
Open

Allow optional arguments on macro tags #16

marcioAlmada opened this issue Feb 6, 2016 · 1 comment

Comments

@marcioAlmada
Copy link
Owner

Macro tags are flags that serve as meta information #4. Turns out it may be a good thing to allow macro tags to have arguments:

macro ·name('MyMacro') { /* match */ } >> { /* expansion */ }

Blocks #15

@marcioAlmada
Copy link
Owner Author

For example, a ·name() tag could be useful to give better error messages for dominant macros #6.

Before:
Unexpected ';' on line 1, expected '{'

After:
Unexpected ';' on line 1, expected '{' while expanding "unless" macro

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

No branches or pull requests

1 participant