Fixing list copy and grammar sentence generation
This commit is contained in:
parent
ffb533ec9a
commit
24d554abc3
5 changed files with 38 additions and 13 deletions
|
|
@ -5,8 +5,16 @@ This grammar wil produce text in the form: TODO
|
|||
*/
|
||||
|
||||
/* This is the starting production of the grammar */
|
||||
|
||||
/* Simple Example
|
||||
Start A
|
||||
A : [ ID ] | &;
|
||||
*/
|
||||
|
||||
/* Production rule */
|
||||
A : [ ID ] [ IS ] [ IDs ];
|
||||
/* Lists Example */
|
||||
|
||||
Start List
|
||||
|
||||
List : List Stm | Stm;
|
||||
Stm : StmBody [ END ];
|
||||
StmBody: [ Stm1 ] | [ Stm2 ] | [ Stm3 ];
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue