Terence Parr wrote:
> that is very strange. there is no way that that template can generate  
> the 3. logic demands that another template is being used. check the  
> class path.
>
> more worryingly,  I don't see a single failed predicate generated from  
> the Java version:
>
> ~/antlr/code/examples-v3/java/composite-java $ a Java.g
> warning(200): JavaLexerRules.g:22:5: Decision can match input such as  
> "'0'..'9'{'E', 'e'}{'+', '-'}'0'..'9'{'D', 'F', 'd', 'f'}" using  
> multiple alternatives: 3, 4
> As a result, alternative(s) 4 were disabled for that input
> ~/antlr/code/examples-v3/java/composite-java $ ls
> Java.g                                JavaStat.g
> Java.tokens                   JavaStat.tokens
> JavaAnnotations.g             Java_JavaAnnotations.java
> JavaAnnotations.tokens                Java_JavaDecl.java
> JavaDecl.g                    Java_JavaExpr.java
> JavaDecl.tokens                       Java_JavaLexerRules.java
> JavaExpr.g                    Java_JavaStat.java
> JavaExpr.tokens                       Main.java
> JavaLexer.java                        antlr
> JavaLexerRules.g              files
> JavaLexerRules.tokens         input
> JavaParser.java                       output
> ~/antlr/code/examples-v3/java/composite-java $ grep FailedPred *.java
> ~/antlr/code/examples-v3/java/composite-java $
>
>   in my grammar, I do not see a single semantic predicate. something  
> very strange is going on.
>
> Ter
Check that the correct jars are being used of course - maven should take 
care of it if you are using java -jar and the correct jar. Make sure 
that you have a full p4 sync of course, then do:

mvn clean install

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

Reply via email to