diff --git a/libwccl/parser/grammar.g b/libwccl/parser/grammar.g index f17030311664d363178939f54750cb91684ed917..486bc79f3962ff278b20b16c21ea77d2635179da 100644 --- a/libwccl/parser/grammar.g +++ b/libwccl/parser/grammar.g @@ -242,15 +242,14 @@ parse_rule_sequence // ---------------------------------------------------------------------------- // ---------------------------------------------------------------------------- // Rule for parsing the match rules -// Returns ???? +// Returns boost::shared_ptr<Expression> parse_match_rule [const Corpus2::Tagset& tagset] returns [boost::shared_ptr<Expression> ret_match] { Variables vars; - // TODO Dodac do vars pozycje $_ oraz wektor $m_M - // TODO - fprintf(stderr, "TODO: parse_match_rule -> return type\n"); + vars.get_put<Match>("$m_M"); + vars.get_put<Position>("$_"); } : ret_match = match_rule_operator[tagset, vars] ;