Re: Implicit Multiplication

2005-08-06 Thread Hans Aberg
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

Re: Implicit Multiplication

2005-08-06 Thread Laurence Finston
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 */

Re: Implicit Multiplication

2005-08-06 Thread Hans Aberg
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 '