-
Notifications
You must be signed in to change notification settings - Fork 72
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
Tokenisation operator #205
Conversation
This patch needs to check if the print("##"); ^ will print |
This patch breaks YSI. The following is the compiler's output.
Can anyone else confirm that this is not just some mistake on my end? |
One thing to be aware of, as I've seen this a few times: #define COLOR_RED #FF0000
SendClientMessage(playerid, COLOR_GREEN, "Hello {"#COLOR_RED"} world"); Not sure what would happen there. But it shouldn't be too hard to avoid by skipping backtracking too much when you do symbol replacements. |
Zeex' PAWN fork version 3.10.5 introduced a concatenation operator (pawn-lang/compiler#205), which breaks the extract macro (pawn-lang/compiler#224). This commit should fix that problem. Also resolves #16.
@VVWVV If you're going to work on this and re-submit, please also include a test that covers as much test cases as you can think of. For example, We're starting to add compile and crash tests for new issues (and hopefully runtime tests soon). See source/compiler/tests and source/compiler/tests/CMakeLists.txt for examples. |
#155
Example: