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 tags found
No related merge requests found
...@@ -1902,16 +1902,16 @@ match_cond_optional ...@@ -1902,16 +1902,16 @@ match_cond_optional
} }
; ;
// Match condition - repleace // Match condition - repeat
// Returns boost::shared_ptr<OptionalMatch> // Returns boost::shared_ptr<RepeatedMatch>
match_cond_repeate match_cond_repeate
[const Corpus2::Tagset& tagset, Variables& vars] [const Corpus2::Tagset& tagset, Variables& vars]
returns [boost::shared_ptr<OptionalMatch> mtch] returns [boost::shared_ptr<RepeatedMatch> mtch]
{ {
boost::shared_ptr<ConjConditions> m_cond; boost::shared_ptr<ConjConditions> m_cond;
} }
: "repeat" LPAREN m_cond = match_condition [tagset, vars] RPAREN { : "repeat" LPAREN m_cond = match_condition [tagset, vars] RPAREN {
mtch.reset(new OptionalMatch(m_cond)); mtch.reset(new RepeatedMatch(m_cond));
} }
; ;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment