From: David Kastrup Date: Wed, 12 Sep 2012 13:43:47 +0000 (+0200) Subject: parser.yy: remove "embedded_scm" as one production for "assignment" X-Git-Tag: release/2.17.4-1~15 X-Git-Url: https://git.donarmstrong.com/?a=commitdiff_plain;h=335f7106bd0e02670486652c44a4de6d2332efbd;p=lilypond.git parser.yy: remove "embedded_scm" as one production for "assignment" This saved a few lines in the grammar for the price of clarity. --- diff --git a/lily/parser.yy b/lily/parser.yy index a324bd4317..a8748e20c2 100644 --- a/lily/parser.yy +++ b/lily/parser.yy @@ -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 {