79 Token(
size_t tokenRow,
size_t tokenColumn, std::string *identifierContent =
nullptr);
121 bool match(
const std::string &str,
bool word =
false);
135 bool isDotAlnum(
signed char c);
139 explicit Lexer(std::istream &input);
148 const std::vector<Token> &tokens()
const;
size_t row
Indicates a token row (line).
Type type
The type of an field.
static bool match(B &in, const char *str)
Token(size_t tokenRow, size_t tokenColumn, std::string *identifierContent=nullptr)
static std::string toString(const Type &type)
Returns string representation of given token type.
size_t column
Indicated a token column.
Just a simple token struct representing a DOT file fragment.
std::string * value
Identifier content (nullptr for non-id tokens).
std::vector< Token > m_tokens
The namespace for all OGDF objects.