inline void add_action_helper(LexerDef& lexdef, std::size_t id, spirit::tag::set_state_tag<String> t) { lexdef.add_action(id, make_set_state(t.name)); }
inline void add_action_helper(LexerDef& lexdef, std::size_t id, F act) { lexdef.add_action(id, act); }