[antlr-interest] Re: semantic predicate does not work

mzukowski at yci.com mzukowski at yci.com
Wed Jan 22 08:28:08 PST 2003


Yes, but the spaces may matter to antlr (used to anyway), which is actually
parsing your action code to replace certain things like references to trees
and tree construction operators.

Monty

-----Original Message-----
From: weberjn <weberjn at yahoo.com> [mailto:weberjn at yahoo.com]
Sent: Wednesday, January 22, 2003 2:23 AM
To: antlr-interest at yahoogroups.com
Subject: [antlr-interest] Re: semantic predicate does not work


Thanks for all the answers, I indeed did overlook that in Getting
Started a Terminal was printed out.
I tried to print out a non-terminal, which I probably should do as in
TinyBasic.g newFunction returns [int t]

More spaces in curly code sent to java shouldn't matter to javac.

Thank you all,
Juergen

--- In antlr-interest at yahoogroups.com, "Smith, Eric V."
<ericsmith at w...> wrote:
> Doesn't it need to be
>   d1=identifier 
> since it's a non-terminal?
> 



 

Your use of Yahoo! Groups is subject to http://docs.yahoo.com/info/terms/ 


 

Your use of Yahoo! Groups is subject to http://docs.yahoo.com/info/terms/ 



More information about the antlr-interest mailing list