[antlr-interest] weird internal false problem

Werner Punz werner.punz at gmail.com
Thu Sep 25 10:32:19 PDT 2008


Thanks that did it, wonderful...


Werner


Gavin Lambert schrieb:
> At 09:12 25/09/2008, Werner Punz wrote:
>  >ALPHA	:	('A'..'Z'|'a'..'z'|'_'|'-');
> [...]
>  >So far so good but if I feed it with following input
>  >
>  >public class xxx {
>  >   public void hello() {
>  >	int myvar "hello world"
>  >dfadf
>  >adf
>  >/*TPL
>  >dddd
>  >TPL*/
>  >DDD
>  >
>  >It resolves everything properly as exected but I get following
>  >output on the console:
>  >
>  >line 4:3 mismatched character 'd' expecting 'l'
> 
> Add a + to the end of the ALPHA rule.
> 
> 
> List: http://www.antlr.org/mailman/listinfo/antlr-interest
> Unsubscribe: http://www.antlr.org/mailman/options/antlr-interest/your-email-address
> 
> 



More information about the antlr-interest mailing list