Editing Grammar
to indicate what portion of it is now parsed
This commit is contained in:
parent
329c521964
commit
1ae61287c1
7
Grammar
7
Grammar
@ -19,3 +19,10 @@
|
|||||||
<binexpr> :=
|
<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…
x
Reference in New Issue
Block a user