2008-01-26 04:33:34 +00:00
|
|
|
/* $Id: token.h 547 2006-05-25 13:40:35Z helly $ */
|
2006-02-24 04:48:15 +00:00
|
|
|
#ifndef _token_h
|
|
|
|
#define _token_h
|
|
|
|
|
|
|
|
#include "substr.h"
|
|
|
|
|
2006-05-25 04:32:20 +00:00
|
|
|
namespace re2c
|
|
|
|
{
|
|
|
|
|
|
|
|
class Token
|
|
|
|
{
|
|
|
|
|
|
|
|
public:
|
|
|
|
Str text;
|
|
|
|
uint line;
|
|
|
|
|
|
|
|
public:
|
|
|
|
Token(SubStr, uint);
|
2006-02-24 04:48:15 +00:00
|
|
|
};
|
|
|
|
|
2006-05-25 04:32:20 +00:00
|
|
|
inline Token::Token(SubStr t, uint l) : text(t), line(l)
|
|
|
|
{
|
|
|
|
;
|
2006-02-24 04:48:15 +00:00
|
|
|
}
|
|
|
|
|
2006-05-25 04:32:20 +00:00
|
|
|
} // end namespace re2c
|
|
|
|
|
2006-02-24 04:48:15 +00:00
|
|
|
#endif
|