2 my-lily-parser.hh -- declare My_lily_parser
4 source file of the GNU LilyPond music typesetter
6 (c) 1997--1998 Han-Wen Nienhuys <hanwen@cs.uu.nl>
10 #ifndef MY_LILY_PARSER_HH
11 #define MY_LILY_PARSER_HH
12 #include "lily-proto.hh"
15 #include "lily-proto.hh"
16 #include "lily-proto.hh"
17 #include "duration.hh"
25 My_lily_parser (Sources * sources_l);
29 void parse_file ( String init_str, String file_str);
30 void set_version_check (bool ignore);
33 int abbrev_beam_type_i_;
34 int default_abbrev_i_;
35 Duration default_duration_;
36 Extender_req* extender_req;
38 Scope *default_header_p_;
42 Array<Request*> pre_reqs, post_reqs;
47 My_lily_lexer * lexer_p_;
50 Input here_input() const;
54 Paper_def*default_paper_p();
55 Midi_def*default_midi_p();
57 void parser_error (String);
59 Array<Request*>* get_parens_request (int t);
62 void set_yydebug (bool);
63 bool ignore_version_b_;
66 char const* here_ch_C() const;
67 Array<Input> define_spot_array_;
70 void add_requests (Simultaneous_music*v);
72 Simultaneous_music * get_note_element (Note_req * ,Duration *);
73 Simultaneous_music * get_chord (Musical_pitch, Array<Musical_pitch>*, Array<Musical_pitch>*, Duration);
74 Simultaneous_music* get_rest_element (String, Duration *);
75 Simultaneous_music* get_word_element (String, Duration*);
76 Melodic_req* get_melodic_req (Melodic_req* melodic, int quotes);
77 String notename_str (Melodic_req* melodic);
78 void set_last_duration (Duration const *);
79 void set_abbrev_beam (int type_i);
80 friend int yyparse (void*);
83 #endif // MY_LILY_PARSER_HH