[antlr-interest] Simple code with a simple problem

Bryan S Follins asalh at mindspring.com
Tue Jul 14 15:17:43 PDT 2009


Tom, 

I tried that,  I went to Debug.  As a matter of fact I tried highlighting
both the "text" and "file" radio buttons while using start rule "r" and it
gave me an error "Compiler failed with result code 1."

 

From: Tom Nurkkala [mailto:tnurkkala at cse.taylor.edu] 
Sent: Tuesday, July 14, 2009 15:09
To: Bryan S Follins
Cc: antlr-interest at antlr.org
Subject: Re: [antlr-interest] Simple code with a simple problem

 

 

On Tue/14-Jul, at 5:00 PM, Bryan S Follins wrote:





Found my generation error.  I was using () instead of {} for the java code.
Generation is good. However, it still does not debug the code. 

 

When I run the debugger I get: "Compiler failed with result code 1."   Does
anyone know that means?

 

 

I copied your grammar into ANTLRWorks and changed both actions to use curly
braces instead of parens.  Under the interpreter, I parsed "call foo;"
against rule 'r' and it worked fine.  The parse tree follows.

 

tom.

 



 

--

Tom Nurkkala, PhD

Associate Professor

Computer Science & Engineering

Taylor University

tnurkkala at cse.taylor.edu

 

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.antlr.org/pipermail/antlr-interest/attachments/20090714/76b826f5/attachment.html 
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: image/png
Size: 6585 bytes
Desc: not available
Url : http://www.antlr.org/pipermail/antlr-interest/attachments/20090714/76b826f5/attachment.png 


More information about the antlr-interest mailing list