lilypond-user
[Top][All Lists]
Advanced

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

Re: ly:parser-parse-string again


From: David Kastrup
Subject: Re: ly:parser-parse-string again
Date: Tue, 05 Jul 2016 16:03:19 +0200
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/25.1.50 (gnu/linux)

Urs Liska <address@hidden> writes:

> Am 05.07.2016 um 15:15 schrieb David Kastrup:
>> Urs Liska <address@hidden> writes:
>>
>>> I'm once more struggling with the commands to include files within
>>> Scheme functions.
>>>
>>> In the attached .ily files one defines a music expression while the
>>> other uses it in a Staff definition.
>>>
>>>
>>> However, this time I get strange errors with the parse-string function
>>> as that doesn't even seem to be able to parse the first file properly.
>>> The first error is
>>>
>>> levelOne.ily:3:19 <0>: error: wrong type for argument 2. Expecting
>>> music, found "c"
>>>
>>> music = \relative
>>>
>>> c' { c }
>>>
>>> followed by numerous consecutive errors that are probably neglectable.
>>>
>>> I would very much appreciate any further clarification and assistance as
>>> I really don't have a clue how to proceed.
>> Try selecting a note name language.
>
> This seems to do the trick, although it seems hacky to require explicit
> language in all include files.

Creating a blank parser for processing a file in its own semantic nest
is hacky.

-- 
David Kastrup



reply via email to

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