]> git.donarmstrong.com Git - lilypond.git/blobdiff - lily/parser.yy
* lily/parser.yy (assignment): allow SCM expression as assignment.
[lilypond.git] / lily / parser.yy
index 9bb82de2711f40d18ac2745dfa248a3d575da7a0..2492b91be2f7cca196b1d2b7ff3e89dba1d6a796 100644 (file)
@@ -351,9 +351,6 @@ toplevel_expression:
                else if (dynamic_cast<Midi_def*> ($1))
                        THIS->lexer_->set_identifier (scm_makfrom0str ("$defaultmidi"), $1->self_scm ());
        }
-       | embedded_scm {
-               // junk value
-       }       
        ;
 
 embedded_scm:
@@ -433,6 +430,7 @@ all objects can be unprotected as soon as they're here.
 
 */
        }
+       | embedded_scm { }
        ;
 
 
@@ -639,9 +637,6 @@ music_output_def_body:
        | music_output_def_body translator_spec_block   {
                $$->assign_translator ($2);
        }
-       | music_output_def_body STYLESHEET embedded_scm {
-               dynamic_cast<Paper_def*> ($$)-> style_sheet_ = $3;
-       }
        | music_output_def_body tempo_event  {
                /*
                        junk this ? there already is tempo stuff in