lilypond-0.1.59
[lilypond.git] / hdr / my-midi-lexer.hh
blob032bf6752b848a8b02bd206246bf4ddda910cbce
1 //
2 // my-midi-lexer.hh -- declare My_midi_lexer
3 //
4 // copyright 1997 Jan Nieuwenhuizen <jan@digicash.com>
6 #ifndef MY_MIDI_LEXER_HH
7 #define MY_MIDI_LEXER_HH
9 #include <FlexLexer.h>
10 #include "proto.hh"
11 // #include "fproto.hh"
12 #include "varray.hh"
13 #include "string.hh"
15 int yylex();
16 void yyerror(const char *s);
17 // bool busy_parsing();
18 // void kill_lexer();
19 // void set_lexer();
21 /// (midi_lexer)
22 class My_midi_lexer : yyFlexLexer {
23 public:
24 My_midi_lexer( String filename_str );
25 ~My_midi_lexer();
27 int close_i();
28 void error( char const* sz_l );
29 char const* here_ch_c_l();
30 static int varint2_i( String str );
31 int yylex();
33 private:
34 Input_file* input_file_p_;
36 public: // ugh
37 int errorlevel_i_;
40 extern My_midi_lexer* midi_lexer_l_g;
42 #endif // MY_MIDI_LEXER_HH