Editing Grammar
to indicate what portion of it is now parsed
This commit is contained in:
parent
329c521964
commit
1ae61287c1
9
Grammar
9
Grammar
@ -2,7 +2,7 @@
|
||||
|
||||
<program> := <statements> EOF
|
||||
|
||||
<statements> := <statement>
|
||||
<statements> := <statement>
|
||||
| <statement> SEP <statements>
|
||||
|
||||
<statement> := let <id> = <expr>
|
||||
@ -19,3 +19,10 @@
|
||||
<binexpr> :=
|
||||
|
||||
|
||||
/* actual grammar encoded in program */
|
||||
|
||||
<program> := <statements> EOF
|
||||
<statements> := <statement> | <statement> SEP <statements>
|
||||
<let_expression> := let <identifier> = <rhs>
|
||||
<rhs> := <num_literal> | <str_literal> | <identifier>
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user