]> git.donarmstrong.com Git - lilypond.git/commit
Issue 3274: Restructure parsing of reverts to avoid ambiguities in relation to BACKUP
authorDavid Kastrup <dak@gnu.org>
Thu, 28 Mar 2013 17:07:22 +0000 (18:07 +0100)
committerDavid Kastrup <dak@gnu.org>
Sat, 6 Apr 2013 07:11:25 +0000 (09:11 +0200)
commiteedec40e61ffd9df87060afeba71a49314877174
treeaa4571c2c85e14859d2030e565630907345ba53c
parent7698c53be13f9136391b7624b4028541be9690e1
Issue 3274: Restructure parsing of reverts to avoid ambiguities in relation to BACKUP

A music expression could start with BACKUP (an artificially inserted
token never present in the source code itself) due to the previous
rules.  If the BACKUP mechanism is needed in different unrelated rules
applicable in similar contexts, this can lead to shift/reduce
conflicts.

While the actual (separate) code prompting this issue was rewritten in
a manner reining its BACKUP tokens in on its own and thus avoiding the
conflict triggering this issue, it still makes sense to confine the
range where BACKUP tokens are recognized to the actual limited
contexts where they are being produced, in order to keep such
conflicts down, and to stop the parser from creative reinterpretation
of situations that can only arise by programmer error.
lily/parser.yy