Re: Tell a rule to shift instead of reduce?

2013-12-18 Thread Hans Aberg
[Please cc the list.] On 18 Dec 2013, at 23:45, Adam Smalin wrote: > >The token precedences apply to the tokens immediately before and after the > >parsing ‘.’ (as in the .output file) in the shift/reduce conflicting rules. > >The grammar must be written so that the tokens appear in such a pos

Re: Tell a rule to shift instead of reduce?

2013-12-18 Thread Hans Aberg
[Please cc the list.] On 18 Dec 2013, at 11:05, John P. Hartmann wrote: > Isn't the grammar context sensitive? No way that can be shoehorned into > LALR(1). Computer languages are typically context sensitive, but that is pushed into the actions.

Re: Tell a rule to shift instead of reduce?

2013-12-18 Thread Hans Aberg
[Please avoid styled text.] On 18 Dec 2013, at 02:05, Adam Smalin wrote: > I don't believe that works. According to my rules and the conflict files it > REFUSES to shift. "var, var = var" I think will work but "var = var, var" > will be seen as rval ',' rval which isn't legal. I'm not sure whe