[antlr-interest] ANTLRworks errors debugging fuzzy grammars

Jean Bovet antlr-list at arizona-software.ch
Thu Mar 1 22:36:13 PST 2007

That's because the FuzzyJava.g target language is Python. From  
ANTLRWorks itself, only the Java target language is supported in the  
debugger. However, if you can generate the parser outside ANTLRWorks  
and then use the Debug > Connect feature to connect the AW debugger  
to it.

Concerning the code generation, I will have a look. That's true that  
I actually restrict the output language to be Java but I'll double- 



On Feb 22, 2007, at 10:58 AM, 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?
> ANTLRWorks 1.0b9 and ANTLR 3b6
> TIA,
> -- 
> Rick

More information about the antlr-interest mailing list