+/*
+ lexer.hh -- declare My_flex_lexer
+
+ source file of the LilyPond music typesetter
+
+ (c) 1997 Han-Wen Nienhuys <hanwen@stack.nl>
+*/
+
#ifndef LEXER_HH
#define LEXER_HH
#include <FlexLexer.h>
void kill_lexer();
void set_lexer();
-struct Input_file {
- istream* is;
- char const* defined_ch_c_l_m;
- Source_file* sourcefile_l_;
- int line;
- String name;
-
- Input_file(String);
- ~Input_file();
-};
-
-
/// lexer with provisions for include files.
struct My_flex_lexer : yyFlexLexer {
Assoc<String, Identifier*> *the_id_tab;
Keyword_table * keytable;
Notename_tab * defaulttab;
- char const* data_ch_c_l_m;
int errorlevel_i_;
- /****************/
+ /* *************** */
int ret_notename(int *p, String text, int octave_mod);
char const* here_ch_c_l();
void set(Notename_tab *n);
void new_input(String s);
bool close_input();
int yylex();
+ void print_declarations() const;
};
extern My_flex_lexer *lexer;