-
Is there a BNF grammar for C3 language? In particular, for the macro system. |
Beta Was this translation helpful? Give feedback.
Replies: 6 comments 2 replies
-
You can find the grammar here: https://github.com/c3lang/c3c/tree/master/resources/grammar |
Beta Was this translation helpful? Give feedback.
-
Using the grammar and lexer at https://github.com/c3lang/c3c/blob/master/resources/grammar/grammar.y I've added it to https://mingodad.github.io/parsertl-playground/playground/ , select Also you can get an I hope it can help develop/debug/document the The sources are at https://github.com/mingodad/parsertl-playground . |
Beta Was this translation helpful? Give feedback.
-
After checking my adapted grammar and the original bison/flex with all
|
Beta Was this translation helpful? Give feedback.
-
Thanks, those that are not in "notworking" is fixed now. |
Beta Was this translation helpful? Give feedback.
-
Those were all in "notworking", but let me just fix the grammar for those so that they're parsing. |
Beta Was this translation helpful? Give feedback.
-
You can test it now. |
Beta Was this translation helpful? Give feedback.
You can find the grammar here: https://github.com/c3lang/c3c/tree/master/resources/grammar