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
e3e739dfc7
antlr
/
tool
/
playground
/
A.g4
11 lines
115 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
got some good examples working that play around with the getter methods.
2012-02-15 08:33:12 +08:00
e : e '*' e -> Mult
altered naming scheme for listeners/visitors * names changed. visit() -> visitX(). enter/exit() -> enter/exitX() * capitalizing automatically now. rule s -> SContext not sContext * no enter/exit method in generic rule context object if rule has alt labels, nor in interfaces. * dup labels allowed in same rule * label X or x illegal if rule x exists
2012-02-19 04:40:47 +08:00
| 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 ;