24 for(
const auto &line :
lines)
36 auto value = line.substr(
space_pos + 1, std::string::npos);
37 map[id].value = value;
44 std::istringstream in(src);
46 const auto tokens =
cscanner.get_tokens();
49 std::ostringstream out;
57 out <<
m_it->second.value;
67 auto result = out.str();
ait supplies three of the four components needed: an abstract interpreter (in this case handling func...
std::string operator()(const std::string &) const
void parse(const std::string &)
bool has_prefix(const std::string &s, const std::string &prefix)
static bool is_identifier(int token)
void split_string(const std::string &s, char delim, std::vector< std::string > &result, bool strip, bool remove_empty)