[antlr-interest] ANTLRworks errors debugging fuzzy grammars

Jean Bovet antlr-list at arizona-software.ch
Sat Feb 24 20:25:16 PST 2007


The debugger should be able to handle that (not the interpreter but  
looking at the trace you're using the debugger). Can you send me the  
grammar file that is causing the issue (at my e-mail  
jean_bovet at mac.com)?

Thanks!

Jean

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