From c26c7a5000bffcd18fb2c17c62899c12be7da24c Mon Sep 17 00:00:00 2001 From: fred Date: Tue, 26 Mar 2002 22:24:09 +0000 Subject: [PATCH] lilypond-1.1.64 --- lily/parser.yy | 42 +++++++++++++++++++++++++----------------- 1 file changed, 25 insertions(+), 17 deletions(-) diff --git a/lily/parser.yy b/lily/parser.yy index 0cf567a55e..bcbcf0cf10 100644 --- a/lily/parser.yy +++ b/lily/parser.yy @@ -229,7 +229,7 @@ yylex (YYSTYPE *s, void * v_l) %type pitch_list %type chord -%type chord_additions chord_subtractions chord_notes +%type chord_additions chord_subtractions chord_notes chord_step %type chord_note chord_inversion %type midi_block midi_body %type duration_length @@ -747,11 +747,12 @@ Simple_music: | property_def | translator_change | Simple_music '*' unsigned '/' unsigned { - /* urg */ - $$ = new Time_scaled_music ($3, $5, $1); + $$ = $1; + $$->compress (Moment($3, $5 )); } | Simple_music '*' unsigned { - $$ = new Time_scaled_music ($3, 1, $1); + $$ = $1; + $$->compress (Moment ($3, 1)); } ; @@ -1414,24 +1415,15 @@ chord_additions: | '-' chord_notes { $$ = $2; } - | '-' CHORDMODIFIER_PITCH { - $$ = new Array; - $$->push (*$2); - } - | '-' CHORDMODIFIER_PITCH chord_notes { - $$ = $3; - $$->push (*$2); - } ; chord_notes: - chord_note { - $$ = new Array; - $$->push (*$1); + chord_step { + $$ = $1 } - | chord_notes '.' chord_note { + | chord_notes '.' chord_step { $$ = $1; - $$->push (*$3); + $$->concat (*$3); } ; @@ -1458,6 +1450,22 @@ chord_inversion: } ; +chord_step: + chord_note { + $$ = new Array; + $$->push (*$1); + } + | CHORDMODIFIER_PITCH { + $$ = new Array; + $$->push (*$1); + } + | CHORDMODIFIER_PITCH chord_note { + $$ = new Array; + $$->push (*$1); + $$->push (*$2); + } + ; + chord_note: unsigned { $$ = new Musical_pitch; -- 2.39.5