src/lexer_scanner.h

changeset 80
2ed3430fdd08
parent 79
2425fa6a4f21
child 82
841562f5a32f
equal deleted inserted replaced
79:2425fa6a4f21 80:2ed3430fdd08
26 ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 26 ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
27 (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS 27 (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
28 SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 28 SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
29 */ 29 */
30 30
31 #ifndef IRIS_SCANNER_H 31 #ifndef BOTC_LEXER_SCANNER_H
32 #define IRIS_SCANNER_H 32 #define BOTC_LEXER_SCANNER_H
33 33
34 #include <climits> 34 #include <climits>
35 #include "main.h" 35 #include "main.h"
36 36
37 class lexer_scanner 37 class lexer_scanner
87 } 87 }
88 88
89 static string get_token_string (e_token a); 89 static string get_token_string (e_token a);
90 90
91 private: 91 private:
92 char* m_data, 92 char* m_data;
93 * m_ptr, 93 char* m_ptr;
94 * m_line_break_pos; 94 char* m_line_break_pos;
95 string m_token_text, 95 string m_token_text,
96 m_last_token; 96 m_last_token;
97 e_token m_token_type; 97 e_token m_token_type;
98 int m_line; 98 int m_line;
99 99
110 110
111 // Skips many characters 111 // Skips many characters
112 void skip (int chars); 112 void skip (int chars);
113 }; 113 };
114 114
115 #endif // IRIS_SCANNER_H 115 #endif // BOTC_LEXER_SCANNER_H
116

mercurial