antlr/tool/playground/T.g

14 lines
139 B
Plaintext
Raw Normal View History

2012-08-06 00:51:52 +08:00
grammar T;
2012-09-05 09:59:20 +08:00
options
{
output=AST;
backtrack=true;
}
2012-08-27 07:32:28 +08:00
2012-09-05 09:59:20 +08:00
Integer : '0' .. '9';
myID : Integer*;
public json : myID+ -> ^(myID);