grino/doc/grammar.bnf

10 lines
139 B
BNF

MODULE ::= EXPR*
EXPR ::=
bool
| int
| ident
| VARDECL
| FUNCALL
VARDECL ::= opar decl ident EXPR cpar
FUNCALL ::= opar ident EXPR* cpar