Skip to content
Snippets Groups Projects
Commit 2131e3e5 authored by Paweł Kędzia's avatar Paweł Kędzia
Browse files

Match and position grammar.g variable are added into parse_match_rule

parent f5bf93e5
Branches
Tags
No related merge requests found
...@@ -242,15 +242,14 @@ parse_rule_sequence ...@@ -242,15 +242,14 @@ parse_rule_sequence
// ---------------------------------------------------------------------------- // ----------------------------------------------------------------------------
// ---------------------------------------------------------------------------- // ----------------------------------------------------------------------------
// Rule for parsing the match rules // Rule for parsing the match rules
// Returns ???? // Returns boost::shared_ptr<Expression>
parse_match_rule parse_match_rule
[const Corpus2::Tagset& tagset] [const Corpus2::Tagset& tagset]
returns [boost::shared_ptr<Expression> ret_match] returns [boost::shared_ptr<Expression> ret_match]
{ {
Variables vars; Variables vars;
// TODO Dodac do vars pozycje $_ oraz wektor $m_M vars.get_put<Match>("$m_M");
// TODO vars.get_put<Position>("$_");
fprintf(stderr, "TODO: parse_match_rule -> return type\n");
} }
: ret_match = match_rule_operator[tagset, vars] : ret_match = match_rule_operator[tagset, vars]
; ;
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment