2 my-lily-parser.hh -- declare My_lily_parser
4 source file of the GNU LilyPond music typesetter
6 (c) 1997--2004 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 file, String out_name);
40 Duration default_duration_;
41 String output_basename_;
43 Scheme_hash_table *default_header_;
46 Input_file_results * input_file_;
49 My_lily_lexer * lexer_;
50 bool ignore_version_b_;
53 void beam_check (SCM);
55 Input here_input () const;
60 void parser_error (String);
62 void set_yydebug (bool);
65 DECLARE_SCHEME_CALLBACK (paper_description, ());
68 Array<Input> define_spots_;
70 char const* here_str0 () const;
72 Simultaneous_music * get_chord (Pitch tonic, Array<Pitch>* adds,
73 Array<Pitch>* subs, Pitch* inversion,
74 Pitch* bass, Duration d);
76 void set_chord_tremolo (int type_i);
77 void set_last_duration (Duration const *);
78 void set_last_pitch (Pitch const *);
79 friend int yyparse (void*);
82 #endif // MY_LILY_PARSER_HH