]> git.donarmstrong.com Git - lilypond.git/blob - m2m/include/my-midi-lexer.hh
release: 0.0.39-1
[lilypond.git] / m2m / include / my-midi-lexer.hh
1 //
2 // my-midi-lexer.hh -- declare My_midi_lexer
3 //
4 // copyright 1997 Jan Nieuwenhuizen <jan@digicash.com>
5
6 #ifndef MY_MIDI_LEXER_HH
7 #define MY_MIDI_LEXER_HH
8
9 #include <FlexLexer.h>
10 #include "proto.hh"
11 // #include "fproto.hh"
12 #include "varray.hh"
13 #include "string.hh"
14
15 int yylex();
16 void yyerror(const char *s);
17 // bool busy_parsing();
18 // void kill_lexer();
19 // void set_lexer();
20
21 /// (midi_lexer)
22 class My_midi_lexer : yyFlexLexer {
23 public:
24         My_midi_lexer( String filename_str );
25         ~My_midi_lexer();
26
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();
32
33 private:
34         Input_file* input_file_p_;
35
36 public: // ugh
37         int errorlevel_i_;
38 };
39
40 extern My_midi_lexer* midi_lexer_l_g;
41
42 #endif // MY_MIDI_LEXER_HH
43