[Top][All Lists]

[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/  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/        indent = 3.\cm
input/regression/  indent = 7. \mm
input/regression/  line-width = 4.\cm
input/regression/  line-width = 50.\mm
input/regression/  line-width = 120.\mm
input/regression/  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]