X-Git-Url: https://git.donarmstrong.com/?a=blobdiff_plain;f=lily%2Fparser.yy;h=34e329be2e236bf75729c44e51321d2264007359;hb=d6048913c2c793a6298a3e16a1a25c76711463b1;hp=0e94082cc212e9d5b82ba11135576f22fcaeb0d6;hpb=5f42fe18c41237a73d99fd76b34e434a33598704;p=lilypond.git diff --git a/lily/parser.yy b/lily/parser.yy index 0e94082cc2..34e329be2e 100644 --- a/lily/parser.yy +++ b/lily/parser.yy @@ -14,7 +14,6 @@ #include "notename-table.hh" #include "scalar.hh" #include "translation-property.hh" -#include "script-def.hh" #include "lookup.hh" #include "misc.hh" #include "my-lily-lexer.hh" @@ -30,7 +29,7 @@ #include "command-request.hh" #include "musical-request.hh" #include "my-lily-parser.hh" -#include "text-def.hh" +#include "context-specced-music.hh" #include "translator-group.hh" #include "score.hh" #include "music-list.hh" @@ -41,14 +40,18 @@ #include "scope.hh" #include "relative-music.hh" #include "transposed-music.hh" -#include "compressed-music.hh" -#include "repeated-music.hh" +#include "time-scaled-music.hh" +#include "new-repeated-music.hh" // mmm -Mudela_version oldest_version ("1.0.14"); -Mudela_version version ("1.0.15"); - +Mudela_version oldest_version ("1.0.16"); +Mudela_version version ("1.0.19"); +void +print_mudela_versions (ostream &os) +{ + os << "Mudela versions: oldest " << oldest_version.str () << " current " << version.str () < @@ -96,7 +99,6 @@ Paper_def* current_paper = 0; Array *intvec; Notename_table *chordmodifiertab; Duration *duration; - General_script_def * script; Identifier *id; Music *music; Music_list *music_list; @@ -108,19 +110,16 @@ Paper_def* current_paper = 0; Musical_pitch * pitch; Midi_def* midi; Moment *moment; - Note_req *notereq; Notename_table *notenametab; Paper_def *paper; Real real; Request * request; Scalar *scalar; - Simultaneous_music *chord; + String *string; Tempo_req *tempo; - Text_def * textdef; Translator* trans; char c; - const char *consstr; int i; int ii[10]; } @@ -143,7 +142,7 @@ yylex (YYSTYPE *s, void * v_l) /* tokens which are not keywords */ -%token ABSDYNAMIC +%token TEXTSCRIPT %token ACCEPTS %token ALTERNATIVE %token BAR @@ -153,6 +152,7 @@ yylex (YYSTYPE *s, void * v_l) %token CLEF %token CM_T %token CONSISTS +%token CONSISTSEND %token DURATION %token EXTENDER %token FONT @@ -184,19 +184,20 @@ yylex (YYSTYPE *s, void * v_l) %token SCRIPT %token SHAPE %token SKIP -%token SPANDYNAMIC +%token SPANREQUEST %token TEMPO %token TIME_T %token TIMES %token TRANSLATOR %token TRANSPOSE %token TYPE +%token CONTEXT %token VERSION /* escaped */ %token E_EXCLAMATION E_SMALLER E_BIGGER E_CHAR -%type dots +%type dots exclamations questions %token DIGIT %token NOTENAME_PITCH %token TONICNAME_PITCH @@ -205,9 +206,7 @@ yylex (YYSTYPE *s, void * v_l) %token IDENTIFIER %token NOTENAME_TABLE_IDENTIFIER %token MUSIC_IDENTIFIER -%token POST_REQUEST_IDENTIFIER -%token SCRIPT_IDENTIFIER -%token COMMAND_IDENTIFIER +%token REQUEST_IDENTIFIER %token REAL_IDENTIFIER %token STRING_IDENTIFIER %token TRANS_IDENTIFIER @@ -224,6 +223,7 @@ yylex (YYSTYPE *s, void * v_l) %type output_def %type mudela_header mudela_header_body %type open_request_parens close_request_parens open_request close_request +%type request_with_dir request_that_take_dir verbose_request %type sub_quotes sup_quotes %type simple_element request_chord command_element Simple_music Composite_music %type Alternative_music Repeated_music @@ -236,10 +236,10 @@ yylex (YYSTYPE *s, void * v_l) %type entered_notemode_duration explicit_duration %type intastint_list int_list %type pre_requests post_requests - +%type gen_text_def %type explicit_musical_pitch steno_musical_pitch musical_pitch absolute_musical_pitch %type steno_tonic_pitch -%type steno_notepitch + %type pitch_list %type chord notemode_chord %type chord_additions chord_subtractions chord_notes @@ -248,26 +248,25 @@ yylex (YYSTYPE *s, void * v_l) %type duration_length %type scalar -%type Music relative_music Sequential_music Simultaneous_music +%type Music relative_music Sequential_music Simultaneous_music Music_sequence %type property_def translator_change %type Music_list %type paper_block paper_def_body %type real_expression real real_with_dimension %type abbrev_command_req -%type post_request structured_post_request +%type post_request %type command_req verbose_command_req -%type script_req dynamic_req extender_req +%type extender_req %type string %type score_block score_body %type shape_array -%type