Xmipp
v3.23.11-Nereus
|
#include <argsparser.h>
Public Member Functions | |
ArgLexer () | |
~ArgLexer () | |
void | addLine (const String &line) |
bool | nextToken () |
ArgToken * | currentToken () const |
ArgTokenType | lookahead () const |
This class will split the input stream into tokens. The tokens will be further used by the Parser to build the syntax tree.
Definition at line 94 of file argsparser.h.
ArgLexer::ArgLexer | ( | ) |
Constructor
Definition at line 81 of file argsparser.cpp.
ArgLexer::~ArgLexer | ( | ) |
void ArgLexer::addLine | ( | const String & | line | ) |
Add input lines to the lexer
Definition at line 99 of file argsparser.cpp.
ArgToken * ArgLexer::currentToken | ( | ) | const |
Definition at line 337 of file argsparser.cpp.
ArgTokenType ArgLexer::lookahead | ( | ) | const |
Definition at line 341 of file argsparser.cpp.
bool ArgLexer::nextToken | ( | ) |
Function to parse a new token. If the token is TOK_END will return false and true otherwise. The current token will be changed.
Definition at line 164 of file argsparser.cpp.