Hoorah. That means the new v3 grammars are perfect then - no need for any more 
unit tests - just ship it ;-)

Jim

> -----Original Message-----
> From: [email protected] [mailto:[email protected]]
> On Behalf Of Terence Parr
> Sent: Wednesday, January 20, 2010 1:02 PM
> To: ANTLR-dev Dev
> Subject: [antlr-dev] hooray
> 
> first unit test in v4 passes :)
> 
>       @Test public void testA() throws Exception {
>               Grammar g = new Grammar(
>                               "parser grammar P;\n"+
>                               "a : A;");
>               String expecting =
>                       "(PARSER_GRAMMAR P (RULES (RULE a (BLOCK (ALT
> A)))))";
>         String found = g.ast.toStringTree();
>               assertEquals(expecting, found);
>       }
> 
> Ter
> 
> _______________________________________________
> antlr-dev mailing list
> [email protected]
> http://www.antlr.org/mailman/listinfo/antlr-dev



_______________________________________________
antlr-dev mailing list
[email protected]
http://www.antlr.org/mailman/listinfo/antlr-dev

Reply via email to