]> git.donarmstrong.com Git - lilypond.git/commitdiff
parser.yy: remove "embedded_scm" as one production for "assignment"
authorDavid Kastrup <dak@gnu.org>
Wed, 12 Sep 2012 13:43:47 +0000 (15:43 +0200)
committerDavid Kastrup <dak@gnu.org>
Mon, 1 Oct 2012 05:17:48 +0000 (07:17 +0200)
This saved a few lines in the grammar for the price of clarity.

lily/parser.yy

index a324bd43172f2f893915434eaa8d485cb1a61b39..a8748e20c2f475728bf8ccb21b7294edc19a3440 100644 (file)
@@ -407,6 +407,8 @@ lilypond:   /* empty */ { $$ = SCM_UNSPECIFIED; }
        }
        | lilypond assignment {
        }
+       | lilypond embedded_scm {
+       }
        | lilypond error {
                parser->error_level_ = 1;
        }
@@ -531,6 +533,9 @@ lilypond_header_body:
        /* empty */ { $$ = SCM_UNSPECIFIED; }
        | lilypond_header_body assignment  {
 
+       }
+       | lilypond_header_body embedded_scm  {
+
        }
        ;
 
@@ -558,7 +563,6 @@ assignment:
                parser->lexer_->set_identifier (path, $4);
                 $$ = SCM_UNSPECIFIED;
        }
-       | embedded_scm { $$ = SCM_UNSPECIFIED; }
        ;
 
 
@@ -879,6 +883,9 @@ output_def_body:
        }
        | output_def_body assignment  {
 
+       }
+       | output_def_body embedded_scm  {
+
        }
        | output_def_body
        {