lilypond-devel
[Top][All Lists]
Advanced

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

Re: Feature: multiple header definitions


From: Ishizaki
Subject: Re: Feature: multiple header definitions
Date: Sat, 16 Jul 2005 10:41:29 +0900

On Thu, 14 Jul 2005 22:14:39 -0700
Graham Percival <address@hidden> wrote:

> 
> Can you see how to keep the settings?  Lilypond keeps the \paper{} and
> \layout{} settings, and presumably those commands would be present
> in parser.yy
> 

Sorry, I do not know well about Scheme and C++, so I'm not able to change codes.

But, in parser.yy , codes regarding layout block is like this ; 
        | LAYOUT        {
                Output_def *p = get_layout (THIS);
                THIS->lexer_->add_scope (p->scope_);

So, I imagine that it should be written something like this ;
        | book_body lilypond_header {
                $$->add_header( $2 );
                /* $$->header_ = $2; ( this is corrent code ) */

and, add codes add_header to book.cc and score.cc ( and more ? ).

Please correct me if I am wrong.
Regards,

------------------------------------------------------------------------
|                     Yoshinobu         Ishizaki                       |
------------------------------------------------------------------------




reply via email to

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