[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: brace mismatch in init.ly
From: |
Erik Sandberg |
Subject: |
Re: brace mismatch in init.ly |
Date: |
Thu, 25 Nov 2004 11:49:47 +0100 |
User-agent: |
Internet Messaging Program (IMP) 3.2.6 |
Citerar Matthijs Frankena <address@hidden>:
The error messages indicates that there is a problem in your input file (missing
closing bracket or similar).
Hm.. To the hackers: What do you think about adding a new token (lets say EOF,
invoked with \EOF or similar) which means nothing, just does
lilypond: /* empty */
| lilypond toplevel_expression {
}
| lilypond assignment {
}
| lilypond EOF {}
| lilypond error {
THIS->error_level_ = 1;
}
| lilypond INVALID {
THIS->error_level_ = 1;
}
;
and then add
\maininput
\EOF
to init.ly? When the input file is incomplete, this would _always_ give an error
like "unexpected EOF", I think. Which might be more intuitive. (may I try to
write a patch?)
Erik
> Hello,
>
> Having finally installed Fedora Core 2 and everything to get going with
> Lilypond, I run into the following:
>
> ----------
> $ lilypond DeinHerz.ly
> GNU LilyPond 2.4.1
> Processing `DeinHerz.ly'
> Ontleden...
>
> /usr/share/lilypond/2.4.1/ly/init.ly:28:5: fout: syntax error,
> unexpected STRING, expecting '=':
>
> "\n"
>
> /usr/share/lilypond/2.4.1/ly/init.ly:28:8: fout: onbekende ontsnapte
> string: `\n':
> "\n
> "
>
> /usr/share/lilypond/2.4.1/ly/init.ly:29:62: waarschuwing: Haakjes paren
> niet:
> input-file-name ": old relative compatibility was not use
> d."
>
> fout: bestanden gefaald: DeinHerz.ly
> ----------
>
> Apparently there's some mismatch in braces in this section in init.ly:
> ------------
> \maininput
> %% there is a problem at the end of the input file
>
> %%
> %% Above and below comments compensate for the parser's look-ahead.
> %%
>
> #(if (and (ly:get-option 'old-relative)
> (defined? 'input-file-name)
> (not (ly:get-option 'old-relative-used)))
> (ly:warn (string-append
> "\n"
> input-file-name ": old relative compatibility was not used."
> )))%% there is a problem at the end of the input file
> -----------------
>
> Can anyone tell me where to add/delete a brace, or whether the fault
> lies in my input file?
>
> TIA,
>
> Matthijs
>
>
> _______________________________________________
> lilypond-user mailing list
> address@hidden
> http://lists.gnu.org/mailman/listinfo/lilypond-user
>