What grammar is used for P? #634
-
I see sections of grammar specs in the docs, but it's not a grammar I'm familiar with. I might be able to render syntax diagrams for P, but it will be easier if it's one of Side note: 20+ years ago I wrote a little FSM dialect, and finding P makes me want to dust it off. :^) |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 5 replies
-
Thanks! The grammar in the docs is an adopted version of the ANTLR grammar file here: https://github.com/p-org/P/blob/master/Src/PCompiler/CompilerCore/Parser/PParser.g4 Any help to improve the documentation would be great! |
Beta Was this translation helpful? Give feedback.
-
Thanks! I forgot to check g4. We have an experimental metagrammar, but I'll have to dust things off to test. |
Beta Was this translation helpful? Give feedback.
Thanks! The grammar in the docs is an adopted version of the ANTLR grammar file here: https://github.com/p-org/P/blob/master/Src/PCompiler/CompilerCore/Parser/PParser.g4
Any help to improve the documentation would be great!