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

Removed semantic predicate from rule "rule".

parent e6e9d975
Branches
No related merge requests found
......@@ -1403,6 +1403,20 @@ rule
boost::shared_ptr<Function<Bool> > condition;
boost::shared_ptr<std::vector<boost::shared_ptr<Action> > > actions;
}
: "rule" LPAREN name: STRING COMMA
(condition = bool_operator [tagset, vars] COMMA)?
actions = action_sequence [tagset, vars]
RPAREN {
if (condition) {
rle.reset(
new Rule(token_ref_to_std_string(name), vars, actions, condition));
}
else {
rle.reset(
new Rule(token_ref_to_std_string(name), vars, actions));
}
}
/*
: "rule" LPAREN name: STRING COMMA
(
(bool_operator[tagset, vars]) =>
......@@ -1423,6 +1437,7 @@ rule
)
)
RPAREN
*/
;
// Rule sequence
......
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