Parsodus/parser.example.pds

19 lines
244 B
Plaintext
Raw Normal View History

parser: lalr(1)
precedence: #optional
left 5 PLUS
right 6 TIMES
nonassoc 2 LT
lexesis: lexer.lxs
# of
terminals:
TERMINAL
...
start: start
grammar:
start -> a
| b
;
a → TERMINAL;
b -> a;