You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
17 lines
361 B
17 lines
361 B
3 years ago
|
#ifndef _TOKEN_H_
|
||
|
#define _TOKEN_H_
|
||
|
|
||
|
namespace rmmseg {
|
||
|
struct Token {
|
||
|
Token(const char *txt, int len) : text(txt), length(len) {}
|
||
|
// `text' may or may not be nul-terminated, its length
|
||
|
// should be stored in the `length' field.
|
||
|
//
|
||
|
// if length is 0, this is an empty token
|
||
|
const char *text;
|
||
|
int length;
|
||
|
};
|
||
|
}
|
||
|
|
||
|
#endif /* _TOKEN_H_ */
|