lilypond-user
[Top][All Lists]
Advanced

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

Re: \include inside function


From: Valentin Petzel
Subject: Re: \include inside function
Date: Tue, 01 Feb 2022 20:33:56 +0100

> That's just wild handwaving.  Something like
> 
> bing = cis'
> bing = { $bing 2-2 }
> \score {
>   \bing
> }
> 
> does not resolve in such a manner since the _structure_ of the
> expression containing $bing cannot be resolved without knowing the type
> of bing at the time $bing is encountered.  You cannot postpone
> assignments when parsing at the top level file level.

Yes, but I do not understand how this would be a problem? I’m not at all 
talking about postponing assignment.

> > I do not mean to say that assignments should not be performed, but
> > that they should be performed in a different scope, which we then make
> > accessible from the original scope.
> 
> That has nothing whatsoever to do with parsing and parsing structures.

Yes it does. Lilypond appears to handle this in the symbol definition and 
lookup in the lexer, but still it is part of what a parser needs to do.

Attachment: signature.asc
Description: This is a digitally signed message part.


reply via email to

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