|
LL1Checker 2.0
“Tool for verifying LL(1) grammars and validating input strings.”
|
Functor for adding tokens to the token list during tokenization. More...
#include <lexer.hpp>
Public Types | |
| typedef bool | result_type |
Public Member Functions | |
| template<typename Token> | |
| bool | operator() (Token const &t, std::vector< std::string > &tks) const |
Functor for adding tokens to the token list during tokenization.
This struct is a functor that processes tokens generated by the lexer and adds them to a list of tokens (tks). It is used as a callback during the tokenization process.
The operator() method performs the following steps:
symbol_table::token_types_r_) to the token list.