X-Git-Url: https://git.donarmstrong.com/lilypond.git?a=blobdiff_plain;f=lily%2Fparser.y;h=bc8876b5e4baea49dffa2119309e314708b9dbd9;hb=813f755b266e091c9a9e66d09c45810aa1e060b7;hp=ebec63fbefe15feddea069cc597865d552392508;hpb=4bdf5f822b18b10b48f619c116641e6aee1968ac;p=lilypond.git diff --git a/lily/parser.y b/lily/parser.y index ebec63fbef..bc8876b5e4 100644 --- a/lily/parser.y +++ b/lily/parser.y @@ -13,8 +13,8 @@ #include "parseconstruct.hh" #include "dimen.hh" #include "identifier.hh" -#include "commandrequest.hh" -#include "musicalrequest.hh" +#include "command-request.hh" +#include "musical-request.hh" #include "voice-element.hh" #ifndef NDEBUG @@ -32,90 +32,127 @@ int fatal_error_i = 0; %union { - Request * request; - Real real; - Identifier *id; - Voice *voice; - Voice_element *el; - String *string; - const char *consstr; - Paper_def *paper; - Midi_def* midi; - Input_music *music; - Music_general_chord *chord; - Music_voice *mvoice; - int i; - char c; - int ii[10]; - Moment *moment; - + Array *melreqvec; Array * strvec; Array *intvec; - Array *melreqvec; - Input_staff *staff; + Box *box; + Identifier *id; + Input_music *music; Input_score *score; - Symtables * symtables; - Symtable * symtable; - Symbol * symbol; - Lookup*lookup; + Input_staff *staff; Interval *interval; - Box *box; - Notename_tab *notename_tab; + Lookup*lookup; + Melodic_req * melreq; + Midi_def* midi; + Moment *moment; + Music_general_chord *chord; + Music_voice *mvoice; + Note_req *notereq; + Paper_def *paper; + Real real; + Request * request; Script_def * script; + String *string; + Symbol * symbol; + Symtable * symtable; + Symtables * symtables; Text_def * textdef; + Voice *voice; + Voice_element *el; + char c; + const char *consstr; + int i; + int ii[10]; } -%token VOICE STAFF SCORE TITLE BAR OUTPUT MULTIVOICE DYNAMIC -%token CM_T IN_T PT_T MM_T PAPER WIDTH METER UNITSPACE SKIP COMMANDS COMMAND -%token GEOMETRIC START_T DURATIONCOMMAND OCTAVECOMMAND -%token KEY CLEF TABLE VOICES STEM -%token PARTIAL MUSIC GROUPING CADENZA -%token END SYMBOLTABLES TEXID TABLE NOTENAMES SCRIPT TEXTSTYLE PLET -%token GOTO -%token MIDI TEMPO - -%token IDENTIFIER REAL_IDENTIFIER REQUEST_IDENTIFIER -%token PITCHMOD DURATION RESTNAME -%token NOTENAME -%token REAL -%token STRING - -%token DOTS INT -%type unit -%type pitch_list -%type open_request_parens close_request_parens close_plet_parens -%type declaration -%type declarable_identifier -%type paper_block paper_body -%type midi_block midi_body -%type dim real -%type default_duration explicit_duration notemode_duration mudela_duration -%type notename -%type duration_length -%type voice_elt full_element lyrics_elt command_elt - -%type score_block score_body -%type staff_block staff_init staff_body -%type int -%type intastint_list -%type post_request pre_request command_req -%type pitchmod -%type music -%type music_chord music_chord_body - -%type music_voice_body music_voice - -%type dinterval -%type box -%type symtable symtable_body -%type symtables symtables_body -%type symboldef -%type notename_tab notename_tab_body -%type script_dir -%type