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 (Input_file_results * sources);
37 void parse_file ( String init_string, String file_string);
40 Duration default_duration_;
42 Scheme_hash_table *default_header_;
45 Input_file_results * input_file_;
48 My_lily_lexer * lexer_;
49 bool ignore_version_b_;
52 void beam_check (SCM);
54 Input here_input () const;
59 void parser_error (String);
61 void set_yydebug (bool);
64 DECLARE_SCHEME_CALLBACK (paper_description, ());
67 Array<Input> define_spots_;
69 char const* here_str0 () const;
71 Simultaneous_music * get_chord (Pitch tonic, Array<Pitch>* adds,
72 Array<Pitch>* subs, Pitch* inversion,
73 Pitch* bass, Duration d);
75 void set_chord_tremolo (int type_i);
76 void set_last_duration (Duration const *);
77 void set_last_pitch (Pitch const *);
78 friend int yyparse (void*);
81 #endif // MY_LILY_PARSER_HH