lilypond-devel
[Top][All Lists]
Advanced

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

Re: Unbound variable GUILE error when no whitespace before closing brace


From: Reinhold Kainhofer
Subject: Re: Unbound variable GUILE error when no whitespace before closing brace
Date: Wed, 15 Feb 2012 15:21:26 +0100
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:9.0) Gecko/20111229 Thunderbird/9.0

On 05/02/2012 08:30, David Kastrup wrote:
> The variable is not } but 0.9} instead.  Anything that can't be parsed
> as a constant in Scheme is a variable.
>
> This has nothing to do with Lilypond:
>
> address@hidden:/usr/local/tmp/lilypond$ guile
> guile> 0.9}
> ERROR: Unbound variable: 0.9}
> ABORT: (unbound-variable)
> guile> address@hidden:/usr/local/tmp/lilypond$ 
>
>
> You could likely say
>
> #(define 0.9} 0.9)
>
> and have the above work except for the missing closing brace.  There is
> absolutely nothing that LilyPond could, or even _should_ be trying to
> fix here.  Scheme is Scheme and outside of LilyPond's responsibility
> regarding syntax and semantics.

Actually, LilyPond's parser decides which chars are part of the scheme
expression and which are part of lilypond's syntax. The lilypond parser
decides that the scheme expression includes the }, which from a user's
POV doesn't make sense, as the } is LilyPond's delimiter and should thus
definitely end the scheme expression (even though 0.9} would be a valid
guile variable).

Cheers,
Reinhold

-- 
------------------------------------------------------------------
Reinhold Kainhofer, address@hidden, http://reinhold.kainhofer.com/
 * Financial & Actuarial Math., Vienna Univ. of Technology, Austria
 * http://www.fam.tuwien.ac.at/, DVR: 0005886
 * LilyPond, Music typesetting, http://www.lilypond.org




reply via email to

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