#include <Lexer.h>
Public Types | |
| enum | Kind { At, Arrow, Colon, Comma, Comment, EndOfFile, Equals, Identifier, KWFalse, KWQuery, KWReserved, KWTrue, KWWidth, LBrace, LParen, LSquare, Number, RBrace, RParen, RSquare, Semicolon, Unknown } |
Public Member Functions | |
| const char * | getKindName () const |
| getKindName - The name of this token's kind. | |
| std::string | getString () const |
| bool | isKeyword () const |
| isKeyword - True if this token is a keyword. | |
| void | dump () |
Public Attributes | |
| Kind | kind |
| const char * | start |
| The token kind. | |
| unsigned | length |
| The beginning of the token string. | |
| unsigned | line |
| The length of the token. | |
| unsigned | column |
| The line number of the start of this token. | |
Definition at line 21 of file Lexer.h.
| void Token::dump | ( | ) |
| const char * Token::getKindName | ( | ) | const |
getKindName - The name of this token's kind.
The column number at the start of this token.
Definition at line 25 of file Lexer.cpp.
References Arrow, At, Colon, Comma, Comment, EndOfFile, Equals, kind, KWFalse, KWQuery, KWReserved, KWTrue, KWWidth, LBrace, LParen, LSquare, Number, RBrace, RParen, RSquare, Semicolon, and Unknown.
Referenced by dump(), and PrintInputTokens().

| std::string klee::expr::Token::getString | ( | ) | const [inline] |
| bool klee::expr::Token::isKeyword | ( | ) | const [inline] |
| unsigned klee::expr::Token::column |
The line number of the start of this token.
Definition at line 51 of file Lexer.h.
Referenced by dump(), klee::expr::Lexer::Lex(), and PrintInputTokens().
Definition at line 47 of file Lexer.h.
Referenced by getKindName(), isKeyword(), klee::expr::Lexer::Lex(), LookupExprInfo(), PrintInputTokens(), and klee::expr::Lexer::SetTokenKind().
| unsigned klee::expr::Token::length |
The beginning of the token string.
Definition at line 49 of file Lexer.h.
Referenced by dump(), getString(), klee::expr::Lexer::Lex(), LookupExprInfo(), PrintInputTokens(), and klee::expr::Lexer::SetTokenKind().
| unsigned klee::expr::Token::line |
The length of the token.
Definition at line 50 of file Lexer.h.
Referenced by dump(), klee::expr::Lexer::Lex(), and PrintInputTokens().
| const char* klee::expr::Token::start |
The token kind.
Definition at line 48 of file Lexer.h.
Referenced by dump(), getString(), klee::expr::Lexer::Lex(), LookupExprInfo(), PrintInputTokens(), klee::expr::Lexer::SetIdentifierTokenKind(), and klee::expr::Lexer::SetTokenKind().
1.5.8