[antlr-interest] Failure on OpenJDK on Debian

Ola Bini ola.bini at gmail.com
Tue Mar 31 06:44:56 PDT 2009


Hi,

I have a grammar that works well with several different Java 5 and Java 
6 environments on both Windows, Linux and MacOS X (including SoyLatte).
But I've just got a bug report that it blows up on OpenJDK build 
1.6.0_0-b11, that can be installed in Debian.
Has anyone else seen this? The errors look like this:

generate.antlr:

     [java] warning(200): ioke.g:269:5: Decision can match input such as "'#'"
using multiple alternatives: 1, 2
     [java] As a result, alternative(s) 2 were disabled for that input
     [java] error(201): ioke.g:269:5: The following alternatives can never be
matched: 2
     [java] 
     [java] warning(209): ioke.g:323:1: Multiple token rules can match input
such as "'#'": T__38, Identifier, StringLiteral, RegexpLiteral, LineComment
     [java] 
     [java] As a result, token(s)
Identifier,StringLiteral,RegexpLiteral,LineComment were disabled for that input
     [java] warning(209): ioke.g:202:1: Multiple token rules can match input
such as "'['": T__34, Identifier
     [java] 
     [java] As a result, token(s) Identifier were disabled for that input
     [java] warning(209): ioke.g:202:1: Multiple token rules can match input
such as "'{'": T__36, Identifier
     [java] 
     [java] As a result, token(s) Identifier were disabled for that input
     [java] Java Result: 1

? ant -version
Apache Ant version 1.7.0 compiled on August 29 2007

java -version
java version "1.6.0_0"
OpenJDK  Runtime Environment (build 1.6.0_0-b11)
OpenJDK 64-Bit Server VM (build 1.6.0_0-b11, mixed mode)

The grammar can be seen at 
http://github.com/olabini/ioke/raw/9e2795c9c5f2b326c0cbb3dfb456f885b9625ba2/src/grammar/ioke.g


Cheers

-- 
 Ola Bini (http://olabini.com) 
 Ioke creator (http://ioke.org)
 JRuby Core Developer (http://jruby.org)
 Developer, ThoughtWorks Studios (http://studios.thoughtworks.com)
 Practical JRuby on Rails (http://apress.com/book/view/9781590598818)

 "Yields falsehood when quined" yields falsehood when quined.




More information about the antlr-interest mailing list