src/lexer.h

changeset 74
007fbadfa7f9
parent 73
1ee9b312dc18
child 75
bf8c57437231
equal deleted inserted replaced
73:1ee9b312dc18 74:007fbadfa7f9
87 { 87 {
88 return describe_token_private (tok->type, tok); 88 return describe_token_private (tok->type, tok);
89 } 89 }
90 90
91 static lexer* get_main_lexer(); 91 static lexer* get_main_lexer();
92 void skip(); 92
93 inline void skip (int a = 1)
94 {
95 m_token_position += a;
96 }
97
98 string peek_next_string (int a);
93 99
94 private: 100 private:
95 token_list m_tokens; 101 token_list m_tokens;
96 iterator m_token_position; 102 iterator m_token_position;
97 103

mercurial