From: fred Date: Sun, 24 Mar 2002 19:39:38 +0000 (+0000) Subject: lilypond-0.0.52 X-Git-Tag: release/1.5.59~4938 X-Git-Url: https://git.donarmstrong.com/?a=commitdiff_plain;h=4f069ec9170cf18b32486ce04a8d3f081bf8029e;p=lilypond.git lilypond-0.0.52 --- diff --git a/lily/parser.y b/lily/parser.y index 7af1f3325d..3d6f86b57c 100644 --- a/lily/parser.y +++ b/lily/parser.y @@ -1,7 +1,7 @@ %{ // -*-Fundamental-*- #include -#define MUDELA_VERSION "0.0.50" +#define MUDELA_VERSION "0.0.52" #include "script-def.hh" #include "symtable.hh" @@ -106,6 +106,7 @@ yylex(YYSTYPE *s, void * v_l) %token GROUPING %token GROUP %token INPUT_REGS +%token HSHIFT %token IN_T %token LYRIC %token KEY @@ -183,7 +184,7 @@ yylex(YYSTYPE *s, void * v_l) %type duration_length %type init_music %type transposed_music_voice init_lyrics_voice -%type music_voice_body music_voice init_music_voice +%type music_voice_body music_voice init_music_voice concat_body %type paper_block paper_body %type dim real %type unit @@ -525,12 +526,22 @@ transposed_music_voice: } ; -music_voice: '{' music_voice_body '}' { $$ = $2; } +music_voice: '{' concat_body '}' { $$ = $2; } | TRANSPOSE '{' transposed_music_voice '}' { $$ = $3; } ; + +concat_body: + music_voice_body { + $$ = $1; + } + | concat_body CONCAT music_voice_body { + $$->add($3);/* niet echt */ + } + ; + music_voice_body: VOICE_IDENTIFIER { $$ = $1->mvoice(true); @@ -546,9 +557,6 @@ music_voice_body: | music_voice_body music_chord { $$->add($2); } - | music_voice_body CONCAT music_voice { - $$->add($3);/* niet echt */ - } | music_voice_body error { } | music_voice_body '>' { @@ -654,6 +662,9 @@ verbose_command_req: | STEM int { $$ = get_stemdir_req($2); } + | HSHIFT int { + $$ = get_hshift_req($2); + } | CLEF STRING { $$ = new Clef_change_req(*$2); delete $2;