]> git.donarmstrong.com Git - lilypond.git/blobdiff - lily/include/lily-lexer.hh
Issue 5145/1: Lexer: factor out push_markup_predicates
[lilypond.git] / lily / include / lily-lexer.hh
index 588da0d8f2356111b146e7869aa664e253eedc2e..ff2e8668c3615a349f26a50d23da3f756ac05399 100644 (file)
@@ -36,15 +36,17 @@ class Lily_lexer : public Smob<Lily_lexer>, public Includable_lexer
 public:
   int print_smob (SCM, scm_print_state *) const;
   SCM mark_smob () const;
-  static const char type_p_name_[];
+  static const char * const type_p_name_;
   virtual ~Lily_lexer ();
+  int scan_word (SCM & output, SCM sym);
 private:
-  int lookup_keyword (const std::string&);
-  int scan_bare_word (const std::string&);
-  int scan_escaped_word (const std::string&);
-  int scan_shorthand (const std::string&);
+  int lookup_keyword (const string&);
+  int scan_bare_word (const string&);
+  int scan_escaped_word (const string&);
+  int scan_shorthand (const string&);
   int scan_scm_id (SCM);
   int identifier_type (SCM);
+  void push_markup_predicates (SCM sig);
   char escaped_char (char) const;
   const char *YYText_utf8 ();
 
@@ -93,12 +95,12 @@ public:
 
   void start_main_input ();
 
-  virtual void new_input (const std::string &s, Sources *);
-  virtual void new_input (const std::string &s, std::string d, Sources *);
+  virtual void new_input (const string &s, Sources *);
+  virtual void new_input (const string &s, string d, Sources *);
 
   bool top_input () { return include_stack_.size () < 2; }
   SCM keyword_list () const;
-  SCM lookup_identifier (const std::string &s);
+  SCM lookup_identifier (const string &s);
   SCM lookup_identifier_symbol (SCM s);
   void push_extra_token (Input const &where,
                          int token_type, SCM scm = SCM_UNSPECIFIED);