Vcsn
2.0
Be Rational
|
State and public interface for rational expression parsing. More...
#include <driver.hh>
Public Member Functions | |
driver (const dyn::ratexpset &rs) | |
~driver () | |
void | ratexpset (const dyn::ratexpset &rs) |
Set the ratexpset to use. More... | |
void | context (const std::string &ctx) |
Set the ratexpset to use from its context name. More... | |
dyn::ratexp | parse (std::istream &is, const location &l=location{}) |
Parse this stream. More... | |
void | error (const location &l, const std::string &m) |
Report an error m at l. More... | |
void | invalid (const location &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 Attributes | |
location | location_ |
The inital location. More... | |
dyn::ratexpset | ratexpset_ |
vcsn::rat::exp_t | result_ |
Friends | |
class | parser |
State and public interface for rational expression parsing.
vcsn::rat::driver::driver | ( | const dyn::ratexpset & | rs | ) |
Definition at line 15 of file driver.cc.
References ratexpset().
void vcsn::rat::driver::context | ( | const std::string & | ctx | ) |
Set the ratexpset to use from its context name.
Definition at line 29 of file driver.cc.
References vcsn::dyn::make_context(), vcsn::dyn::make_ratexpset(), ratexpset(), and vcsn::rat::trivial.
void vcsn::rat::driver::error | ( | const location & | l, |
const std::string & | m | ||
) |
void vcsn::rat::driver::invalid | ( | const location & | l, |
const std::string & | s | ||
) |
Parse this stream.
Definition at line 67 of file driver.cc.
References vcsn::detail::debug_level(), vcsn::rat::debug_level_(), is, vcsn::rat::parser::parse(), and vcsn::rat::parser::set_debug_level().
Referenced by vcsn::rat::read().
void vcsn::rat::driver::ratexpset | ( | const dyn::ratexpset & | rs | ) |
std::string vcsn::rat::driver::errors |
The error messages.
Definition at line 38 of file driver.hh.
Referenced by error(), and vcsn::rat::read().
|
private |
The inital location.
Definition at line 44 of file driver.hh.
Referenced by vcsn::rat::parser::parse().
|
private |
Definition at line 45 of file driver.hh.
Referenced by vcsn::rat::parser::parse(), ratexpset(), and vcsn::rat::parser::yy_print_().
|
private |
Definition at line 46 of file driver.hh.
Referenced by vcsn::rat::parser::parse().
std::unique_ptr<yyFlexLexer> vcsn::rat::driver::scanner_ |
The scanner.
Definition at line 40 of file driver.hh.
Referenced by vcsn::rat::parser::parse(), and vcsn::rat::yylex().