lilypond-user
[Top][All Lists]
Advanced

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

Re: Include file from music function 2.15.18


From: David Kastrup
Subject: Re: Include file from music function 2.15.18
Date: Mon, 14 Nov 2011 07:07:29 +0100
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/24.0.90 (gnu/linux)

Jay Anderson <address@hidden> writes:

> In working on a large set of hymns pre-2.15.18 I could do something
> like this (a simplified example):
>
> ===============
> \version "2.15.18"
>
> function =
> #(define-music-function (parser location num) (number?)
>   (let ((file (string-append "hymn" (number->string num) ".ily")))
>     #{ \include $file #}))
>
> \score
> {
>   \new Staff \relative c'
>   {
>     \function #0
>   }
> }
> ===============
>
> Error in 2.15.18:
> ===============
> GNU LilyPond 2.15.18
> Processing `2.15.18.ly'
> Parsing...
> <string>:1:10: error: invalid character: `$'
>  \include 
>           $file 
> <string>:1:10: error: syntax error, unexpected $undefined

\include is special-cased in the lexer in order to accept
\stringidentifier.  Previously $xxx in #{ ... #} was translated into
\something artificially.  This translation is no longer happening.  But
\include does not know what to do with $ yet.

Expect a fix in the next days.  Thanks for the report, and sorry for the
oversight.

-- 
David Kastrup




reply via email to

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