2 lexer.hh -- declare My_lily_lexer
4 source file of the GNU LilyPond music typesetter
6 (c) 1997--1998 Han-Wen Nienhuys <hanwen@cs.uu.nl>
12 #include <FlexLexer.h>
14 #include "dictionary.hh"
15 #include "lily-proto.hh"
16 #include "lily-proto.hh"
20 #include "includable-lexer.hh"
21 #include "duration.hh"
22 #include "musical-pitch.hh"
30 class My_lily_lexer : public Includable_lexer {
31 int lookup_keyword (String);
32 int scan_bare_word (String);
33 int scan_escaped_word (String);
35 char escaped_char(char) const;
37 String main_input_str_;
39 Scope * toplevel_scope_p_;
41 Notename_table *note_tab_p_;
42 Array<Scope*> scope_l_arr_;
43 Keyword_table * keytable_p_;
47 void start_main_input ();
48 void set_notename_table(Notename_table*tab_p);
49 bool notename_b(String) const;
50 Identifier*lookup_identifier (String s);
51 Musical_pitch lookup_pitch (String s);
52 void push_note_state();
53 void push_lyric_state();
55 void LexerError (char const *);
57 void set_identifier (String str, Identifier* i, bool unique_b = true);
60 void print_declarations (bool init_b) const;
61 void add_notename (String, Musical_pitch);
62 bool note_state_b() const;
63 bool lyric_state_b() const;