This website requires JavaScript.
Explore
Help
Sign In
jasder
/
antlr
Watch
1
Star
0
Fork
You've already forked antlr
1
Code
Issues
Pull Requests
Releases
1
Wiki
Activity
26bf5acf19
antlr
/
tool
/
playground
/
A.g4
11 lines
113 B
Plaintext
Raw
Normal View
History
Unescape
Escape
update grammars [git-p4: depot-paths = "//depot/code/antlr4/main/": change = 9856]
2012-01-12 03:21:05 +08:00
grammar A;
got some good examples working that play around with the getter methods.
2012-02-15 08:33:12 +08:00
s : e ;
update playground
2012-02-15 05:59:53 +08:00
pull in Sam's ATN alt collapsing optimizations with optimizeStates off as it causes a class cast exception.
2012-08-05 04:32:07 +08:00
e : e '*' e # Mult
| INT # primary
update grammars [git-p4: depot-paths = "//depot/code/antlr4/main/": change = 9856]
2012-01-12 03:21:05 +08:00
;
got some good examples working that play around with the getter methods.
2012-02-15 08:33:12 +08:00
INT : [0-9]+ ;
WS : [ \t\n]+ -> skip ;