Is this the place to submit gUnit BUGs? Using the Expr.g for the ANTLR Ref, Ch. 3 the following test doesn't work correctly -------- /**Expr.testsuite - for the Expr.g grammar of ANTLR Ref, Ch. 3 * * This test should succeed, but gives a failure when this file has PC line endings: * 1 failures found: * test1 (stat, line29) - * expected: OK * actual: FAIL * * For UNIX line endings it gives an exception: * Exception in thread "main" java.lang.StringIndexOutOfBoundsException: String index out of range: -1 * at java.lang.String.substring(Unknown Source) * at org.antlr.gunit.gUnitLexer.mML_STRING(gUnitLexer.java:490) * at org.antlr.gunit.gUnitLexer.mTokens(gUnitLexer.java:1338) * at org.antlr.runtime.Lexer.nextToken(Lexer.java:84) * at org.antlr.runtime.CommonTokenStream.fillBuffer(CommonTokenStream.java:119) * at org.antlr.runtime.CommonTokenStream.LT(CommonTokenStream.java:238) * at org.antlr.runtime.Parser.getCurrentInputSymbol(Parser.java:54) * at org.antlr.runtime.BaseRecognizer.match(BaseRecognizer.java:104) * at org.antlr.gunit.gUnitParser.gUnitDef(gUnitParser.java:76) * at org.antlr.gunit.Interp.parse(Interp.java:75) * at org.antlr.gunit.Interp.main(Interp.java:60) */ gunit Expr; stat : // test newline << >> OK ----------------------- I'm using ANTLR 3.1.1, Java 1.6.0_07, MSWindows XP SP3 George
--~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
List: http://www.antlr.org:8080/mailman/listinfo/antlr-interest Unsubscribe: http://www.antlr.org:8080/mailman/options/antlr-interest/your-email-address
