-
Notifications
You must be signed in to change notification settings - Fork 27
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
Add comma as a way to list statements #48
Comments
Hello, I want to contribute to these issue. |
Hello @hunarjain! The parser definitions are stored in https://github.com/xFAANG/askql/tree/master/src/askscript/parser. @czerwinskilukasz1 is the owner of that part of the codebase |
Hello @czerwinskilukasz1 I am really interested in resolving this issue can you please guide me as to what type of changes I have to make in the parser files mentioned by @mhagmajer. |
Hello @hunarjain , I am very happy you volunteer to do this task - it would be a useful syntax structure. step 2) write appropriate code in https://github.com/xFAANG/askql/blob/master/src/askscript/parser/askscript.grammar.pegjs.classes.ts, which will handle this and translate to mhagmajer's structures - please consult with him what's the most convenient way. Likely you will produce a code block for the comma-separated list of statements (and the last one will be treated as a return value for the whole block just out-of-the-box). |
Hello @czerwinskilukasz1 , Thanks |
Hello @khushboo97 you can use the playground |
All these cause syntax errors:
Example 1
Example 2
Example 3
The text was updated successfully, but these errors were encountered: