Adds sanity check to the rule id action

This commit is contained in:
Felipe Zimmerle
2015-09-02 19:19:19 -03:00
parent 6ab88472b1
commit 45d81e1c04
5 changed files with 313 additions and 12 deletions

View File

@@ -604,7 +604,13 @@ var:
act:
ACTION
{
std::string error;
$$ = Action::instantiate($1);
if ($$->init(&error) == false) {
driver.parserError << error;
YYERROR;
}
}
| TRANSFORMATION
{