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

Added oneof() operator to the grammar

parent 5b026f9c
Branches
No related tags found
No related merge requests found
......@@ -2085,6 +2085,19 @@ match_cond_text
}
;
// Match condition - oneof(variant1(v1), variant(v2), ...)
// Returns boost::shared_ptr<OneOf>
match_cond_oneof
[const Corpus2::Tagset& tagset, Variables& vars]
returns [boost::shared_ptr<OneOf> onf]
{
boost::shared_ptr<std::vector<ConjConditions> > variants;
}
: "oneof" LPAREN variants = match_variants [tagset, vars] RPAREN {
onf.reset(new OneOf(variants));
}
;
// ----------------------------------------------------------------------------
// Match actions. Match action can be mark or unmark
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment