]> git.donarmstrong.com Git - lilypond.git/blobdiff - lily/include/my-lily-lexer.hh
* Another grand 2003 update.
[lilypond.git] / lily / include / my-lily-lexer.hh
index 06449288ed14a011ce7747375f7d8fb68357fe84..f416eecfa9c8dbe90e980dd70a674bc24b765ad8 100644 (file)
@@ -3,20 +3,20 @@
 
   source file of the GNU LilyPond music typesetter
 
-  (c)  1997--2002 Han-Wen Nienhuys <hanwen@cs.uu.nl>
+  (c)  1997--2003 Han-Wen Nienhuys <hanwen@cs.uu.nl>
 */
 
 #ifndef LEXER_HH
 #define LEXER_HH
 
-#include <FlexLexer.h>
+#include "includable-lexer.hh"
 
+#include "input.hh"
 #include "dictionary.hh"
 #include "lily-proto.hh"
 #include "flower-proto.hh"
 #include "array.hh"
 #include "string.hh"
-#include "includable-lexer.hh"
 #include "duration.hh"
 #include "pitch.hh"
 #include "protected-scm.hh"
@@ -46,8 +46,11 @@ public:
   ~My_lily_lexer ();
   int yylex ();
 
+  Input last_input_;
+  void prepare_for_next_token ();
+  int try_special_identifiers (SCM* ,SCM);
   Input here_input () const;
-
+  
   void add_scope (SCM);
   SCM remove_scope ();
   
@@ -55,6 +58,7 @@ public:
 
   SCM lookup_identifier (String s);
   void push_note_state ();
+  void push_markup_state ();
   void push_figuredbass_state ();
   void push_chord_state ();
   void push_lyric_state ();
@@ -68,8 +72,9 @@ public:
 private:
   int lookup_keyword (String);
   int scan_bare_word (String);
+  SCM scan_markup_word (String);
   int scan_escaped_word (String);
-
+  int identifier_type (SCM);
   char escaped_char (char) const;
 };