2 my-lily-parser.hh -- declare My_lily_parser
4 source file of the GNU LilyPond music typesetter
6 (c) 1997--2001 Han-Wen Nienhuys <hanwen@cs.uu.nl>
10 #ifndef MY_LILY_PARSER_HH
11 #define MY_LILY_PARSER_HH
13 #include "lily-proto.hh"
16 #include "lily-proto.hh"
17 #include "lily-proto.hh"
18 #include "duration.hh"
25 State for the parser. Do not ever add any variables to parse
26 musical content here. We still have to remove default_duration_.
28 TODO: interface is too complicated
33 My_lily_parser (Sources * sources_l);
37 void parse_file ( String init_str, String file_str);
38 void set_version_check (bool ignore);
41 Duration default_duration_;
43 Scope *default_header_p_;
49 My_lily_lexer * lexer_p_;
50 bool ignore_version_b_;
52 Input here_input () const;
53 void remember_spot ();
57 void parser_error (String);
59 void set_yydebug (bool);
62 DECLARE_SCHEME_CALLBACK (paper_description, ());
65 Array<Input> define_spot_array_;
67 char const* here_ch_C () const;
69 Simultaneous_music * get_chord (Pitch tonic, Array<Pitch>* add_arr_p,
70 Array<Pitch>* sub_arr_p, Pitch* inversion_p,
71 Pitch* bass_p, Duration d);
73 void set_chord_tremolo (int type_i);
74 void set_last_duration (Duration const *);
75 void set_last_pitch (Pitch const *);
76 friend int yyparse (void*);
79 #endif // MY_LILY_PARSER_HH