OMG! I tested it in the ANTLR IDE, and it fails as well.
On Tue, Oct 13, 2009 at 9:48 PM, Graham Wideman <[email protected]> wrote: > Miklos: > > Seems like a bug in AW interpreter. > > At 10/13/2009 09:16 PM, Espák MiklósbPNz wrote: >>This is exactly what I want, but it does not work for me. Incredible! >>Do you use 3.2, too? > > I'm using 3.2 and AW 1.3. For me this grammar fails in AW interpreter, but > works if i compile it. > > ------------------------------ > grammar Test03; > > file > : (b=Block {System.out.println("Block:" + $b.text); })+ EOF > ; > > Block: '{' ( Block | ~('{'|'}') )* '}'; > ------------------------------ > > Test input: > {abc}{def}{{xyz}} > > Output from compiled program: > Block:{abc} > Block:{def} > Block:{{xyz}} > > Errors from AW (in console): > [12:39:19] Interpreting... > [12:39:19] problem matching token at 1:2 MismatchedTokenException(97!=125) > [12:39:19] problem matching token at 1:3 MismatchedTokenException(98!=123) > [12:39:19] problem matching token at 1:4 MismatchedTokenException(99!=123) > [12:39:19] problem matching token at 1:5 MismatchedTokenException(125!=123) > [12:39:19] problem matching token at 1:7 MismatchedTokenException(100!=125) > [12:39:19] problem matching token at 1:8 MismatchedTokenException(101!=123) > [12:39:19] problem matching token at 1:9 MismatchedTokenException(102!=123) > [12:39:19] problem matching token at 1:10 MismatchedTokenException(125!=123) > > So this seems like a bug in AW interpreter. > > -- Graham > List: http://www.antlr.org/mailman/listinfo/antlr-interest Unsubscribe: http://www.antlr.org/mailman/options/antlr-interest/your-email-address --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "il-antlr-interest" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/il-antlr-interest?hl=en -~----------~----~----~----~------~----~------~--~---
