Debian Codegraph @

lib/mllpt-lib/ml-lpt/ml-antlr/examples/inherit/a.grm

raw
1 %tokens
2 : ID of string
3 | INT of int
4 | LP ("(") | RP (")")
5 | PLUS ("+")
6 | SEMI (";") | EQ ("=")
7 ;
8
9 stmt
10 : ID "=" exp ";"
11 ;
12
13 exp
14 : atomicExp ("+" atomicExp)*
15 ;
16
17 atomicExp
18 : ID
19 | INT
20 | "(" exp ")"
21 ;