diff --git a/libwccl/parser/grammar.g b/libwccl/parser/grammar.g index 326fa519774c6cf03bb8a23910decb42fb8a7db8..ec2154cf4dde23067a2d6fdd89583965cfada27a 100644 --- a/libwccl/parser/grammar.g +++ b/libwccl/parser/grammar.g @@ -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)); } ;