2 lexer.hh -- declare My_lily_lexer
4 source file of the LilyPond music typesetter
6 (c) 1997 Han-Wen Nienhuys <hanwen@stack.nl>
12 #include <FlexLexer.h>
18 #include "includable-lexer.hh"
19 #include "duration.hh"
27 class My_lily_lexer : public Includable_lexer {
28 int lookup_keyword(String);
29 void lookup_notename(int &large, int &small, String s);
30 int scan_bare_word(String);
31 int scan_escaped_word(String);
38 Assoc<String, Identifier*> *identifier_assoc_p_;
39 Keyword_table * keytable_p_;
44 Identifier*lookup_identifier(String s);
46 void push_note_state();
47 void push_lyric_state();
49 void LexerError(char const *);
51 void add_identifier(Identifier*i);
54 void print_declarations(bool init_b) const;
56 bool note_state_b() const;
57 bool lyric_state_b() const;