actions: Compute the rule association during rules load

This commit is contained in:
Felipe Zimmerle
2020-05-18 15:08:17 -03:00
parent a4cd7a0091
commit 2ee9ccffa9
83 changed files with 842 additions and 415 deletions

View File

@@ -3821,7 +3821,7 @@ namespace yy {
case 217: // var: "RUN_TIME_VAR_XML" "Dictionary element"
#line 2095 "seclang-parser.yy"
{
VARIABLE_CONTAINER(yylhs.value.as < std::unique_ptr<Variable> > (), new variables::XML("XML:" + yystack_[0].value.as < std::string > ()));
VARIABLE_CONTAINER(yylhs.value.as < std::unique_ptr<Variable> > (), new variables::XML_WithNSPath(yystack_[0].value.as < std::string > ()));
}
#line 3819 "seclang-parser.cc"
break;
@@ -3829,7 +3829,7 @@ namespace yy {
case 218: // var: "RUN_TIME_VAR_XML" "Dictionary element, selected by regexp"
#line 2099 "seclang-parser.yy"
{
VARIABLE_CONTAINER(yylhs.value.as < std::unique_ptr<Variable> > (), new variables::XML("XML:" + yystack_[0].value.as < std::string > ()));
VARIABLE_CONTAINER(yylhs.value.as < std::unique_ptr<Variable> > (), new variables::XML_WithNSPath(yystack_[0].value.as < std::string > ()));
}
#line 3827 "seclang-parser.cc"
break;
@@ -3837,7 +3837,7 @@ namespace yy {
case 219: // var: "RUN_TIME_VAR_XML"
#line 2103 "seclang-parser.yy"
{
VARIABLE_CONTAINER(yylhs.value.as < std::unique_ptr<Variable> > (), new variables::XML_NoDictElement());
VARIABLE_CONTAINER(yylhs.value.as < std::unique_ptr<Variable> > (), new variables::XML_WithoutNSPath());
}
#line 3835 "seclang-parser.cc"
break;

View File

@@ -2095,15 +2095,15 @@ var:
}
| RUN_TIME_VAR_XML DICT_ELEMENT
{
VARIABLE_CONTAINER($$, new variables::XML("XML:" + $2));
VARIABLE_CONTAINER($$, new variables::XML_WithNSPath($2));
}
| RUN_TIME_VAR_XML DICT_ELEMENT_REGEXP
{
VARIABLE_CONTAINER($$, new variables::XML("XML:" + $2));
VARIABLE_CONTAINER($$, new variables::XML_WithNSPath($2));
}
| RUN_TIME_VAR_XML
{
VARIABLE_CONTAINER($$, new variables::XML_NoDictElement());
VARIABLE_CONTAINER($$, new variables::XML_WithoutNSPath());
}
| VARIABLE_FILES_TMP_NAMES DICT_ELEMENT
{