Skip to content
Snippets Groups Projects
Commit aed34fdf authored by Adam Wardynski's avatar Adam Wardynski
Browse files

Some more fixes to repeat op in grammar.

parent d0e70396
Branches
No related merge requests found
......@@ -1902,16 +1902,16 @@ match_cond_optional
}
;
// Match condition - repleace
// Returns boost::shared_ptr<OptionalMatch>
// Match condition - repeat
// Returns boost::shared_ptr<RepeatedMatch>
match_cond_repeate
[const Corpus2::Tagset& tagset, Variables& vars]
returns [boost::shared_ptr<OptionalMatch> mtch]
returns [boost::shared_ptr<RepeatedMatch> mtch]
{
boost::shared_ptr<ConjConditions> m_cond;
}
: "repeat" LPAREN m_cond = match_condition [tagset, vars] RPAREN {
mtch.reset(new OptionalMatch(m_cond));
mtch.reset(new RepeatedMatch(m_cond));
}
;
......
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