2 lexer.hh -- declare My_flex_lexer
4 source file of the LilyPond music typesetter
6 (c) 1997 Han-Wen Nienhuys <hanwen@stack.nl>
11 #include <FlexLexer.h>
18 void yyerror(const char *s);
23 /// lexer with provisions for include files.
24 struct My_flex_lexer : yyFlexLexer {
26 Array<Input_file*> include_stack_;
27 Assoc<String, Identifier*> *identifier_assoc_p_;
28 Keyword_table * keytable_p_;
33 char const* here_ch_c_l();
34 int lookup_keyword(String);
35 void lookup_notename(int &large, int &small, String s);
36 void LexerError(const char *);
38 Identifier*lookup_identifier(String s);
40 void add_identifier(Identifier*i);
42 void new_input(String s);
45 void print_declarations() const;
48 extern My_flex_lexer *lexer;