From 335f7106bd0e02670486652c44a4de6d2332efbd Mon Sep 17 00:00:00 2001 From: David Kastrup Date: Wed, 12 Sep 2012 15:43:47 +0200 Subject: [PATCH] parser.yy: remove "embedded_scm" as one production for "assignment" This saved a few lines in the grammar for the price of clarity. --- lily/parser.yy | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) 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 { -- 2.39.5