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 "protected-scm.hh"
14 #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);
37 void parse_file (String init, String file, String out_name);
40 Duration default_duration_;
41 String output_basename_;
43 Protected_scm header_;
52 My_lily_lexer * lexer_;
53 bool ignore_version_b_;
56 void beam_check (SCM);
58 Input here_input () const;
63 void parser_error (String);
65 void set_yydebug (bool);
68 DECLARE_SCHEME_CALLBACK (paper_description, ());
71 Array<Input> define_spots_;
73 char const* here_str0 () const;
75 Simultaneous_music * get_chord (Pitch tonic, Array<Pitch>* adds,
76 Array<Pitch>* subs, Pitch* inversion,
77 Pitch* bass, Duration d);
79 void set_chord_tremolo (int type_i);
80 void set_last_duration (Duration const *);
81 void set_last_pitch (Pitch const *);
82 friend int yyparse (void*);
85 #endif // MY_LILY_PARSER_HH