YAy PEG: Add error message control class
@@ -47,9 +47,9 @@ int addToKeySet (KeySet & keySet, Key & parent, string const & filename)
using std::runtime_error;
using tao::TAO_PEGTL_NAMESPACE::analyze;
using tao::TAO_PEGTL_NAMESPACE::file_input;
- using tao::TAO_PEGTL_NAMESPACE::normal;
using tao::TAO_PEGTL_NAMESPACE::parse_error;
using tao::TAO_PEGTL_NAMESPACE::parse_tree::parse;
+ using TAO_PEGTL_NAMESPACE::errors;
State state;
@@ -63,8 +63,7 @@ int addToKeySet (KeySet & keySet, Key & parent, string const & filename)
#endif
file_input<> input{ filename };
- /* For detailed debugging information, please use the control class `tracer` instead of `normal`. */
- auto root = parse<yaml, selector, action, normal> (input, state);
+ auto root = parse<yaml, selector, action, errors> (input, state);
Listener listener{ parent };
walk (listener, *root);
