lilypond-user
[Top][All Lists]
Advanced

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

Re: new and context


From: Trevor Daniels
Subject: Re: new and context
Date: Thu, 6 Dec 2012 23:24:03 -0000

Joram Berger wrote Thursday, December 06, 2012 10:56 PM

> Am 06.12.2012 23:51, schrieb Trevor Daniels:
>> 
>> Noeck wrote
>> 
>>> It still seems to me like there might be a possiblity to simplify the
>>> ly-syntax. Let me make a little comparison:
>>>
>>> I do not know the parser, but wouldn't it be possible to recognize
>>> whether a named context already exists and use that one and if not
>>> create a new one.
>> 
>> Have a look.  You can see the LilyPond grammar in Appendix C
>> of the Notation Reference.
>> 
>> http://www.lilypond.org/doc/v2.17/Documentation/notation/lilypond-grammar
>> 
>> Trevor
>> 
> 
> I stumbled upon that graph several times, but I never understood what it
> should tell me, not even a little part of it (besides that the numbers
> are probably line numbers).

It's the LilyPond grammar as extracted from the input to Bison (somewhat
simplified).   Bison generates the parser which then implements this grammar.  
You need to understand this grammar in order to see whether any suggested
changes to the LilyPond language syntax can work sensibly.

Trevor

reply via email to

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