src/lexer_scanner.h

changeset 74
007fbadfa7f9
parent 73
1ee9b312dc18
child 75
bf8c57437231
equal deleted inserted replaced
73:1ee9b312dc18 74:007fbadfa7f9
76 inline int get_column() const 76 inline int get_column() const
77 { 77 {
78 return m_ptr - m_line_break_pos; 78 return m_ptr - m_line_break_pos;
79 } 79 }
80 80
81 inline e_token get_e_token() const 81 inline e_token get_token_type() const
82 { 82 {
83 return m_e_token; 83 return m_token_type;
84 } 84 }
85 85
86 static string get_token_string (e_token a); 86 static string get_token_string (e_token a);
87 87
88 private: 88 private:
89 char* m_data, 89 char* m_data,
90 * m_ptr, 90 * m_ptr,
91 * m_line_break_pos; 91 * m_line_break_pos;
92 string m_token_text, 92 string m_token_text,
93 m_last_token; 93 m_last_token;
94 e_token m_e_token; 94 e_token m_token_type;
95 int m_line; 95 int m_line;
96 96
97 bool check_string (const char* c, int flags = 0); 97 bool check_string (const char* c, int flags = 0);
98 98
99 // Yields a copy of the current position information. 99 // Yields a copy of the current position information.

mercurial