Parsodus/parser.example.pds

13 lines
152 B
Plaintext
Raw Normal View History

2016-11-26 19:26:16 +01:00
parser: lalr(1)
lexesis: lexer.lxs
terminals:
TERMINAL
2016-11-26 19:26:16 +01:00
start: s
grammar:
2016-11-26 19:26:16 +01:00
s -> a s
| b
;
a → TERMINAL;
b -> a;