Debian Codegraph @

ipl/packs/tcll1/c_ll1.grm

raw
1 # c-ll1
2 # LL(1)
3 start = s .
4
5 s = i ("=" e | ttail etail) .
6 s = n ttail etail .
7 s = "(" e ")" ttail etail .
8
9 e = t etail.
10 etail = { "+" t | "-" t } .
11
12 t = f ttail .
13 ttail = [ "*" t | f "/" t ].
14
15 f = i .
16 f = n .
17 f = "(" e ")" .
18