[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Tell a rule to shift instead of reduce?
From: |
Akim Demaille |
Subject: |
Re: Tell a rule to shift instead of reduce? |
Date: |
Sun, 22 Dec 2013 21:04:43 +0100 |
Le 22 déc. 2013 à 20:35, Akim Demaille <address@hidden> a écrit :
>
> Le 22 déc. 2013 à 18:40, Adam Smalin <address@hidden> a écrit :
>
>> I forgot to CC this to the group a few days ago.
>>
>>> 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 position.
>>
>> | rval '=' rval %prec '.' ',' rval
>
> That's bad style, move your "%prec '.'" at the end of the rule.
> It means the same, but it's clearer. And therefore notice that
> now, this rule has the precedence of '.', not that of '='.
This should have read "not that of ','", as the last token of
the rule is ','.
- Re: Tell a rule to shift instead of reduce?, (continued)
Re: Tell a rule to shift instead of reduce?, Akim Demaille, 2013/12/22
- Re: Tell a rule to shift instead of reduce?, Adam Smalin, 2013/12/22
- Re: Tell a rule to shift instead of reduce?, Adam Smalin, 2013/12/22
- Re: Tell a rule to shift instead of reduce?, Akim Demaille, 2013/12/22
- Re: Tell a rule to shift instead of reduce?,
Akim Demaille <=
- Re: Tell a rule to shift instead of reduce?, Adam Smalin, 2013/12/22
- Re: Tell a rule to shift instead of reduce?, Akim Demaille, 2013/12/23
- Re: Tell a rule to shift instead of reduce?, Adam Smalin, 2013/12/23
- Re: Tell a rule to shift instead of reduce?, Akim Demaille, 2013/12/24
Re: Tell a rule to shift instead of reduce?, Akim Demaille, 2013/12/22