33 scanner_->scan_open_(is);
44 "missing vcsn_context definition");
45 res = edit_->result();
48 scanner_->scan_close_();
61 catch (std::runtime_error& e)
63 raise(l,
": ", e.what());
65 edit_->set_separator(
',');
71 std::ostringstream er;
73 if (!!getenv(
"YYDEBUG"))
74 std::cerr << er.str() << std::endl;
81 error(l,
"invalid input: " + s);
std::shared_ptr< vcsn::automaton_editor > edit_
An automaton editor that stores the one being built.
std::string errors
The error messages.
void require(Bool b, Args &&...args)
If b is not verified, raise an error with args as message.
Define the vcsn::detail::dot::parser class.
context make_context(const std::string &name)
Build a context from its name.
dyn::automaton parse(std::istream &is, const location_t &l=location_t{})
Parse this stream.
void error(const location_t &l, const std::string &m)
Report an error m at l.
void invalid(const location_t &l, const std::string &s)
The string s is invalid at l.
virtual int parse()
Parse.
std::ostream & dot(const Aut &aut, std::ostream &out=std::cout, format fmt={}, bool mathjax=false)
Print an automaton in Graphviz's Dot format.
void setup_(const location_t &l, const std::string &ctx)
From context_, build edit_.
automaton_editor * make_automaton_editor(const context &ctx)
Build an automatonset from its context.
void set_debug_level(debug_level_type l)
Set the current debugging level.