[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Grammatica-users] token priority?
From: |
John Ledbetter |
Subject: |
[Grammatica-users] token priority? |
Date: |
Thu, 16 Nov 2006 22:18:47 -0700 |
User-agent: |
Thunderbird 1.5.0.8 (Windows/20061025) |
Hello,
I am working with a grammar for a simple mathematical language, and I am
having trouble implementing a unary minus sign.
In flex/bison, I would do something like...
%left PLUS MINUS
%nonassoc UNARY
// ....
somerule : expr MINUS expr
| MINUS expr %prec UNARY
What is the equivalent construct in grammatica?
Thanks,
John.
- [Grammatica-users] token priority?,
John Ledbetter <=