%{ // -*-Fundamental-*- #include #include "lookup.hh" #include "misc.hh" #include "lexer.hh" #include "paper.hh" #include "inputscore.hh" #include "main.hh" #include "keyword.hh" #include "inputcommand.hh" #include "debug.hh" #include "parseconstruct.hh" #include "dimen.hh" #include "identifier.hh" #ifndef NDEBUG #define YYDEBUG 1 #endif Array pre_reqs, post_reqs; sstack define_spots; extern bool want_beam; Paperdef*default_paper(); %} %union { Request * request; Real real; Input_command *command; Identifier *id; Voice *voice; Voice_element *el; String *string; const char *consstr; Paperdef *paper; Input_music *music; Music_general_chord *chord; Music_voice *mvoice; int i; char c; int ii[10]; Moment *moment; Array * strvec; Array *commandvec; Array *intvec; Input_staff *staff; Input_score *score; Symtables * symtables; Symtable * symtable; Symbol * symbol; Lookup*lookup; Interval *interval; Box *box; Notename_tab *notename_tab; Script_def * script; Text_def * textdef; } %token VOICE STAFF SCORE TITLE BAR NOTENAME OUTPUT %token CM IN PT MM PAPER WIDTH METER UNITSPACE SKIP COMMANDS COMMAND %token GEOMETRIC START_T DURATIONCOMMAND OCTAVECOMMAND %token KEY CLEF MULTI TABLE CHORD VOICES %token PARTIAL MUSIC GROUPING CADENZA %token END SYMBOLTABLES TEXID TABLE NOTENAMES SCRIPT TEXTSTYLE PLET %token MARK GOTO %token 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 %type declaration %type declarable_identifier %type paper_block paper_body %type dim %type duration %type duration_length %type voice_elt full_element lyrics_elt %type score_command staff_command position_command %type score_block score_body %type staff_block staff_init staff_body %type int %type int_list %type score_commands_block score_commands_body %type staff_commands_block staff_commands_body %type post_request pre_request %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