1 #ifndef _RE2C_CODEGEN_EMIT_
2 #define _RE2C_CODEGEN_EMIT_
16 ,
const State *
const s
17 ,
const std::string & condName
19 ,
const std::set<label_t> & used_labels
26 template<
typename _Ty> std::string
replaceParam (std::string str,
const std::string & param,
const _Ty & value)
30 std::ostringstream strValue;
32 std::string::size_type pos;
33 while((pos = str.find(param)) != std::string::npos)
35 str.replace(pos, param.length(), strValue.str());
43 #endif // _RE2C_CODEGEN_EMIT_
void emit_action(const Action &action, OutputFile &o, uint32_t ind, bool &readCh, const State *const s, const std::string &condName, const Skeleton *skeleton, const std::set< label_t > &used_labels, bool save_yyaccept)
std::string replaceParam(std::string str, const std::string ¶m, const _Ty &value)
void genGoTo(OutputFile &o, uint32_t ind, const State *from, const State *to, bool &readCh)
std::vector< std::string > RegExpIndices