From 2131e3e5bd6180b2f9074b4988d9db4a15c203ea Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Pawe=C5=82=20K=C4=99dzia?= <pawel.kedzia@pwr.wroc.pl> Date: Fri, 1 Apr 2011 11:07:31 +0200 Subject: [PATCH] Match and position grammar.g variable are added into parse_match_rule --- libwccl/parser/grammar.g | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/libwccl/parser/grammar.g b/libwccl/parser/grammar.g index f170303..486bc79 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] ; -- GitLab