Vcsn
2.0
Be Rational
|
State and public interface for Dot parsing. More...
#include <driver.hh>
Public Member Functions | |
driver () | |
~driver () | |
dyn::automaton | parse (std::istream &is, const location_t &l=location_t{}) |
Parse this stream. More... | |
void | error (const location_t &l, const std::string &m) |
Report an error m at l. More... | |
void | invalid (const location_t &l, const std::string &s) |
The string s is invalid at l. More... | |
Public Attributes | |
std::string | errors |
The error messages. More... | |
std::unique_ptr< yyFlexLexer > | scanner_ |
The scanner. More... | |
Private Member Functions | |
void | setup_ (const location_t &l, const std::string &ctx) |
From context_, build edit_. More... | |
Private Attributes | |
location_t | location_ |
The inital location. More... | |
std::shared_ptr < vcsn::automaton_editor > | edit_ |
An automaton editor that stores the one being built. More... | |
Friends | |
class | parser |
void vcsn::detail::dot::driver::error | ( | const location_t & | l, |
const std::string & | m | ||
) |
Report an error m at l.
Definition at line 69 of file driver.cc.
References errors.
Referenced by vcsn::detail::dot::parser::error(), and invalid().
void vcsn::detail::dot::driver::invalid | ( | const location_t & | l, |
const std::string & | s | ||
) |
auto vcsn::detail::dot::driver::parse | ( | std::istream & | is, |
const location_t & | l = location_t{} |
||
) |
Parse this stream.
Definition at line 30 of file driver.cc.
References is, vcsn::detail::dot::parser::parse(), vcsn::require(), and vcsn::detail::dot::parser::set_debug_level().
|
private |
From context_, build edit_.
std::exception | on invalid contexts. |
Definition at line 54 of file driver.cc.
References edit_, vcsn::dyn::make_automaton_editor(), and vcsn::dyn::make_context().
Referenced by vcsn::detail::dot::parser::parse().
|
private |
An automaton editor that stores the one being built.
Definition at line 49 of file driver.hh.
Referenced by vcsn::detail::dot::parser::parse(), and setup_().
std::string vcsn::detail::dot::driver::errors |
|
private |
The inital location.
Definition at line 47 of file driver.hh.
Referenced by vcsn::detail::dot::parser::parse().
std::unique_ptr<yyFlexLexer> vcsn::detail::dot::driver::scanner_ |