Re: Why is this a shift/reduce conflict?

2013-06-05 Thread Valentin Tolmer
On Wed 05 Jun 2013 12:06:30 AM CEST, Adam Smalin wrote: During my test to get << a difference precedence then < I suspect it is impossible because after expr < expr [<] it has no idea if it will be a << expr or an < expression thus I can't tell it to have a different precedence between < and < <

Re: Why is this a shift/reduce conflict?

2013-06-04 Thread Akim Demaille
Le 5 juin 2013 à 00:06, Adam Smalin a écrit : > During my test to get << a difference precedence then < I suspect it is > impossible because after expr < expr [<] it has no idea if it will be a << > expr or an < expression thus I can't tell it to have a different precedence > between < and < <.

Re: Why is this a shift/reduce conflict?

2013-06-04 Thread Adam Smalin
The problem with making >> one token is the problem C++ templates has with `map>`. I know it can be changed to be something like D which i think is map!(int, list!(int)) but I'd like to have the option of doing it in C++ which i may not take. On Tue, Jun 4, 2013 at 8:32 PM, Valentin Tolmer wrote:

Why is this a shift/reduce conflict?

2013-06-04 Thread Adam Smalin
During my test to get << a difference precedence then < I suspect it is impossible because after expr < expr [<] it has no idea if it will be a << expr or an < expression thus I can't tell it to have a different precedence between < and < <. Because I can't I wrote this test grammar. When I execu