lilypond-devel
[Top][All Lists]
Advanced

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

Re: Context.Grob considered as symbol list


From: David Kastrup
Subject: Re: Context.Grob considered as symbol list
Date: Fri, 12 Oct 2012 07:57:20 +0200
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/24.2.50 (gnu/linux)

Werner LEMBERG <address@hidden> writes:

> On the other hand: Wouldn't it be possible to make LilyPond simply
> walk over all possible combinations to find out whether, say,
>
>   foo.bar
>
> is a context followed by a property, or a property followed by a
> sub-property, etc.?  Is this too expensive?  Or is this technically
> impossible?

Technically impossible.  At the time an \override is parsed, the valid
set of contexts has not been established.  It may be different depending
on the global context that is ultimately employed.

For example, there is no GregorianTranscriptionVoice in Midi.  The user
may decide to define a few new context types in a \layout block coming
later in file.  And so on.

> AFAIK, compilers do something similar, warning about ambiguities.

It is one of the sad facets of communication that the mood-deteriorating
effects of unintentional satire are quite similar to that of the real
deal.  LilyPond's parser is written with Bison, a standard parser
generator normally used for writing that part of a compiler that would
deal with syntax.  LilyPond's free-form language stretches the
capabilities of Bison beyond what it has been designed for.

So let's just assume I have heard of compilers.  Give me a bit of credit
here.

-- 
David Kastrup



reply via email to

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