Editing Grammar

to indicate what portion of it is now parsed
This commit is contained in:
greg 2015-07-24 02:06:45 -07:00
parent 329c521964
commit 1ae61287c1

View File

@ -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>