Skip to content
Snippets Groups Projects
Commit a49d9fa1 authored by ilor's avatar ilor
Browse files

fix grammar wrt RuleSequence

parent ac82ce5f
Branches
No related merge requests found
......@@ -1446,17 +1446,16 @@ rule_sequence
returns [boost::shared_ptr<RuleSequence> rule_seq]
{
// FIXME czy tutaj przypadkiem nie powinno byc shared_ptr?
std::vector<Rule> rls;
boost::shared_ptr<Rule> rle;
rule_seq.reset(new RuleSequence(rls));
rule_seq.reset(new RuleSequence());
}
: rle = rule [tagset, vars] {
rls.push_back(*rle);
rule_seq->push_back(*rle);
}
(
COMMA rle = rule [tagset, vars] {
rls.push_back(*rle);
rule_seq->push_back(*rle);
}
)*
;
......@@ -1519,14 +1518,14 @@ action_delete
pos = position_operator [tagset, vars] COMMA
condition = bool_operator [tagset, vars] {
// delete(positon, condition);
action.reset(new Delete(condition));
action.reset(new Delete(condition, pos));
}
)
|
(
condition = bool_operator [tagset, vars] {
// delete(condition);
action.reset(new Delete(condition, pos));
action.reset(new Delete(condition));
}
)
)
......
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