Commit 0ef1ee0e authored by Dominik Charousset's avatar Dominik Charousset

Fix parser name

parent a1af43f0
...@@ -32,7 +32,7 @@ using detail::parser::ec; ...@@ -32,7 +32,7 @@ using detail::parser::ec;
namespace { namespace {
struct atom_parser_consumer { struct bool_parser_consumer {
bool x; bool x;
inline void value(bool y) { inline void value(bool y) {
x = y; x = y;
...@@ -41,10 +41,10 @@ struct atom_parser_consumer { ...@@ -41,10 +41,10 @@ struct atom_parser_consumer {
using res_t = variant<ec, bool>; using res_t = variant<ec, bool>;
struct atom_parser { struct bool_parser {
res_t operator()(std::string str) { res_t operator()(std::string str) {
detail::parser::state<std::string::iterator> res; detail::parser::state<std::string::iterator> res;
atom_parser_consumer f; bool_parser_consumer f;
res.i = str.begin(); res.i = str.begin();
res.e = str.end(); res.e = str.end();
detail::parser::read_bool(res, f); detail::parser::read_bool(res, f);
...@@ -55,7 +55,7 @@ struct atom_parser { ...@@ -55,7 +55,7 @@ struct atom_parser {
}; };
struct fixture { struct fixture {
atom_parser p; bool_parser p;
}; };
} // namespace <anonymous> } // namespace <anonymous>
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment