Skip to content

Parentheses are not yet implemented #3

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

Open
Phlarx opened this issue Dec 19, 2021 · 0 comments
Open

Parentheses are not yet implemented #3

Phlarx opened this issue Dec 19, 2021 · 0 comments

Comments

@Phlarx
Copy link

Phlarx commented Dec 19, 2021

(Using the Openplanet 1.21.0 build for TMTurbo)

The line

#if (TURBO && MANIA32) || (MP41 && MANIA64)

produces the errors

[    ScriptEngine] [23:04:52]  Unexpected operator '(' in condition on line 26
[    ScriptEngine] [23:04:52]  Unexpected operator ')' in condition on line 26
[    ScriptEngine] [23:04:52]  Unexpected OPERATOR in condition on line 26
[    ScriptEngine] [23:04:52]  Unexpected operator '(' in condition on line 26
[    ScriptEngine] [23:04:52]  Unexpected operator ')' in condition on line 26
[    ScriptEngine] [23:04:52]  Unexpected NEWLINE in condition on line 26

Searching the ccpp code reveals that ( and ) are indeed considered operator characters,
but they are marked as TODO within bool ccpp::processor::test_condition()

(in this specific case, the condition works the same with the parentheses omitted, so there is a workaround)

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

No branches or pull requests

1 participant