mankala/grammar.ebnf

11 lines
250 B
EBNF
Raw Permalink Normal View History

2022-10-30 12:09:15 +01:00
top-level ::= ident ':' expr
| ident '=' expr
| '--' text
expr ::= ('\' | 'λ') ident ':' expr '.' expr
| expr expr
| '(' ident ':' expr ')' '->' expr
| '(' expr ')' '->' expr
| '*'
| ident