Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code | Sign in
(305)

Issue 5501056: Tie LilyPond, lexer and parser together more type-safely. (Closed)

Can't Edit
Can't Publish+Mail
Start Review
Created:
12 years, 5 months ago by dak
Modified:
12 years, 5 months ago
Reviewers:
hanwenn, carl.d.sorensen, Reinhold
CC:
lilypond-devel_gnu.org
Visibility:
Public.

Description

Tie LilyPond, lexer and parser together more type-safely. Obviously, this would be followed by a separate commit that replaces "PARSER" in parser.yy with "parser" and removes the respective #define in order to keep changes in this manually created commit small and reviewable.

Patch Set 1 #

Unified diffs Side-by-side diffs Delta from patch set Stats (+23 lines, -17 lines) Patch
M lily/include/lily-lexer.hh View 2 chunks +2 lines, -1 line 0 comments Download
M lily/include/lily-parser.hh View 2 chunks +2 lines, -1 line 0 comments Download
M lily/lexer.ll View 1 chunk +2 lines, -4 lines 0 comments Download
M lily/parser.yy View 7 chunks +17 lines, -11 lines 0 comments Download

Messages

Total messages: 5
Carl
Looks excellent to me. Thanks!
12 years, 5 months ago (2011-12-21 17:18:36 UTC) #1
Reinhold
LGTM (looks very much like a code simplification)
12 years, 5 months ago (2011-12-21 17:22:44 UTC) #2
hanwenn
LGTM. Does this require a required version bump in configure for flex/bison? On Wed, Dec ...
12 years, 5 months ago (2011-12-21 21:48:12 UTC) #3
dak
Han-Wen Nienhuys <hanwenn@gmail.com> writes: > LGTM. > > Does this require a required version bump ...
12 years, 5 months ago (2011-12-21 22:29:20 UTC) #4
dak
12 years, 5 months ago (2011-12-22 09:10:27 UTC) #5
On 2011/12/21 22:29:20, dak wrote:
> Han-Wen Nienhuys <mailto:hanwenn@gmail.com> writes:
> 
> > Does this require a required version bump in configure for flex/bison?
> 
> Good question.
> 
> Looking at /usr/share/doc/bison/changelog.gz, I see for example
> 
> 2003-04-28  Tim Van Holder <mailto:tim.van.holder@pandora.be>
> 
>         * data/yacc.c: (b4_lex_param): Corrected for the case where
>         %lex-param is provided and %pure-parser isn't.
> 
> That makes it likely that we won't be hearing lots of hollering from
> users if the version is not entirely accurate in configure.

In case that has not been obvious: I think it is not trivial to acquire accurate
version information and I don't expect to see problems in practice.  If and when
we get a version-related report, we can use that information for updating the
required versions, but I don't think it's worth actively hunting for it.
Sign in to reply to this message.

Powered by Google App Engine
RSS Feeds Recent Issues | This issue
This is Rietveld f62528b