Modules/Language/old/Parser/rsc/grammar.txt
2024-03-07 12:27:47 +03:00

20 lines
292 B
Text

/*
Sample grammar.
This grammar wil produce text in the form: TODO
*/
/* This is the starting production of the grammar */
/* Simple Example
Start A
A : [ ID ] | &;
*/
/* Lists Example */
Start List
List : List Stm | Stm;
Stm : StmBody [ END ];
StmBody: [ Stm1 ] | [ Stm2 ] | [ Stm3 ];