[antlr-interest] ANTLRworks errors debugging fuzzy grammars

Kay Roepke kroepke at classdump.org
Thu Feb 22 12:31:06 PST 2007


On Feb 22, 2007, at 7:58 PM, Rick Mann wrote:

> I'm trying to write a fuzzy grammar, but it appears that ANTLRWorks  
> can't debug them. Is this the case? For example, if I attempt to  
> debug the FuzzyJava.g example, I get this:
>
> [10:56:52] java.lang.NullPointerException
> 	at org.antlr.works.generate.CodeGenerate.getGeneratedClassName 
> (Unknown Source)
> 	at org.antlr.works.generate.CodeGenerate.getGeneratedTextFileName 
> (Unknown Source)
> 	at org.antlr.works.debugger.local.DBLocal.prepare(Unknown Source)
> 	at org.antlr.works.debugger.local.DBLocal.run(Unknown Source)
> 	at java.lang.Thread.run(Thread.java:613)
>
>
>
> If I try to "Generate Code", it says it can only generate code for  
> the Java language.
>
> However, if I just run the ANTLR tool on the grammar, it completes  
> without complaint. Am I misunderstanding something?

No, you aren't: ANTLRWorks uses the ANTLR interpreter which can't do  
syntactic predicates at the moment, so that's why ANTLRWorks misses  
out on this one. :(

sorry about that,

cheers,
-k
-- 
Kay Röpke
http://classdump.org/






More information about the antlr-interest mailing list