bug-lilypond
[Top][All Lists]
Advanced

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

Weak spot in grammar?


From: Antonio PALAMA'
Subject: Weak spot in grammar?
Date: Sat, 12 Jul 2003 11:43:32 +0200
User-agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.3.1) Gecko/20030527 Debian/1.3.1-2

While studying the Lilypond grammar and doing some tests, I wrote a test file (enclosed) which, while syntactically correct, is clearly semantically incorrect, is not rejected by the compiler and makes
lilypond crash.
The problem lies in the fact that lilypond_header_body may contain any type of assignement even one
in the form of
STRING = score_block.
Would it be advisable to make the grammar mor strict in this part?

Antonio Palama'
\header{
title = \score {
                 \notes { c d e f }
                 \midi { \tempo 4 = 90 }
                 \paper {}
               }
instrument = "Trumpet"
description =    ""
composer =       "XX"
}
Trumpet = \notes 
\relative c' 
{
a4 b c d |
}
\score {
        \notes { \Trumpet }
        \midi { \tempo 4 = 90 }
        \paper {}
}

reply via email to

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