[antlr-interest] ColonAssign vs Label Colon vs Colon

Michael Fogeborg micke at online.no
Thu Jun 26 11:32:39 PDT 2008


I have:

grammar Foo;

COLON	: ':' ;
IDENT	: 'A'..'Z' ;
ASSIGN	: ID ':=' ID ;
LABEL	: IDENT COLON ;

The Lexer gets lost on the COLON and I can't get this working...
( Well, it does work if a introduce whitespace around the tokens 
  but that is not what I want ) 

Any hints ?



More information about the antlr-interest mailing list