On 6 Aug 2005, at 03:05, Aaron Hurst wrote:
I'm trying to parse a simple algebraic (Boolean) expression using
the grammar described below. However, I would like to be able to
parse implicit multiplication (i.e. if two expression appear next
to each other without an operator, they should b
On Fri, 5 Aug 2005, Aaron Hurst wrote:
> [...] However, I would like to be able to parse
> implicit multiplication (i.e. if two expression appear next to each
> other without an operator, they should be mulitplied).
[...]
>| expression expression %prec '*' /* this rule causes problems */
On 6 Aug 2005, at 03:05, Aaron Hurst wrote:
I would like to be able to parse implicit multiplication (i.e. if
two expression appear next to each other without an operator, they
should be mulitplied).
Here is a variation:
%token IDENTIFIER
%left '|' '+'
%left '^'
%left '&' '*' IDENTIFIER '