1#include <boost/spirit/include/lex_lexertl.hpp>
5 std::vector<std::string> tokens_;
32 template <
typename Lexer>
33 struct ParseInput : boost::spirit::lex::lexer<Lexer> {
53 typedef bool result_type;
54 template <
typename Token>
55 bool operator()(Token
const& t, std::vector<std::string>& tks)
const;
66 explicit Lex(std::string filename);
std::string Next()
Retrieves the next token from the token vector.
Definition lexer.cpp:58
Lex(std::string filename)
Constructs a lexer and tokenizes the specified input file.
Definition lexer.cpp:13
void Tokenize()
Tokenizes the input file using Boost Spirit Lex.
Definition lexer.cpp:40
Functor for adding tokens to the token list during tokenization.
Definition lexer.hpp:52