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
Block style conditional statements in actions #85
Comments
You can use braces if you also use double-braces to wrap your action:
Hope this helps! |
@jasonwyatt Thanks. That works for parser. But not for lexer... To be more visual, here's what I mean. Following works perfectly:
But this one fails:
The last one gives me following on attempt to compile:
|
@ixti Ah, after looking through the source a bit, I think this is how you can do multi-line actions with braces in the lexer config:
|
Oops. You're right! I was trying it before but it as not working - seems I was missing something (probably I was misspelling closing brace) |
@jasonwyatt thanks! |
I'll reopen this as a reminder that I still need to implement block style with single braces. |
Right now one need to write cond. stmts like this:
it would be great to be able to use braces :))
The text was updated successfully, but these errors were encountered: