I am trying to parse the following grammar with Antlr3:
String...
java.lang.String
java.lang.Object...
This is my file .g(part of it):
doc: name DOTS? EOF;
name: ATOM ('.' ATOM)*;
ATOM: ('a' .. 'z' | 'A' .. 'Z')+;
DOTS: '...';
This does not work. Antlr3 treats the '.'after ATOMas part name, not the beginning DOTS. How can I solve it?
source
share