help-bison
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: x + (y) + z


From: Kelly Leahy
Subject: Re: x + (y) + z
Date: Thu, 3 Mar 2005 13:08:00 -0800 (PST)

> to
> 
> add-expr:
>                 mul-expr                    |
>                 mult-expr '+' add-expr |
>                 mult-expr '-' add-expr ;
> 

I don't think that's what you want if you're planning
on executing the code you generate from this...

This means that 3 - 4 + 4 = -5, rather than the
traditional result of 3.

Kelly




reply via email to

[Prev in Thread] Current Thread [Next in Thread]