lilypond-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Syntax change proposal:


From: David Kastrup
Subject: Syntax change proposal:
Date: Mon, 16 Jul 2012 02:02:31 +0200
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/24.1.50 (gnu/linux)

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




reply via email to

[Prev in Thread] Current Thread [Next in Thread]