2 my-lily-parser.hh -- declare My_lily_parser
4 source file of the GNU LilyPond music typesetter
6 (c) 1997--2002 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 Scheme_hash_table *default_header_p_;
49 My_lily_lexer * lexer_p_;
50 bool ignore_version_b_;
53 void beam_check (SCM);
55 SCM last_ligature_start_;
57 Input here_input () const;
62 void parser_error (String);
64 void set_yydebug (bool);
67 DECLARE_SCHEME_CALLBACK (paper_description, ());
70 Array<Input> define_spot_array_;
72 char const* here_ch_C () const;
74 Simultaneous_music * get_chord (Pitch tonic, Array<Pitch>* add_arr_p,
75 Array<Pitch>* sub_arr_p, Pitch* inversion_p,
76 Pitch* bass_p, Duration d);
78 void set_chord_tremolo (int type_i);
79 void set_last_duration (Duration const *);
80 void set_last_pitch (Pitch const *);
81 friend int yyparse (void*);
84 #endif // MY_LILY_PARSER_HH