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

When some parameter of a message is a char* value we need to enclose it in parentheses else it fails to compile. #9

Open
Oblivious-Oblivious opened this issue Sep 30, 2020 · 0 comments
Assignees
Labels
invalid This doesn't seem right

Comments

@Oblivious-Oblivious
Copy link
Owner

Messages with string literal as parameters need parentheses.

self "message" ("str1"), p2, ("str3"), p4, p5;

ideally we would want

self "message" "p1", "p2", "p3";

For this to be solved we would need to save the messages into some structure and only parse for the number of parameters so that we avoid collisions. We would also need to check if a string is indeed a parameter or another message itself, however in order to nest message calls as parameters combined with other strings, brackets might be necessary, like such:

self "message" "p1", ("message2" p1, "str2"), "p3", param4;
@Oblivious-Oblivious Oblivious-Oblivious added the invalid This doesn't seem right label Sep 30, 2020
@Oblivious-Oblivious Oblivious-Oblivious self-assigned this Sep 30, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
invalid This doesn't seem right
Projects
None yet
Development

No branches or pull requests

1 participant