[antlr-interest] Simple code with a simple problem

Tom Nurkkala tnurkkala at cse.taylor.edu
Tue Jul 14 15:59:46 PDT 2009


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/e7b71bd8/attachment.html 


More information about the antlr-interest mailing list