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

Re: Change to shift instead of reduce

2013-06-04 Thread Adam Smalin
I put the below in my main project just to test it out so I don't have a self contained source but the below should explain everything. >From my understanding since '.' is more important then DOLLAR it will win. Precedence is chosen the order nonassoc/left/right where the first seen is least impor

Re: Change to shift instead of reduce

2013-06-04 Thread Akim Demaille
Le 4 juin 2013 à 11:04, Adam Smalin a écrit : > Nevermind I figured that out Great! Please, do try to make small self-contained examples when you can. ___ help-bison@gnu.org https://lists.gnu.org/mailman/listinfo/help-bison

Re: Change to shift instead of reduce

2013-06-04 Thread Adam Smalin
Nevermind I figured that out On Mon, Jun 3, 2013 at 4:01 PM, Adam Smalin wrote: > Could you give me a better example? I tried the below and neither helped. > I got the error > > Ambiguity detected. > Option 1, > mainLoop -> > mainLoop -> > mainLoop -> > mainLoop >