On Thursday 02 October 2008 12:31, Jim Idle wrote:
> On Thu, 2008-10-02 at 12:24 -0700, Randall R Schulz wrote:
> > Hi,
> >
> > I have a couple of productions that use a prefix operator that may
> > be repeated arbitrarily. One of them (negation) just has the
> > operator symbol. The other has a keyword (two different keywords,
> > actually) followed by an identifier.
> >
> > For example, with the negation operator, this:
> >
> >     ---p
>
> rule : NEG^ rule
>
>         | next_expr_in_precedence_stack
>
>         ;
>
> See things like the ^ operator in example grammars for right
> associative things.
>
> Jim


Thanks, Jim. I knew it couldn't be as hard as I was making it.


Randall Schulz

List: http://www.antlr.org:8080/mailman/listinfo/antlr-interest
Unsubscribe: 
http://www.antlr.org:8080/mailman/options/antlr-interest/your-email-address


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"il-antlr-interest" group.
To post to this group, send email to il-antlr-interest@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/il-antlr-interest?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to