23 std::shared_ptr<ast_node>
parse();
39 const std::string&
eat_(
const std::string& s);
43 void check_eof_(std::shared_ptr<ast_node> res);
55 std::shared_ptr<ast_node>
any_();
60 std::shared_ptr<const genset>
genset_();
64 std::shared_ptr<const genset>
genset_(std::string letter_type);
68 std::shared_ptr<context>
context_(std::string word);
72 std::shared_ptr<ast_node>
labelset_(
const std::string& kind);
76 std::shared_ptr<ast_node>
weightset_(
const std::string& ws);
83 std::shared_ptr<tuple>
tuple_();
context_parser(std::istringstream &is)
std::string parameters_()
The next parameters in the stream.
std::shared_ptr< ast_node > labelset_()
.
std::shared_ptr< automaton > automaton_()
char eat_(char c)
Accept this character, possibly preceded by spaces.
std::shared_ptr< tuple > tuple_()
std::shared_ptr< expressionset > expressionset_()
"expressionset" "\<" "\>", possibly followed by identities.
std::shared_ptr< context > context_()
, .
auto prefix(const Aut &aut) -> decltype(::vcsn::copy(aut))
std::shared_ptr< ast_node > parse_context()
Accept only a valid context.
std::shared_ptr< ast_node > labelset_or_weightset_()
|
void check_eof_(std::shared_ptr< ast_node > res)
We managed to read res in is, check that is_ is finished.
std::set< std::string > weightsets_
The set of terminal weightset names.
std::shared_ptr< ast_node > any_()
Accept anything.
std::shared_ptr< const genset > genset_()
An optional generator set in brackets (e.g., or ).
void skip_space_()
Skip white spaces.
std::istringstream is
The input stream: the specification to translate.
std::shared_ptr< ast_node > parse()
Accept anything.
int peek_()
The next character, possibly preceded by spaces.
std::shared_ptr< polynomialset > polynomialset_()
"polynomialset" "\<" "\>".
std::shared_ptr< expansionset > expansionset_()
"expansionset" "\<" "\>".
std::istringstream & is_
The stream we are parsing.
std::set< std::string > labelsets_
The set of weightset names.
std::shared_ptr< ast_node > weightset_()
.
std::shared_ptr< expressionset > seriesset_()
No optional argument.
std::string word_()
The next word in the stream.
std::shared_ptr< tupleset > tupleset_()
"\<" ( | ",")+ "\>".