2 my-lily-parser.hh -- declare My_lily_parser
4 source file of the GNU LilyPond music typesetter
6 (c) 1997--1999 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"
18 #include "musical-pitch.hh"
24 State for the parser. Do not ever add any variables to parse
25 musical content here. We still have to remove default_duration_.
31 My_lily_parser (Sources * sources_l);
35 void parse_file ( String init_str, String file_str);
36 void set_version_check (bool ignore);
39 Duration default_duration_;
40 Musical_pitch default_pitch_;
41 Scope *default_header_p_;
47 My_lily_lexer * lexer_p_;
48 bool ignore_version_b_;
52 Input here_input() const;
56 Paper_def*default_paper_p();
57 Midi_def*default_midi_p();
59 void parser_error (String);
62 void set_yydebug (bool);
64 char const* here_ch_C() const;
65 Array<Input> define_spot_array_;
68 Simultaneous_music * get_note_element (Note_req * ,Duration *);
69 Simultaneous_music * get_chord (Musical_pitch, Array<Musical_pitch>*, Array<Musical_pitch>*, Musical_pitch*, Duration);
70 Simultaneous_music* get_rest_element (String, Duration *);
71 Simultaneous_music* get_word_element (String, Duration*);
72 String notename_str (Melodic_req* melodic);
73 void set_last_duration (Duration const *);
74 void set_last_pitch (Musical_pitch const *);
75 friend int yyparse (void*);
78 #endif // MY_LILY_PARSER_HH