[antlr-interest] antlr v3 daily / hourly builds

Terence Parr parrt at cs.usfca.edu
Fri Mar 16 10:58:42 PDT 2007


On Mar 16, 2007, at 5:48 AM, Gavin Lambert wrote:

> At 07:46 16/03/2007, Terence Parr wrote:
> >http://www.antlr.org/download/build/antlr-03-15-2007.11.tar.gz
> >
> >is Mar 15 2007's build for hour 11.  I may push more than one in an
> >hour, but rarely; it would overwrite.
> >
> >Anyway, this one has the fix for the (...)=> bug Harmut was talking
> >about.  Try it out!
>
> Is it supposed to have the fix for the lexer set inversion thing  
> too?  Because I've just tried to use one in antlr-03-15-2007.13 and  
> it doesn't seem to like it:
>
> NormalChar
> 	:	~('"' | '\\' | WS)
> 	;
> WS
> 	:	('\r' | '\n' | ' ' | '\t')		{ $channel = HIDDEN; }
> 	;

Ooops...syntax error in parser.  This unit test now works:

	public void testNotSetWithRuleInLexer() throws Exception {
		Grammar g = new Grammar(
			"lexer grammar T;\n"+
			"T : ~('a' | B) | 'a';\n" +
			"fragment\n" +
			"B : 'b' ;\n");
		g.createLookaheadDFAs();
		String expecting =
			".s0-'a'->:s2=>2\n" +
			".s0-{'\\u0000'..'`', 'c'..'\\uFFFE'}->:s1=>1\n";
		checkDecision(g, 1, expecting, null);
	}

Grab new build antlr-03-16-2007.10.tar.gz

Ter


More information about the antlr-interest mailing list