[antlr-interest] (no subject)

Terence Parr parrt at cs.usfca.edu
Mon Jul 7 12:42:31 PDT 2008


Wow...  that freaked me out for a second... it turns out that there is  
a lexer error, which both of us fail to see; I clicked on the output  
tab and saw it. fix with this

DOUBLE_QUOTE_STRING_LITERAL
	:	'"' (ESC | ~('\\'|'"'))* '"'
	;


Ter

On Jul 7, 2008, at 12:02 PM, Jens Boeykens wrote:

> Hello all,
>
> I'm have an issue with parsing a particular input with ANTLRv3.g (http://www.antlr.org/grammar/ANTLR 
> ).
> I'm trying to parse the following rule:
>
> r : a -> template() "Some test";
>
> This however doesn't parse, but I can't find a bug in ANTLRv3.g or a  
> mistake in my input rule. Using ANTLRworks it seems to parse well  
> until template() and than the match fails. Don't know what could be  
> wrong with "..." though.
>
> Greetings



More information about the antlr-interest mailing list