1e9cd551a6
Preliminary, work in progress
22 lines
381 B
Plaintext
22 lines
381 B
Plaintext
|
|
|
|
<program> := <statements> EOF
|
|
|
|
<statements> := <statement>
|
|
| <statement> SEP <statements>
|
|
|
|
<statement> := let <id> = <expr>
|
|
| <expr>
|
|
|
|
<expr> := if <expr> then <statements> end
|
|
| if <expr> then <statements> else <statements> end
|
|
| while <expr> SEP <statements> end
|
|
| <binexpr>
|
|
| <number>
|
|
| <id>
|
|
|
|
|
|
<binexpr> :=
|
|
|
|
|