#pragma once

#include <iostream>
using namespace std;

namespace Lex
{
	class Lexeme
	{
	public:
		int type;//тип лексеммы
		char* value;//номер в таблице
		int src_offset; //Позиция, с которой начинается лексема во входном потоке или строке
		int src_length; //Длина (число символов) лексемы
		//Lexeme(int t,char** v);
		Lexeme(int t,char* v =NULL, int nOffset=0, int nLength=0);
		~Lexeme(void);
		Lexeme();
		int get_type();
		char* get_value();
		friend ostream& operator<< (ostream &x,Lexeme t);
	};
}