-
-
Notifications
You must be signed in to change notification settings - Fork 171
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
Macro arguments in the middle of expressions. #63
Comments
I'm taking a look at this, but I'll post my findings so far: For numbers, the problem is that the lexer, as soon as it finds a number, it looks for the first non-valid character for a number, sends it to the parser and continues. That way, when you do For labels and EQUs, it works just fine, at least with the current version. Also, it seems that EQUSes can't be used in the list of macro arguments, the lexer used for macro arguments is a lot simpler than the one used for any other part of the code and interprets them as simple strings of characters that are copied when used from inside the macro. Macro arguments only allow a few escape characters (including macro arguments) as seen in EDIT: Explanation of that last part:
|
State of this right now: the first block complains that The second block returns 11 (expected), -1 (expected), -1 (expected), a syntax error (oops), and another syntax error (oops) |
Fixed by #557. |
Numbers are weirder:
The text was updated successfully, but these errors were encountered: