[antlr-interest] Simple code with a simple problem

Bryan S Follins asalh at mindspring.com
Tue Jul 14 17:38:12 PDT 2009


Changing the quotes on the println statement worked.  Thanks a bunch Tom.

 

Bryan

 

 

 

From: Tom Nurkkala [mailto:tnurkkala at cse.taylor.edu] 
Sent: Tuesday, July 14, 2009 16:00
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:17 PM, Bryan S Follins wrote:





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."

 

You need to change the quotes in the println statement to be double, rather
than single, quotes (per Java).

 

Also, it looks like the "space" alternative in your WS rule has two spaces
between the quotes.  You probably only want one.

 

tom.

 

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.antlr.org/pipermail/antlr-interest/attachments/20090714/7829d744/attachment.html 


More information about the antlr-interest mailing list