opensubscriber
   Find in this group all groups
 
Unknown more information…

l : lilypond-devel@gnu.org 16 July 2012 • 8:02AM -0400

Syntax change proposal:
by David Kastrup

REPLY TO AUTHOR
 
REPLY TO GROUP





I am currently in the process of moving parsing of durations and pitches
into the lexer instead of the parser (because parser lookahead causes
tricky problems, and things like c'''' and c4.... can't be parsed
without lookahead: any number of ' and/or . may still follow).

One really ugly problem is interpreting things like "4.".  Looks like a
duration, but then we have
input/regression/dynamics-broken-hairpin.ly:  line-width = 4.\cm

I propose that a decimal dot has to be followed by at least one digit.
Maybe also preceded by at least one digit (disallowing things like
.5\cm) though this is less important syntactically.

Affected will be at least the following code:

Documentation/included/chord-names-jazz.ly:        indent = 3.\cm
input/regression/baerenreiter-sarabande.ly:  indent = 7. \mm
input/regression/dynamics-broken-hairpin.ly:  line-width = 4.\cm
input/regression/glissando.ly:  line-width = 50.\mm
input/regression/slur-nice.ly:  line-width = 120.\mm
input/regression/spacing-accidental-stretch.ly:  line-width = 18.\cm

So it is likely that user code will also be affected.  I don't know what
the idea with writing a decimal point in the above lines is supposed to
be.  One could equally well leave it off.

--
David Kastrup


_______________________________________________
lilypond-devel mailing list
lilypond-devel@gnu....
https://lists.gnu.org/mailman/listinfo/lilypond-devel

Bookmark with:

Delicious   Digg   reddit   Facebook   StumbleUpon

Related Messages

opensubscriber is not affiliated with the authors of this message nor responsible for its content.