ModSecurity/src/parser/seclang-parser.cc
2018-03-26 17:01:53 -03:00

6421 lines
251 KiB
C++

// A Bison parser, made by GNU Bison 3.0.4.
// Skeleton implementation for Bison LALR(1) parsers in C++
// Copyright (C) 2002-2015 Free Software Foundation, Inc.
// This program is free software: you can redistribute it and/or modify
// it under the terms of the GNU General Public License as published by
// the Free Software Foundation, either version 3 of the License, or
// (at your option) any later version.
// This program is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
// GNU General Public License for more details.
// You should have received a copy of the GNU General Public License
// along with this program. If not, see <http://www.gnu.org/licenses/>.
// As a special exception, you may create a larger work that contains
// part or all of the Bison parser skeleton and distribute that work
// under terms of your choice, so long as that work isn't itself a
// parser generator using the skeleton or a modified version thereof
// as a parser skeleton. Alternatively, if you modify or redistribute
// the parser skeleton itself, you may (at your option) remove this
// special exception, which will cause the skeleton and the resulting
// Bison output files to be licensed under the GNU General Public
// License without this special exception.
// This special exception was added by the Free Software Foundation in
// version 2.2 of Bison.
// First part of user declarations.
#line 37 "seclang-parser.cc" // lalr1.cc:404
# ifndef YY_NULLPTR
# if defined __cplusplus && 201103L <= __cplusplus
# define YY_NULLPTR nullptr
# else
# define YY_NULLPTR 0
# endif
# endif
#include "seclang-parser.hh"
// User implementation prologue.
#line 51 "seclang-parser.cc" // lalr1.cc:412
// Unqualified %code blocks.
#line 359 "seclang-parser.yy" // lalr1.cc:413
#include "src/parser/driver.h"
#line 57 "seclang-parser.cc" // lalr1.cc:413
#ifndef YY_
# if defined YYENABLE_NLS && YYENABLE_NLS
# if ENABLE_NLS
# include <libintl.h> // FIXME: INFRINGES ON USER NAME SPACE.
# define YY_(msgid) dgettext ("bison-runtime", msgid)
# endif
# endif
# ifndef YY_
# define YY_(msgid) msgid
# endif
#endif
#define YYRHSLOC(Rhs, K) ((Rhs)[K].location)
/* YYLLOC_DEFAULT -- Set CURRENT to span from RHS[1] to RHS[N].
If N is 0, then set CURRENT to the empty location which ends
the previous symbol: RHS[0] (always defined). */
# ifndef YYLLOC_DEFAULT
# define YYLLOC_DEFAULT(Current, Rhs, N) \
do \
if (N) \
{ \
(Current).begin = YYRHSLOC (Rhs, 1).begin; \
(Current).end = YYRHSLOC (Rhs, N).end; \
} \
else \
{ \
(Current).begin = (Current).end = YYRHSLOC (Rhs, 0).end; \
} \
while (/*CONSTCOND*/ false)
# endif
// Suppress unused-variable warnings by "using" E.
#define YYUSE(E) ((void) (E))
// Enable debugging if requested.
#if YYDEBUG
// A pseudo ostream that takes yydebug_ into account.
# define YYCDEBUG if (yydebug_) (*yycdebug_)
# define YY_SYMBOL_PRINT(Title, Symbol) \
do { \
if (yydebug_) \
{ \
*yycdebug_ << Title << ' '; \
yy_print_ (*yycdebug_, Symbol); \
*yycdebug_ << std::endl; \
} \
} while (false)
# define YY_REDUCE_PRINT(Rule) \
do { \
if (yydebug_) \
yy_reduce_print_ (Rule); \
} while (false)
# define YY_STACK_PRINT() \
do { \
if (yydebug_) \
yystack_print_ (); \
} while (false)
#else // !YYDEBUG
# define YYCDEBUG if (false) std::cerr
# define YY_SYMBOL_PRINT(Title, Symbol) YYUSE(Symbol)
# define YY_REDUCE_PRINT(Rule) static_cast<void>(0)
# define YY_STACK_PRINT() static_cast<void>(0)
#endif // !YYDEBUG
#define yyerrok (yyerrstatus_ = 0)
#define yyclearin (yyla.clear ())
#define YYACCEPT goto yyacceptlab
#define YYABORT goto yyabortlab
#define YYERROR goto yyerrorlab
#define YYRECOVERING() (!!yyerrstatus_)
namespace yy {
#line 143 "seclang-parser.cc" // lalr1.cc:479
/* Return YYSTR after stripping away unnecessary quotes and
backslashes, so that it's suitable for yyerror. The heuristic is
that double-quoting is unnecessary unless the string contains an
apostrophe, a comma, or backslash (other than backslash-backslash).
YYSTR is taken from yytname. */
std::string
seclang_parser::yytnamerr_ (const char *yystr)
{
if (*yystr == '"')
{
std::string yyr = "";
char const *yyp = yystr;
for (;;)
switch (*++yyp)
{
case '\'':
case ',':
goto do_not_strip_quotes;
case '\\':
if (*++yyp != '\\')
goto do_not_strip_quotes;
// Fall through.
default:
yyr += *yyp;
break;
case '"':
return yyr;
}
do_not_strip_quotes: ;
}
return yystr;
}
/// Build a parser object.
seclang_parser::seclang_parser (modsecurity::Parser::Driver& driver_yyarg)
:
#if YYDEBUG
yydebug_ (false),
yycdebug_ (&std::cerr),
#endif
driver (driver_yyarg)
{}
seclang_parser::~seclang_parser ()
{}
/*---------------.
| Symbol types. |
`---------------*/
// by_state.
inline
seclang_parser::by_state::by_state ()
: state (empty_state)
{}
inline
seclang_parser::by_state::by_state (const by_state& other)
: state (other.state)
{}
inline
void
seclang_parser::by_state::clear ()
{
state = empty_state;
}
inline
void
seclang_parser::by_state::move (by_state& that)
{
state = that.state;
that.clear ();
}
inline
seclang_parser::by_state::by_state (state_type s)
: state (s)
{}
inline
seclang_parser::symbol_number_type
seclang_parser::by_state::type_get () const
{
if (state == empty_state)
return empty_symbol;
else
return yystos_[state];
}
inline
seclang_parser::stack_symbol_type::stack_symbol_type ()
{}
inline
seclang_parser::stack_symbol_type::stack_symbol_type (state_type s, symbol_type& that)
: super_type (s, that.location)
{
switch (that.type_get ())
{
case 143: // "Accuracy"
case 144: // "Allow"
case 145: // "Append"
case 146: // "AuditLog"
case 147: // "Block"
case 148: // "Capture"
case 149: // "Chain"
case 150: // "ACTION_CTL_AUDIT_ENGINE"
case 151: // "ACTION_CTL_AUDIT_LOG_PARTS"
case 152: // "ACTION_CTL_BDY_JSON"
case 153: // "ACTION_CTL_BDY_XML"
case 154: // "ACTION_CTL_FORCE_REQ_BODY_VAR"
case 155: // "ACTION_CTL_REQUEST_BODY_ACCESS"
case 156: // "ACTION_CTL_RULE_REMOVE_BY_ID"
case 157: // "ACTION_CTL_RULE_REMOVE_BY_TAG"
case 158: // "ACTION_CTL_RULE_REMOVE_TARGET_BY_ID"
case 159: // "ACTION_CTL_RULE_REMOVE_TARGET_BY_TAG"
case 160: // "Deny"
case 161: // "DeprecateVar"
case 162: // "Drop"
case 163: // "Exec"
case 164: // "ExpireVar"
case 165: // "Id"
case 166: // "InitCol"
case 167: // "Log"
case 168: // "LogData"
case 169: // "Maturity"
case 170: // "Msg"
case 171: // "MultiMatch"
case 172: // "NoAuditLog"
case 173: // "NoLog"
case 174: // "Pass"
case 175: // "Pause"
case 176: // "Phase"
case 177: // "Prepend"
case 178: // "Proxy"
case 179: // "Redirect"
case 180: // "Rev"
case 181: // "SanatiseArg"
case 182: // "SanatiseMatched"
case 183: // "SanatiseMatchedBytes"
case 184: // "SanatiseRequestHeader"
case 185: // "SanatiseResponseHeader"
case 186: // "SetEnv"
case 187: // "SetRsc"
case 188: // "SetSid"
case 189: // "SetUID"
case 190: // "Severity"
case 191: // "Skip"
case 192: // "SkipAfter"
case 193: // "Status"
case 194: // "Tag"
case 195: // "ACTION_TRANSFORMATION_BASE_64_ENCODE"
case 196: // "ACTION_TRANSFORMATION_BASE_64_DECODE"
case 197: // "ACTION_TRANSFORMATION_BASE_64_DECODE_EXT"
case 198: // "ACTION_TRANSFORMATION_CMD_LINE"
case 199: // "ACTION_TRANSFORMATION_COMPRESS_WHITESPACE"
case 200: // "ACTION_TRANSFORMATION_CSS_DECODE"
case 201: // "ACTION_TRANSFORMATION_HEX_ENCODE"
case 202: // "ACTION_TRANSFORMATION_HEX_DECODE"
case 203: // "ACTION_TRANSFORMATION_HTML_ENTITY_DECODE"
case 204: // "ACTION_TRANSFORMATION_JS_DECODE"
case 205: // "ACTION_TRANSFORMATION_LENGTH"
case 206: // "ACTION_TRANSFORMATION_LOWERCASE"
case 207: // "ACTION_TRANSFORMATION_MD5"
case 208: // "ACTION_TRANSFORMATION_NONE"
case 209: // "ACTION_TRANSFORMATION_NORMALISE_PATH"
case 210: // "ACTION_TRANSFORMATION_NORMALISE_PATH_WIN"
case 211: // "ACTION_TRANSFORMATION_PARITY_EVEN_7_BIT"
case 212: // "ACTION_TRANSFORMATION_PARITY_ODD_7_BIT"
case 213: // "ACTION_TRANSFORMATION_PARITY_ZERO_7_BIT"
case 214: // "ACTION_TRANSFORMATION_REMOVE_COMMENTS"
case 215: // "ACTION_TRANSFORMATION_REMOVE_COMMENTS_CHAR"
case 216: // "ACTION_TRANSFORMATION_REMOVE_NULLS"
case 217: // "ACTION_TRANSFORMATION_REMOVE_WHITESPACE"
case 218: // "ACTION_TRANSFORMATION_REPLACE_COMMENTS"
case 219: // "ACTION_TRANSFORMATION_REPLACE_NULLS"
case 220: // "ACTION_TRANSFORMATION_SHA1"
case 221: // "ACTION_TRANSFORMATION_SQL_HEX_DECODE"
case 222: // "ACTION_TRANSFORMATION_TRIM"
case 223: // "ACTION_TRANSFORMATION_UPPERCASE"
case 224: // "ACTION_TRANSFORMATION_URL_DECODE"
case 225: // "ACTION_TRANSFORMATION_URL_DECODE_UNI"
case 226: // "ACTION_TRANSFORMATION_UTF8_TO_UNICODE"
case 227: // "Ver"
case 228: // "xmlns"
case 229: // "CONFIG_COMPONENT_SIG"
case 230: // "CONFIG_CONN_ENGINE"
case 231: // "CONFIG_SEC_ARGUMENT_SEPARATOR"
case 232: // "CONFIG_SEC_WEB_APP_ID"
case 233: // "CONFIG_SEC_SERVER_SIG"
case 234: // "CONFIG_DIR_AUDIT_DIR"
case 235: // "CONFIG_DIR_AUDIT_DIR_MOD"
case 236: // "CONFIG_DIR_AUDIT_ENG"
case 237: // "CONFIG_DIR_AUDIT_FLE_MOD"
case 238: // "CONFIG_DIR_AUDIT_LOG"
case 239: // "CONFIG_DIR_AUDIT_LOG2"
case 240: // "CONFIG_DIR_AUDIT_LOG_P"
case 241: // "CONFIG_DIR_AUDIT_STS"
case 242: // "CONFIG_DIR_AUDIT_TPE"
case 243: // "CONFIG_DIR_DEBUG_LOG"
case 244: // "CONFIG_DIR_DEBUG_LVL"
case 245: // "CONFIG_SEC_CACHE_TRANSFORMATIONS"
case 246: // "CONFIG_SEC_DISABLE_BACKEND_COMPRESS"
case 247: // "CONFIG_SEC_HASH_ENGINE"
case 248: // "CONFIG_SEC_HASH_KEY"
case 249: // "CONFIG_SEC_HASH_PARAM"
case 250: // "CONFIG_SEC_HASH_METHOD_RX"
case 251: // "CONFIG_SEC_HASH_METHOD_PM"
case 252: // "CONFIG_SEC_CHROOT_DIR"
case 253: // "CONFIG_DIR_GEO_DB"
case 254: // "CONFIG_DIR_GSB_DB"
case 255: // "CONFIG_SEC_GUARDIAN_LOG"
case 256: // "CONFIG_DIR_PCRE_MATCH_LIMIT"
case 257: // "CONFIG_DIR_PCRE_MATCH_LIMIT_RECURSION"
case 258: // "CONFIG_SEC_CONN_R_STATE_LIMIT"
case 259: // "CONFIG_SEC_CONN_W_STATE_LIMIT"
case 260: // "CONFIG_SEC_SENSOR_ID"
case 261: // "CONFIG_DIR_REQ_BODY"
case 262: // "CONFIG_DIR_REQ_BODY_IN_MEMORY_LIMIT"
case 263: // "CONFIG_DIR_REQ_BODY_LIMIT"
case 264: // "CONFIG_DIR_REQ_BODY_LIMIT_ACTION"
case 265: // "CONFIG_DIR_REQ_BODY_NO_FILES_LIMIT"
case 266: // "CONFIG_DIR_RES_BODY"
case 267: // "CONFIG_DIR_RES_BODY_LIMIT"
case 268: // "CONFIG_DIR_RES_BODY_LIMIT_ACTION"
case 269: // "CONFIG_SEC_RULE_INHERITANCE"
case 270: // "CONFIG_SEC_RULE_PERF_TIME"
case 271: // "CONFIG_DIR_RULE_ENG"
case 272: // "CONFIG_DIR_SEC_ACTION"
case 273: // "CONFIG_DIR_SEC_DEFAULT_ACTION"
case 274: // "CONFIG_DIR_SEC_MARKER"
case 275: // "CONFIG_DIR_UNICODE_MAP_FILE"
case 276: // "CONFIG_SEC_COLLECTION_TIMEOUT"
case 277: // "CONFIG_SEC_HTTP_BLKEY"
case 278: // "CONFIG_SEC_INTERCEPT_ON_ERROR"
case 279: // "CONFIG_SEC_REMOTE_RULES_FAIL_ACTION"
case 280: // "CONFIG_SEC_RULE_REMOVE_BY_ID"
case 281: // "CONFIG_SEC_RULE_REMOVE_BY_MSG"
case 282: // "CONFIG_SEC_RULE_REMOVE_BY_TAG"
case 283: // "CONFIG_SEC_RULE_UPDATE_TARGET_BY_TAG"
case 284: // "CONFIG_SEC_RULE_UPDATE_TARGET_BY_MSG"
case 285: // "CONFIG_SEC_RULE_UPDATE_TARGET_BY_ID"
case 286: // "CONFIG_SEC_RULE_UPDATE_ACTION_BY_ID"
case 287: // "CONFIG_UPDLOAD_KEEP_FILES"
case 288: // "CONFIG_UPDLOAD_SAVE_TMP_FILES"
case 289: // "CONFIG_UPLOAD_DIR"
case 290: // "CONFIG_UPLOAD_FILE_LIMIT"
case 291: // "CONFIG_UPLOAD_FILE_MODE"
case 292: // "CONFIG_VALUE_ABORT"
case 293: // "CONFIG_VALUE_DETC"
case 294: // "CONFIG_VALUE_HTTPS"
case 295: // "CONFIG_VALUE_OFF"
case 296: // "CONFIG_VALUE_ON"
case 297: // "CONFIG_VALUE_PARALLEL"
case 298: // "CONFIG_VALUE_PROCESS_PARTIAL"
case 299: // "CONFIG_VALUE_REJECT"
case 300: // "CONFIG_VALUE_RELEVANT_ONLY"
case 301: // "CONFIG_VALUE_SERIAL"
case 302: // "CONFIG_VALUE_WARN"
case 303: // "CONFIG_XML_EXTERNAL_ENTITY"
case 304: // "CONGIG_DIR_RESPONSE_BODY_MP"
case 305: // "CONGIG_DIR_SEC_ARG_SEP"
case 306: // "CONGIG_DIR_SEC_COOKIE_FORMAT"
case 307: // "CONFIG_SEC_COOKIEV0_SEPARATOR"
case 308: // "CONGIG_DIR_SEC_DATA_DIR"
case 309: // "CONGIG_DIR_SEC_STATUS_ENGINE"
case 310: // "CONFIG_SEC_STREAM_IN_BODY_INSPECTION"
case 311: // "CONFIG_SEC_STREAM_OUT_BODY_INSPECTION"
case 312: // "CONGIG_DIR_SEC_TMP_DIR"
case 313: // "DIRECTIVE"
case 314: // "DIRECTIVE_SECRULESCRIPT"
case 315: // "FREE_TEXT_QUOTE_MACRO_EXPANSION"
case 316: // "QUOTATION_MARK"
case 317: // "RUN_TIME_VAR_BLD"
case 318: // "RUN_TIME_VAR_DUR"
case 319: // "RUN_TIME_VAR_HSV"
case 320: // "RUN_TIME_VAR_REMOTE_USER"
case 321: // "RUN_TIME_VAR_TIME"
case 322: // "RUN_TIME_VAR_TIME_DAY"
case 323: // "RUN_TIME_VAR_TIME_EPOCH"
case 324: // "RUN_TIME_VAR_TIME_HOUR"
case 325: // "RUN_TIME_VAR_TIME_MIN"
case 326: // "RUN_TIME_VAR_TIME_MON"
case 327: // "RUN_TIME_VAR_TIME_SEC"
case 328: // "RUN_TIME_VAR_TIME_WDAY"
case 329: // "RUN_TIME_VAR_TIME_YEAR"
case 330: // "VARIABLE"
case 331: // "Dictionary element"
case 332: // "Dictionary element, selected by regexp"
value.move< std::string > (that.value);
break;
case 339: // op
case 340: // op_before_init
value.move< std::unique_ptr<Operator> > (that.value);
break;
case 347: // run_time_string
value.move< std::unique_ptr<RunTimeString> > (that.value);
break;
case 344: // var
value.move< std::unique_ptr<Variable> > (that.value);
break;
case 345: // act
case 346: // setvar_action
value.move< std::unique_ptr<actions::Action> > (that.value);
break;
case 342: // variables
case 343: // variables_may_be_quoted
value.move< std::unique_ptr<std::vector<std::unique_ptr<Variable> > > > (that.value);
break;
case 337: // actions
case 338: // actions_may_quoted
value.move< std::unique_ptr<std::vector<std::unique_ptr<actions::Action> > > > (that.value);
break;
default:
break;
}
// that is emptied.
that.type = empty_symbol;
}
inline
seclang_parser::stack_symbol_type&
seclang_parser::stack_symbol_type::operator= (const stack_symbol_type& that)
{
state = that.state;
switch (that.type_get ())
{
case 143: // "Accuracy"
case 144: // "Allow"
case 145: // "Append"
case 146: // "AuditLog"
case 147: // "Block"
case 148: // "Capture"
case 149: // "Chain"
case 150: // "ACTION_CTL_AUDIT_ENGINE"
case 151: // "ACTION_CTL_AUDIT_LOG_PARTS"
case 152: // "ACTION_CTL_BDY_JSON"
case 153: // "ACTION_CTL_BDY_XML"
case 154: // "ACTION_CTL_FORCE_REQ_BODY_VAR"
case 155: // "ACTION_CTL_REQUEST_BODY_ACCESS"
case 156: // "ACTION_CTL_RULE_REMOVE_BY_ID"
case 157: // "ACTION_CTL_RULE_REMOVE_BY_TAG"
case 158: // "ACTION_CTL_RULE_REMOVE_TARGET_BY_ID"
case 159: // "ACTION_CTL_RULE_REMOVE_TARGET_BY_TAG"
case 160: // "Deny"
case 161: // "DeprecateVar"
case 162: // "Drop"
case 163: // "Exec"
case 164: // "ExpireVar"
case 165: // "Id"
case 166: // "InitCol"
case 167: // "Log"
case 168: // "LogData"
case 169: // "Maturity"
case 170: // "Msg"
case 171: // "MultiMatch"
case 172: // "NoAuditLog"
case 173: // "NoLog"
case 174: // "Pass"
case 175: // "Pause"
case 176: // "Phase"
case 177: // "Prepend"
case 178: // "Proxy"
case 179: // "Redirect"
case 180: // "Rev"
case 181: // "SanatiseArg"
case 182: // "SanatiseMatched"
case 183: // "SanatiseMatchedBytes"
case 184: // "SanatiseRequestHeader"
case 185: // "SanatiseResponseHeader"
case 186: // "SetEnv"
case 187: // "SetRsc"
case 188: // "SetSid"
case 189: // "SetUID"
case 190: // "Severity"
case 191: // "Skip"
case 192: // "SkipAfter"
case 193: // "Status"
case 194: // "Tag"
case 195: // "ACTION_TRANSFORMATION_BASE_64_ENCODE"
case 196: // "ACTION_TRANSFORMATION_BASE_64_DECODE"
case 197: // "ACTION_TRANSFORMATION_BASE_64_DECODE_EXT"
case 198: // "ACTION_TRANSFORMATION_CMD_LINE"
case 199: // "ACTION_TRANSFORMATION_COMPRESS_WHITESPACE"
case 200: // "ACTION_TRANSFORMATION_CSS_DECODE"
case 201: // "ACTION_TRANSFORMATION_HEX_ENCODE"
case 202: // "ACTION_TRANSFORMATION_HEX_DECODE"
case 203: // "ACTION_TRANSFORMATION_HTML_ENTITY_DECODE"
case 204: // "ACTION_TRANSFORMATION_JS_DECODE"
case 205: // "ACTION_TRANSFORMATION_LENGTH"
case 206: // "ACTION_TRANSFORMATION_LOWERCASE"
case 207: // "ACTION_TRANSFORMATION_MD5"
case 208: // "ACTION_TRANSFORMATION_NONE"
case 209: // "ACTION_TRANSFORMATION_NORMALISE_PATH"
case 210: // "ACTION_TRANSFORMATION_NORMALISE_PATH_WIN"
case 211: // "ACTION_TRANSFORMATION_PARITY_EVEN_7_BIT"
case 212: // "ACTION_TRANSFORMATION_PARITY_ODD_7_BIT"
case 213: // "ACTION_TRANSFORMATION_PARITY_ZERO_7_BIT"
case 214: // "ACTION_TRANSFORMATION_REMOVE_COMMENTS"
case 215: // "ACTION_TRANSFORMATION_REMOVE_COMMENTS_CHAR"
case 216: // "ACTION_TRANSFORMATION_REMOVE_NULLS"
case 217: // "ACTION_TRANSFORMATION_REMOVE_WHITESPACE"
case 218: // "ACTION_TRANSFORMATION_REPLACE_COMMENTS"
case 219: // "ACTION_TRANSFORMATION_REPLACE_NULLS"
case 220: // "ACTION_TRANSFORMATION_SHA1"
case 221: // "ACTION_TRANSFORMATION_SQL_HEX_DECODE"
case 222: // "ACTION_TRANSFORMATION_TRIM"
case 223: // "ACTION_TRANSFORMATION_UPPERCASE"
case 224: // "ACTION_TRANSFORMATION_URL_DECODE"
case 225: // "ACTION_TRANSFORMATION_URL_DECODE_UNI"
case 226: // "ACTION_TRANSFORMATION_UTF8_TO_UNICODE"
case 227: // "Ver"
case 228: // "xmlns"
case 229: // "CONFIG_COMPONENT_SIG"
case 230: // "CONFIG_CONN_ENGINE"
case 231: // "CONFIG_SEC_ARGUMENT_SEPARATOR"
case 232: // "CONFIG_SEC_WEB_APP_ID"
case 233: // "CONFIG_SEC_SERVER_SIG"
case 234: // "CONFIG_DIR_AUDIT_DIR"
case 235: // "CONFIG_DIR_AUDIT_DIR_MOD"
case 236: // "CONFIG_DIR_AUDIT_ENG"
case 237: // "CONFIG_DIR_AUDIT_FLE_MOD"
case 238: // "CONFIG_DIR_AUDIT_LOG"
case 239: // "CONFIG_DIR_AUDIT_LOG2"
case 240: // "CONFIG_DIR_AUDIT_LOG_P"
case 241: // "CONFIG_DIR_AUDIT_STS"
case 242: // "CONFIG_DIR_AUDIT_TPE"
case 243: // "CONFIG_DIR_DEBUG_LOG"
case 244: // "CONFIG_DIR_DEBUG_LVL"
case 245: // "CONFIG_SEC_CACHE_TRANSFORMATIONS"
case 246: // "CONFIG_SEC_DISABLE_BACKEND_COMPRESS"
case 247: // "CONFIG_SEC_HASH_ENGINE"
case 248: // "CONFIG_SEC_HASH_KEY"
case 249: // "CONFIG_SEC_HASH_PARAM"
case 250: // "CONFIG_SEC_HASH_METHOD_RX"
case 251: // "CONFIG_SEC_HASH_METHOD_PM"
case 252: // "CONFIG_SEC_CHROOT_DIR"
case 253: // "CONFIG_DIR_GEO_DB"
case 254: // "CONFIG_DIR_GSB_DB"
case 255: // "CONFIG_SEC_GUARDIAN_LOG"
case 256: // "CONFIG_DIR_PCRE_MATCH_LIMIT"
case 257: // "CONFIG_DIR_PCRE_MATCH_LIMIT_RECURSION"
case 258: // "CONFIG_SEC_CONN_R_STATE_LIMIT"
case 259: // "CONFIG_SEC_CONN_W_STATE_LIMIT"
case 260: // "CONFIG_SEC_SENSOR_ID"
case 261: // "CONFIG_DIR_REQ_BODY"
case 262: // "CONFIG_DIR_REQ_BODY_IN_MEMORY_LIMIT"
case 263: // "CONFIG_DIR_REQ_BODY_LIMIT"
case 264: // "CONFIG_DIR_REQ_BODY_LIMIT_ACTION"
case 265: // "CONFIG_DIR_REQ_BODY_NO_FILES_LIMIT"
case 266: // "CONFIG_DIR_RES_BODY"
case 267: // "CONFIG_DIR_RES_BODY_LIMIT"
case 268: // "CONFIG_DIR_RES_BODY_LIMIT_ACTION"
case 269: // "CONFIG_SEC_RULE_INHERITANCE"
case 270: // "CONFIG_SEC_RULE_PERF_TIME"
case 271: // "CONFIG_DIR_RULE_ENG"
case 272: // "CONFIG_DIR_SEC_ACTION"
case 273: // "CONFIG_DIR_SEC_DEFAULT_ACTION"
case 274: // "CONFIG_DIR_SEC_MARKER"
case 275: // "CONFIG_DIR_UNICODE_MAP_FILE"
case 276: // "CONFIG_SEC_COLLECTION_TIMEOUT"
case 277: // "CONFIG_SEC_HTTP_BLKEY"
case 278: // "CONFIG_SEC_INTERCEPT_ON_ERROR"
case 279: // "CONFIG_SEC_REMOTE_RULES_FAIL_ACTION"
case 280: // "CONFIG_SEC_RULE_REMOVE_BY_ID"
case 281: // "CONFIG_SEC_RULE_REMOVE_BY_MSG"
case 282: // "CONFIG_SEC_RULE_REMOVE_BY_TAG"
case 283: // "CONFIG_SEC_RULE_UPDATE_TARGET_BY_TAG"
case 284: // "CONFIG_SEC_RULE_UPDATE_TARGET_BY_MSG"
case 285: // "CONFIG_SEC_RULE_UPDATE_TARGET_BY_ID"
case 286: // "CONFIG_SEC_RULE_UPDATE_ACTION_BY_ID"
case 287: // "CONFIG_UPDLOAD_KEEP_FILES"
case 288: // "CONFIG_UPDLOAD_SAVE_TMP_FILES"
case 289: // "CONFIG_UPLOAD_DIR"
case 290: // "CONFIG_UPLOAD_FILE_LIMIT"
case 291: // "CONFIG_UPLOAD_FILE_MODE"
case 292: // "CONFIG_VALUE_ABORT"
case 293: // "CONFIG_VALUE_DETC"
case 294: // "CONFIG_VALUE_HTTPS"
case 295: // "CONFIG_VALUE_OFF"
case 296: // "CONFIG_VALUE_ON"
case 297: // "CONFIG_VALUE_PARALLEL"
case 298: // "CONFIG_VALUE_PROCESS_PARTIAL"
case 299: // "CONFIG_VALUE_REJECT"
case 300: // "CONFIG_VALUE_RELEVANT_ONLY"
case 301: // "CONFIG_VALUE_SERIAL"
case 302: // "CONFIG_VALUE_WARN"
case 303: // "CONFIG_XML_EXTERNAL_ENTITY"
case 304: // "CONGIG_DIR_RESPONSE_BODY_MP"
case 305: // "CONGIG_DIR_SEC_ARG_SEP"
case 306: // "CONGIG_DIR_SEC_COOKIE_FORMAT"
case 307: // "CONFIG_SEC_COOKIEV0_SEPARATOR"
case 308: // "CONGIG_DIR_SEC_DATA_DIR"
case 309: // "CONGIG_DIR_SEC_STATUS_ENGINE"
case 310: // "CONFIG_SEC_STREAM_IN_BODY_INSPECTION"
case 311: // "CONFIG_SEC_STREAM_OUT_BODY_INSPECTION"
case 312: // "CONGIG_DIR_SEC_TMP_DIR"
case 313: // "DIRECTIVE"
case 314: // "DIRECTIVE_SECRULESCRIPT"
case 315: // "FREE_TEXT_QUOTE_MACRO_EXPANSION"
case 316: // "QUOTATION_MARK"
case 317: // "RUN_TIME_VAR_BLD"
case 318: // "RUN_TIME_VAR_DUR"
case 319: // "RUN_TIME_VAR_HSV"
case 320: // "RUN_TIME_VAR_REMOTE_USER"
case 321: // "RUN_TIME_VAR_TIME"
case 322: // "RUN_TIME_VAR_TIME_DAY"
case 323: // "RUN_TIME_VAR_TIME_EPOCH"
case 324: // "RUN_TIME_VAR_TIME_HOUR"
case 325: // "RUN_TIME_VAR_TIME_MIN"
case 326: // "RUN_TIME_VAR_TIME_MON"
case 327: // "RUN_TIME_VAR_TIME_SEC"
case 328: // "RUN_TIME_VAR_TIME_WDAY"
case 329: // "RUN_TIME_VAR_TIME_YEAR"
case 330: // "VARIABLE"
case 331: // "Dictionary element"
case 332: // "Dictionary element, selected by regexp"
value.copy< std::string > (that.value);
break;
case 339: // op
case 340: // op_before_init
value.copy< std::unique_ptr<Operator> > (that.value);
break;
case 347: // run_time_string
value.copy< std::unique_ptr<RunTimeString> > (that.value);
break;
case 344: // var
value.copy< std::unique_ptr<Variable> > (that.value);
break;
case 345: // act
case 346: // setvar_action
value.copy< std::unique_ptr<actions::Action> > (that.value);
break;
case 342: // variables
case 343: // variables_may_be_quoted
value.copy< std::unique_ptr<std::vector<std::unique_ptr<Variable> > > > (that.value);
break;
case 337: // actions
case 338: // actions_may_quoted
value.copy< std::unique_ptr<std::vector<std::unique_ptr<actions::Action> > > > (that.value);
break;
default:
break;
}
location = that.location;
return *this;
}
template <typename Base>
inline
void
seclang_parser::yy_destroy_ (const char* yymsg, basic_symbol<Base>& yysym) const
{
if (yymsg)
YY_SYMBOL_PRINT (yymsg, yysym);
}
#if YYDEBUG
template <typename Base>
void
seclang_parser::yy_print_ (std::ostream& yyo,
const basic_symbol<Base>& yysym) const
{
std::ostream& yyoutput = yyo;
YYUSE (yyoutput);
symbol_number_type yytype = yysym.type_get ();
// Avoid a (spurious) G++ 4.8 warning about "array subscript is
// below array bounds".
if (yysym.empty ())
std::abort ();
yyo << (yytype < yyntokens_ ? "token" : "nterm")
<< ' ' << yytname_[yytype] << " ("
<< yysym.location << ": ";
YYUSE (yytype);
yyo << ')';
}
#endif
inline
void
seclang_parser::yypush_ (const char* m, state_type s, symbol_type& sym)
{
stack_symbol_type t (s, sym);
yypush_ (m, t);
}
inline
void
seclang_parser::yypush_ (const char* m, stack_symbol_type& s)
{
if (m)
YY_SYMBOL_PRINT (m, s);
yystack_.push (s);
}
inline
void
seclang_parser::yypop_ (unsigned int n)
{
yystack_.pop (n);
}
#if YYDEBUG
std::ostream&
seclang_parser::debug_stream () const
{
return *yycdebug_;
}
void
seclang_parser::set_debug_stream (std::ostream& o)
{
yycdebug_ = &o;
}
seclang_parser::debug_level_type
seclang_parser::debug_level () const
{
return yydebug_;
}
void
seclang_parser::set_debug_level (debug_level_type l)
{
yydebug_ = l;
}
#endif // YYDEBUG
inline seclang_parser::state_type
seclang_parser::yy_lr_goto_state_ (state_type yystate, int yysym)
{
int yyr = yypgoto_[yysym - yyntokens_] + yystate;
if (0 <= yyr && yyr <= yylast_ && yycheck_[yyr] == yystate)
return yytable_[yyr];
else
return yydefgoto_[yysym - yyntokens_];
}
inline bool
seclang_parser::yy_pact_value_is_default_ (int yyvalue)
{
return yyvalue == yypact_ninf_;
}
inline bool
seclang_parser::yy_table_value_is_error_ (int yyvalue)
{
return yyvalue == yytable_ninf_;
}
int
seclang_parser::parse ()
{
// State.
int yyn;
/// Length of the RHS of the rule being reduced.
int yylen = 0;
// Error handling.
int yynerrs_ = 0;
int yyerrstatus_ = 0;
/// The lookahead symbol.
symbol_type yyla;
/// The locations where the error started and ended.
stack_symbol_type yyerror_range[3];
/// The return value of parse ().
int yyresult;
// FIXME: This shoud be completely indented. It is not yet to
// avoid gratuitous conflicts when merging into the master branch.
try
{
YYCDEBUG << "Starting parse" << std::endl;
// User initialization code.
#line 352 "/home/zimmerle/core-trustwave/ModSecurity/src/parser/seclang-parser.yy" // lalr1.cc:741
{
// Initialize the initial location.
yyla.location.begin.filename = yyla.location.end.filename = &driver.file;
}
#line 859 "seclang-parser.cc" // lalr1.cc:741
/* Initialize the stack. The initial state will be set in
yynewstate, since the latter expects the semantical and the
location values to have been already stored, initialize these
stacks with a primary value. */
yystack_.clear ();
yypush_ (YY_NULLPTR, 0, yyla);
// A new symbol was pushed on the stack.
yynewstate:
YYCDEBUG << "Entering state " << yystack_[0].state << std::endl;
// Accept?
if (yystack_[0].state == yyfinal_)
goto yyacceptlab;
goto yybackup;
// Backup.
yybackup:
// Try to take a decision without lookahead.
yyn = yypact_[yystack_[0].state];
if (yy_pact_value_is_default_ (yyn))
goto yydefault;
// Read a lookahead token.
if (yyla.empty ())
{
YYCDEBUG << "Reading a token: ";
try
{
symbol_type yylookahead (yylex (driver));
yyla.move (yylookahead);
}
catch (const syntax_error& yyexc)
{
error (yyexc);
goto yyerrlab1;
}
}
YY_SYMBOL_PRINT ("Next token is", yyla);
/* If the proper action on seeing token YYLA.TYPE is to reduce or
to detect an error, take that action. */
yyn += yyla.type_get ();
if (yyn < 0 || yylast_ < yyn || yycheck_[yyn] != yyla.type_get ())
goto yydefault;
// Reduce or error.
yyn = yytable_[yyn];
if (yyn <= 0)
{
if (yy_table_value_is_error_ (yyn))
goto yyerrlab;
yyn = -yyn;
goto yyreduce;
}
// Count tokens shifted since error; after three, turn off error status.
if (yyerrstatus_)
--yyerrstatus_;
// Shift the lookahead token.
yypush_ ("Shifting", yyn, yyla);
goto yynewstate;
/*-----------------------------------------------------------.
| yydefault -- do the default action for the current state. |
`-----------------------------------------------------------*/
yydefault:
yyn = yydefact_[yystack_[0].state];
if (yyn == 0)
goto yyerrlab;
goto yyreduce;
/*-----------------------------.
| yyreduce -- Do a reduction. |
`-----------------------------*/
yyreduce:
yylen = yyr2_[yyn];
{
stack_symbol_type yylhs;
yylhs.state = yy_lr_goto_state_(yystack_[yylen].state, yyr1_[yyn]);
/* Variants are always initialized to an empty instance of the
correct type. The default '$$ = $1' action is NOT applied
when using variants. */
switch (yyr1_[yyn])
{
case 143: // "Accuracy"
case 144: // "Allow"
case 145: // "Append"
case 146: // "AuditLog"
case 147: // "Block"
case 148: // "Capture"
case 149: // "Chain"
case 150: // "ACTION_CTL_AUDIT_ENGINE"
case 151: // "ACTION_CTL_AUDIT_LOG_PARTS"
case 152: // "ACTION_CTL_BDY_JSON"
case 153: // "ACTION_CTL_BDY_XML"
case 154: // "ACTION_CTL_FORCE_REQ_BODY_VAR"
case 155: // "ACTION_CTL_REQUEST_BODY_ACCESS"
case 156: // "ACTION_CTL_RULE_REMOVE_BY_ID"
case 157: // "ACTION_CTL_RULE_REMOVE_BY_TAG"
case 158: // "ACTION_CTL_RULE_REMOVE_TARGET_BY_ID"
case 159: // "ACTION_CTL_RULE_REMOVE_TARGET_BY_TAG"
case 160: // "Deny"
case 161: // "DeprecateVar"
case 162: // "Drop"
case 163: // "Exec"
case 164: // "ExpireVar"
case 165: // "Id"
case 166: // "InitCol"
case 167: // "Log"
case 168: // "LogData"
case 169: // "Maturity"
case 170: // "Msg"
case 171: // "MultiMatch"
case 172: // "NoAuditLog"
case 173: // "NoLog"
case 174: // "Pass"
case 175: // "Pause"
case 176: // "Phase"
case 177: // "Prepend"
case 178: // "Proxy"
case 179: // "Redirect"
case 180: // "Rev"
case 181: // "SanatiseArg"
case 182: // "SanatiseMatched"
case 183: // "SanatiseMatchedBytes"
case 184: // "SanatiseRequestHeader"
case 185: // "SanatiseResponseHeader"
case 186: // "SetEnv"
case 187: // "SetRsc"
case 188: // "SetSid"
case 189: // "SetUID"
case 190: // "Severity"
case 191: // "Skip"
case 192: // "SkipAfter"
case 193: // "Status"
case 194: // "Tag"
case 195: // "ACTION_TRANSFORMATION_BASE_64_ENCODE"
case 196: // "ACTION_TRANSFORMATION_BASE_64_DECODE"
case 197: // "ACTION_TRANSFORMATION_BASE_64_DECODE_EXT"
case 198: // "ACTION_TRANSFORMATION_CMD_LINE"
case 199: // "ACTION_TRANSFORMATION_COMPRESS_WHITESPACE"
case 200: // "ACTION_TRANSFORMATION_CSS_DECODE"
case 201: // "ACTION_TRANSFORMATION_HEX_ENCODE"
case 202: // "ACTION_TRANSFORMATION_HEX_DECODE"
case 203: // "ACTION_TRANSFORMATION_HTML_ENTITY_DECODE"
case 204: // "ACTION_TRANSFORMATION_JS_DECODE"
case 205: // "ACTION_TRANSFORMATION_LENGTH"
case 206: // "ACTION_TRANSFORMATION_LOWERCASE"
case 207: // "ACTION_TRANSFORMATION_MD5"
case 208: // "ACTION_TRANSFORMATION_NONE"
case 209: // "ACTION_TRANSFORMATION_NORMALISE_PATH"
case 210: // "ACTION_TRANSFORMATION_NORMALISE_PATH_WIN"
case 211: // "ACTION_TRANSFORMATION_PARITY_EVEN_7_BIT"
case 212: // "ACTION_TRANSFORMATION_PARITY_ODD_7_BIT"
case 213: // "ACTION_TRANSFORMATION_PARITY_ZERO_7_BIT"
case 214: // "ACTION_TRANSFORMATION_REMOVE_COMMENTS"
case 215: // "ACTION_TRANSFORMATION_REMOVE_COMMENTS_CHAR"
case 216: // "ACTION_TRANSFORMATION_REMOVE_NULLS"
case 217: // "ACTION_TRANSFORMATION_REMOVE_WHITESPACE"
case 218: // "ACTION_TRANSFORMATION_REPLACE_COMMENTS"
case 219: // "ACTION_TRANSFORMATION_REPLACE_NULLS"
case 220: // "ACTION_TRANSFORMATION_SHA1"
case 221: // "ACTION_TRANSFORMATION_SQL_HEX_DECODE"
case 222: // "ACTION_TRANSFORMATION_TRIM"
case 223: // "ACTION_TRANSFORMATION_UPPERCASE"
case 224: // "ACTION_TRANSFORMATION_URL_DECODE"
case 225: // "ACTION_TRANSFORMATION_URL_DECODE_UNI"
case 226: // "ACTION_TRANSFORMATION_UTF8_TO_UNICODE"
case 227: // "Ver"
case 228: // "xmlns"
case 229: // "CONFIG_COMPONENT_SIG"
case 230: // "CONFIG_CONN_ENGINE"
case 231: // "CONFIG_SEC_ARGUMENT_SEPARATOR"
case 232: // "CONFIG_SEC_WEB_APP_ID"
case 233: // "CONFIG_SEC_SERVER_SIG"
case 234: // "CONFIG_DIR_AUDIT_DIR"
case 235: // "CONFIG_DIR_AUDIT_DIR_MOD"
case 236: // "CONFIG_DIR_AUDIT_ENG"
case 237: // "CONFIG_DIR_AUDIT_FLE_MOD"
case 238: // "CONFIG_DIR_AUDIT_LOG"
case 239: // "CONFIG_DIR_AUDIT_LOG2"
case 240: // "CONFIG_DIR_AUDIT_LOG_P"
case 241: // "CONFIG_DIR_AUDIT_STS"
case 242: // "CONFIG_DIR_AUDIT_TPE"
case 243: // "CONFIG_DIR_DEBUG_LOG"
case 244: // "CONFIG_DIR_DEBUG_LVL"
case 245: // "CONFIG_SEC_CACHE_TRANSFORMATIONS"
case 246: // "CONFIG_SEC_DISABLE_BACKEND_COMPRESS"
case 247: // "CONFIG_SEC_HASH_ENGINE"
case 248: // "CONFIG_SEC_HASH_KEY"
case 249: // "CONFIG_SEC_HASH_PARAM"
case 250: // "CONFIG_SEC_HASH_METHOD_RX"
case 251: // "CONFIG_SEC_HASH_METHOD_PM"
case 252: // "CONFIG_SEC_CHROOT_DIR"
case 253: // "CONFIG_DIR_GEO_DB"
case 254: // "CONFIG_DIR_GSB_DB"
case 255: // "CONFIG_SEC_GUARDIAN_LOG"
case 256: // "CONFIG_DIR_PCRE_MATCH_LIMIT"
case 257: // "CONFIG_DIR_PCRE_MATCH_LIMIT_RECURSION"
case 258: // "CONFIG_SEC_CONN_R_STATE_LIMIT"
case 259: // "CONFIG_SEC_CONN_W_STATE_LIMIT"
case 260: // "CONFIG_SEC_SENSOR_ID"
case 261: // "CONFIG_DIR_REQ_BODY"
case 262: // "CONFIG_DIR_REQ_BODY_IN_MEMORY_LIMIT"
case 263: // "CONFIG_DIR_REQ_BODY_LIMIT"
case 264: // "CONFIG_DIR_REQ_BODY_LIMIT_ACTION"
case 265: // "CONFIG_DIR_REQ_BODY_NO_FILES_LIMIT"
case 266: // "CONFIG_DIR_RES_BODY"
case 267: // "CONFIG_DIR_RES_BODY_LIMIT"
case 268: // "CONFIG_DIR_RES_BODY_LIMIT_ACTION"
case 269: // "CONFIG_SEC_RULE_INHERITANCE"
case 270: // "CONFIG_SEC_RULE_PERF_TIME"
case 271: // "CONFIG_DIR_RULE_ENG"
case 272: // "CONFIG_DIR_SEC_ACTION"
case 273: // "CONFIG_DIR_SEC_DEFAULT_ACTION"
case 274: // "CONFIG_DIR_SEC_MARKER"
case 275: // "CONFIG_DIR_UNICODE_MAP_FILE"
case 276: // "CONFIG_SEC_COLLECTION_TIMEOUT"
case 277: // "CONFIG_SEC_HTTP_BLKEY"
case 278: // "CONFIG_SEC_INTERCEPT_ON_ERROR"
case 279: // "CONFIG_SEC_REMOTE_RULES_FAIL_ACTION"
case 280: // "CONFIG_SEC_RULE_REMOVE_BY_ID"
case 281: // "CONFIG_SEC_RULE_REMOVE_BY_MSG"
case 282: // "CONFIG_SEC_RULE_REMOVE_BY_TAG"
case 283: // "CONFIG_SEC_RULE_UPDATE_TARGET_BY_TAG"
case 284: // "CONFIG_SEC_RULE_UPDATE_TARGET_BY_MSG"
case 285: // "CONFIG_SEC_RULE_UPDATE_TARGET_BY_ID"
case 286: // "CONFIG_SEC_RULE_UPDATE_ACTION_BY_ID"
case 287: // "CONFIG_UPDLOAD_KEEP_FILES"
case 288: // "CONFIG_UPDLOAD_SAVE_TMP_FILES"
case 289: // "CONFIG_UPLOAD_DIR"
case 290: // "CONFIG_UPLOAD_FILE_LIMIT"
case 291: // "CONFIG_UPLOAD_FILE_MODE"
case 292: // "CONFIG_VALUE_ABORT"
case 293: // "CONFIG_VALUE_DETC"
case 294: // "CONFIG_VALUE_HTTPS"
case 295: // "CONFIG_VALUE_OFF"
case 296: // "CONFIG_VALUE_ON"
case 297: // "CONFIG_VALUE_PARALLEL"
case 298: // "CONFIG_VALUE_PROCESS_PARTIAL"
case 299: // "CONFIG_VALUE_REJECT"
case 300: // "CONFIG_VALUE_RELEVANT_ONLY"
case 301: // "CONFIG_VALUE_SERIAL"
case 302: // "CONFIG_VALUE_WARN"
case 303: // "CONFIG_XML_EXTERNAL_ENTITY"
case 304: // "CONGIG_DIR_RESPONSE_BODY_MP"
case 305: // "CONGIG_DIR_SEC_ARG_SEP"
case 306: // "CONGIG_DIR_SEC_COOKIE_FORMAT"
case 307: // "CONFIG_SEC_COOKIEV0_SEPARATOR"
case 308: // "CONGIG_DIR_SEC_DATA_DIR"
case 309: // "CONGIG_DIR_SEC_STATUS_ENGINE"
case 310: // "CONFIG_SEC_STREAM_IN_BODY_INSPECTION"
case 311: // "CONFIG_SEC_STREAM_OUT_BODY_INSPECTION"
case 312: // "CONGIG_DIR_SEC_TMP_DIR"
case 313: // "DIRECTIVE"
case 314: // "DIRECTIVE_SECRULESCRIPT"
case 315: // "FREE_TEXT_QUOTE_MACRO_EXPANSION"
case 316: // "QUOTATION_MARK"
case 317: // "RUN_TIME_VAR_BLD"
case 318: // "RUN_TIME_VAR_DUR"
case 319: // "RUN_TIME_VAR_HSV"
case 320: // "RUN_TIME_VAR_REMOTE_USER"
case 321: // "RUN_TIME_VAR_TIME"
case 322: // "RUN_TIME_VAR_TIME_DAY"
case 323: // "RUN_TIME_VAR_TIME_EPOCH"
case 324: // "RUN_TIME_VAR_TIME_HOUR"
case 325: // "RUN_TIME_VAR_TIME_MIN"
case 326: // "RUN_TIME_VAR_TIME_MON"
case 327: // "RUN_TIME_VAR_TIME_SEC"
case 328: // "RUN_TIME_VAR_TIME_WDAY"
case 329: // "RUN_TIME_VAR_TIME_YEAR"
case 330: // "VARIABLE"
case 331: // "Dictionary element"
case 332: // "Dictionary element, selected by regexp"
yylhs.value.build< std::string > ();
break;
case 339: // op
case 340: // op_before_init
yylhs.value.build< std::unique_ptr<Operator> > ();
break;
case 347: // run_time_string
yylhs.value.build< std::unique_ptr<RunTimeString> > ();
break;
case 344: // var
yylhs.value.build< std::unique_ptr<Variable> > ();
break;
case 345: // act
case 346: // setvar_action
yylhs.value.build< std::unique_ptr<actions::Action> > ();
break;
case 342: // variables
case 343: // variables_may_be_quoted
yylhs.value.build< std::unique_ptr<std::vector<std::unique_ptr<Variable> > > > ();
break;
case 337: // actions
case 338: // actions_may_quoted
yylhs.value.build< std::unique_ptr<std::vector<std::unique_ptr<actions::Action> > > > ();
break;
default:
break;
}
// Compute the default @$.
{
slice<stack_symbol_type, stack_type> slice (yystack_, yylen);
YYLLOC_DEFAULT (yylhs.location, slice, yylen);
}
// Perform the reduction.
YY_REDUCE_PRINT (yyn);
try
{
switch (yyn)
{
case 2:
#line 735 "seclang-parser.yy" // lalr1.cc:859
{
return 0;
}
#line 1192 "seclang-parser.cc" // lalr1.cc:859
break;
case 6:
#line 748 "seclang-parser.yy" // lalr1.cc:859
{
driver.m_auditLog->setStorageDirMode(strtol(yystack_[0].value.as< std::string > ().c_str(), NULL, 8));
}
#line 1200 "seclang-parser.cc" // lalr1.cc:859
break;
case 7:
#line 754 "seclang-parser.yy" // lalr1.cc:859
{
driver.m_auditLog->setStorageDir(yystack_[0].value.as< std::string > ());
}
#line 1208 "seclang-parser.cc" // lalr1.cc:859
break;
case 8:
#line 760 "seclang-parser.yy" // lalr1.cc:859
{
driver.m_auditLog->setStatus(modsecurity::audit_log::AuditLog::RelevantOnlyAuditLogStatus);
}
#line 1216 "seclang-parser.cc" // lalr1.cc:859
break;
case 9:
#line 764 "seclang-parser.yy" // lalr1.cc:859
{
driver.m_auditLog->setStatus(modsecurity::audit_log::AuditLog::OffAuditLogStatus);
}
#line 1224 "seclang-parser.cc" // lalr1.cc:859
break;
case 10:
#line 768 "seclang-parser.yy" // lalr1.cc:859
{
driver.m_auditLog->setStatus(modsecurity::audit_log::AuditLog::OnAuditLogStatus);
}
#line 1232 "seclang-parser.cc" // lalr1.cc:859
break;
case 11:
#line 774 "seclang-parser.yy" // lalr1.cc:859
{
driver.m_auditLog->setFileMode(strtol(yystack_[0].value.as< std::string > ().c_str(), NULL, 8));
}
#line 1240 "seclang-parser.cc" // lalr1.cc:859
break;
case 12:
#line 780 "seclang-parser.yy" // lalr1.cc:859
{
driver.m_auditLog->setFilePath2(yystack_[0].value.as< std::string > ());
}
#line 1248 "seclang-parser.cc" // lalr1.cc:859
break;
case 13:
#line 786 "seclang-parser.yy" // lalr1.cc:859
{
driver.m_auditLog->setParts(yystack_[0].value.as< std::string > ());
}
#line 1256 "seclang-parser.cc" // lalr1.cc:859
break;
case 14:
#line 792 "seclang-parser.yy" // lalr1.cc:859
{
driver.m_auditLog->setFilePath1(yystack_[0].value.as< std::string > ());
}
#line 1264 "seclang-parser.cc" // lalr1.cc:859
break;
case 15:
#line 797 "seclang-parser.yy" // lalr1.cc:859
{
driver.m_auditLog->setFormat(modsecurity::audit_log::AuditLog::JSONAuditLogFormat);
}
#line 1272 "seclang-parser.cc" // lalr1.cc:859
break;
case 16:
#line 802 "seclang-parser.yy" // lalr1.cc:859
{
driver.m_auditLog->setFormat(modsecurity::audit_log::AuditLog::NativeAuditLogFormat);
}
#line 1280 "seclang-parser.cc" // lalr1.cc:859
break;
case 17:
#line 808 "seclang-parser.yy" // lalr1.cc:859
{
std::string relevant_status(yystack_[0].value.as< std::string > ());
driver.m_auditLog->setRelevantStatus(relevant_status);
}
#line 1289 "seclang-parser.cc" // lalr1.cc:859
break;
case 18:
#line 815 "seclang-parser.yy" // lalr1.cc:859
{
driver.m_auditLog->setType(modsecurity::audit_log::AuditLog::SerialAuditLogType);
}
#line 1297 "seclang-parser.cc" // lalr1.cc:859
break;
case 19:
#line 819 "seclang-parser.yy" // lalr1.cc:859
{
driver.m_auditLog->setType(modsecurity::audit_log::AuditLog::ParallelAuditLogType);
}
#line 1305 "seclang-parser.cc" // lalr1.cc:859
break;
case 20:
#line 823 "seclang-parser.yy" // lalr1.cc:859
{
driver.m_auditLog->setType(modsecurity::audit_log::AuditLog::HttpsAuditLogType);
}
#line 1313 "seclang-parser.cc" // lalr1.cc:859
break;
case 21:
#line 829 "seclang-parser.yy" // lalr1.cc:859
{
driver.m_uploadKeepFiles = modsecurity::RulesProperties::TrueConfigBoolean;
}
#line 1321 "seclang-parser.cc" // lalr1.cc:859
break;
case 22:
#line 833 "seclang-parser.yy" // lalr1.cc:859
{
driver.m_uploadKeepFiles = modsecurity::RulesProperties::FalseConfigBoolean;
}
#line 1329 "seclang-parser.cc" // lalr1.cc:859
break;
case 23:
#line 837 "seclang-parser.yy" // lalr1.cc:859
{
driver.error(yystack_[2].location, "SecUploadKeepFiles RelevantOnly is not currently supported. Accepted values are On or Off");
YYERROR;
}
#line 1338 "seclang-parser.cc" // lalr1.cc:859
break;
case 24:
#line 842 "seclang-parser.yy" // lalr1.cc:859
{
driver.m_uploadFileLimit.m_set = true;
driver.m_uploadFileLimit.m_value = strtol(yystack_[0].value.as< std::string > ().c_str(), NULL, 10);
}
#line 1347 "seclang-parser.cc" // lalr1.cc:859
break;
case 25:
#line 847 "seclang-parser.yy" // lalr1.cc:859
{
driver.m_uploadFileMode.m_set = true;
driver.m_uploadFileMode.m_value = strtol(yystack_[0].value.as< std::string > ().c_str(), NULL, 8);
}
#line 1356 "seclang-parser.cc" // lalr1.cc:859
break;
case 26:
#line 852 "seclang-parser.yy" // lalr1.cc:859
{
driver.m_uploadDirectory.m_set = true;
driver.m_uploadDirectory.m_value = yystack_[0].value.as< std::string > ();
}
#line 1365 "seclang-parser.cc" // lalr1.cc:859
break;
case 27:
#line 857 "seclang-parser.yy" // lalr1.cc:859
{
driver.m_tmpSaveUploadedFiles = modsecurity::RulesProperties::TrueConfigBoolean;
}
#line 1373 "seclang-parser.cc" // lalr1.cc:859
break;
case 28:
#line 861 "seclang-parser.yy" // lalr1.cc:859
{
driver.m_tmpSaveUploadedFiles = modsecurity::RulesProperties::FalseConfigBoolean;
}
#line 1381 "seclang-parser.cc" // lalr1.cc:859
break;
case 29:
#line 868 "seclang-parser.yy" // lalr1.cc:859
{
yylhs.value.as< std::unique_ptr<std::vector<std::unique_ptr<actions::Action> > > > () = std::move(yystack_[1].value.as< std::unique_ptr<std::vector<std::unique_ptr<actions::Action> > > > ());
}
#line 1389 "seclang-parser.cc" // lalr1.cc:859
break;
case 30:
#line 872 "seclang-parser.yy" // lalr1.cc:859
{
yylhs.value.as< std::unique_ptr<std::vector<std::unique_ptr<actions::Action> > > > () = std::move(yystack_[0].value.as< std::unique_ptr<std::vector<std::unique_ptr<actions::Action> > > > ());
}
#line 1397 "seclang-parser.cc" // lalr1.cc:859
break;
case 31:
#line 879 "seclang-parser.yy" // lalr1.cc:859
{
ACTION_INIT(yystack_[0].value.as< std::unique_ptr<actions::Action> > (), yystack_[3].location)
yystack_[2].value.as< std::unique_ptr<std::vector<std::unique_ptr<actions::Action> > > > ()->push_back(std::move(yystack_[0].value.as< std::unique_ptr<actions::Action> > ()));
yylhs.value.as< std::unique_ptr<std::vector<std::unique_ptr<actions::Action> > > > () = std::move(yystack_[2].value.as< std::unique_ptr<std::vector<std::unique_ptr<actions::Action> > > > ());
}
#line 1407 "seclang-parser.cc" // lalr1.cc:859
break;
case 32:
#line 885 "seclang-parser.yy" // lalr1.cc:859
{
std::unique_ptr<std::vector<std::unique_ptr<actions::Action>>> b(new std::vector<std::unique_ptr<actions::Action>>());
ACTION_INIT(yystack_[0].value.as< std::unique_ptr<actions::Action> > (), yystack_[1].location)
b->push_back(std::move(yystack_[0].value.as< std::unique_ptr<actions::Action> > ()));
yylhs.value.as< std::unique_ptr<std::vector<std::unique_ptr<actions::Action> > > > () = std::move(b);
}
#line 1418 "seclang-parser.cc" // lalr1.cc:859
break;
case 33:
#line 895 "seclang-parser.yy" // lalr1.cc:859
{
yylhs.value.as< std::unique_ptr<Operator> > () = std::move(yystack_[0].value.as< std::unique_ptr<Operator> > ());
std::string error;
if (yylhs.value.as< std::unique_ptr<Operator> > ()->init(driver.ref.back(), &error) == false) {
driver.error(yystack_[1].location, error);
YYERROR;
}
}
#line 1431 "seclang-parser.cc" // lalr1.cc:859
break;
case 34:
#line 904 "seclang-parser.yy" // lalr1.cc:859
{
yylhs.value.as< std::unique_ptr<Operator> > () = std::move(yystack_[0].value.as< std::unique_ptr<Operator> > ());
yylhs.value.as< std::unique_ptr<Operator> > ()->m_negation = true;
std::string error;
if (yylhs.value.as< std::unique_ptr<Operator> > ()->init(driver.ref.back(), &error) == false) {
driver.error(yystack_[2].location, error);
YYERROR;
}
}
#line 1445 "seclang-parser.cc" // lalr1.cc:859
break;
case 35:
#line 914 "seclang-parser.yy" // lalr1.cc:859
{
OPERATOR_CONTAINER(yylhs.value.as< std::unique_ptr<Operator> > (), new operators::Rx(std::move(yystack_[0].value.as< std::unique_ptr<RunTimeString> > ())));
std::string error;
if (yylhs.value.as< std::unique_ptr<Operator> > ()->init(driver.ref.back(), &error) == false) {
driver.error(yystack_[1].location, error);
YYERROR;
}
}
#line 1458 "seclang-parser.cc" // lalr1.cc:859
break;
case 36:
#line 923 "seclang-parser.yy" // lalr1.cc:859
{
OPERATOR_CONTAINER(yylhs.value.as< std::unique_ptr<Operator> > (), new operators::Rx(std::move(yystack_[0].value.as< std::unique_ptr<RunTimeString> > ())));
yylhs.value.as< std::unique_ptr<Operator> > ()->m_negation = true;
std::string error;
if (yylhs.value.as< std::unique_ptr<Operator> > ()->init(driver.ref.back(), &error) == false) {
driver.error(yystack_[2].location, error);
YYERROR;
}
}
#line 1472 "seclang-parser.cc" // lalr1.cc:859
break;
case 37:
#line 936 "seclang-parser.yy" // lalr1.cc:859
{
OPERATOR_CONTAINER(yylhs.value.as< std::unique_ptr<Operator> > (), new operators::UnconditionalMatch());
}
#line 1480 "seclang-parser.cc" // lalr1.cc:859
break;
case 38:
#line 940 "seclang-parser.yy" // lalr1.cc:859
{
OPERATOR_CONTAINER(yylhs.value.as< std::unique_ptr<Operator> > (), new operators::DetectSQLi());
}
#line 1488 "seclang-parser.cc" // lalr1.cc:859
break;
case 39:
#line 944 "seclang-parser.yy" // lalr1.cc:859
{
OPERATOR_CONTAINER(yylhs.value.as< std::unique_ptr<Operator> > (), new operators::DetectXSS());
}
#line 1496 "seclang-parser.cc" // lalr1.cc:859
break;
case 40:
#line 948 "seclang-parser.yy" // lalr1.cc:859
{
OPERATOR_CONTAINER(yylhs.value.as< std::unique_ptr<Operator> > (), new operators::ValidateUrlEncoding());
}
#line 1504 "seclang-parser.cc" // lalr1.cc:859
break;
case 41:
#line 952 "seclang-parser.yy" // lalr1.cc:859
{
OPERATOR_CONTAINER(yylhs.value.as< std::unique_ptr<Operator> > (), new operators::ValidateUtf8Encoding());
}
#line 1512 "seclang-parser.cc" // lalr1.cc:859
break;
case 42:
#line 956 "seclang-parser.yy" // lalr1.cc:859
{
OPERATOR_CONTAINER(yylhs.value.as< std::unique_ptr<Operator> > (), new operators::InspectFile(std::move(yystack_[0].value.as< std::unique_ptr<RunTimeString> > ())));
}
#line 1520 "seclang-parser.cc" // lalr1.cc:859
break;
case 43:
#line 960 "seclang-parser.yy" // lalr1.cc:859
{
OPERATOR_CONTAINER(yylhs.value.as< std::unique_ptr<Operator> > (), new operators::FuzzyHash(std::move(yystack_[0].value.as< std::unique_ptr<RunTimeString> > ())));
}
#line 1528 "seclang-parser.cc" // lalr1.cc:859
break;
case 44:
#line 964 "seclang-parser.yy" // lalr1.cc:859
{
OPERATOR_CONTAINER(yylhs.value.as< std::unique_ptr<Operator> > (), new operators::ValidateByteRange(std::move(yystack_[0].value.as< std::unique_ptr<RunTimeString> > ())));
}
#line 1536 "seclang-parser.cc" // lalr1.cc:859
break;
case 45:
#line 968 "seclang-parser.yy" // lalr1.cc:859
{
OPERATOR_CONTAINER(yylhs.value.as< std::unique_ptr<Operator> > (), new operators::ValidateDTD(std::move(yystack_[0].value.as< std::unique_ptr<RunTimeString> > ())));
}
#line 1544 "seclang-parser.cc" // lalr1.cc:859
break;
case 46:
#line 972 "seclang-parser.yy" // lalr1.cc:859
{
/* $$ = new operators::ValidateHash($1); */
OPERATOR_NOT_SUPPORTED("ValidateHash", yystack_[2].location);
}
#line 1553 "seclang-parser.cc" // lalr1.cc:859
break;
case 47:
#line 977 "seclang-parser.yy" // lalr1.cc:859
{
OPERATOR_CONTAINER(yylhs.value.as< std::unique_ptr<Operator> > (), new operators::ValidateSchema(std::move(yystack_[0].value.as< std::unique_ptr<RunTimeString> > ())));
}
#line 1561 "seclang-parser.cc" // lalr1.cc:859
break;
case 48:
#line 981 "seclang-parser.yy" // lalr1.cc:859
{
OPERATOR_CONTAINER(yylhs.value.as< std::unique_ptr<Operator> > (), new operators::VerifyCC(std::move(yystack_[0].value.as< std::unique_ptr<RunTimeString> > ())));
}
#line 1569 "seclang-parser.cc" // lalr1.cc:859
break;
case 49:
#line 985 "seclang-parser.yy" // lalr1.cc:859
{
OPERATOR_CONTAINER(yylhs.value.as< std::unique_ptr<Operator> > (), new operators::VerifyCPF(std::move(yystack_[0].value.as< std::unique_ptr<RunTimeString> > ())));
}
#line 1577 "seclang-parser.cc" // lalr1.cc:859
break;
case 50:
#line 989 "seclang-parser.yy" // lalr1.cc:859
{
OPERATOR_CONTAINER(yylhs.value.as< std::unique_ptr<Operator> > (), new operators::VerifySSN(std::move(yystack_[0].value.as< std::unique_ptr<RunTimeString> > ())));
}
#line 1585 "seclang-parser.cc" // lalr1.cc:859
break;
case 51:
#line 993 "seclang-parser.yy" // lalr1.cc:859
{
/* $$ = new operators::GsbLookup($1); */
OPERATOR_NOT_SUPPORTED("GsbLookup", yystack_[2].location);
}
#line 1594 "seclang-parser.cc" // lalr1.cc:859
break;
case 52:
#line 998 "seclang-parser.yy" // lalr1.cc:859
{
/* $$ = new operators::Rsub($1); */
OPERATOR_NOT_SUPPORTED("Rsub", yystack_[2].location);
}
#line 1603 "seclang-parser.cc" // lalr1.cc:859
break;
case 53:
#line 1003 "seclang-parser.yy" // lalr1.cc:859
{
OPERATOR_CONTAINER(yylhs.value.as< std::unique_ptr<Operator> > (), new operators::Within(std::move(yystack_[0].value.as< std::unique_ptr<RunTimeString> > ())));
}
#line 1611 "seclang-parser.cc" // lalr1.cc:859
break;
case 54:
#line 1007 "seclang-parser.yy" // lalr1.cc:859
{
OPERATOR_CONTAINER(yylhs.value.as< std::unique_ptr<Operator> > (), new operators::ContainsWord(std::move(yystack_[0].value.as< std::unique_ptr<RunTimeString> > ())));
}
#line 1619 "seclang-parser.cc" // lalr1.cc:859
break;
case 55:
#line 1011 "seclang-parser.yy" // lalr1.cc:859
{
OPERATOR_CONTAINER(yylhs.value.as< std::unique_ptr<Operator> > (), new operators::Contains(std::move(yystack_[0].value.as< std::unique_ptr<RunTimeString> > ())));
}
#line 1627 "seclang-parser.cc" // lalr1.cc:859
break;
case 56:
#line 1015 "seclang-parser.yy" // lalr1.cc:859
{
OPERATOR_CONTAINER(yylhs.value.as< std::unique_ptr<Operator> > (), new operators::EndsWith(std::move(yystack_[0].value.as< std::unique_ptr<RunTimeString> > ())));
}
#line 1635 "seclang-parser.cc" // lalr1.cc:859
break;
case 57:
#line 1019 "seclang-parser.yy" // lalr1.cc:859
{
OPERATOR_CONTAINER(yylhs.value.as< std::unique_ptr<Operator> > (), new operators::Eq(std::move(yystack_[0].value.as< std::unique_ptr<RunTimeString> > ())));
}
#line 1643 "seclang-parser.cc" // lalr1.cc:859
break;
case 58:
#line 1023 "seclang-parser.yy" // lalr1.cc:859
{
OPERATOR_CONTAINER(yylhs.value.as< std::unique_ptr<Operator> > (), new operators::Ge(std::move(yystack_[0].value.as< std::unique_ptr<RunTimeString> > ())));
}
#line 1651 "seclang-parser.cc" // lalr1.cc:859
break;
case 59:
#line 1027 "seclang-parser.yy" // lalr1.cc:859
{
OPERATOR_CONTAINER(yylhs.value.as< std::unique_ptr<Operator> > (), new operators::Gt(std::move(yystack_[0].value.as< std::unique_ptr<RunTimeString> > ())));
}
#line 1659 "seclang-parser.cc" // lalr1.cc:859
break;
case 60:
#line 1031 "seclang-parser.yy" // lalr1.cc:859
{
OPERATOR_CONTAINER(yylhs.value.as< std::unique_ptr<Operator> > (), new operators::IpMatchF(std::move(yystack_[0].value.as< std::unique_ptr<RunTimeString> > ())));
}
#line 1667 "seclang-parser.cc" // lalr1.cc:859
break;
case 61:
#line 1035 "seclang-parser.yy" // lalr1.cc:859
{
OPERATOR_CONTAINER(yylhs.value.as< std::unique_ptr<Operator> > (), new operators::IpMatch(std::move(yystack_[0].value.as< std::unique_ptr<RunTimeString> > ())));
}
#line 1675 "seclang-parser.cc" // lalr1.cc:859
break;
case 62:
#line 1039 "seclang-parser.yy" // lalr1.cc:859
{
OPERATOR_CONTAINER(yylhs.value.as< std::unique_ptr<Operator> > (), new operators::Le(std::move(yystack_[0].value.as< std::unique_ptr<RunTimeString> > ())));
}
#line 1683 "seclang-parser.cc" // lalr1.cc:859
break;
case 63:
#line 1043 "seclang-parser.yy" // lalr1.cc:859
{
OPERATOR_CONTAINER(yylhs.value.as< std::unique_ptr<Operator> > (), new operators::Lt(std::move(yystack_[0].value.as< std::unique_ptr<RunTimeString> > ())));
}
#line 1691 "seclang-parser.cc" // lalr1.cc:859
break;
case 64:
#line 1047 "seclang-parser.yy" // lalr1.cc:859
{
OPERATOR_CONTAINER(yylhs.value.as< std::unique_ptr<Operator> > (), new operators::PmFromFile(std::move(yystack_[0].value.as< std::unique_ptr<RunTimeString> > ())));
}
#line 1699 "seclang-parser.cc" // lalr1.cc:859
break;
case 65:
#line 1051 "seclang-parser.yy" // lalr1.cc:859
{
OPERATOR_CONTAINER(yylhs.value.as< std::unique_ptr<Operator> > (), new operators::Pm(std::move(yystack_[0].value.as< std::unique_ptr<RunTimeString> > ())));
}
#line 1707 "seclang-parser.cc" // lalr1.cc:859
break;
case 66:
#line 1055 "seclang-parser.yy" // lalr1.cc:859
{
OPERATOR_CONTAINER(yylhs.value.as< std::unique_ptr<Operator> > (), new operators::Rbl(std::move(yystack_[0].value.as< std::unique_ptr<RunTimeString> > ())));
}
#line 1715 "seclang-parser.cc" // lalr1.cc:859
break;
case 67:
#line 1059 "seclang-parser.yy" // lalr1.cc:859
{
OPERATOR_CONTAINER(yylhs.value.as< std::unique_ptr<Operator> > (), new operators::Rx(std::move(yystack_[0].value.as< std::unique_ptr<RunTimeString> > ())));
}
#line 1723 "seclang-parser.cc" // lalr1.cc:859
break;
case 68:
#line 1063 "seclang-parser.yy" // lalr1.cc:859
{
OPERATOR_CONTAINER(yylhs.value.as< std::unique_ptr<Operator> > (), new operators::StrEq(std::move(yystack_[0].value.as< std::unique_ptr<RunTimeString> > ())));
}
#line 1731 "seclang-parser.cc" // lalr1.cc:859
break;
case 69:
#line 1067 "seclang-parser.yy" // lalr1.cc:859
{
OPERATOR_CONTAINER(yylhs.value.as< std::unique_ptr<Operator> > (), new operators::StrMatch(std::move(yystack_[0].value.as< std::unique_ptr<RunTimeString> > ())));
}
#line 1739 "seclang-parser.cc" // lalr1.cc:859
break;
case 70:
#line 1071 "seclang-parser.yy" // lalr1.cc:859
{
OPERATOR_CONTAINER(yylhs.value.as< std::unique_ptr<Operator> > (), new operators::BeginsWith(std::move(yystack_[0].value.as< std::unique_ptr<RunTimeString> > ())));
}
#line 1747 "seclang-parser.cc" // lalr1.cc:859
break;
case 71:
#line 1075 "seclang-parser.yy" // lalr1.cc:859
{
#ifdef WITH_GEOIP
OPERATOR_CONTAINER(yylhs.value.as< std::unique_ptr<Operator> > (), new operators::GeoLookup());
#else
std::stringstream ss;
ss << "This version of ModSecurity was not compiled with GeoIP support.";
driver.error(yystack_[1].location, ss.str());
YYERROR;
#endif // WITH_GEOIP
}
#line 1762 "seclang-parser.cc" // lalr1.cc:859
break;
case 73:
#line 1090 "seclang-parser.yy" // lalr1.cc:859
{
std::vector<actions::Action *> *a = new std::vector<actions::Action *>();
for (auto &i : *yystack_[0].value.as< std::unique_ptr<std::vector<std::unique_ptr<actions::Action> > > > ().get()) {
a->push_back(i.release());
}
std::vector<Variable *> *v = new std::vector<Variable *>();
for (auto &i : *yystack_[2].value.as< std::unique_ptr<std::vector<std::unique_ptr<Variable> > > > ().get()) {
v->push_back(i.release());
}
Operator *op = yystack_[1].value.as< std::unique_ptr<Operator> > ().release();
Rule *rule = new Rule(
/* op */ op,
/* variables */ v,
/* actions */ a,
/* file name */ driver.ref.back(),
/* line number */ yystack_[4].location.end.line
);
if (driver.addSecRule(rule) == false) {
delete rule;
YYERROR;
}
}
#line 1790 "seclang-parser.cc" // lalr1.cc:859
break;
case 74:
#line 1114 "seclang-parser.yy" // lalr1.cc:859
{
std::vector<Variable *> *v = new std::vector<Variable *>();
for (auto &i : *yystack_[1].value.as< std::unique_ptr<std::vector<std::unique_ptr<Variable> > > > ().get()) {
v->push_back(i.release());
}
Rule *rule = new Rule(
/* op */ yystack_[0].value.as< std::unique_ptr<Operator> > ().release(),
/* variables */ v,
/* actions */ NULL,
/* file name */ driver.ref.back(),
/* line number */ yystack_[3].location.end.line
);
if (driver.addSecRule(rule) == false) {
delete rule;
YYERROR;
}
}
#line 1813 "seclang-parser.cc" // lalr1.cc:859
break;
case 75:
#line 1133 "seclang-parser.yy" // lalr1.cc:859
{
std::vector<actions::Action *> *a = new std::vector<actions::Action *>();
for (auto &i : *yystack_[0].value.as< std::unique_ptr<std::vector<std::unique_ptr<actions::Action> > > > ().get()) {
a->push_back(i.release());
}
Rule *rule = new Rule(
/* op */ NULL,
/* variables */ NULL,
/* actions */ a,
/* file name */ driver.ref.back(),
/* line number */ yystack_[2].location.end.line
);
driver.addSecAction(rule);
}
#line 1832 "seclang-parser.cc" // lalr1.cc:859
break;
case 76:
#line 1148 "seclang-parser.yy" // lalr1.cc:859
{
std::string err;
std::vector<actions::Action *> *a = new std::vector<actions::Action *>();
for (auto &i : *yystack_[0].value.as< std::unique_ptr<std::vector<std::unique_ptr<actions::Action> > > > ().get()) {
a->push_back(i.release());
}
RuleScript *r = new RuleScript(
/* path to script */ yystack_[1].value.as< std::string > (),
/* actions */ a,
/* file name */ driver.ref.back(),
/* line number */ yystack_[2].location.end.line
);
if (r->init(&err) == false) {
driver.error(yystack_[2].location, "Failed to load script: " + err);
delete r;
YYERROR;
}
if (driver.addSecRuleScript(r) == false) {
delete r;
YYERROR;
}
}
#line 1860 "seclang-parser.cc" // lalr1.cc:859
break;
case 77:
#line 1172 "seclang-parser.yy" // lalr1.cc:859
{
bool hasDisruptive = false;
std::vector<actions::Action *> *actions = new std::vector<actions::Action *>();
for (auto &i : *yystack_[0].value.as< std::unique_ptr<std::vector<std::unique_ptr<actions::Action> > > > ().get()) {
actions->push_back(i.release());
}
std::vector<actions::Action *> checkedActions;
int definedPhase = -1;
int secRuleDefinedPhase = -1;
for (actions::Action *a : *actions) {
actions::Phase *phase = dynamic_cast<actions::Phase *>(a);
if (a->isDisruptive() == true && dynamic_cast<actions::disruptive::Block *>(a) == NULL) {
hasDisruptive = true;
}
if (phase != NULL) {
definedPhase = phase->m_phase;
secRuleDefinedPhase = phase->m_secRulesPhase;
delete phase;
} else if (a->action_kind == actions::Action::RunTimeOnlyIfMatchKind ||
a->action_kind == actions::Action::RunTimeBeforeMatchAttemptKind) {
actions::transformations::None *none = dynamic_cast<actions::transformations::None *>(a);
if (none != NULL) {
driver.error(yystack_[2].location, "The transformation none is not suitable to be part of the SecDefaultActions");
YYERROR;
}
checkedActions.push_back(a);
} else {
driver.error(yystack_[2].location, "The action '" + a->m_name + "' is not suitable to be part of the SecDefaultActions");
YYERROR;
}
}
if (definedPhase == -1) {
definedPhase = modsecurity::Phases::RequestHeadersPhase;
}
if (hasDisruptive == false) {
driver.error(yystack_[2].location, "SecDefaultAction must specify a disruptive action.");
YYERROR;
}
if (!driver.m_defaultActions[definedPhase].empty()) {
std::stringstream ss;
ss << "SecDefaultActions can only be placed once per phase and configuration context. Phase ";
ss << secRuleDefinedPhase;
ss << " was informed already.";
driver.error(yystack_[2].location, ss.str());
YYERROR;
}
for (actions::Action *a : checkedActions) {
driver.m_defaultActions[definedPhase].push_back(a);
}
delete actions;
}
#line 1920 "seclang-parser.cc" // lalr1.cc:859
break;
case 78:
#line 1228 "seclang-parser.yy" // lalr1.cc:859
{
driver.addSecMarker(modsecurity::utils::string::removeBracketsIfNeeded(yystack_[0].value.as< std::string > ()));
}
#line 1928 "seclang-parser.cc" // lalr1.cc:859
break;
case 79:
#line 1232 "seclang-parser.yy" // lalr1.cc:859
{
driver.m_secRuleEngine = modsecurity::Rules::DisabledRuleEngine;
}
#line 1936 "seclang-parser.cc" // lalr1.cc:859
break;
case 80:
#line 1236 "seclang-parser.yy" // lalr1.cc:859
{
driver.m_secRuleEngine = modsecurity::Rules::EnabledRuleEngine;
}
#line 1944 "seclang-parser.cc" // lalr1.cc:859
break;
case 81:
#line 1240 "seclang-parser.yy" // lalr1.cc:859
{
driver.m_secRuleEngine = modsecurity::Rules::DetectionOnlyRuleEngine;
}
#line 1952 "seclang-parser.cc" // lalr1.cc:859
break;
case 82:
#line 1244 "seclang-parser.yy" // lalr1.cc:859
{
driver.m_secRequestBodyAccess = modsecurity::RulesProperties::TrueConfigBoolean;
}
#line 1960 "seclang-parser.cc" // lalr1.cc:859
break;
case 83:
#line 1248 "seclang-parser.yy" // lalr1.cc:859
{
driver.m_secRequestBodyAccess = modsecurity::RulesProperties::FalseConfigBoolean;
}
#line 1968 "seclang-parser.cc" // lalr1.cc:859
break;
case 84:
#line 1252 "seclang-parser.yy" // lalr1.cc:859
{
driver.m_secResponseBodyAccess = modsecurity::RulesProperties::TrueConfigBoolean;
}
#line 1976 "seclang-parser.cc" // lalr1.cc:859
break;
case 85:
#line 1256 "seclang-parser.yy" // lalr1.cc:859
{
driver.m_secResponseBodyAccess = modsecurity::RulesProperties::FalseConfigBoolean;
}
#line 1984 "seclang-parser.cc" // lalr1.cc:859
break;
case 86:
#line 1260 "seclang-parser.yy" // lalr1.cc:859
{
if (yystack_[0].value.as< std::string > ().length() != 1) {
driver.error(yystack_[1].location, "Argument separator should be set to a single character.");
YYERROR;
}
driver.m_secArgumentSeparator.m_value = yystack_[0].value.as< std::string > ();
driver.m_secArgumentSeparator.m_set = true;
}
#line 1997 "seclang-parser.cc" // lalr1.cc:859
break;
case 87:
#line 1269 "seclang-parser.yy" // lalr1.cc:859
{
driver.m_components.push_back(yystack_[0].value.as< std::string > ());
}
#line 2005 "seclang-parser.cc" // lalr1.cc:859
break;
case 88:
#line 1273 "seclang-parser.yy" // lalr1.cc:859
{
driver.error(yystack_[2].location, "SecConnEngine is not yet supported.");
YYERROR;
}
#line 2014 "seclang-parser.cc" // lalr1.cc:859
break;
case 89:
#line 1278 "seclang-parser.yy" // lalr1.cc:859
{
}
#line 2021 "seclang-parser.cc" // lalr1.cc:859
break;
case 90:
#line 1281 "seclang-parser.yy" // lalr1.cc:859
{
driver.m_secWebAppId.m_value = yystack_[0].value.as< std::string > ();
driver.m_secWebAppId.m_set = true;
}
#line 2030 "seclang-parser.cc" // lalr1.cc:859
break;
case 91:
#line 1286 "seclang-parser.yy" // lalr1.cc:859
{
driver.error(yystack_[1].location, "SecServerSignature is not supported.");
YYERROR;
}
#line 2039 "seclang-parser.cc" // lalr1.cc:859
break;
case 92:
#line 1291 "seclang-parser.yy" // lalr1.cc:859
{
driver.error(yystack_[1].location, "SecCacheTransformations is not supported.");
YYERROR;
}
#line 2048 "seclang-parser.cc" // lalr1.cc:859
break;
case 93:
#line 1296 "seclang-parser.yy" // lalr1.cc:859
{
driver.error(yystack_[2].location, "SecDisableBackendCompression is not supported.");
YYERROR;
}
#line 2057 "seclang-parser.cc" // lalr1.cc:859
break;
case 94:
#line 1301 "seclang-parser.yy" // lalr1.cc:859
{
}
#line 2064 "seclang-parser.cc" // lalr1.cc:859
break;
case 95:
#line 1304 "seclang-parser.yy" // lalr1.cc:859
{
driver.error(yystack_[2].location, "SecContentInjection is not yet supported.");
YYERROR;
}
#line 2073 "seclang-parser.cc" // lalr1.cc:859
break;
case 96:
#line 1309 "seclang-parser.yy" // lalr1.cc:859
{
}
#line 2080 "seclang-parser.cc" // lalr1.cc:859
break;
case 97:
#line 1312 "seclang-parser.yy" // lalr1.cc:859
{
driver.error(yystack_[1].location, "SecChrootDir is not supported.");
YYERROR;
}
#line 2089 "seclang-parser.cc" // lalr1.cc:859
break;
case 98:
#line 1317 "seclang-parser.yy" // lalr1.cc:859
{
driver.error(yystack_[2].location, "SecHashEngine is not yet supported.");
YYERROR;
}
#line 2098 "seclang-parser.cc" // lalr1.cc:859
break;
case 99:
#line 1322 "seclang-parser.yy" // lalr1.cc:859
{
}
#line 2105 "seclang-parser.cc" // lalr1.cc:859
break;
case 100:
#line 1325 "seclang-parser.yy" // lalr1.cc:859
{
driver.error(yystack_[1].location, "SecHashKey is not yet supported.");
YYERROR;
}
#line 2114 "seclang-parser.cc" // lalr1.cc:859
break;
case 101:
#line 1330 "seclang-parser.yy" // lalr1.cc:859
{
driver.error(yystack_[1].location, "SecHashParam is not yet supported.");
YYERROR;
}
#line 2123 "seclang-parser.cc" // lalr1.cc:859
break;
case 102:
#line 1335 "seclang-parser.yy" // lalr1.cc:859
{
driver.error(yystack_[1].location, "SecHashMethodRx is not yet supported.");
YYERROR;
}
#line 2132 "seclang-parser.cc" // lalr1.cc:859
break;
case 103:
#line 1340 "seclang-parser.yy" // lalr1.cc:859
{
driver.error(yystack_[1].location, "SecHashMethodPm is not yet supported.");
YYERROR;
}
#line 2141 "seclang-parser.cc" // lalr1.cc:859
break;
case 104:
#line 1345 "seclang-parser.yy" // lalr1.cc:859
{
driver.error(yystack_[1].location, "SecGsbLookupDb is not supported.");
YYERROR;
}
#line 2150 "seclang-parser.cc" // lalr1.cc:859
break;
case 105:
#line 1350 "seclang-parser.yy" // lalr1.cc:859
{
driver.error(yystack_[1].location, "SecGuardianLog is not supported.");
YYERROR;
}
#line 2159 "seclang-parser.cc" // lalr1.cc:859
break;
case 106:
#line 1355 "seclang-parser.yy" // lalr1.cc:859
{
driver.error(yystack_[2].location, "SecInterceptOnError is not yet supported.");
YYERROR;
}
#line 2168 "seclang-parser.cc" // lalr1.cc:859
break;
case 107:
#line 1360 "seclang-parser.yy" // lalr1.cc:859
{
}
#line 2175 "seclang-parser.cc" // lalr1.cc:859
break;
case 108:
#line 1363 "seclang-parser.yy" // lalr1.cc:859
{
driver.error(yystack_[1].location, "SecConnReadStateLimit is not yet supported.");
YYERROR;
}
#line 2184 "seclang-parser.cc" // lalr1.cc:859
break;
case 109:
#line 1368 "seclang-parser.yy" // lalr1.cc:859
{
driver.error(yystack_[1].location, "SecConnWriteStateLimit is not yet supported.");
YYERROR;
}
#line 2193 "seclang-parser.cc" // lalr1.cc:859
break;
case 110:
#line 1373 "seclang-parser.yy" // lalr1.cc:859
{
driver.error(yystack_[1].location, "SecSensorId is not yet supported.");
YYERROR;
}
#line 2202 "seclang-parser.cc" // lalr1.cc:859
break;
case 111:
#line 1378 "seclang-parser.yy" // lalr1.cc:859
{
driver.error(yystack_[2].location, "SecRuleInheritance is not yet supported.");
YYERROR;
}
#line 2211 "seclang-parser.cc" // lalr1.cc:859
break;
case 112:
#line 1383 "seclang-parser.yy" // lalr1.cc:859
{
}
#line 2218 "seclang-parser.cc" // lalr1.cc:859
break;
case 113:
#line 1386 "seclang-parser.yy" // lalr1.cc:859
{
driver.error(yystack_[1].location, "SecRulePerfTime is not yet supported.");
YYERROR;
}
#line 2227 "seclang-parser.cc" // lalr1.cc:859
break;
case 114:
#line 1391 "seclang-parser.yy" // lalr1.cc:859
{
driver.error(yystack_[1].location, "SecStreamInBodyInspection is not supported.");
YYERROR;
}
#line 2236 "seclang-parser.cc" // lalr1.cc:859
break;
case 115:
#line 1396 "seclang-parser.yy" // lalr1.cc:859
{
driver.error(yystack_[1].location, "SecStreamOutBodyInspection is not supported.");
YYERROR;
}
#line 2245 "seclang-parser.cc" // lalr1.cc:859
break;
case 116:
#line 1401 "seclang-parser.yy" // lalr1.cc:859
{
std::string error;
if (driver.m_exceptions.load(yystack_[0].value.as< std::string > (), &error) == false) {
std::stringstream ss;
ss << "SecRuleRemoveById: failed to load:";
ss << yystack_[0].value.as< std::string > ();
ss << ". ";
ss << error;
driver.error(yystack_[1].location, ss.str());
YYERROR;
}
}
#line 2262 "seclang-parser.cc" // lalr1.cc:859
break;
case 117:
#line 1414 "seclang-parser.yy" // lalr1.cc:859
{
std::string error;
if (driver.m_exceptions.loadRemoveRuleByTag(yystack_[0].value.as< std::string > (), &error) == false) {
std::stringstream ss;
ss << "SecRuleRemoveByTag: failed to load:";
ss << yystack_[0].value.as< std::string > ();
ss << ". ";
ss << error;
driver.error(yystack_[1].location, ss.str());
YYERROR;
}
}
#line 2279 "seclang-parser.cc" // lalr1.cc:859
break;
case 118:
#line 1427 "seclang-parser.yy" // lalr1.cc:859
{
std::string error;
if (driver.m_exceptions.loadRemoveRuleByMsg(yystack_[0].value.as< std::string > (), &error) == false) {
std::stringstream ss;
ss << "SecRuleRemoveByMsg: failed to load:";
ss << yystack_[0].value.as< std::string > ();
ss << ". ";
ss << error;
driver.error(yystack_[1].location, ss.str());
YYERROR;
}
}
#line 2296 "seclang-parser.cc" // lalr1.cc:859
break;
case 119:
#line 1440 "seclang-parser.yy" // lalr1.cc:859
{
std::string error;
if (driver.m_exceptions.loadUpdateTargetByTag(yystack_[1].value.as< std::string > (), std::move(yystack_[0].value.as< std::unique_ptr<std::vector<std::unique_ptr<Variable> > > > ()), &error) == false) {
std::stringstream ss;
ss << "SecRuleUpdateTargetByTag: failed to load:";
ss << yystack_[1].value.as< std::string > ();
ss << ". ";
ss << error;
driver.error(yystack_[2].location, ss.str());
YYERROR;
}
}
#line 2313 "seclang-parser.cc" // lalr1.cc:859
break;
case 120:
#line 1453 "seclang-parser.yy" // lalr1.cc:859
{
std::string error;
if (driver.m_exceptions.loadUpdateTargetByMsg(yystack_[1].value.as< std::string > (), std::move(yystack_[0].value.as< std::unique_ptr<std::vector<std::unique_ptr<Variable> > > > ()), &error) == false) {
std::stringstream ss;
ss << "SecRuleUpdateTargetByMsg: failed to load:";
ss << yystack_[1].value.as< std::string > ();
ss << ". ";
ss << error;
driver.error(yystack_[2].location, ss.str());
YYERROR;
}
}
#line 2330 "seclang-parser.cc" // lalr1.cc:859
break;
case 121:
#line 1466 "seclang-parser.yy" // lalr1.cc:859
{
std::string error;
double ruleId;
try {
ruleId = std::stod(yystack_[1].value.as< std::string > ());
} catch (...) {
std::stringstream ss;
ss << "SecRuleUpdateTargetById: failed to load:";
ss << "The input \"" + yystack_[1].value.as< std::string > () + "\" does not ";
ss << "seems to be a valid rule id.";
ss << ". ";
driver.error(yystack_[2].location, ss.str());
YYERROR;
}
if (driver.m_exceptions.loadUpdateTargetById(ruleId, std::move(yystack_[0].value.as< std::unique_ptr<std::vector<std::unique_ptr<Variable> > > > ()), &error) == false) {
std::stringstream ss;
ss << "SecRuleUpdateTargetById: failed to load:";
ss << yystack_[1].value.as< std::string > ();
ss << ". ";
ss << error;
driver.error(yystack_[2].location, ss.str());
YYERROR;
}
}
#line 2360 "seclang-parser.cc" // lalr1.cc:859
break;
case 122:
#line 1492 "seclang-parser.yy" // lalr1.cc:859
{
std::string error;
double ruleId;
try {
ruleId = std::stod(yystack_[1].value.as< std::string > ());
} catch (...) {
std::stringstream ss;
ss << "SecRuleUpdateActionById: failed to load:";
ss << "The input \"" + yystack_[1].value.as< std::string > () + "\" does not ";
ss << "seems to be a valid rule id.";
ss << ". ";
driver.error(yystack_[2].location, ss.str());
YYERROR;
}
std::vector<actions::Action *> *a = new std::vector<actions::Action *>();
for (auto &i : *yystack_[0].value.as< std::unique_ptr<std::vector<std::unique_ptr<actions::Action> > > > ().get()) {
a->push_back(i.release());
}
driver.error(yystack_[2].location, "SecRuleUpdateActionById is not yet supported");
YYERROR;
}
#line 2389 "seclang-parser.cc" // lalr1.cc:859
break;
case 123:
#line 1518 "seclang-parser.yy" // lalr1.cc:859
{
if (driver.m_debugLog != NULL) {
driver.m_debugLog->setDebugLogLevel(atoi(yystack_[0].value.as< std::string > ().c_str()));
} else {
std::stringstream ss;
ss << "Internal error, there is no DebugLog ";
ss << "object associated with the driver class";
driver.error(yystack_[1].location, ss.str());
YYERROR;
}
}
#line 2405 "seclang-parser.cc" // lalr1.cc:859
break;
case 124:
#line 1530 "seclang-parser.yy" // lalr1.cc:859
{
if (driver.m_debugLog != NULL) {
std::string error;
driver.m_debugLog->setDebugLogFile(yystack_[0].value.as< std::string > (), &error);
if (error.size() > 0) {
std::stringstream ss;
ss << "Failed to start DebugLog: " << error;
driver.error(yystack_[1].location, ss.str());
YYERROR;
}
} else {
std::stringstream ss;
ss << "Internal error, there is no DebugLog ";
ss << "object associated with the driver class";
driver.error(yystack_[1].location, ss.str());
YYERROR;
}
}
#line 2428 "seclang-parser.cc" // lalr1.cc:859
break;
case 125:
#line 1550 "seclang-parser.yy" // lalr1.cc:859
{
#ifdef WITH_GEOIP
std::string err;
std::string file = modsecurity::utils::find_resource(yystack_[0].value.as< std::string > (),
driver.ref.back(), &err);
if (file.empty()) {
std::stringstream ss;
ss << "Failed to load locate the GeoDB file from: " << yystack_[0].value.as< std::string > () << " ";
ss << err;
driver.error(yystack_[1].location, ss.str());
YYERROR;
}
if (GeoLookup::getInstance().setDataBase(file, &err) == false) {
std::stringstream ss;
ss << "Failed to load the GeoDB from: ";
ss << file << ". " << err;
driver.error(yystack_[1].location, ss.str());
YYERROR;
}
#else
std::stringstream ss;
ss << "This version of ModSecurity was not compiled with GeoIP support.";
driver.error(yystack_[1].location, ss.str());
YYERROR;
#endif // WITH_GEOIP
}
#line 2459 "seclang-parser.cc" // lalr1.cc:859
break;
case 126:
#line 1578 "seclang-parser.yy" // lalr1.cc:859
{
driver.m_requestBodyLimit.m_set = true;
driver.m_requestBodyLimit.m_value = atoi(yystack_[0].value.as< std::string > ().c_str());
}
#line 2468 "seclang-parser.cc" // lalr1.cc:859
break;
case 127:
#line 1583 "seclang-parser.yy" // lalr1.cc:859
{
driver.m_requestBodyNoFilesLimit.m_set = true;
driver.m_requestBodyNoFilesLimit.m_value = atoi(yystack_[0].value.as< std::string > ().c_str());
}
#line 2477 "seclang-parser.cc" // lalr1.cc:859
break;
case 128:
#line 1588 "seclang-parser.yy" // lalr1.cc:859
{
std::stringstream ss;
ss << "As of ModSecurity version 3.0, SecRequestBodyInMemoryLimit is no longer ";
ss << "supported. Instead, you can use your web server configurations to control ";
ss << "those values. ModSecurity will follow the web server decision.";
driver.error(yystack_[1].location, ss.str());
YYERROR;
}
#line 2490 "seclang-parser.cc" // lalr1.cc:859
break;
case 129:
#line 1597 "seclang-parser.yy" // lalr1.cc:859
{
driver.m_responseBodyLimit.m_set = true;
driver.m_responseBodyLimit.m_value = atoi(yystack_[0].value.as< std::string > ().c_str());
}
#line 2499 "seclang-parser.cc" // lalr1.cc:859
break;
case 130:
#line 1602 "seclang-parser.yy" // lalr1.cc:859
{
driver.m_requestBodyLimitAction = modsecurity::Rules::BodyLimitAction::ProcessPartialBodyLimitAction;
}
#line 2507 "seclang-parser.cc" // lalr1.cc:859
break;
case 131:
#line 1606 "seclang-parser.yy" // lalr1.cc:859
{
driver.m_requestBodyLimitAction = modsecurity::Rules::BodyLimitAction::RejectBodyLimitAction;
}
#line 2515 "seclang-parser.cc" // lalr1.cc:859
break;
case 132:
#line 1610 "seclang-parser.yy" // lalr1.cc:859
{
driver.m_responseBodyLimitAction = modsecurity::Rules::BodyLimitAction::ProcessPartialBodyLimitAction;
}
#line 2523 "seclang-parser.cc" // lalr1.cc:859
break;
case 133:
#line 1614 "seclang-parser.yy" // lalr1.cc:859
{
driver.m_responseBodyLimitAction = modsecurity::Rules::BodyLimitAction::RejectBodyLimitAction;
}
#line 2531 "seclang-parser.cc" // lalr1.cc:859
break;
case 134:
#line 1618 "seclang-parser.yy" // lalr1.cc:859
{
driver.m_remoteRulesActionOnFailed = Rules::OnFailedRemoteRulesAction::AbortOnFailedRemoteRulesAction;
}
#line 2539 "seclang-parser.cc" // lalr1.cc:859
break;
case 135:
#line 1622 "seclang-parser.yy" // lalr1.cc:859
{
driver.m_remoteRulesActionOnFailed = Rules::OnFailedRemoteRulesAction::WarnOnFailedRemoteRulesAction;
}
#line 2547 "seclang-parser.cc" // lalr1.cc:859
break;
case 138:
#line 1636 "seclang-parser.yy" // lalr1.cc:859
{
std::istringstream buf(yystack_[0].value.as< std::string > ());
std::istream_iterator<std::string> beg(buf), end;
std::set<std::string> tokens(beg, end);
driver.m_responseBodyTypeToBeInspected.m_set = true;
for (std::set<std::string>::iterator it=tokens.begin();
it!=tokens.end(); ++it)
{
driver.m_responseBodyTypeToBeInspected.m_value.insert(*it);
}
}
#line 2563 "seclang-parser.cc" // lalr1.cc:859
break;
case 139:
#line 1648 "seclang-parser.yy" // lalr1.cc:859
{
driver.m_responseBodyTypeToBeInspected.m_set = true;
driver.m_responseBodyTypeToBeInspected.m_clear = true;
driver.m_responseBodyTypeToBeInspected.m_value.clear();
}
#line 2573 "seclang-parser.cc" // lalr1.cc:859
break;
case 140:
#line 1654 "seclang-parser.yy" // lalr1.cc:859
{
driver.m_secXMLExternalEntity = modsecurity::RulesProperties::FalseConfigBoolean;
}
#line 2581 "seclang-parser.cc" // lalr1.cc:859
break;
case 141:
#line 1658 "seclang-parser.yy" // lalr1.cc:859
{
driver.m_secXMLExternalEntity = modsecurity::RulesProperties::TrueConfigBoolean;
}
#line 2589 "seclang-parser.cc" // lalr1.cc:859
break;
case 142:
#line 1662 "seclang-parser.yy" // lalr1.cc:859
{
/* Parser error disabled to avoid breaking default installations with modsecurity.conf-recommended
std::stringstream ss;
ss << "As of ModSecurity version 3.0, SecTmpDir is no longer supported.";
ss << " Instead, you can use your web server configurations to control when";
ss << "and where to swap. ModSecurity will follow the web server decision.";
driver.error(@0, ss.str());
YYERROR;
*/
}
#line 2604 "seclang-parser.cc" // lalr1.cc:859
break;
case 145:
#line 1683 "seclang-parser.yy" // lalr1.cc:859
{
if (atoi(yystack_[0].value.as< std::string > ().c_str()) == 1) {
driver.error(yystack_[1].location, "SecCookieFormat 1 is not yet supported.");
YYERROR;
}
}
#line 2615 "seclang-parser.cc" // lalr1.cc:859
break;
case 146:
#line 1690 "seclang-parser.yy" // lalr1.cc:859
{
driver.error(yystack_[1].location, "SecCookieV0Separator is not yet supported.");
YYERROR;
}
#line 2624 "seclang-parser.cc" // lalr1.cc:859
break;
case 149:
#line 1705 "seclang-parser.yy" // lalr1.cc:859
{
/* Parser error disabled to avoid breaking default CRS installations with crs-setup.conf-recommended
driver.error(@0, "SecCollectionTimeout is not yet supported.");
YYERROR;
*/
}
#line 2635 "seclang-parser.cc" // lalr1.cc:859
break;
case 150:
#line 1712 "seclang-parser.yy" // lalr1.cc:859
{
driver.m_httpblKey.m_set = true;
driver.m_httpblKey.m_value = yystack_[0].value.as< std::string > ();
}
#line 2644 "seclang-parser.cc" // lalr1.cc:859
break;
case 151:
#line 1720 "seclang-parser.yy" // lalr1.cc:859
{
yylhs.value.as< std::unique_ptr<std::vector<std::unique_ptr<Variable> > > > () = std::move(yystack_[0].value.as< std::unique_ptr<std::vector<std::unique_ptr<Variable> > > > ());
}
#line 2652 "seclang-parser.cc" // lalr1.cc:859
break;
case 152:
#line 1724 "seclang-parser.yy" // lalr1.cc:859
{
yylhs.value.as< std::unique_ptr<std::vector<std::unique_ptr<Variable> > > > () = std::move(yystack_[1].value.as< std::unique_ptr<std::vector<std::unique_ptr<Variable> > > > ());
}
#line 2660 "seclang-parser.cc" // lalr1.cc:859
break;
case 153:
#line 1731 "seclang-parser.yy" // lalr1.cc:859
{
yystack_[2].value.as< std::unique_ptr<std::vector<std::unique_ptr<Variable> > > > ()->push_back(std::move(yystack_[0].value.as< std::unique_ptr<Variable> > ()));
yylhs.value.as< std::unique_ptr<std::vector<std::unique_ptr<Variable> > > > () = std::move(yystack_[2].value.as< std::unique_ptr<std::vector<std::unique_ptr<Variable> > > > ());
}
#line 2669 "seclang-parser.cc" // lalr1.cc:859
break;
case 154:
#line 1736 "seclang-parser.yy" // lalr1.cc:859
{
std::unique_ptr<Variable> c(new VariableModificatorExclusion(std::move(yystack_[0].value.as< std::unique_ptr<Variable> > ())));
yystack_[3].value.as< std::unique_ptr<std::vector<std::unique_ptr<Variable> > > > ()->push_back(std::move(c));
yylhs.value.as< std::unique_ptr<std::vector<std::unique_ptr<Variable> > > > () = std::move(yystack_[3].value.as< std::unique_ptr<std::vector<std::unique_ptr<Variable> > > > ());
}
#line 2679 "seclang-parser.cc" // lalr1.cc:859
break;
case 155:
#line 1742 "seclang-parser.yy" // lalr1.cc:859
{
std::unique_ptr<Variable> c(new VariableModificatorCount(std::move(yystack_[0].value.as< std::unique_ptr<Variable> > ())));
yystack_[3].value.as< std::unique_ptr<std::vector<std::unique_ptr<Variable> > > > ()->push_back(std::move(c));
yylhs.value.as< std::unique_ptr<std::vector<std::unique_ptr<Variable> > > > () = std::move(yystack_[3].value.as< std::unique_ptr<std::vector<std::unique_ptr<Variable> > > > ());
}
#line 2689 "seclang-parser.cc" // lalr1.cc:859
break;
case 156:
#line 1748 "seclang-parser.yy" // lalr1.cc:859
{
std::unique_ptr<std::vector<std::unique_ptr<Variable>>> b(new std::vector<std::unique_ptr<Variable>>());
b->push_back(std::move(yystack_[0].value.as< std::unique_ptr<Variable> > ()));
yylhs.value.as< std::unique_ptr<std::vector<std::unique_ptr<Variable> > > > () = std::move(b);
}
#line 2699 "seclang-parser.cc" // lalr1.cc:859
break;
case 157:
#line 1754 "seclang-parser.yy" // lalr1.cc:859
{
std::unique_ptr<std::vector<std::unique_ptr<Variable>>> b(new std::vector<std::unique_ptr<Variable>>());
std::unique_ptr<Variable> c(new VariableModificatorExclusion(std::move(yystack_[0].value.as< std::unique_ptr<Variable> > ())));
b->push_back(std::move(c));
yylhs.value.as< std::unique_ptr<std::vector<std::unique_ptr<Variable> > > > () = std::move(b);
}
#line 2710 "seclang-parser.cc" // lalr1.cc:859
break;
case 158:
#line 1761 "seclang-parser.yy" // lalr1.cc:859
{
std::unique_ptr<std::vector<std::unique_ptr<Variable>>> b(new std::vector<std::unique_ptr<Variable>>());
std::unique_ptr<Variable> c(new VariableModificatorCount(std::move(yystack_[0].value.as< std::unique_ptr<Variable> > ())));
b->push_back(std::move(c));
yylhs.value.as< std::unique_ptr<std::vector<std::unique_ptr<Variable> > > > () = std::move(b);
}
#line 2721 "seclang-parser.cc" // lalr1.cc:859
break;
case 159:
#line 1771 "seclang-parser.yy" // lalr1.cc:859
{
VARIABLE_CONTAINER(yylhs.value.as< std::unique_ptr<Variable> > (), new Variables::Args_DictElement(yystack_[0].value.as< std::string > ()));
}
#line 2729 "seclang-parser.cc" // lalr1.cc:859
break;
case 160:
#line 1775 "seclang-parser.yy" // lalr1.cc:859
{
VARIABLE_CONTAINER(yylhs.value.as< std::unique_ptr<Variable> > (), new Variables::Args_DictElementRegexp(yystack_[0].value.as< std::string > ()));
}
#line 2737 "seclang-parser.cc" // lalr1.cc:859
break;
case 161:
#line 1779 "seclang-parser.yy" // lalr1.cc:859
{
VARIABLE_CONTAINER(yylhs.value.as< std::unique_ptr<Variable> > (), new Variables::Args_NoDictElement());
}
#line 2745 "seclang-parser.cc" // lalr1.cc:859
break;
case 162:
#line 1783 "seclang-parser.yy" // lalr1.cc:859
{
VARIABLE_CONTAINER(yylhs.value.as< std::unique_ptr<Variable> > (), new Variables::ArgsPost_DictElement(yystack_[0].value.as< std::string > ()));
}
#line 2753 "seclang-parser.cc" // lalr1.cc:859
break;
case 163:
#line 1787 "seclang-parser.yy" // lalr1.cc:859
{
VARIABLE_CONTAINER(yylhs.value.as< std::unique_ptr<Variable> > (), new Variables::ArgsPost_DictElementRegexp(yystack_[0].value.as< std::string > ()));
}
#line 2761 "seclang-parser.cc" // lalr1.cc:859
break;
case 164:
#line 1791 "seclang-parser.yy" // lalr1.cc:859
{
VARIABLE_CONTAINER(yylhs.value.as< std::unique_ptr<Variable> > (), new Variables::ArgsPost_NoDictElement());
}
#line 2769 "seclang-parser.cc" // lalr1.cc:859
break;
case 165:
#line 1795 "seclang-parser.yy" // lalr1.cc:859
{
VARIABLE_CONTAINER(yylhs.value.as< std::unique_ptr<Variable> > (), new Variables::ArgsGet_DictElement(yystack_[0].value.as< std::string > ()));
}
#line 2777 "seclang-parser.cc" // lalr1.cc:859
break;
case 166:
#line 1799 "seclang-parser.yy" // lalr1.cc:859
{
VARIABLE_CONTAINER(yylhs.value.as< std::unique_ptr<Variable> > (), new Variables::ArgsGet_DictElementRegexp(yystack_[0].value.as< std::string > ()));
}
#line 2785 "seclang-parser.cc" // lalr1.cc:859
break;
case 167:
#line 1803 "seclang-parser.yy" // lalr1.cc:859
{
VARIABLE_CONTAINER(yylhs.value.as< std::unique_ptr<Variable> > (), new Variables::ArgsGet_NoDictElement());
}
#line 2793 "seclang-parser.cc" // lalr1.cc:859
break;
case 168:
#line 1807 "seclang-parser.yy" // lalr1.cc:859
{
VARIABLE_CONTAINER(yylhs.value.as< std::unique_ptr<Variable> > (), new Variables::FilesSizes_DictElement(yystack_[0].value.as< std::string > ()));
}
#line 2801 "seclang-parser.cc" // lalr1.cc:859
break;
case 169:
#line 1811 "seclang-parser.yy" // lalr1.cc:859
{
VARIABLE_CONTAINER(yylhs.value.as< std::unique_ptr<Variable> > (), new Variables::FilesSizes_DictElementRegexp(yystack_[0].value.as< std::string > ()));
}
#line 2809 "seclang-parser.cc" // lalr1.cc:859
break;
case 170:
#line 1815 "seclang-parser.yy" // lalr1.cc:859
{
VARIABLE_CONTAINER(yylhs.value.as< std::unique_ptr<Variable> > (), new Variables::FilesSizes_NoDictElement());
}
#line 2817 "seclang-parser.cc" // lalr1.cc:859
break;
case 171:
#line 1819 "seclang-parser.yy" // lalr1.cc:859
{
VARIABLE_CONTAINER(yylhs.value.as< std::unique_ptr<Variable> > (), new Variables::FilesNames_DictElement(yystack_[0].value.as< std::string > ()));
}
#line 2825 "seclang-parser.cc" // lalr1.cc:859
break;
case 172:
#line 1823 "seclang-parser.yy" // lalr1.cc:859
{
VARIABLE_CONTAINER(yylhs.value.as< std::unique_ptr<Variable> > (), new Variables::FilesNames_DictElementRegexp(yystack_[0].value.as< std::string > ()));
}
#line 2833 "seclang-parser.cc" // lalr1.cc:859
break;
case 173:
#line 1827 "seclang-parser.yy" // lalr1.cc:859
{
VARIABLE_CONTAINER(yylhs.value.as< std::unique_ptr<Variable> > (), new Variables::FilesNames_NoDictElement());
}
#line 2841 "seclang-parser.cc" // lalr1.cc:859
break;
case 174:
#line 1831 "seclang-parser.yy" // lalr1.cc:859
{
VARIABLE_CONTAINER(yylhs.value.as< std::unique_ptr<Variable> > (), new Variables::FilesTmpContent_DictElement(yystack_[0].value.as< std::string > ()));
}
#line 2849 "seclang-parser.cc" // lalr1.cc:859
break;
case 175:
#line 1835 "seclang-parser.yy" // lalr1.cc:859
{
VARIABLE_CONTAINER(yylhs.value.as< std::unique_ptr<Variable> > (), new Variables::FilesTmpContent_DictElementRegexp(yystack_[0].value.as< std::string > ()));
}
#line 2857 "seclang-parser.cc" // lalr1.cc:859
break;
case 176:
#line 1839 "seclang-parser.yy" // lalr1.cc:859
{
VARIABLE_CONTAINER(yylhs.value.as< std::unique_ptr<Variable> > (), new Variables::FilesTmpContent_NoDictElement());
}
#line 2865 "seclang-parser.cc" // lalr1.cc:859
break;
case 177:
#line 1843 "seclang-parser.yy" // lalr1.cc:859
{
VARIABLE_CONTAINER(yylhs.value.as< std::unique_ptr<Variable> > (), new Variables::MultiPartFileName_DictElement(yystack_[0].value.as< std::string > ()));
}
#line 2873 "seclang-parser.cc" // lalr1.cc:859
break;
case 178:
#line 1847 "seclang-parser.yy" // lalr1.cc:859
{
VARIABLE_CONTAINER(yylhs.value.as< std::unique_ptr<Variable> > (), new Variables::MultiPartFileName_DictElementRegexp(yystack_[0].value.as< std::string > ()));
}
#line 2881 "seclang-parser.cc" // lalr1.cc:859
break;
case 179:
#line 1851 "seclang-parser.yy" // lalr1.cc:859
{
VARIABLE_CONTAINER(yylhs.value.as< std::unique_ptr<Variable> > (), new Variables::MultiPartFileName_NoDictElement());
}
#line 2889 "seclang-parser.cc" // lalr1.cc:859
break;
case 180:
#line 1855 "seclang-parser.yy" // lalr1.cc:859
{
VARIABLE_CONTAINER(yylhs.value.as< std::unique_ptr<Variable> > (), new Variables::MultiPartName_DictElement(yystack_[0].value.as< std::string > ()));
}
#line 2897 "seclang-parser.cc" // lalr1.cc:859
break;
case 181:
#line 1859 "seclang-parser.yy" // lalr1.cc:859
{
VARIABLE_CONTAINER(yylhs.value.as< std::unique_ptr<Variable> > (), new Variables::MultiPartName_DictElementRegexp(yystack_[0].value.as< std::string > ()));
}
#line 2905 "seclang-parser.cc" // lalr1.cc:859
break;
case 182:
#line 1863 "seclang-parser.yy" // lalr1.cc:859
{
VARIABLE_CONTAINER(yylhs.value.as< std::unique_ptr<Variable> > (), new Variables::MultiPartName_NoDictElement());
}
#line 2913 "seclang-parser.cc" // lalr1.cc:859
break;
case 183:
#line 1867 "seclang-parser.yy" // lalr1.cc:859
{
VARIABLE_CONTAINER(yylhs.value.as< std::unique_ptr<Variable> > (), new Variables::MatchedVarsNames_DictElement(yystack_[0].value.as< std::string > ()));
}
#line 2921 "seclang-parser.cc" // lalr1.cc:859
break;
case 184:
#line 1871 "seclang-parser.yy" // lalr1.cc:859
{
VARIABLE_CONTAINER(yylhs.value.as< std::unique_ptr<Variable> > (), new Variables::MatchedVarsNames_DictElementRegexp(yystack_[0].value.as< std::string > ()));
}
#line 2929 "seclang-parser.cc" // lalr1.cc:859
break;
case 185:
#line 1875 "seclang-parser.yy" // lalr1.cc:859
{
VARIABLE_CONTAINER(yylhs.value.as< std::unique_ptr<Variable> > (), new Variables::MatchedVarsNames_NoDictElement());
}
#line 2937 "seclang-parser.cc" // lalr1.cc:859
break;
case 186:
#line 1879 "seclang-parser.yy" // lalr1.cc:859
{
VARIABLE_CONTAINER(yylhs.value.as< std::unique_ptr<Variable> > (), new Variables::MatchedVars_DictElement(yystack_[0].value.as< std::string > ()));
}
#line 2945 "seclang-parser.cc" // lalr1.cc:859
break;
case 187:
#line 1883 "seclang-parser.yy" // lalr1.cc:859
{
VARIABLE_CONTAINER(yylhs.value.as< std::unique_ptr<Variable> > (), new Variables::MatchedVars_DictElementRegexp(yystack_[0].value.as< std::string > ()));
}
#line 2953 "seclang-parser.cc" // lalr1.cc:859
break;
case 188:
#line 1887 "seclang-parser.yy" // lalr1.cc:859
{
VARIABLE_CONTAINER(yylhs.value.as< std::unique_ptr<Variable> > (), new Variables::MatchedVars_NoDictElement());
}
#line 2961 "seclang-parser.cc" // lalr1.cc:859
break;
case 189:
#line 1891 "seclang-parser.yy" // lalr1.cc:859
{
VARIABLE_CONTAINER(yylhs.value.as< std::unique_ptr<Variable> > (), new Variables::Files_DictElement(yystack_[0].value.as< std::string > ()));
}
#line 2969 "seclang-parser.cc" // lalr1.cc:859
break;
case 190:
#line 1895 "seclang-parser.yy" // lalr1.cc:859
{
VARIABLE_CONTAINER(yylhs.value.as< std::unique_ptr<Variable> > (), new Variables::Files_DictElementRegexp(yystack_[0].value.as< std::string > ()));
}
#line 2977 "seclang-parser.cc" // lalr1.cc:859
break;
case 191:
#line 1899 "seclang-parser.yy" // lalr1.cc:859
{
VARIABLE_CONTAINER(yylhs.value.as< std::unique_ptr<Variable> > (), new Variables::Files_NoDictElement());
}
#line 2985 "seclang-parser.cc" // lalr1.cc:859
break;
case 192:
#line 1903 "seclang-parser.yy" // lalr1.cc:859
{
VARIABLE_CONTAINER(yylhs.value.as< std::unique_ptr<Variable> > (), new Variables::RequestCookies_DictElement(yystack_[0].value.as< std::string > ()));
}
#line 2993 "seclang-parser.cc" // lalr1.cc:859
break;
case 193:
#line 1907 "seclang-parser.yy" // lalr1.cc:859
{
VARIABLE_CONTAINER(yylhs.value.as< std::unique_ptr<Variable> > (), new Variables::RequestCookies_DictElementRegexp(yystack_[0].value.as< std::string > ()));
}
#line 3001 "seclang-parser.cc" // lalr1.cc:859
break;
case 194:
#line 1911 "seclang-parser.yy" // lalr1.cc:859
{
VARIABLE_CONTAINER(yylhs.value.as< std::unique_ptr<Variable> > (), new Variables::RequestCookies_NoDictElement());
}
#line 3009 "seclang-parser.cc" // lalr1.cc:859
break;
case 195:
#line 1915 "seclang-parser.yy" // lalr1.cc:859
{
VARIABLE_CONTAINER(yylhs.value.as< std::unique_ptr<Variable> > (), new Variables::RequestHeaders_DictElement(yystack_[0].value.as< std::string > ()));
}
#line 3017 "seclang-parser.cc" // lalr1.cc:859
break;
case 196:
#line 1919 "seclang-parser.yy" // lalr1.cc:859
{
VARIABLE_CONTAINER(yylhs.value.as< std::unique_ptr<Variable> > (), new Variables::RequestHeaders_DictElementRegexp(yystack_[0].value.as< std::string > ()));
}
#line 3025 "seclang-parser.cc" // lalr1.cc:859
break;
case 197:
#line 1923 "seclang-parser.yy" // lalr1.cc:859
{
VARIABLE_CONTAINER(yylhs.value.as< std::unique_ptr<Variable> > (), new Variables::RequestHeaders_NoDictElement());
}
#line 3033 "seclang-parser.cc" // lalr1.cc:859
break;
case 198:
#line 1927 "seclang-parser.yy" // lalr1.cc:859
{
VARIABLE_CONTAINER(yylhs.value.as< std::unique_ptr<Variable> > (), new Variables::ResponseHeaders_DictElement(yystack_[0].value.as< std::string > ()));
}
#line 3041 "seclang-parser.cc" // lalr1.cc:859
break;
case 199:
#line 1931 "seclang-parser.yy" // lalr1.cc:859
{
VARIABLE_CONTAINER(yylhs.value.as< std::unique_ptr<Variable> > (), new Variables::ResponseHeaders_DictElementRegexp(yystack_[0].value.as< std::string > ()));
}
#line 3049 "seclang-parser.cc" // lalr1.cc:859
break;
case 200:
#line 1935 "seclang-parser.yy" // lalr1.cc:859
{
VARIABLE_CONTAINER(yylhs.value.as< std::unique_ptr<Variable> > (), new Variables::ResponseHeaders_NoDictElement());
}
#line 3057 "seclang-parser.cc" // lalr1.cc:859
break;
case 201:
#line 1939 "seclang-parser.yy" // lalr1.cc:859
{
VARIABLE_CONTAINER(yylhs.value.as< std::unique_ptr<Variable> > (), new Variables::Geo_DictElement(yystack_[0].value.as< std::string > ()));
}
#line 3065 "seclang-parser.cc" // lalr1.cc:859
break;
case 202:
#line 1943 "seclang-parser.yy" // lalr1.cc:859
{
VARIABLE_CONTAINER(yylhs.value.as< std::unique_ptr<Variable> > (), new Variables::Geo_DictElementRegexp(yystack_[0].value.as< std::string > ()));
}
#line 3073 "seclang-parser.cc" // lalr1.cc:859
break;
case 203:
#line 1947 "seclang-parser.yy" // lalr1.cc:859
{
VARIABLE_CONTAINER(yylhs.value.as< std::unique_ptr<Variable> > (), new Variables::Geo_NoDictElement());
}
#line 3081 "seclang-parser.cc" // lalr1.cc:859
break;
case 204:
#line 1951 "seclang-parser.yy" // lalr1.cc:859
{
VARIABLE_CONTAINER(yylhs.value.as< std::unique_ptr<Variable> > (), new Variables::RequestCookiesNames_DictElement(yystack_[0].value.as< std::string > ()));
}
#line 3089 "seclang-parser.cc" // lalr1.cc:859
break;
case 205:
#line 1955 "seclang-parser.yy" // lalr1.cc:859
{
VARIABLE_CONTAINER(yylhs.value.as< std::unique_ptr<Variable> > (), new Variables::RequestCookiesNames_DictElementRegexp(yystack_[0].value.as< std::string > ()));
}
#line 3097 "seclang-parser.cc" // lalr1.cc:859
break;
case 206:
#line 1959 "seclang-parser.yy" // lalr1.cc:859
{
VARIABLE_CONTAINER(yylhs.value.as< std::unique_ptr<Variable> > (), new Variables::RequestCookiesNames_NoDictElement());
}
#line 3105 "seclang-parser.cc" // lalr1.cc:859
break;
case 207:
#line 1963 "seclang-parser.yy" // lalr1.cc:859
{
VARIABLE_CONTAINER(yylhs.value.as< std::unique_ptr<Variable> > (), new Variables::Rule_DictElement(yystack_[0].value.as< std::string > ()));
}
#line 3113 "seclang-parser.cc" // lalr1.cc:859
break;
case 208:
#line 1967 "seclang-parser.yy" // lalr1.cc:859
{
VARIABLE_CONTAINER(yylhs.value.as< std::unique_ptr<Variable> > (), new Variables::Rule_DictElementRegexp(yystack_[0].value.as< std::string > ()));
}
#line 3121 "seclang-parser.cc" // lalr1.cc:859
break;
case 209:
#line 1971 "seclang-parser.yy" // lalr1.cc:859
{
VARIABLE_CONTAINER(yylhs.value.as< std::unique_ptr<Variable> > (), new Variables::Rule_NoDictElement());
}
#line 3129 "seclang-parser.cc" // lalr1.cc:859
break;
case 210:
#line 1975 "seclang-parser.yy" // lalr1.cc:859
{
VARIABLE_CONTAINER(yylhs.value.as< std::unique_ptr<Variable> > (), new Variables::Env("ENV:" + yystack_[0].value.as< std::string > ()));
}
#line 3137 "seclang-parser.cc" // lalr1.cc:859
break;
case 211:
#line 1979 "seclang-parser.yy" // lalr1.cc:859
{
VARIABLE_CONTAINER(yylhs.value.as< std::unique_ptr<Variable> > (), new Variables::Env("ENV:" + yystack_[0].value.as< std::string > ()));
}
#line 3145 "seclang-parser.cc" // lalr1.cc:859
break;
case 212:
#line 1983 "seclang-parser.yy" // lalr1.cc:859
{
VARIABLE_CONTAINER(yylhs.value.as< std::unique_ptr<Variable> > (), new Variables::Env("ENV"));
}
#line 3153 "seclang-parser.cc" // lalr1.cc:859
break;
case 213:
#line 1987 "seclang-parser.yy" // lalr1.cc:859
{
VARIABLE_CONTAINER(yylhs.value.as< std::unique_ptr<Variable> > (), new Variables::XML("XML:" + yystack_[0].value.as< std::string > ()));
}
#line 3161 "seclang-parser.cc" // lalr1.cc:859
break;
case 214:
#line 1991 "seclang-parser.yy" // lalr1.cc:859
{
VARIABLE_CONTAINER(yylhs.value.as< std::unique_ptr<Variable> > (), new Variables::XML("XML:" + yystack_[0].value.as< std::string > ()));
}
#line 3169 "seclang-parser.cc" // lalr1.cc:859
break;
case 215:
#line 1995 "seclang-parser.yy" // lalr1.cc:859
{
VARIABLE_CONTAINER(yylhs.value.as< std::unique_ptr<Variable> > (), new Variables::XML_NoDictElement());
}
#line 3177 "seclang-parser.cc" // lalr1.cc:859
break;
case 216:
#line 1999 "seclang-parser.yy" // lalr1.cc:859
{
VARIABLE_CONTAINER(yylhs.value.as< std::unique_ptr<Variable> > (), new Variables::FilesTmpNames_DictElement(yystack_[0].value.as< std::string > ()));
}
#line 3185 "seclang-parser.cc" // lalr1.cc:859
break;
case 217:
#line 2003 "seclang-parser.yy" // lalr1.cc:859
{
VARIABLE_CONTAINER(yylhs.value.as< std::unique_ptr<Variable> > (), new Variables::FilesTmpNames_DictElementRegexp(yystack_[0].value.as< std::string > ()));
}
#line 3193 "seclang-parser.cc" // lalr1.cc:859
break;
case 218:
#line 2007 "seclang-parser.yy" // lalr1.cc:859
{
VARIABLE_CONTAINER(yylhs.value.as< std::unique_ptr<Variable> > (), new Variables::FilesTmpNames_NoDictElement());
}
#line 3201 "seclang-parser.cc" // lalr1.cc:859
break;
case 219:
#line 2011 "seclang-parser.yy" // lalr1.cc:859
{
VARIABLE_CONTAINER(yylhs.value.as< std::unique_ptr<Variable> > (), new Variables::Resource_DynamicElement(std::move(yystack_[0].value.as< std::unique_ptr<RunTimeString> > ())));
}
#line 3209 "seclang-parser.cc" // lalr1.cc:859
break;
case 220:
#line 2015 "seclang-parser.yy" // lalr1.cc:859
{
VARIABLE_CONTAINER(yylhs.value.as< std::unique_ptr<Variable> > (), new Variables::Resource_DictElement(yystack_[0].value.as< std::string > ()));
}
#line 3217 "seclang-parser.cc" // lalr1.cc:859
break;
case 221:
#line 2019 "seclang-parser.yy" // lalr1.cc:859
{
VARIABLE_CONTAINER(yylhs.value.as< std::unique_ptr<Variable> > (), new Variables::Resource_DictElementRegexp(yystack_[0].value.as< std::string > ()));
}
#line 3225 "seclang-parser.cc" // lalr1.cc:859
break;
case 222:
#line 2023 "seclang-parser.yy" // lalr1.cc:859
{
VARIABLE_CONTAINER(yylhs.value.as< std::unique_ptr<Variable> > (), new Variables::Resource_NoDictElement());
}
#line 3233 "seclang-parser.cc" // lalr1.cc:859
break;
case 223:
#line 2027 "seclang-parser.yy" // lalr1.cc:859
{
VARIABLE_CONTAINER(yylhs.value.as< std::unique_ptr<Variable> > (), new Variables::Ip_DynamicElement(std::move(yystack_[0].value.as< std::unique_ptr<RunTimeString> > ())));
}
#line 3241 "seclang-parser.cc" // lalr1.cc:859
break;
case 224:
#line 2031 "seclang-parser.yy" // lalr1.cc:859
{
VARIABLE_CONTAINER(yylhs.value.as< std::unique_ptr<Variable> > (), new Variables::Ip_DictElement(yystack_[0].value.as< std::string > ()));
}
#line 3249 "seclang-parser.cc" // lalr1.cc:859
break;
case 225:
#line 2035 "seclang-parser.yy" // lalr1.cc:859
{
VARIABLE_CONTAINER(yylhs.value.as< std::unique_ptr<Variable> > (), new Variables::Ip_DictElementRegexp(yystack_[0].value.as< std::string > ()));
}
#line 3257 "seclang-parser.cc" // lalr1.cc:859
break;
case 226:
#line 2039 "seclang-parser.yy" // lalr1.cc:859
{
VARIABLE_CONTAINER(yylhs.value.as< std::unique_ptr<Variable> > (), new Variables::Ip_NoDictElement());
}
#line 3265 "seclang-parser.cc" // lalr1.cc:859
break;
case 227:
#line 2043 "seclang-parser.yy" // lalr1.cc:859
{
VARIABLE_CONTAINER(yylhs.value.as< std::unique_ptr<Variable> > (), new Variables::Global_DynamicElement(std::move(yystack_[0].value.as< std::unique_ptr<RunTimeString> > ())));
}
#line 3273 "seclang-parser.cc" // lalr1.cc:859
break;
case 228:
#line 2047 "seclang-parser.yy" // lalr1.cc:859
{
VARIABLE_CONTAINER(yylhs.value.as< std::unique_ptr<Variable> > (), new Variables::Global_DictElement(yystack_[0].value.as< std::string > ()));
}
#line 3281 "seclang-parser.cc" // lalr1.cc:859
break;
case 229:
#line 2051 "seclang-parser.yy" // lalr1.cc:859
{
VARIABLE_CONTAINER(yylhs.value.as< std::unique_ptr<Variable> > (), new Variables::Global_DictElementRegexp(yystack_[0].value.as< std::string > ()));
}
#line 3289 "seclang-parser.cc" // lalr1.cc:859
break;
case 230:
#line 2055 "seclang-parser.yy" // lalr1.cc:859
{
VARIABLE_CONTAINER(yylhs.value.as< std::unique_ptr<Variable> > (), new Variables::Global_NoDictElement());
}
#line 3297 "seclang-parser.cc" // lalr1.cc:859
break;
case 231:
#line 2059 "seclang-parser.yy" // lalr1.cc:859
{
VARIABLE_CONTAINER(yylhs.value.as< std::unique_ptr<Variable> > (), new Variables::User_DynamicElement(std::move(yystack_[0].value.as< std::unique_ptr<RunTimeString> > ())));
}
#line 3305 "seclang-parser.cc" // lalr1.cc:859
break;
case 232:
#line 2063 "seclang-parser.yy" // lalr1.cc:859
{
VARIABLE_CONTAINER(yylhs.value.as< std::unique_ptr<Variable> > (), new Variables::User_DictElement(yystack_[0].value.as< std::string > ()));
}
#line 3313 "seclang-parser.cc" // lalr1.cc:859
break;
case 233:
#line 2067 "seclang-parser.yy" // lalr1.cc:859
{
VARIABLE_CONTAINER(yylhs.value.as< std::unique_ptr<Variable> > (), new Variables::User_DictElementRegexp(yystack_[0].value.as< std::string > ()));
}
#line 3321 "seclang-parser.cc" // lalr1.cc:859
break;
case 234:
#line 2071 "seclang-parser.yy" // lalr1.cc:859
{
VARIABLE_CONTAINER(yylhs.value.as< std::unique_ptr<Variable> > (), new Variables::User_NoDictElement());
}
#line 3329 "seclang-parser.cc" // lalr1.cc:859
break;
case 235:
#line 2075 "seclang-parser.yy" // lalr1.cc:859
{
VARIABLE_CONTAINER(yylhs.value.as< std::unique_ptr<Variable> > (), new Variables::Tx_DynamicElement(std::move(yystack_[0].value.as< std::unique_ptr<RunTimeString> > ())));
}
#line 3337 "seclang-parser.cc" // lalr1.cc:859
break;
case 236:
#line 2079 "seclang-parser.yy" // lalr1.cc:859
{
VARIABLE_CONTAINER(yylhs.value.as< std::unique_ptr<Variable> > (), new Variables::Tx_DictElement(yystack_[0].value.as< std::string > ()));
}
#line 3345 "seclang-parser.cc" // lalr1.cc:859
break;
case 237:
#line 2083 "seclang-parser.yy" // lalr1.cc:859
{
VARIABLE_CONTAINER(yylhs.value.as< std::unique_ptr<Variable> > (), new Variables::Tx_DictElementRegexp(yystack_[0].value.as< std::string > ()));
}
#line 3353 "seclang-parser.cc" // lalr1.cc:859
break;
case 238:
#line 2087 "seclang-parser.yy" // lalr1.cc:859
{
VARIABLE_CONTAINER(yylhs.value.as< std::unique_ptr<Variable> > (), new Variables::Tx_NoDictElement());
}
#line 3361 "seclang-parser.cc" // lalr1.cc:859
break;
case 239:
#line 2091 "seclang-parser.yy" // lalr1.cc:859
{
VARIABLE_CONTAINER(yylhs.value.as< std::unique_ptr<Variable> > (), new Variables::Session_DynamicElement(std::move(yystack_[0].value.as< std::unique_ptr<RunTimeString> > ())));
}
#line 3369 "seclang-parser.cc" // lalr1.cc:859
break;
case 240:
#line 2095 "seclang-parser.yy" // lalr1.cc:859
{
VARIABLE_CONTAINER(yylhs.value.as< std::unique_ptr<Variable> > (), new Variables::Session_DictElement(yystack_[0].value.as< std::string > ()));
}
#line 3377 "seclang-parser.cc" // lalr1.cc:859
break;
case 241:
#line 2099 "seclang-parser.yy" // lalr1.cc:859
{
VARIABLE_CONTAINER(yylhs.value.as< std::unique_ptr<Variable> > (), new Variables::Session_DictElementRegexp(yystack_[0].value.as< std::string > ()));
}
#line 3385 "seclang-parser.cc" // lalr1.cc:859
break;
case 242:
#line 2103 "seclang-parser.yy" // lalr1.cc:859
{
VARIABLE_CONTAINER(yylhs.value.as< std::unique_ptr<Variable> > (), new Variables::Session_NoDictElement());
}
#line 3393 "seclang-parser.cc" // lalr1.cc:859
break;
case 243:
#line 2107 "seclang-parser.yy" // lalr1.cc:859
{
VARIABLE_CONTAINER(yylhs.value.as< std::unique_ptr<Variable> > (), new Variables::ArgsNames_DictElement(yystack_[0].value.as< std::string > ()));
}
#line 3401 "seclang-parser.cc" // lalr1.cc:859
break;
case 244:
#line 2111 "seclang-parser.yy" // lalr1.cc:859
{
VARIABLE_CONTAINER(yylhs.value.as< std::unique_ptr<Variable> > (), new Variables::ArgsNames_DictElementRegexp(yystack_[0].value.as< std::string > ()));
}
#line 3409 "seclang-parser.cc" // lalr1.cc:859
break;
case 245:
#line 2115 "seclang-parser.yy" // lalr1.cc:859
{
VARIABLE_CONTAINER(yylhs.value.as< std::unique_ptr<Variable> > (), new Variables::ArgsNames_NoDictElement());
}
#line 3417 "seclang-parser.cc" // lalr1.cc:859
break;
case 246:
#line 2119 "seclang-parser.yy" // lalr1.cc:859
{
VARIABLE_CONTAINER(yylhs.value.as< std::unique_ptr<Variable> > (), new Variables::ArgsGetNames_DictElement(yystack_[0].value.as< std::string > ()));
}
#line 3425 "seclang-parser.cc" // lalr1.cc:859
break;
case 247:
#line 2123 "seclang-parser.yy" // lalr1.cc:859
{
VARIABLE_CONTAINER(yylhs.value.as< std::unique_ptr<Variable> > (), new Variables::ArgsGetNames_DictElementRegexp(yystack_[0].value.as< std::string > ()));
}
#line 3433 "seclang-parser.cc" // lalr1.cc:859
break;
case 248:
#line 2127 "seclang-parser.yy" // lalr1.cc:859
{
VARIABLE_CONTAINER(yylhs.value.as< std::unique_ptr<Variable> > (), new Variables::ArgsGetNames_NoDictElement());
}
#line 3441 "seclang-parser.cc" // lalr1.cc:859
break;
case 249:
#line 2132 "seclang-parser.yy" // lalr1.cc:859
{
VARIABLE_CONTAINER(yylhs.value.as< std::unique_ptr<Variable> > (), new Variables::ArgsPostNames_DictElement(yystack_[0].value.as< std::string > ()));
}
#line 3449 "seclang-parser.cc" // lalr1.cc:859
break;
case 250:
#line 2136 "seclang-parser.yy" // lalr1.cc:859
{
VARIABLE_CONTAINER(yylhs.value.as< std::unique_ptr<Variable> > (), new Variables::ArgsPostNames_DictElementRegexp(yystack_[0].value.as< std::string > ()));
}
#line 3457 "seclang-parser.cc" // lalr1.cc:859
break;
case 251:
#line 2140 "seclang-parser.yy" // lalr1.cc:859
{
VARIABLE_CONTAINER(yylhs.value.as< std::unique_ptr<Variable> > (), new Variables::ArgsPostNames_NoDictElement());
}
#line 3465 "seclang-parser.cc" // lalr1.cc:859
break;
case 252:
#line 2145 "seclang-parser.yy" // lalr1.cc:859
{
VARIABLE_CONTAINER(yylhs.value.as< std::unique_ptr<Variable> > (), new Variables::RequestHeadersNames_DictElement(yystack_[0].value.as< std::string > ()));
}
#line 3473 "seclang-parser.cc" // lalr1.cc:859
break;
case 253:
#line 2149 "seclang-parser.yy" // lalr1.cc:859
{
VARIABLE_CONTAINER(yylhs.value.as< std::unique_ptr<Variable> > (), new Variables::RequestHeadersNames_DictElementRegexp(yystack_[0].value.as< std::string > ()));
}
#line 3481 "seclang-parser.cc" // lalr1.cc:859
break;
case 254:
#line 2153 "seclang-parser.yy" // lalr1.cc:859
{
VARIABLE_CONTAINER(yylhs.value.as< std::unique_ptr<Variable> > (), new Variables::RequestHeadersNames_NoDictElement());
}
#line 3489 "seclang-parser.cc" // lalr1.cc:859
break;
case 255:
#line 2158 "seclang-parser.yy" // lalr1.cc:859
{
VARIABLE_CONTAINER(yylhs.value.as< std::unique_ptr<Variable> > (), new Variables::ResponseContentType());
}
#line 3497 "seclang-parser.cc" // lalr1.cc:859
break;
case 256:
#line 2163 "seclang-parser.yy" // lalr1.cc:859
{
VARIABLE_CONTAINER(yylhs.value.as< std::unique_ptr<Variable> > (), new Variables::ResponseHeadersNames_DictElement(yystack_[0].value.as< std::string > ()));
}
#line 3505 "seclang-parser.cc" // lalr1.cc:859
break;
case 257:
#line 2167 "seclang-parser.yy" // lalr1.cc:859
{
VARIABLE_CONTAINER(yylhs.value.as< std::unique_ptr<Variable> > (), new Variables::ResponseHeadersNames_DictElementRegexp(yystack_[0].value.as< std::string > ()));
}
#line 3513 "seclang-parser.cc" // lalr1.cc:859
break;
case 258:
#line 2171 "seclang-parser.yy" // lalr1.cc:859
{
VARIABLE_CONTAINER(yylhs.value.as< std::unique_ptr<Variable> > (), new Variables::ResponseHeadersNames_NoDictElement());
}
#line 3521 "seclang-parser.cc" // lalr1.cc:859
break;
case 259:
#line 2175 "seclang-parser.yy" // lalr1.cc:859
{
VARIABLE_CONTAINER(yylhs.value.as< std::unique_ptr<Variable> > (), new Variables::ArgsCombinedSize());
}
#line 3529 "seclang-parser.cc" // lalr1.cc:859
break;
case 260:
#line 2179 "seclang-parser.yy" // lalr1.cc:859
{
VARIABLE_CONTAINER(yylhs.value.as< std::unique_ptr<Variable> > (), new Variables::AuthType());
}
#line 3537 "seclang-parser.cc" // lalr1.cc:859
break;
case 261:
#line 2183 "seclang-parser.yy" // lalr1.cc:859
{
VARIABLE_CONTAINER(yylhs.value.as< std::unique_ptr<Variable> > (), new Variables::FilesCombinedSize());
}
#line 3545 "seclang-parser.cc" // lalr1.cc:859
break;
case 262:
#line 2187 "seclang-parser.yy" // lalr1.cc:859
{
VARIABLE_CONTAINER(yylhs.value.as< std::unique_ptr<Variable> > (), new Variables::FullRequest());
}
#line 3553 "seclang-parser.cc" // lalr1.cc:859
break;
case 263:
#line 2191 "seclang-parser.yy" // lalr1.cc:859
{
VARIABLE_CONTAINER(yylhs.value.as< std::unique_ptr<Variable> > (), new Variables::FullRequestLength());
}
#line 3561 "seclang-parser.cc" // lalr1.cc:859
break;
case 264:
#line 2195 "seclang-parser.yy" // lalr1.cc:859
{
VARIABLE_CONTAINER(yylhs.value.as< std::unique_ptr<Variable> > (), new Variables::InboundDataError());
}
#line 3569 "seclang-parser.cc" // lalr1.cc:859
break;
case 265:
#line 2199 "seclang-parser.yy" // lalr1.cc:859
{
VARIABLE_CONTAINER(yylhs.value.as< std::unique_ptr<Variable> > (), new Variables::MatchedVar());
}
#line 3577 "seclang-parser.cc" // lalr1.cc:859
break;
case 266:
#line 2203 "seclang-parser.yy" // lalr1.cc:859
{
VARIABLE_CONTAINER(yylhs.value.as< std::unique_ptr<Variable> > (), new Variables::MatchedVarName());
}
#line 3585 "seclang-parser.cc" // lalr1.cc:859
break;
case 267:
#line 2207 "seclang-parser.yy" // lalr1.cc:859
{
VARIABLE_CONTAINER(yylhs.value.as< std::unique_ptr<Variable> > (), new Variables::MultipartBoundaryQuoted());
}
#line 3593 "seclang-parser.cc" // lalr1.cc:859
break;
case 268:
#line 2211 "seclang-parser.yy" // lalr1.cc:859
{
VARIABLE_CONTAINER(yylhs.value.as< std::unique_ptr<Variable> > (), new Variables::MultipartBoundaryWhiteSpace());
}
#line 3601 "seclang-parser.cc" // lalr1.cc:859
break;
case 269:
#line 2215 "seclang-parser.yy" // lalr1.cc:859
{
VARIABLE_CONTAINER(yylhs.value.as< std::unique_ptr<Variable> > (), new Variables::MultipartCrlfLFLines());
}
#line 3609 "seclang-parser.cc" // lalr1.cc:859
break;
case 270:
#line 2219 "seclang-parser.yy" // lalr1.cc:859
{
VARIABLE_CONTAINER(yylhs.value.as< std::unique_ptr<Variable> > (), new Variables::MultipartDateAfter());
}
#line 3617 "seclang-parser.cc" // lalr1.cc:859
break;
case 271:
#line 2223 "seclang-parser.yy" // lalr1.cc:859
{
VARIABLE_CONTAINER(yylhs.value.as< std::unique_ptr<Variable> > (), new Variables::MultipartDateBefore());
}
#line 3625 "seclang-parser.cc" // lalr1.cc:859
break;
case 272:
#line 2227 "seclang-parser.yy" // lalr1.cc:859
{
VARIABLE_CONTAINER(yylhs.value.as< std::unique_ptr<Variable> > (), new Variables::MultipartFileLimitExceeded());
}
#line 3633 "seclang-parser.cc" // lalr1.cc:859
break;
case 273:
#line 2231 "seclang-parser.yy" // lalr1.cc:859
{
VARIABLE_CONTAINER(yylhs.value.as< std::unique_ptr<Variable> > (), new Variables::MultipartHeaderFolding());
}
#line 3641 "seclang-parser.cc" // lalr1.cc:859
break;
case 274:
#line 2235 "seclang-parser.yy" // lalr1.cc:859
{
VARIABLE_CONTAINER(yylhs.value.as< std::unique_ptr<Variable> > (), new Variables::MultipartInvalidHeaderFolding());
}
#line 3649 "seclang-parser.cc" // lalr1.cc:859
break;
case 275:
#line 2239 "seclang-parser.yy" // lalr1.cc:859
{
VARIABLE_CONTAINER(yylhs.value.as< std::unique_ptr<Variable> > (), new Variables::MultipartInvalidPart());
}
#line 3657 "seclang-parser.cc" // lalr1.cc:859
break;
case 276:
#line 2243 "seclang-parser.yy" // lalr1.cc:859
{
VARIABLE_CONTAINER(yylhs.value.as< std::unique_ptr<Variable> > (), new Variables::MultipartInvalidQuoting());
}
#line 3665 "seclang-parser.cc" // lalr1.cc:859
break;
case 277:
#line 2247 "seclang-parser.yy" // lalr1.cc:859
{
VARIABLE_CONTAINER(yylhs.value.as< std::unique_ptr<Variable> > (), new Variables::MultipartLFLine());
}
#line 3673 "seclang-parser.cc" // lalr1.cc:859
break;
case 278:
#line 2251 "seclang-parser.yy" // lalr1.cc:859
{
VARIABLE_CONTAINER(yylhs.value.as< std::unique_ptr<Variable> > (), new Variables::MultipartMissingSemicolon());
}
#line 3681 "seclang-parser.cc" // lalr1.cc:859
break;
case 279:
#line 2255 "seclang-parser.yy" // lalr1.cc:859
{
VARIABLE_CONTAINER(yylhs.value.as< std::unique_ptr<Variable> > (), new Variables::MultipartMissingSemicolon());
}
#line 3689 "seclang-parser.cc" // lalr1.cc:859
break;
case 280:
#line 2259 "seclang-parser.yy" // lalr1.cc:859
{
VARIABLE_CONTAINER(yylhs.value.as< std::unique_ptr<Variable> > (), new Variables::MultipartStrictError());
}
#line 3697 "seclang-parser.cc" // lalr1.cc:859
break;
case 281:
#line 2263 "seclang-parser.yy" // lalr1.cc:859
{
VARIABLE_CONTAINER(yylhs.value.as< std::unique_ptr<Variable> > (), new Variables::MultipartUnmatchedBoundary());
}
#line 3705 "seclang-parser.cc" // lalr1.cc:859
break;
case 282:
#line 2267 "seclang-parser.yy" // lalr1.cc:859
{
VARIABLE_CONTAINER(yylhs.value.as< std::unique_ptr<Variable> > (), new Variables::OutboundDataError());
}
#line 3713 "seclang-parser.cc" // lalr1.cc:859
break;
case 283:
#line 2271 "seclang-parser.yy" // lalr1.cc:859
{
VARIABLE_CONTAINER(yylhs.value.as< std::unique_ptr<Variable> > (), new Variables::PathInfo());
}
#line 3721 "seclang-parser.cc" // lalr1.cc:859
break;
case 284:
#line 2275 "seclang-parser.yy" // lalr1.cc:859
{
VARIABLE_CONTAINER(yylhs.value.as< std::unique_ptr<Variable> > (), new Variables::QueryString());
}
#line 3729 "seclang-parser.cc" // lalr1.cc:859
break;
case 285:
#line 2279 "seclang-parser.yy" // lalr1.cc:859
{
VARIABLE_CONTAINER(yylhs.value.as< std::unique_ptr<Variable> > (), new Variables::RemoteAddr());
}
#line 3737 "seclang-parser.cc" // lalr1.cc:859
break;
case 286:
#line 2283 "seclang-parser.yy" // lalr1.cc:859
{
VARIABLE_CONTAINER(yylhs.value.as< std::unique_ptr<Variable> > (), new Variables::RemoteHost());
}
#line 3745 "seclang-parser.cc" // lalr1.cc:859
break;
case 287:
#line 2287 "seclang-parser.yy" // lalr1.cc:859
{
VARIABLE_CONTAINER(yylhs.value.as< std::unique_ptr<Variable> > (), new Variables::RemotePort());
}
#line 3753 "seclang-parser.cc" // lalr1.cc:859
break;
case 288:
#line 2291 "seclang-parser.yy" // lalr1.cc:859
{
VARIABLE_CONTAINER(yylhs.value.as< std::unique_ptr<Variable> > (), new Variables::ReqbodyError());
}
#line 3761 "seclang-parser.cc" // lalr1.cc:859
break;
case 289:
#line 2295 "seclang-parser.yy" // lalr1.cc:859
{
VARIABLE_CONTAINER(yylhs.value.as< std::unique_ptr<Variable> > (), new Variables::ReqbodyErrorMsg());
}
#line 3769 "seclang-parser.cc" // lalr1.cc:859
break;
case 290:
#line 2299 "seclang-parser.yy" // lalr1.cc:859
{
VARIABLE_CONTAINER(yylhs.value.as< std::unique_ptr<Variable> > (), new Variables::ReqbodyProcessor());
}
#line 3777 "seclang-parser.cc" // lalr1.cc:859
break;
case 291:
#line 2303 "seclang-parser.yy" // lalr1.cc:859
{
VARIABLE_CONTAINER(yylhs.value.as< std::unique_ptr<Variable> > (), new Variables::ReqbodyProcessorError());
}
#line 3785 "seclang-parser.cc" // lalr1.cc:859
break;
case 292:
#line 2307 "seclang-parser.yy" // lalr1.cc:859
{
VARIABLE_CONTAINER(yylhs.value.as< std::unique_ptr<Variable> > (), new Variables::ReqbodyProcessorErrorMsg());
}
#line 3793 "seclang-parser.cc" // lalr1.cc:859
break;
case 293:
#line 2311 "seclang-parser.yy" // lalr1.cc:859
{
VARIABLE_CONTAINER(yylhs.value.as< std::unique_ptr<Variable> > (), new Variables::RequestBasename());
}
#line 3801 "seclang-parser.cc" // lalr1.cc:859
break;
case 294:
#line 2315 "seclang-parser.yy" // lalr1.cc:859
{
VARIABLE_CONTAINER(yylhs.value.as< std::unique_ptr<Variable> > (), new Variables::RequestBody());
}
#line 3809 "seclang-parser.cc" // lalr1.cc:859
break;
case 295:
#line 2319 "seclang-parser.yy" // lalr1.cc:859
{
VARIABLE_CONTAINER(yylhs.value.as< std::unique_ptr<Variable> > (), new Variables::RequestBodyLength());
}
#line 3817 "seclang-parser.cc" // lalr1.cc:859
break;
case 296:
#line 2323 "seclang-parser.yy" // lalr1.cc:859
{
VARIABLE_CONTAINER(yylhs.value.as< std::unique_ptr<Variable> > (), new Variables::RequestFilename());
}
#line 3825 "seclang-parser.cc" // lalr1.cc:859
break;
case 297:
#line 2327 "seclang-parser.yy" // lalr1.cc:859
{
VARIABLE_CONTAINER(yylhs.value.as< std::unique_ptr<Variable> > (), new Variables::RequestLine());
}
#line 3833 "seclang-parser.cc" // lalr1.cc:859
break;
case 298:
#line 2331 "seclang-parser.yy" // lalr1.cc:859
{
VARIABLE_CONTAINER(yylhs.value.as< std::unique_ptr<Variable> > (), new Variables::RequestMethod());
}
#line 3841 "seclang-parser.cc" // lalr1.cc:859
break;
case 299:
#line 2335 "seclang-parser.yy" // lalr1.cc:859
{
VARIABLE_CONTAINER(yylhs.value.as< std::unique_ptr<Variable> > (), new Variables::RequestProtocol());
}
#line 3849 "seclang-parser.cc" // lalr1.cc:859
break;
case 300:
#line 2339 "seclang-parser.yy" // lalr1.cc:859
{
VARIABLE_CONTAINER(yylhs.value.as< std::unique_ptr<Variable> > (), new Variables::RequestURI());
}
#line 3857 "seclang-parser.cc" // lalr1.cc:859
break;
case 301:
#line 2343 "seclang-parser.yy" // lalr1.cc:859
{
VARIABLE_CONTAINER(yylhs.value.as< std::unique_ptr<Variable> > (), new Variables::RequestURIRaw());
}
#line 3865 "seclang-parser.cc" // lalr1.cc:859
break;
case 302:
#line 2347 "seclang-parser.yy" // lalr1.cc:859
{
VARIABLE_CONTAINER(yylhs.value.as< std::unique_ptr<Variable> > (), new Variables::ResponseBody());
}
#line 3873 "seclang-parser.cc" // lalr1.cc:859
break;
case 303:
#line 2351 "seclang-parser.yy" // lalr1.cc:859
{
VARIABLE_CONTAINER(yylhs.value.as< std::unique_ptr<Variable> > (), new Variables::ResponseContentLength());
}
#line 3881 "seclang-parser.cc" // lalr1.cc:859
break;
case 304:
#line 2355 "seclang-parser.yy" // lalr1.cc:859
{
VARIABLE_CONTAINER(yylhs.value.as< std::unique_ptr<Variable> > (), new Variables::ResponseProtocol());
}
#line 3889 "seclang-parser.cc" // lalr1.cc:859
break;
case 305:
#line 2359 "seclang-parser.yy" // lalr1.cc:859
{
VARIABLE_CONTAINER(yylhs.value.as< std::unique_ptr<Variable> > (), new Variables::ResponseStatus());
}
#line 3897 "seclang-parser.cc" // lalr1.cc:859
break;
case 306:
#line 2363 "seclang-parser.yy" // lalr1.cc:859
{
VARIABLE_CONTAINER(yylhs.value.as< std::unique_ptr<Variable> > (), new Variables::ServerAddr());
}
#line 3905 "seclang-parser.cc" // lalr1.cc:859
break;
case 307:
#line 2367 "seclang-parser.yy" // lalr1.cc:859
{
VARIABLE_CONTAINER(yylhs.value.as< std::unique_ptr<Variable> > (), new Variables::ServerName());
}
#line 3913 "seclang-parser.cc" // lalr1.cc:859
break;
case 308:
#line 2371 "seclang-parser.yy" // lalr1.cc:859
{
VARIABLE_CONTAINER(yylhs.value.as< std::unique_ptr<Variable> > (), new Variables::ServerPort());
}
#line 3921 "seclang-parser.cc" // lalr1.cc:859
break;
case 309:
#line 2375 "seclang-parser.yy" // lalr1.cc:859
{
VARIABLE_CONTAINER(yylhs.value.as< std::unique_ptr<Variable> > (), new Variables::SessionID());
}
#line 3929 "seclang-parser.cc" // lalr1.cc:859
break;
case 310:
#line 2379 "seclang-parser.yy" // lalr1.cc:859
{
VARIABLE_CONTAINER(yylhs.value.as< std::unique_ptr<Variable> > (), new Variables::UniqueID());
}
#line 3937 "seclang-parser.cc" // lalr1.cc:859
break;
case 311:
#line 2383 "seclang-parser.yy" // lalr1.cc:859
{
VARIABLE_CONTAINER(yylhs.value.as< std::unique_ptr<Variable> > (), new Variables::UrlEncodedError());
}
#line 3945 "seclang-parser.cc" // lalr1.cc:859
break;
case 312:
#line 2387 "seclang-parser.yy" // lalr1.cc:859
{
VARIABLE_CONTAINER(yylhs.value.as< std::unique_ptr<Variable> > (), new Variables::UserID());
}
#line 3953 "seclang-parser.cc" // lalr1.cc:859
break;
case 313:
#line 2391 "seclang-parser.yy" // lalr1.cc:859
{
VARIABLE_CONTAINER(yylhs.value.as< std::unique_ptr<Variable> > (), new Variables::Status());
}
#line 3961 "seclang-parser.cc" // lalr1.cc:859
break;
case 314:
#line 2395 "seclang-parser.yy" // lalr1.cc:859
{
VARIABLE_CONTAINER(yylhs.value.as< std::unique_ptr<Variable> > (), new Variables::WebAppId());
}
#line 3969 "seclang-parser.cc" // lalr1.cc:859
break;
case 315:
#line 2399 "seclang-parser.yy" // lalr1.cc:859
{
std::string name(yystack_[0].value.as< std::string > ());
char z = name.at(0);
std::unique_ptr<Variable> c(new Duration(name));
yylhs.value.as< std::unique_ptr<Variable> > () = std::move(c);
}
#line 3980 "seclang-parser.cc" // lalr1.cc:859
break;
case 316:
#line 2407 "seclang-parser.yy" // lalr1.cc:859
{
std::string name(yystack_[0].value.as< std::string > ());
char z = name.at(0);
std::unique_ptr<Variable> c(new ModsecBuild(name));
yylhs.value.as< std::unique_ptr<Variable> > () = std::move(c);
}
#line 3991 "seclang-parser.cc" // lalr1.cc:859
break;
case 317:
#line 2414 "seclang-parser.yy" // lalr1.cc:859
{
std::string name(yystack_[0].value.as< std::string > ());
char z = name.at(0);
std::unique_ptr<Variable> c(new HighestSeverity(name));
yylhs.value.as< std::unique_ptr<Variable> > () = std::move(c);
}
#line 4002 "seclang-parser.cc" // lalr1.cc:859
break;
case 318:
#line 2421 "seclang-parser.yy" // lalr1.cc:859
{
std::string name(yystack_[0].value.as< std::string > ());
char z = name.at(0);
std::unique_ptr<Variable> c(new RemoteUser(name));
yylhs.value.as< std::unique_ptr<Variable> > () = std::move(c);
}
#line 4013 "seclang-parser.cc" // lalr1.cc:859
break;
case 319:
#line 2428 "seclang-parser.yy" // lalr1.cc:859
{
std::string name(yystack_[0].value.as< std::string > ());
char z = name.at(0);
std::unique_ptr<Variable> c(new Time(name));
yylhs.value.as< std::unique_ptr<Variable> > () = std::move(c);
}
#line 4024 "seclang-parser.cc" // lalr1.cc:859
break;
case 320:
#line 2435 "seclang-parser.yy" // lalr1.cc:859
{
std::string name(yystack_[0].value.as< std::string > ());
char z = name.at(0);
std::unique_ptr<Variable> c(new TimeDay(name));
yylhs.value.as< std::unique_ptr<Variable> > () = std::move(c);
}
#line 4035 "seclang-parser.cc" // lalr1.cc:859
break;
case 321:
#line 2442 "seclang-parser.yy" // lalr1.cc:859
{
std::string name(yystack_[0].value.as< std::string > ());
char z = name.at(0);
std::unique_ptr<Variable> c(new TimeEpoch(name));
yylhs.value.as< std::unique_ptr<Variable> > () = std::move(c);
}
#line 4046 "seclang-parser.cc" // lalr1.cc:859
break;
case 322:
#line 2449 "seclang-parser.yy" // lalr1.cc:859
{
std::string name(yystack_[0].value.as< std::string > ());
char z = name.at(0);
std::unique_ptr<Variable> c(new TimeHour(name));
yylhs.value.as< std::unique_ptr<Variable> > () = std::move(c);
}
#line 4057 "seclang-parser.cc" // lalr1.cc:859
break;
case 323:
#line 2456 "seclang-parser.yy" // lalr1.cc:859
{
std::string name(yystack_[0].value.as< std::string > ());
char z = name.at(0);
std::unique_ptr<Variable> c(new TimeMin(name));
yylhs.value.as< std::unique_ptr<Variable> > () = std::move(c);
}
#line 4068 "seclang-parser.cc" // lalr1.cc:859
break;
case 324:
#line 2463 "seclang-parser.yy" // lalr1.cc:859
{
std::string name(yystack_[0].value.as< std::string > ());
char z = name.at(0);
std::unique_ptr<Variable> c(new TimeMon(name));
yylhs.value.as< std::unique_ptr<Variable> > () = std::move(c);
}
#line 4079 "seclang-parser.cc" // lalr1.cc:859
break;
case 325:
#line 2470 "seclang-parser.yy" // lalr1.cc:859
{
std::string name(yystack_[0].value.as< std::string > ());
char z = name.at(0);
std::unique_ptr<Variable> c(new TimeSec(name));
yylhs.value.as< std::unique_ptr<Variable> > () = std::move(c);
}
#line 4090 "seclang-parser.cc" // lalr1.cc:859
break;
case 326:
#line 2477 "seclang-parser.yy" // lalr1.cc:859
{
std::string name(yystack_[0].value.as< std::string > ());
char z = name.at(0);
std::unique_ptr<Variable> c(new TimeWDay(name));
yylhs.value.as< std::unique_ptr<Variable> > () = std::move(c);
}
#line 4101 "seclang-parser.cc" // lalr1.cc:859
break;
case 327:
#line 2484 "seclang-parser.yy" // lalr1.cc:859
{
std::string name(yystack_[0].value.as< std::string > ());
char z = name.at(0);
std::unique_ptr<Variable> c(new TimeYear(name));
yylhs.value.as< std::unique_ptr<Variable> > () = std::move(c);
}
#line 4112 "seclang-parser.cc" // lalr1.cc:859
break;
case 328:
#line 2494 "seclang-parser.yy" // lalr1.cc:859
{
ACTION_CONTAINER(yylhs.value.as< std::unique_ptr<actions::Action> > (), new actions::Accuracy(yystack_[0].value.as< std::string > ()));
}
#line 4120 "seclang-parser.cc" // lalr1.cc:859
break;
case 329:
#line 2498 "seclang-parser.yy" // lalr1.cc:859
{
ACTION_CONTAINER(yylhs.value.as< std::unique_ptr<actions::Action> > (), new actions::disruptive::Allow(yystack_[0].value.as< std::string > ()));
}
#line 4128 "seclang-parser.cc" // lalr1.cc:859
break;
case 330:
#line 2502 "seclang-parser.yy" // lalr1.cc:859
{
ACTION_NOT_SUPPORTED("Append", yystack_[1].location);
}
#line 4136 "seclang-parser.cc" // lalr1.cc:859
break;
case 331:
#line 2506 "seclang-parser.yy" // lalr1.cc:859
{
ACTION_CONTAINER(yylhs.value.as< std::unique_ptr<actions::Action> > (), new actions::AuditLog(yystack_[0].value.as< std::string > ()));
}
#line 4144 "seclang-parser.cc" // lalr1.cc:859
break;
case 332:
#line 2510 "seclang-parser.yy" // lalr1.cc:859
{
ACTION_CONTAINER(yylhs.value.as< std::unique_ptr<actions::Action> > (), new actions::disruptive::Block(yystack_[0].value.as< std::string > ()));
}
#line 4152 "seclang-parser.cc" // lalr1.cc:859
break;
case 333:
#line 2514 "seclang-parser.yy" // lalr1.cc:859
{
ACTION_CONTAINER(yylhs.value.as< std::unique_ptr<actions::Action> > (), new actions::Capture(yystack_[0].value.as< std::string > ()));
}
#line 4160 "seclang-parser.cc" // lalr1.cc:859
break;
case 334:
#line 2518 "seclang-parser.yy" // lalr1.cc:859
{
ACTION_CONTAINER(yylhs.value.as< std::unique_ptr<actions::Action> > (), new actions::Chain(yystack_[0].value.as< std::string > ()));
}
#line 4168 "seclang-parser.cc" // lalr1.cc:859
break;
case 335:
#line 2522 "seclang-parser.yy" // lalr1.cc:859
{
//ACTION_NOT_SUPPORTED("CtlAuditEngine", @0);
ACTION_CONTAINER(yylhs.value.as< std::unique_ptr<actions::Action> > (), new actions::Action(yystack_[1].value.as< std::string > ()));
}
#line 4177 "seclang-parser.cc" // lalr1.cc:859
break;
case 336:
#line 2527 "seclang-parser.yy" // lalr1.cc:859
{
//ACTION_NOT_SUPPORTED("CtlAuditEngine", @0);
ACTION_CONTAINER(yylhs.value.as< std::unique_ptr<actions::Action> > (), new actions::Action(yystack_[1].value.as< std::string > ()));
}
#line 4186 "seclang-parser.cc" // lalr1.cc:859
break;
case 337:
#line 2532 "seclang-parser.yy" // lalr1.cc:859
{
//ACTION_NOT_SUPPORTED("CtlAuditEngine", @0);
ACTION_CONTAINER(yylhs.value.as< std::unique_ptr<actions::Action> > (), new actions::Action(yystack_[1].value.as< std::string > ()));
}
#line 4195 "seclang-parser.cc" // lalr1.cc:859
break;
case 338:
#line 2537 "seclang-parser.yy" // lalr1.cc:859
{
ACTION_CONTAINER(yylhs.value.as< std::unique_ptr<actions::Action> > (), new actions::ctl::AuditLogParts(yystack_[0].value.as< std::string > ()));
}
#line 4203 "seclang-parser.cc" // lalr1.cc:859
break;
case 339:
#line 2541 "seclang-parser.yy" // lalr1.cc:859
{
ACTION_CONTAINER(yylhs.value.as< std::unique_ptr<actions::Action> > (), new actions::ctl::RequestBodyProcessorJSON(yystack_[0].value.as< std::string > ()));
}
#line 4211 "seclang-parser.cc" // lalr1.cc:859
break;
case 340:
#line 2545 "seclang-parser.yy" // lalr1.cc:859
{
ACTION_CONTAINER(yylhs.value.as< std::unique_ptr<actions::Action> > (), new actions::ctl::RequestBodyProcessorXML(yystack_[0].value.as< std::string > ()));
}
#line 4219 "seclang-parser.cc" // lalr1.cc:859
break;
case 341:
#line 2549 "seclang-parser.yy" // lalr1.cc:859
{
//ACTION_NOT_SUPPORTED("CtlForceReequestBody", @0);
ACTION_CONTAINER(yylhs.value.as< std::unique_ptr<actions::Action> > (), new actions::Action(yystack_[1].value.as< std::string > ()));
}
#line 4228 "seclang-parser.cc" // lalr1.cc:859
break;
case 342:
#line 2554 "seclang-parser.yy" // lalr1.cc:859
{
//ACTION_NOT_SUPPORTED("CtlForceReequestBody", @0);
ACTION_CONTAINER(yylhs.value.as< std::unique_ptr<actions::Action> > (), new actions::Action(yystack_[1].value.as< std::string > ()));
}
#line 4237 "seclang-parser.cc" // lalr1.cc:859
break;
case 343:
#line 2559 "seclang-parser.yy" // lalr1.cc:859
{
ACTION_CONTAINER(yylhs.value.as< std::unique_ptr<actions::Action> > (), new actions::ctl::RequestBodyAccess(yystack_[1].value.as< std::string > () + "true"));
}
#line 4245 "seclang-parser.cc" // lalr1.cc:859
break;
case 344:
#line 2563 "seclang-parser.yy" // lalr1.cc:859
{
ACTION_CONTAINER(yylhs.value.as< std::unique_ptr<actions::Action> > (), new actions::ctl::RequestBodyAccess(yystack_[1].value.as< std::string > () + "false"));
}
#line 4253 "seclang-parser.cc" // lalr1.cc:859
break;
case 345:
#line 2567 "seclang-parser.yy" // lalr1.cc:859
{
ACTION_CONTAINER(yylhs.value.as< std::unique_ptr<actions::Action> > (), new actions::ctl::RuleEngine("ctl:RuleEngine=on"));
}
#line 4261 "seclang-parser.cc" // lalr1.cc:859
break;
case 346:
#line 2571 "seclang-parser.yy" // lalr1.cc:859
{
ACTION_CONTAINER(yylhs.value.as< std::unique_ptr<actions::Action> > (), new actions::ctl::RuleEngine("ctl:RuleEngine=off"));
}
#line 4269 "seclang-parser.cc" // lalr1.cc:859
break;
case 347:
#line 2575 "seclang-parser.yy" // lalr1.cc:859
{
ACTION_CONTAINER(yylhs.value.as< std::unique_ptr<actions::Action> > (), new actions::ctl::RuleEngine("ctl:RuleEngine=detectiononly"));
}
#line 4277 "seclang-parser.cc" // lalr1.cc:859
break;
case 348:
#line 2579 "seclang-parser.yy" // lalr1.cc:859
{
ACTION_CONTAINER(yylhs.value.as< std::unique_ptr<actions::Action> > (), new actions::ctl::RuleRemoveById(yystack_[0].value.as< std::string > ()));
}
#line 4285 "seclang-parser.cc" // lalr1.cc:859
break;
case 349:
#line 2583 "seclang-parser.yy" // lalr1.cc:859
{
ACTION_CONTAINER(yylhs.value.as< std::unique_ptr<actions::Action> > (), new actions::ctl::RuleRemoveByTag(yystack_[0].value.as< std::string > ()));
}
#line 4293 "seclang-parser.cc" // lalr1.cc:859
break;
case 350:
#line 2587 "seclang-parser.yy" // lalr1.cc:859
{
ACTION_CONTAINER(yylhs.value.as< std::unique_ptr<actions::Action> > (), new actions::ctl::RuleRemoveTargetById(yystack_[0].value.as< std::string > ()));
}
#line 4301 "seclang-parser.cc" // lalr1.cc:859
break;
case 351:
#line 2591 "seclang-parser.yy" // lalr1.cc:859
{
ACTION_CONTAINER(yylhs.value.as< std::unique_ptr<actions::Action> > (), new actions::ctl::RuleRemoveTargetByTag(yystack_[0].value.as< std::string > ()));
}
#line 4309 "seclang-parser.cc" // lalr1.cc:859
break;
case 352:
#line 2595 "seclang-parser.yy" // lalr1.cc:859
{
ACTION_CONTAINER(yylhs.value.as< std::unique_ptr<actions::Action> > (), new actions::disruptive::Deny(yystack_[0].value.as< std::string > ()));
}
#line 4317 "seclang-parser.cc" // lalr1.cc:859
break;
case 353:
#line 2599 "seclang-parser.yy" // lalr1.cc:859
{
ACTION_NOT_SUPPORTED("DeprecateVar", yystack_[1].location);
}
#line 4325 "seclang-parser.cc" // lalr1.cc:859
break;
case 354:
#line 2603 "seclang-parser.yy" // lalr1.cc:859
{
//ACTION_NOT_SUPPORTED("Drop", @0);
ACTION_CONTAINER(yylhs.value.as< std::unique_ptr<actions::Action> > (), new actions::Action(yystack_[0].value.as< std::string > ()));
}
#line 4334 "seclang-parser.cc" // lalr1.cc:859
break;
case 355:
#line 2608 "seclang-parser.yy" // lalr1.cc:859
{
ACTION_CONTAINER(yylhs.value.as< std::unique_ptr<actions::Action> > (), new actions::Exec(yystack_[0].value.as< std::string > ()));
}
#line 4342 "seclang-parser.cc" // lalr1.cc:859
break;
case 356:
#line 2612 "seclang-parser.yy" // lalr1.cc:859
{
//ACTION_NOT_SUPPORTED("ExpireVar", @0);
ACTION_CONTAINER(yylhs.value.as< std::unique_ptr<actions::Action> > (), new actions::Action(yystack_[0].value.as< std::string > ()));
}
#line 4351 "seclang-parser.cc" // lalr1.cc:859
break;
case 357:
#line 2617 "seclang-parser.yy" // lalr1.cc:859
{
ACTION_CONTAINER(yylhs.value.as< std::unique_ptr<actions::Action> > (), new actions::RuleId(yystack_[0].value.as< std::string > ()));
}
#line 4359 "seclang-parser.cc" // lalr1.cc:859
break;
case 358:
#line 2621 "seclang-parser.yy" // lalr1.cc:859
{
ACTION_CONTAINER(yylhs.value.as< std::unique_ptr<actions::Action> > (), new actions::InitCol(yystack_[1].value.as< std::string > (), std::move(yystack_[0].value.as< std::unique_ptr<RunTimeString> > ())));
}
#line 4367 "seclang-parser.cc" // lalr1.cc:859
break;
case 359:
#line 2625 "seclang-parser.yy" // lalr1.cc:859
{
ACTION_CONTAINER(yylhs.value.as< std::unique_ptr<actions::Action> > (), new actions::LogData(std::move(yystack_[0].value.as< std::unique_ptr<RunTimeString> > ())));
}
#line 4375 "seclang-parser.cc" // lalr1.cc:859
break;
case 360:
#line 2629 "seclang-parser.yy" // lalr1.cc:859
{
ACTION_CONTAINER(yylhs.value.as< std::unique_ptr<actions::Action> > (), new actions::Log(yystack_[0].value.as< std::string > ()));
}
#line 4383 "seclang-parser.cc" // lalr1.cc:859
break;
case 361:
#line 2633 "seclang-parser.yy" // lalr1.cc:859
{
ACTION_CONTAINER(yylhs.value.as< std::unique_ptr<actions::Action> > (), new actions::Maturity(yystack_[0].value.as< std::string > ()));
}
#line 4391 "seclang-parser.cc" // lalr1.cc:859
break;
case 362:
#line 2637 "seclang-parser.yy" // lalr1.cc:859
{
ACTION_CONTAINER(yylhs.value.as< std::unique_ptr<actions::Action> > (), new actions::Msg(std::move(yystack_[0].value.as< std::unique_ptr<RunTimeString> > ())));
}
#line 4399 "seclang-parser.cc" // lalr1.cc:859
break;
case 363:
#line 2641 "seclang-parser.yy" // lalr1.cc:859
{
ACTION_CONTAINER(yylhs.value.as< std::unique_ptr<actions::Action> > (), new actions::MultiMatch(yystack_[0].value.as< std::string > ()));
}
#line 4407 "seclang-parser.cc" // lalr1.cc:859
break;
case 364:
#line 2645 "seclang-parser.yy" // lalr1.cc:859
{
ACTION_CONTAINER(yylhs.value.as< std::unique_ptr<actions::Action> > (), new actions::NoAuditLog(yystack_[0].value.as< std::string > ()));
}
#line 4415 "seclang-parser.cc" // lalr1.cc:859
break;
case 365:
#line 2649 "seclang-parser.yy" // lalr1.cc:859
{
ACTION_CONTAINER(yylhs.value.as< std::unique_ptr<actions::Action> > (), new actions::NoLog(yystack_[0].value.as< std::string > ()));
}
#line 4423 "seclang-parser.cc" // lalr1.cc:859
break;
case 366:
#line 2653 "seclang-parser.yy" // lalr1.cc:859
{
ACTION_CONTAINER(yylhs.value.as< std::unique_ptr<actions::Action> > (), new actions::disruptive::Pass(yystack_[0].value.as< std::string > ()));
}
#line 4431 "seclang-parser.cc" // lalr1.cc:859
break;
case 367:
#line 2657 "seclang-parser.yy" // lalr1.cc:859
{
ACTION_NOT_SUPPORTED("Pause", yystack_[1].location);
}
#line 4439 "seclang-parser.cc" // lalr1.cc:859
break;
case 368:
#line 2661 "seclang-parser.yy" // lalr1.cc:859
{
ACTION_CONTAINER(yylhs.value.as< std::unique_ptr<actions::Action> > (), new actions::Phase(yystack_[0].value.as< std::string > ()));
}
#line 4447 "seclang-parser.cc" // lalr1.cc:859
break;
case 369:
#line 2665 "seclang-parser.yy" // lalr1.cc:859
{
ACTION_NOT_SUPPORTED("Prepend", yystack_[1].location);
}
#line 4455 "seclang-parser.cc" // lalr1.cc:859
break;
case 370:
#line 2669 "seclang-parser.yy" // lalr1.cc:859
{
ACTION_NOT_SUPPORTED("Proxy", yystack_[1].location);
}
#line 4463 "seclang-parser.cc" // lalr1.cc:859
break;
case 371:
#line 2673 "seclang-parser.yy" // lalr1.cc:859
{
ACTION_CONTAINER(yylhs.value.as< std::unique_ptr<actions::Action> > (), new actions::disruptive::Redirect(std::move(yystack_[0].value.as< std::unique_ptr<RunTimeString> > ())));
}
#line 4471 "seclang-parser.cc" // lalr1.cc:859
break;
case 372:
#line 2677 "seclang-parser.yy" // lalr1.cc:859
{
ACTION_CONTAINER(yylhs.value.as< std::unique_ptr<actions::Action> > (), new actions::Rev(yystack_[0].value.as< std::string > ()));
}
#line 4479 "seclang-parser.cc" // lalr1.cc:859
break;
case 373:
#line 2681 "seclang-parser.yy" // lalr1.cc:859
{
ACTION_NOT_SUPPORTED("SanatiseArg", yystack_[1].location);
}
#line 4487 "seclang-parser.cc" // lalr1.cc:859
break;
case 374:
#line 2685 "seclang-parser.yy" // lalr1.cc:859
{
ACTION_NOT_SUPPORTED("SanatiseMatched", yystack_[1].location);
}
#line 4495 "seclang-parser.cc" // lalr1.cc:859
break;
case 375:
#line 2689 "seclang-parser.yy" // lalr1.cc:859
{
ACTION_NOT_SUPPORTED("SanatiseMatchedBytes", yystack_[1].location);
}
#line 4503 "seclang-parser.cc" // lalr1.cc:859
break;
case 376:
#line 2693 "seclang-parser.yy" // lalr1.cc:859
{
ACTION_NOT_SUPPORTED("SanatiseRequestHeader", yystack_[1].location);
}
#line 4511 "seclang-parser.cc" // lalr1.cc:859
break;
case 377:
#line 2697 "seclang-parser.yy" // lalr1.cc:859
{
ACTION_NOT_SUPPORTED("SanatiseResponseHeader", yystack_[1].location);
}
#line 4519 "seclang-parser.cc" // lalr1.cc:859
break;
case 378:
#line 2701 "seclang-parser.yy" // lalr1.cc:859
{
ACTION_NOT_SUPPORTED("SetEnv", yystack_[1].location);
}
#line 4527 "seclang-parser.cc" // lalr1.cc:859
break;
case 379:
#line 2705 "seclang-parser.yy" // lalr1.cc:859
{
ACTION_CONTAINER(yylhs.value.as< std::unique_ptr<actions::Action> > (), new actions::SetRSC(std::move(yystack_[0].value.as< std::unique_ptr<RunTimeString> > ())));
}
#line 4535 "seclang-parser.cc" // lalr1.cc:859
break;
case 380:
#line 2709 "seclang-parser.yy" // lalr1.cc:859
{
ACTION_CONTAINER(yylhs.value.as< std::unique_ptr<actions::Action> > (), new actions::SetSID(std::move(yystack_[0].value.as< std::unique_ptr<RunTimeString> > ())));
}
#line 4543 "seclang-parser.cc" // lalr1.cc:859
break;
case 381:
#line 2713 "seclang-parser.yy" // lalr1.cc:859
{
ACTION_CONTAINER(yylhs.value.as< std::unique_ptr<actions::Action> > (), new actions::SetUID(std::move(yystack_[0].value.as< std::unique_ptr<RunTimeString> > ())));
}
#line 4551 "seclang-parser.cc" // lalr1.cc:859
break;
case 382:
#line 2717 "seclang-parser.yy" // lalr1.cc:859
{
yylhs.value.as< std::unique_ptr<actions::Action> > () = std::move(yystack_[0].value.as< std::unique_ptr<actions::Action> > ());
}
#line 4559 "seclang-parser.cc" // lalr1.cc:859
break;
case 383:
#line 2721 "seclang-parser.yy" // lalr1.cc:859
{
ACTION_CONTAINER(yylhs.value.as< std::unique_ptr<actions::Action> > (), new actions::Severity(yystack_[0].value.as< std::string > ()));
}
#line 4567 "seclang-parser.cc" // lalr1.cc:859
break;
case 384:
#line 2725 "seclang-parser.yy" // lalr1.cc:859
{
ACTION_CONTAINER(yylhs.value.as< std::unique_ptr<actions::Action> > (), new actions::Skip(yystack_[0].value.as< std::string > ()));
}
#line 4575 "seclang-parser.cc" // lalr1.cc:859
break;
case 385:
#line 2729 "seclang-parser.yy" // lalr1.cc:859
{
ACTION_CONTAINER(yylhs.value.as< std::unique_ptr<actions::Action> > (), new actions::SkipAfter(yystack_[0].value.as< std::string > ()));
}
#line 4583 "seclang-parser.cc" // lalr1.cc:859
break;
case 386:
#line 2733 "seclang-parser.yy" // lalr1.cc:859
{
ACTION_CONTAINER(yylhs.value.as< std::unique_ptr<actions::Action> > (), new actions::data::Status(yystack_[0].value.as< std::string > ()));
}
#line 4591 "seclang-parser.cc" // lalr1.cc:859
break;
case 387:
#line 2737 "seclang-parser.yy" // lalr1.cc:859
{
ACTION_CONTAINER(yylhs.value.as< std::unique_ptr<actions::Action> > (), new actions::Tag(std::move(yystack_[0].value.as< std::unique_ptr<RunTimeString> > ())));
}
#line 4599 "seclang-parser.cc" // lalr1.cc:859
break;
case 388:
#line 2741 "seclang-parser.yy" // lalr1.cc:859
{
ACTION_CONTAINER(yylhs.value.as< std::unique_ptr<actions::Action> > (), new actions::Ver(yystack_[0].value.as< std::string > ()));
}
#line 4607 "seclang-parser.cc" // lalr1.cc:859
break;
case 389:
#line 2745 "seclang-parser.yy" // lalr1.cc:859
{
ACTION_CONTAINER(yylhs.value.as< std::unique_ptr<actions::Action> > (), new actions::XmlNS(yystack_[0].value.as< std::string > ()));
}
#line 4615 "seclang-parser.cc" // lalr1.cc:859
break;
case 390:
#line 2749 "seclang-parser.yy" // lalr1.cc:859
{
ACTION_CONTAINER(yylhs.value.as< std::unique_ptr<actions::Action> > (), new actions::transformations::ParityZero7bit(yystack_[0].value.as< std::string > ()));
}
#line 4623 "seclang-parser.cc" // lalr1.cc:859
break;
case 391:
#line 2753 "seclang-parser.yy" // lalr1.cc:859
{
ACTION_CONTAINER(yylhs.value.as< std::unique_ptr<actions::Action> > (), new actions::transformations::ParityOdd7bit(yystack_[0].value.as< std::string > ()));
}
#line 4631 "seclang-parser.cc" // lalr1.cc:859
break;
case 392:
#line 2757 "seclang-parser.yy" // lalr1.cc:859
{
ACTION_CONTAINER(yylhs.value.as< std::unique_ptr<actions::Action> > (), new actions::transformations::ParityEven7bit(yystack_[0].value.as< std::string > ()));
}
#line 4639 "seclang-parser.cc" // lalr1.cc:859
break;
case 393:
#line 2761 "seclang-parser.yy" // lalr1.cc:859
{
ACTION_CONTAINER(yylhs.value.as< std::unique_ptr<actions::Action> > (), new actions::transformations::SqlHexDecode(yystack_[0].value.as< std::string > ()));
}
#line 4647 "seclang-parser.cc" // lalr1.cc:859
break;
case 394:
#line 2765 "seclang-parser.yy" // lalr1.cc:859
{
ACTION_CONTAINER(yylhs.value.as< std::unique_ptr<actions::Action> > (), new actions::transformations::Base64Encode(yystack_[0].value.as< std::string > ()));
}
#line 4655 "seclang-parser.cc" // lalr1.cc:859
break;
case 395:
#line 2769 "seclang-parser.yy" // lalr1.cc:859
{
ACTION_CONTAINER(yylhs.value.as< std::unique_ptr<actions::Action> > (), new actions::transformations::Base64Decode(yystack_[0].value.as< std::string > ()));
}
#line 4663 "seclang-parser.cc" // lalr1.cc:859
break;
case 396:
#line 2773 "seclang-parser.yy" // lalr1.cc:859
{
ACTION_CONTAINER(yylhs.value.as< std::unique_ptr<actions::Action> > (), new actions::transformations::Base64DecodeExt(yystack_[0].value.as< std::string > ()));
}
#line 4671 "seclang-parser.cc" // lalr1.cc:859
break;
case 397:
#line 2777 "seclang-parser.yy" // lalr1.cc:859
{
ACTION_CONTAINER(yylhs.value.as< std::unique_ptr<actions::Action> > (), new actions::transformations::CmdLine(yystack_[0].value.as< std::string > ()));
}
#line 4679 "seclang-parser.cc" // lalr1.cc:859
break;
case 398:
#line 2781 "seclang-parser.yy" // lalr1.cc:859
{
ACTION_CONTAINER(yylhs.value.as< std::unique_ptr<actions::Action> > (), new actions::transformations::Sha1(yystack_[0].value.as< std::string > ()));
}
#line 4687 "seclang-parser.cc" // lalr1.cc:859
break;
case 399:
#line 2785 "seclang-parser.yy" // lalr1.cc:859
{
ACTION_CONTAINER(yylhs.value.as< std::unique_ptr<actions::Action> > (), new actions::transformations::Md5(yystack_[0].value.as< std::string > ()));
}
#line 4695 "seclang-parser.cc" // lalr1.cc:859
break;
case 400:
#line 2789 "seclang-parser.yy" // lalr1.cc:859
{
ACTION_CONTAINER(yylhs.value.as< std::unique_ptr<actions::Action> > (), new actions::transformations::HexEncode(yystack_[0].value.as< std::string > ()));
}
#line 4703 "seclang-parser.cc" // lalr1.cc:859
break;
case 401:
#line 2793 "seclang-parser.yy" // lalr1.cc:859
{
ACTION_CONTAINER(yylhs.value.as< std::unique_ptr<actions::Action> > (), new actions::transformations::HexDecode(yystack_[0].value.as< std::string > ()));
}
#line 4711 "seclang-parser.cc" // lalr1.cc:859
break;
case 402:
#line 2797 "seclang-parser.yy" // lalr1.cc:859
{
ACTION_CONTAINER(yylhs.value.as< std::unique_ptr<actions::Action> > (), new actions::transformations::LowerCase(yystack_[0].value.as< std::string > ()));
}
#line 4719 "seclang-parser.cc" // lalr1.cc:859
break;
case 403:
#line 2801 "seclang-parser.yy" // lalr1.cc:859
{
ACTION_CONTAINER(yylhs.value.as< std::unique_ptr<actions::Action> > (), new actions::transformations::UpperCase(yystack_[0].value.as< std::string > ()));
}
#line 4727 "seclang-parser.cc" // lalr1.cc:859
break;
case 404:
#line 2805 "seclang-parser.yy" // lalr1.cc:859
{
ACTION_CONTAINER(yylhs.value.as< std::unique_ptr<actions::Action> > (), new actions::transformations::UrlDecodeUni(yystack_[0].value.as< std::string > ()));
}
#line 4735 "seclang-parser.cc" // lalr1.cc:859
break;
case 405:
#line 2809 "seclang-parser.yy" // lalr1.cc:859
{
ACTION_CONTAINER(yylhs.value.as< std::unique_ptr<actions::Action> > (), new actions::transformations::UrlDecode(yystack_[0].value.as< std::string > ()));
}
#line 4743 "seclang-parser.cc" // lalr1.cc:859
break;
case 406:
#line 2813 "seclang-parser.yy" // lalr1.cc:859
{
ACTION_CONTAINER(yylhs.value.as< std::unique_ptr<actions::Action> > (), new actions::transformations::None(yystack_[0].value.as< std::string > ()));
}
#line 4751 "seclang-parser.cc" // lalr1.cc:859
break;
case 407:
#line 2817 "seclang-parser.yy" // lalr1.cc:859
{
ACTION_CONTAINER(yylhs.value.as< std::unique_ptr<actions::Action> > (), new actions::transformations::CompressWhitespace(yystack_[0].value.as< std::string > ()));
}
#line 4759 "seclang-parser.cc" // lalr1.cc:859
break;
case 408:
#line 2821 "seclang-parser.yy" // lalr1.cc:859
{
ACTION_CONTAINER(yylhs.value.as< std::unique_ptr<actions::Action> > (), new actions::transformations::RemoveWhitespace(yystack_[0].value.as< std::string > ()));
}
#line 4767 "seclang-parser.cc" // lalr1.cc:859
break;
case 409:
#line 2825 "seclang-parser.yy" // lalr1.cc:859
{
ACTION_CONTAINER(yylhs.value.as< std::unique_ptr<actions::Action> > (), new actions::transformations::ReplaceNulls(yystack_[0].value.as< std::string > ()));
}
#line 4775 "seclang-parser.cc" // lalr1.cc:859
break;
case 410:
#line 2829 "seclang-parser.yy" // lalr1.cc:859
{
ACTION_CONTAINER(yylhs.value.as< std::unique_ptr<actions::Action> > (), new actions::transformations::RemoveNulls(yystack_[0].value.as< std::string > ()));
}
#line 4783 "seclang-parser.cc" // lalr1.cc:859
break;
case 411:
#line 2833 "seclang-parser.yy" // lalr1.cc:859
{
ACTION_CONTAINER(yylhs.value.as< std::unique_ptr<actions::Action> > (), new actions::transformations::HtmlEntityDecode(yystack_[0].value.as< std::string > ()));
}
#line 4791 "seclang-parser.cc" // lalr1.cc:859
break;
case 412:
#line 2837 "seclang-parser.yy" // lalr1.cc:859
{
ACTION_CONTAINER(yylhs.value.as< std::unique_ptr<actions::Action> > (), new actions::transformations::JsDecode(yystack_[0].value.as< std::string > ()));
}
#line 4799 "seclang-parser.cc" // lalr1.cc:859
break;
case 413:
#line 2841 "seclang-parser.yy" // lalr1.cc:859
{
ACTION_CONTAINER(yylhs.value.as< std::unique_ptr<actions::Action> > (), new actions::transformations::CssDecode(yystack_[0].value.as< std::string > ()));
}
#line 4807 "seclang-parser.cc" // lalr1.cc:859
break;
case 414:
#line 2845 "seclang-parser.yy" // lalr1.cc:859
{
ACTION_CONTAINER(yylhs.value.as< std::unique_ptr<actions::Action> > (), new actions::transformations::Trim(yystack_[0].value.as< std::string > ()));
}
#line 4815 "seclang-parser.cc" // lalr1.cc:859
break;
case 415:
#line 2849 "seclang-parser.yy" // lalr1.cc:859
{
ACTION_CONTAINER(yylhs.value.as< std::unique_ptr<actions::Action> > (), new actions::transformations::NormalisePathWin(yystack_[0].value.as< std::string > ()));
}
#line 4823 "seclang-parser.cc" // lalr1.cc:859
break;
case 416:
#line 2853 "seclang-parser.yy" // lalr1.cc:859
{
ACTION_CONTAINER(yylhs.value.as< std::unique_ptr<actions::Action> > (), new actions::transformations::NormalisePath(yystack_[0].value.as< std::string > ()));
}
#line 4831 "seclang-parser.cc" // lalr1.cc:859
break;
case 417:
#line 2857 "seclang-parser.yy" // lalr1.cc:859
{
ACTION_CONTAINER(yylhs.value.as< std::unique_ptr<actions::Action> > (), new actions::transformations::Length(yystack_[0].value.as< std::string > ()));
}
#line 4839 "seclang-parser.cc" // lalr1.cc:859
break;
case 418:
#line 2861 "seclang-parser.yy" // lalr1.cc:859
{
ACTION_CONTAINER(yylhs.value.as< std::unique_ptr<actions::Action> > (), new actions::transformations::Utf8ToUnicode(yystack_[0].value.as< std::string > ()));
}
#line 4847 "seclang-parser.cc" // lalr1.cc:859
break;
case 419:
#line 2865 "seclang-parser.yy" // lalr1.cc:859
{
ACTION_CONTAINER(yylhs.value.as< std::unique_ptr<actions::Action> > (), new actions::transformations::RemoveCommentsChar(yystack_[0].value.as< std::string > ()));
}
#line 4855 "seclang-parser.cc" // lalr1.cc:859
break;
case 420:
#line 2869 "seclang-parser.yy" // lalr1.cc:859
{
ACTION_CONTAINER(yylhs.value.as< std::unique_ptr<actions::Action> > (), new actions::transformations::RemoveComments(yystack_[0].value.as< std::string > ()));
}
#line 4863 "seclang-parser.cc" // lalr1.cc:859
break;
case 421:
#line 2873 "seclang-parser.yy" // lalr1.cc:859
{
ACTION_CONTAINER(yylhs.value.as< std::unique_ptr<actions::Action> > (), new actions::transformations::ReplaceComments(yystack_[0].value.as< std::string > ()));
}
#line 4871 "seclang-parser.cc" // lalr1.cc:859
break;
case 422:
#line 2880 "seclang-parser.yy" // lalr1.cc:859
{
ACTION_CONTAINER(yylhs.value.as< std::unique_ptr<actions::Action> > (), new actions::SetVar(actions::SetVarOperation::unsetOperation, std::move(yystack_[0].value.as< std::unique_ptr<Variable> > ())));
}
#line 4879 "seclang-parser.cc" // lalr1.cc:859
break;
case 423:
#line 2884 "seclang-parser.yy" // lalr1.cc:859
{
ACTION_CONTAINER(yylhs.value.as< std::unique_ptr<actions::Action> > (), new actions::SetVar(actions::SetVarOperation::setToOneOperation, std::move(yystack_[0].value.as< std::unique_ptr<Variable> > ())));
}
#line 4887 "seclang-parser.cc" // lalr1.cc:859
break;
case 424:
#line 2888 "seclang-parser.yy" // lalr1.cc:859
{
ACTION_CONTAINER(yylhs.value.as< std::unique_ptr<actions::Action> > (), new actions::SetVar(actions::SetVarOperation::setOperation, std::move(yystack_[2].value.as< std::unique_ptr<Variable> > ()), std::move(yystack_[0].value.as< std::unique_ptr<RunTimeString> > ())));
}
#line 4895 "seclang-parser.cc" // lalr1.cc:859
break;
case 425:
#line 2892 "seclang-parser.yy" // lalr1.cc:859
{
ACTION_CONTAINER(yylhs.value.as< std::unique_ptr<actions::Action> > (), new actions::SetVar(actions::SetVarOperation::sumAndSetOperation, std::move(yystack_[2].value.as< std::unique_ptr<Variable> > ()), std::move(yystack_[0].value.as< std::unique_ptr<RunTimeString> > ())));
}
#line 4903 "seclang-parser.cc" // lalr1.cc:859
break;
case 426:
#line 2896 "seclang-parser.yy" // lalr1.cc:859
{
ACTION_CONTAINER(yylhs.value.as< std::unique_ptr<actions::Action> > (), new actions::SetVar(actions::SetVarOperation::substractAndSetOperation, std::move(yystack_[2].value.as< std::unique_ptr<Variable> > ()), std::move(yystack_[0].value.as< std::unique_ptr<RunTimeString> > ())));
}
#line 4911 "seclang-parser.cc" // lalr1.cc:859
break;
case 427:
#line 2903 "seclang-parser.yy" // lalr1.cc:859
{
yystack_[1].value.as< std::unique_ptr<RunTimeString> > ()->appendText(yystack_[0].value.as< std::string > ());
yylhs.value.as< std::unique_ptr<RunTimeString> > () = std::move(yystack_[1].value.as< std::unique_ptr<RunTimeString> > ());
}
#line 4920 "seclang-parser.cc" // lalr1.cc:859
break;
case 428:
#line 2908 "seclang-parser.yy" // lalr1.cc:859
{
yystack_[1].value.as< std::unique_ptr<RunTimeString> > ()->appendVar(std::move(yystack_[0].value.as< std::unique_ptr<Variable> > ()));
yylhs.value.as< std::unique_ptr<RunTimeString> > () = std::move(yystack_[1].value.as< std::unique_ptr<RunTimeString> > ());
}
#line 4929 "seclang-parser.cc" // lalr1.cc:859
break;
case 429:
#line 2913 "seclang-parser.yy" // lalr1.cc:859
{
std::unique_ptr<RunTimeString> r(new RunTimeString());
r->appendText(yystack_[0].value.as< std::string > ());
yylhs.value.as< std::unique_ptr<RunTimeString> > () = std::move(r);
}
#line 4939 "seclang-parser.cc" // lalr1.cc:859
break;
case 430:
#line 2919 "seclang-parser.yy" // lalr1.cc:859
{
std::unique_ptr<RunTimeString> r(new RunTimeString());
r->appendVar(std::move(yystack_[0].value.as< std::unique_ptr<Variable> > ()));
yylhs.value.as< std::unique_ptr<RunTimeString> > () = std::move(r);
}
#line 4949 "seclang-parser.cc" // lalr1.cc:859
break;
#line 4953 "seclang-parser.cc" // lalr1.cc:859
default:
break;
}
}
catch (const syntax_error& yyexc)
{
error (yyexc);
YYERROR;
}
YY_SYMBOL_PRINT ("-> $$ =", yylhs);
yypop_ (yylen);
yylen = 0;
YY_STACK_PRINT ();
// Shift the result of the reduction.
yypush_ (YY_NULLPTR, yylhs);
}
goto yynewstate;
/*--------------------------------------.
| yyerrlab -- here on detecting error. |
`--------------------------------------*/
yyerrlab:
// If not already recovering from an error, report this error.
if (!yyerrstatus_)
{
++yynerrs_;
error (yyla.location, yysyntax_error_ (yystack_[0].state, yyla));
}
yyerror_range[1].location = yyla.location;
if (yyerrstatus_ == 3)
{
/* If just tried and failed to reuse lookahead token after an
error, discard it. */
// Return failure if at end of input.
if (yyla.type_get () == yyeof_)
YYABORT;
else if (!yyla.empty ())
{
yy_destroy_ ("Error: discarding", yyla);
yyla.clear ();
}
}
// Else will try to reuse lookahead token after shifting the error token.
goto yyerrlab1;
/*---------------------------------------------------.
| yyerrorlab -- error raised explicitly by YYERROR. |
`---------------------------------------------------*/
yyerrorlab:
/* Pacify compilers like GCC when the user code never invokes
YYERROR and the label yyerrorlab therefore never appears in user
code. */
if (false)
goto yyerrorlab;
yyerror_range[1].location = yystack_[yylen - 1].location;
/* Do not reclaim the symbols of the rule whose action triggered
this YYERROR. */
yypop_ (yylen);
yylen = 0;
goto yyerrlab1;
/*-------------------------------------------------------------.
| yyerrlab1 -- common code for both syntax error and YYERROR. |
`-------------------------------------------------------------*/
yyerrlab1:
yyerrstatus_ = 3; // Each real token shifted decrements this.
{
stack_symbol_type error_token;
for (;;)
{
yyn = yypact_[yystack_[0].state];
if (!yy_pact_value_is_default_ (yyn))
{
yyn += yyterror_;
if (0 <= yyn && yyn <= yylast_ && yycheck_[yyn] == yyterror_)
{
yyn = yytable_[yyn];
if (0 < yyn)
break;
}
}
// Pop the current state because it cannot handle the error token.
if (yystack_.size () == 1)
YYABORT;
yyerror_range[1].location = yystack_[0].location;
yy_destroy_ ("Error: popping", yystack_[0]);
yypop_ ();
YY_STACK_PRINT ();
}
yyerror_range[2].location = yyla.location;
YYLLOC_DEFAULT (error_token.location, yyerror_range, 2);
// Shift the error token.
error_token.state = yyn;
yypush_ ("Shifting", error_token);
}
goto yynewstate;
// Accept.
yyacceptlab:
yyresult = 0;
goto yyreturn;
// Abort.
yyabortlab:
yyresult = 1;
goto yyreturn;
yyreturn:
if (!yyla.empty ())
yy_destroy_ ("Cleanup: discarding lookahead", yyla);
/* Do not reclaim the symbols of the rule whose action triggered
this YYABORT or YYACCEPT. */
yypop_ (yylen);
while (1 < yystack_.size ())
{
yy_destroy_ ("Cleanup: popping", yystack_[0]);
yypop_ ();
}
return yyresult;
}
catch (...)
{
YYCDEBUG << "Exception caught: cleaning lookahead and stack"
<< std::endl;
// Do not try to display the values of the reclaimed symbols,
// as their printer might throw an exception.
if (!yyla.empty ())
yy_destroy_ (YY_NULLPTR, yyla);
while (1 < yystack_.size ())
{
yy_destroy_ (YY_NULLPTR, yystack_[0]);
yypop_ ();
}
throw;
}
}
void
seclang_parser::error (const syntax_error& yyexc)
{
error (yyexc.location, yyexc.what());
}
// Generate an error message.
std::string
seclang_parser::yysyntax_error_ (state_type yystate, const symbol_type& yyla) const
{
// Number of reported tokens (one for the "unexpected", one per
// "expected").
size_t yycount = 0;
// Its maximum.
enum { YYERROR_VERBOSE_ARGS_MAXIMUM = 5 };
// Arguments of yyformat.
char const *yyarg[YYERROR_VERBOSE_ARGS_MAXIMUM];
/* There are many possibilities here to consider:
- If this state is a consistent state with a default action, then
the only way this function was invoked is if the default action
is an error action. In that case, don't check for expected
tokens because there are none.
- The only way there can be no lookahead present (in yyla) is
if this state is a consistent state with a default action.
Thus, detecting the absence of a lookahead is sufficient to
determine that there is no unexpected or expected token to
report. In that case, just report a simple "syntax error".
- Don't assume there isn't a lookahead just because this state is
a consistent state with a default action. There might have
been a previous inconsistent state, consistent state with a
non-default action, or user semantic action that manipulated
yyla. (However, yyla is currently not documented for users.)
- Of course, the expected token list depends on states to have
correct lookahead information, and it depends on the parser not
to perform extra reductions after fetching a lookahead from the
scanner and before detecting a syntax error. Thus, state
merging (from LALR or IELR) and default reductions corrupt the
expected token list. However, the list is correct for
canonical LR with one exception: it will still contain any
token that will not be accepted due to an error action in a
later state.
*/
if (!yyla.empty ())
{
int yytoken = yyla.type_get ();
yyarg[yycount++] = yytname_[yytoken];
int yyn = yypact_[yystate];
if (!yy_pact_value_is_default_ (yyn))
{
/* Start YYX at -YYN if negative to avoid negative indexes in
YYCHECK. In other words, skip the first -YYN actions for
this state because they are default actions. */
int yyxbegin = yyn < 0 ? -yyn : 0;
// Stay within bounds of both yycheck and yytname.
int yychecklim = yylast_ - yyn + 1;
int yyxend = yychecklim < yyntokens_ ? yychecklim : yyntokens_;
for (int yyx = yyxbegin; yyx < yyxend; ++yyx)
if (yycheck_[yyx + yyn] == yyx && yyx != yyterror_
&& !yy_table_value_is_error_ (yytable_[yyx + yyn]))
{
if (yycount == YYERROR_VERBOSE_ARGS_MAXIMUM)
{
yycount = 1;
break;
}
else
yyarg[yycount++] = yytname_[yyx];
}
}
}
char const* yyformat = YY_NULLPTR;
switch (yycount)
{
#define YYCASE_(N, S) \
case N: \
yyformat = S; \
break
YYCASE_(0, YY_("syntax error"));
YYCASE_(1, YY_("syntax error, unexpected %s"));
YYCASE_(2, YY_("syntax error, unexpected %s, expecting %s"));
YYCASE_(3, YY_("syntax error, unexpected %s, expecting %s or %s"));
YYCASE_(4, YY_("syntax error, unexpected %s, expecting %s or %s or %s"));
YYCASE_(5, YY_("syntax error, unexpected %s, expecting %s or %s or %s or %s"));
#undef YYCASE_
}
std::string yyres;
// Argument number.
size_t yyi = 0;
for (char const* yyp = yyformat; *yyp; ++yyp)
if (yyp[0] == '%' && yyp[1] == 's' && yyi < yycount)
{
yyres += yytnamerr_ (yyarg[yyi++]);
++yyp;
}
else
yyres += *yyp;
return yyres;
}
const short int seclang_parser::yypact_ninf_ = -397;
const signed char seclang_parser::yytable_ninf_ = -1;
const short int
seclang_parser::yypact_[] =
{
2686, -397, -257, -397, -89, -397, -153, -397, -397, -397,
-397, -397, -280, -397, -397, -397, -397, -397, -272, -397,
-397, -397, -150, -148, -397, -397, -397, -397, -397, -397,
-397, -397, -397, -397, -397, -397, -397, -146, -397, -397,
-145, -397, -140, -397, -141, -130, -397, -253, -87, -87,
-397, -397, -397, -397, -128, -289, -397, -397, -397, 1445,
1445, 1445, -87, -265, -126, -397, -397, -397, -124, -397,
-397, -397, -397, -397, -397, -397, -397, -397, 1445, -87,
2839, -397, -397, -397, -397, -397, -397, -397, -397, -397,
-397, -397, -397, -397, -397, -397, -397, -397, -397, -397,
-397, -397, -397, -397, -397, -397, -397, -397, -397, -397,
-397, -397, -397, 2265, -249, -397, -397, -397, -397, -397,
-397, -397, -259, -397, -397, -397, -122, -120, -397, -397,
-397, -397, -397, -397, -397, -397, -397, -397, 2394, -397,
2394, -397, 2394, -397, -397, -397, -397, -397, -397, -397,
-397, 2394, -397, -397, -397, -397, -397, -397, -397, 2394,
2394, 2394, -397, -397, -397, -397, 2394, -397, -397, -397,
-397, -397, -397, -397, -397, -397, -397, -397, -397, -397,
-397, -397, -397, -397, -397, -397, -397, -397, -397, -397,
-397, -397, -397, -397, -397, -397, -397, -397, -397, -397,
-397, 3033, -397, 5, -397, -397, -397, -397, -397, -397,
2585, 2585, -154, -152, -149, -147, -144, -142, -139, -136,
-134, -132, -129, -127, -125, -123, -121, -119, -397, -117,
-115, -113, -111, -397, -397, -109, -397, -397, -397, -397,
-397, -397, -397, -397, -397, -397, -397, -397, -397, -397,
-397, -397, -397, -397, -397, -397, -397, -397, -397, -397,
-397, -397, -397, -397, -397, -397, -397, -397, -397, -397,
-397, -107, -397, -397, -397, -397, -397, 445, -397, -397,
-397, -105, -397, -397, -397, -397, -397, -397, -397, -397,
-397, -397, -397, 533, 621, 944, 1032, 1120, -101, -99,
1535, -397, -397, -397, -397, -397, -397, -397, -397, -397,
-397, -397, -397, -397, -397, 8, -397, -397, -397, -397,
-397, -397, -397, -397, -397, -397, -397, 1945, -397, -397,
-397, 2585, -51, -397, -397, -397, -397, -397, -397, -397,
-397, -397, -397, -397, -397, -397, 2482, 2482, 2482, 2482,
2482, 2482, 2482, 2482, 9, 3033, -397, -397, -397, -397,
-397, -397, -397, -397, -397, -397, -397, -397, -397, -397,
-397, -397, -397, -397, -397, -397, -397, -397, -397, -397,
-397, -397, -397, -397, -397, -397, -397, -397, -397, -397,
-397, -397, -397, -397, -397, -397, -397, -397, -397, -397,
-397, -397, -397, -397, 2482, -397, -397, -397, -397, 2482,
-397, -397, 2482, -397, -397, 2482, -397, -397, 2482, -397,
-397, 2482, -397, -397, -397, -397, 4, 1625, 2074, 2394,
2394, 2394, -397, -397, 2394, 2394, 2394, -397, 2394, 2394,
2394, 2394, 2394, 2394, 2394, 2394, 2394, 2394, 2394, 2394,
2394, 2394, 2394, -397, 2394, 2394, 2394, 2394, -397, -397,
2394, 2394, 2394, 2394, -87, -397, 2482, -397, 2394, 2394,
2394, -397, -397, -397, -397, -397, 2585, 2585, -397, -397,
2482, 2482, 2482, 2482, 2482, 2482, 2482, 2482, 2482, 2482,
2482, 2482, 2482, 2482, 2482, 2482, 2482, 2482, 2482, 2482,
2482, 2482, 2482, 2482, 2482, 2482, 2482, 2482, 2482, 2482,
-397, 2482, 2482, 2482, -397, -397
};
const unsigned short int
seclang_parser::yydefact_[] =
{
0, 2, 0, 139, 0, 87, 0, 86, 90, 91,
7, 6, 0, 11, 14, 12, 13, 17, 0, 124,
123, 92, 0, 0, 100, 101, 102, 103, 97, 125,
104, 105, 137, 136, 108, 109, 110, 0, 128, 126,
0, 127, 0, 129, 0, 0, 113, 0, 0, 0,
78, 148, 149, 150, 0, 0, 116, 118, 117, 0,
0, 0, 0, 0, 0, 26, 24, 25, 0, 138,
144, 145, 146, 143, 147, 114, 115, 142, 0, 0,
0, 4, 72, 5, 96, 95, 15, 16, 89, 88,
9, 10, 8, 20, 19, 18, 94, 93, 99, 98,
83, 82, 130, 131, 85, 84, 132, 133, 112, 111,
81, 79, 80, 0, 0, 328, 329, 330, 331, 332,
333, 334, 0, 338, 339, 340, 0, 0, 348, 349,
350, 351, 352, 353, 354, 355, 356, 357, 0, 360,
0, 361, 0, 363, 364, 365, 366, 367, 368, 369,
370, 0, 372, 373, 374, 375, 376, 377, 378, 0,
0, 0, 383, 384, 385, 386, 0, 394, 395, 396,
397, 407, 413, 400, 401, 411, 412, 417, 402, 399,
406, 416, 415, 392, 391, 390, 420, 419, 410, 408,
421, 409, 398, 393, 414, 403, 405, 404, 418, 388,
389, 0, 75, 30, 32, 77, 107, 106, 134, 135,
0, 0, 161, 164, 167, 170, 173, 176, 179, 182,
185, 188, 191, 194, 197, 200, 203, 206, 259, 248,
209, 245, 251, 260, 261, 218, 262, 263, 264, 265,
266, 267, 268, 269, 270, 271, 272, 273, 274, 275,
276, 277, 278, 279, 280, 281, 282, 283, 284, 285,
286, 287, 289, 288, 292, 291, 290, 293, 295, 294,
296, 254, 297, 298, 299, 301, 300, 222, 302, 303,
255, 258, 304, 305, 306, 307, 308, 309, 310, 311,
312, 314, 313, 226, 230, 238, 242, 234, 212, 215,
0, 316, 315, 317, 318, 319, 320, 321, 322, 323,
324, 325, 326, 327, 119, 151, 156, 120, 121, 122,
22, 21, 23, 28, 27, 140, 141, 0, 76, 1,
3, 0, 423, 382, 347, 346, 345, 336, 335, 337,
342, 341, 344, 343, 429, 430, 358, 359, 362, 371,
379, 380, 381, 387, 0, 0, 158, 157, 159, 160,
162, 163, 165, 166, 168, 169, 171, 172, 174, 175,
177, 178, 180, 181, 183, 184, 186, 187, 189, 190,
192, 193, 195, 196, 198, 199, 201, 202, 204, 205,
246, 247, 207, 208, 243, 244, 249, 250, 216, 217,
252, 253, 220, 221, 219, 256, 257, 224, 225, 223,
228, 229, 227, 236, 237, 235, 240, 241, 239, 232,
233, 231, 210, 211, 213, 214, 0, 0, 0, 0,
0, 0, 38, 39, 0, 0, 0, 71, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 37, 0, 0, 0, 0, 40, 41,
0, 0, 0, 0, 74, 33, 35, 422, 0, 0,
0, 427, 428, 29, 31, 152, 0, 0, 153, 34,
36, 70, 55, 54, 56, 57, 43, 58, 51, 59,
42, 60, 61, 62, 63, 64, 65, 66, 52, 67,
68, 69, 44, 45, 46, 47, 48, 49, 50, 53,
73, 424, 425, 426, 155, 154
};
const short int
seclang_parser::yypgoto_[] =
{
-397, -397, -56, -397, -45, -180, -397, -396, -397, -55,
-255, -59, -302, -397, -133
};
const short int
seclang_parser::yydefgoto_[] =
{
-1, 80, 81, 82, 202, 203, 464, 465, 83, 314,
315, 345, 204, 333, 346
};
const unsigned short int
seclang_parser::yytable_[] =
{
316, 316, 316, 208, 205, 317, 318, 347, 355, 348,
427, 113, 355, 209, 427, 90, 91, 319, 349, 316,
92, 354, 93, 327, 330, 94, 350, 351, 352, 95,
320, 321, 479, 353, 328, 322, 337, 338, 84, 85,
110, 339, 111, 112, 334, 426, 335, 336, 468, 469,
470, 86, 87, 474, 332, 114, 115, 116, 117, 118,
119, 120, 121, 122, 123, 124, 125, 126, 127, 128,
129, 130, 131, 132, 133, 134, 135, 136, 137, 138,
139, 140, 141, 142, 143, 144, 145, 146, 147, 148,
149, 150, 151, 152, 153, 154, 155, 156, 157, 158,
159, 160, 161, 162, 163, 164, 165, 166, 167, 168,
169, 170, 171, 172, 173, 174, 175, 176, 177, 178,
179, 180, 181, 182, 183, 184, 185, 186, 187, 188,
189, 190, 191, 192, 193, 194, 195, 196, 197, 198,
199, 200, 88, 89, 404, 96, 97, 98, 99, 100,
101, 356, 357, 102, 103, 104, 105, 106, 107, 0,
409, 412, 415, 418, 421, 108, 109, 206, 207, 323,
324, 325, 326, 340, 341, 342, 343, 358, 359, 360,
361, 0, 362, 363, 364, 365, 0, 366, 367, 368,
369, 0, 370, 371, 466, 372, 373, 374, 375, 376,
377, 0, 378, 379, 380, 381, 382, 383, 384, 385,
386, 387, 388, 389, 390, 391, 392, 393, 394, 395,
396, 397, 398, 399, 400, 401, 405, 406, 0, 201,
422, 423, 424, 425, 0, 0, 0, 0, 0, 0,
0, 316, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 467, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 472, 472, 472,
472, 472, 472, 472, 472, 480, 481, 482, 483, 0,
0, 484, 485, 486, 0, 487, 488, 489, 490, 491,
492, 493, 494, 495, 496, 497, 498, 499, 500, 501,
475, 502, 503, 504, 505, 473, 0, 506, 507, 508,
509, 0, 0, 0, 0, 511, 512, 513, 0, 0,
0, 0, 0, 0, 0, 472, 0, 0, 0, 0,
472, 0, 0, 472, 0, 0, 472, 0, 0, 472,
0, 0, 472, 0, 0, 0, 0, 0, 478, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 472, 0, 0,
0, 0, 0, 0, 0, 0, 0, 514, 515, 510,
0, 472, 472, 472, 472, 472, 472, 472, 472, 472,
472, 472, 472, 472, 472, 472, 472, 472, 472, 472,
472, 472, 472, 472, 472, 472, 472, 472, 472, 472,
472, 0, 472, 472, 472, 212, 213, 214, 215, 216,
217, 218, 219, 220, 221, 222, 223, 224, 225, 226,
227, 228, 229, 230, 231, 232, 233, 234, 235, 236,
237, 238, 239, 240, 241, 242, 243, 244, 245, 246,
247, 248, 249, 250, 251, 252, 253, 254, 255, 256,
257, 258, 259, 260, 261, 262, 263, 264, 265, 266,
267, 268, 269, 270, 271, 272, 273, 274, 275, 276,
277, 278, 279, 280, 281, 282, 283, 284, 285, 286,
287, 288, 289, 290, 291, 292, 293, 294, 295, 296,
297, 298, 299, 212, 213, 214, 215, 216, 217, 218,
219, 220, 221, 222, 223, 224, 225, 226, 227, 228,
229, 230, 231, 232, 233, 234, 235, 236, 237, 238,
239, 240, 241, 242, 243, 244, 245, 246, 247, 248,
249, 250, 251, 252, 253, 254, 255, 256, 257, 258,
259, 260, 261, 262, 263, 264, 265, 266, 267, 268,
269, 270, 271, 272, 273, 274, 275, 276, 277, 278,
279, 280, 281, 282, 283, 284, 285, 286, 287, 288,
289, 290, 291, 292, 293, 294, 295, 296, 297, 298,
299, 212, 213, 214, 215, 216, 217, 218, 219, 220,
221, 222, 223, 224, 225, 226, 227, 228, 229, 230,
231, 232, 233, 234, 235, 236, 237, 238, 239, 240,
241, 242, 243, 244, 245, 246, 247, 248, 249, 250,
251, 252, 253, 254, 255, 256, 257, 258, 259, 260,
261, 262, 263, 264, 265, 266, 267, 268, 269, 270,
271, 272, 273, 274, 275, 276, 277, 278, 279, 280,
281, 282, 283, 284, 285, 286, 287, 288, 289, 290,
291, 292, 293, 294, 295, 296, 297, 298, 299, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
344, 0, 301, 302, 303, 304, 305, 306, 307, 308,
309, 310, 311, 312, 313, 0, 402, 403, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 344, 0,
301, 302, 303, 304, 305, 306, 307, 308, 309, 310,
311, 312, 313, 0, 407, 408, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 344, 0, 301, 302,
303, 304, 305, 306, 307, 308, 309, 310, 311, 312,
313, 0, 410, 411, 212, 213, 214, 215, 216, 217,
218, 219, 220, 221, 222, 223, 224, 225, 226, 227,
228, 229, 230, 231, 232, 233, 234, 235, 236, 237,
238, 239, 240, 241, 242, 243, 244, 245, 246, 247,
248, 249, 250, 251, 252, 253, 254, 255, 256, 257,
258, 259, 260, 261, 262, 263, 264, 265, 266, 267,
268, 269, 270, 271, 272, 273, 274, 275, 276, 277,
278, 279, 280, 281, 282, 283, 284, 285, 286, 287,
288, 289, 290, 291, 292, 293, 294, 295, 296, 297,
298, 299, 212, 213, 214, 215, 216, 217, 218, 219,
220, 221, 222, 223, 224, 225, 226, 227, 228, 229,
230, 231, 232, 233, 234, 235, 236, 237, 238, 239,
240, 241, 242, 243, 244, 245, 246, 247, 248, 249,
250, 251, 252, 253, 254, 255, 256, 257, 258, 259,
260, 261, 262, 263, 264, 265, 266, 267, 268, 269,
270, 271, 272, 273, 274, 275, 276, 277, 278, 279,
280, 281, 282, 283, 284, 285, 286, 287, 288, 289,
290, 291, 292, 293, 294, 295, 296, 297, 298, 299,
212, 213, 214, 215, 216, 217, 218, 219, 220, 221,
222, 223, 224, 225, 226, 227, 228, 229, 230, 231,
232, 233, 234, 235, 236, 237, 238, 239, 240, 241,
242, 243, 244, 245, 246, 247, 248, 249, 250, 251,
252, 253, 254, 255, 256, 257, 258, 259, 260, 261,
262, 263, 264, 265, 266, 267, 268, 269, 270, 271,
272, 273, 274, 275, 276, 277, 278, 279, 280, 281,
282, 283, 284, 285, 286, 287, 288, 289, 290, 291,
292, 293, 294, 295, 296, 297, 298, 299, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 344,
0, 301, 302, 303, 304, 305, 306, 307, 308, 309,
310, 311, 312, 313, 0, 413, 414, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 344, 0, 301,
302, 303, 304, 305, 306, 307, 308, 309, 310, 311,
312, 313, 0, 416, 417, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 344, 0, 301, 302, 303,
304, 305, 306, 307, 308, 309, 310, 311, 312, 313,
0, 419, 420, 210, 211, 212, 213, 214, 215, 216,
217, 218, 219, 220, 221, 222, 223, 224, 225, 226,
227, 228, 229, 230, 231, 232, 233, 234, 235, 236,
237, 238, 239, 240, 241, 242, 243, 244, 245, 246,
247, 248, 249, 250, 251, 252, 253, 254, 255, 256,
257, 258, 259, 260, 261, 262, 263, 264, 265, 266,
267, 268, 269, 270, 271, 272, 273, 274, 275, 276,
277, 278, 279, 280, 281, 282, 283, 284, 285, 286,
287, 288, 289, 290, 291, 292, 293, 294, 295, 296,
297, 298, 299, 210, 211, 212, 213, 214, 215, 216,
217, 218, 219, 220, 221, 222, 223, 224, 225, 226,
227, 228, 229, 230, 231, 232, 233, 234, 235, 236,
237, 238, 239, 240, 241, 242, 243, 244, 245, 246,
247, 248, 249, 250, 251, 252, 253, 254, 255, 256,
257, 258, 259, 260, 261, 262, 263, 264, 265, 266,
267, 268, 269, 270, 271, 272, 273, 274, 275, 276,
277, 278, 279, 280, 281, 282, 283, 284, 285, 286,
287, 288, 289, 290, 291, 292, 293, 294, 295, 296,
297, 298, 299, 476, 477, 212, 213, 214, 215, 216,
217, 218, 219, 220, 221, 222, 223, 224, 225, 226,
227, 228, 229, 230, 231, 232, 233, 234, 235, 236,
237, 238, 239, 240, 241, 242, 243, 244, 245, 246,
247, 248, 249, 250, 251, 252, 253, 254, 255, 256,
257, 258, 259, 260, 261, 262, 263, 264, 265, 266,
267, 268, 269, 270, 271, 272, 273, 274, 275, 276,
277, 278, 279, 280, 281, 282, 283, 284, 285, 286,
287, 288, 289, 290, 291, 292, 293, 294, 295, 296,
297, 298, 299, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 300, 301, 302, 303, 304, 305, 306, 307, 308,
309, 310, 311, 312, 313, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 301, 302, 303, 304, 305, 306, 307, 308,
309, 310, 311, 312, 313, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 301, 302, 303, 304, 305, 306, 307, 308,
309, 310, 311, 312, 313, 212, 213, 214, 215, 216,
217, 218, 219, 220, 221, 222, 223, 224, 225, 226,
227, 228, 229, 230, 231, 232, 233, 234, 235, 236,
237, 238, 239, 240, 241, 242, 243, 244, 245, 246,
247, 248, 249, 250, 251, 252, 253, 254, 255, 256,
257, 258, 259, 260, 261, 262, 263, 264, 265, 266,
267, 268, 269, 270, 271, 272, 273, 274, 275, 276,
277, 278, 279, 280, 281, 282, 283, 284, 285, 286,
287, 288, 289, 290, 291, 292, 293, 294, 295, 296,
297, 298, 299, 0, 0, 0, 0, 428, 429, 430,
431, 432, 433, 434, 435, 436, 437, 438, 439, 440,
441, 442, 443, 444, 445, 446, 447, 448, 449, 0,
450, 451, 452, 453, 454, 455, 456, 457, 458, 459,
460, 461, 462, 463, 212, 213, 214, 215, 216, 217,
218, 219, 220, 221, 222, 223, 224, 225, 226, 227,
228, 229, 230, 231, 232, 233, 234, 235, 236, 237,
238, 239, 240, 241, 242, 243, 244, 245, 246, 247,
248, 249, 250, 251, 252, 253, 254, 255, 256, 257,
258, 259, 260, 261, 262, 263, 264, 265, 266, 267,
268, 269, 270, 271, 272, 273, 274, 275, 276, 277,
278, 279, 280, 281, 282, 283, 284, 285, 286, 287,
288, 289, 290, 291, 292, 293, 294, 295, 296, 297,
298, 299, 0, 0, 0, 0, 0, 429, 430, 431,
432, 433, 434, 435, 436, 437, 438, 439, 440, 441,
442, 443, 444, 445, 446, 447, 448, 449, 0, 450,
451, 452, 453, 454, 455, 456, 457, 458, 459, 460,
461, 462, 463, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
344, 0, 301, 302, 303, 304, 305, 306, 307, 308,
309, 310, 311, 312, 313, 212, 213, 214, 215, 216,
217, 218, 219, 220, 221, 222, 223, 224, 225, 226,
227, 228, 229, 230, 231, 232, 233, 234, 235, 236,
237, 238, 239, 240, 241, 242, 243, 244, 245, 246,
247, 248, 249, 250, 251, 252, 253, 254, 255, 256,
257, 258, 259, 260, 261, 262, 263, 264, 265, 266,
267, 268, 269, 270, 271, 272, 273, 274, 275, 276,
277, 278, 279, 280, 281, 282, 283, 284, 285, 286,
287, 288, 289, 290, 291, 292, 293, 294, 295, 296,
297, 298, 299, 0, 0, 0, 0, 331, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 344,
0, 301, 302, 303, 304, 305, 306, 307, 308, 309,
310, 311, 312, 313, 212, 213, 214, 215, 216, 217,
218, 219, 220, 221, 222, 223, 224, 225, 226, 227,
228, 229, 230, 231, 232, 233, 234, 235, 236, 237,
238, 239, 240, 241, 242, 243, 244, 245, 246, 247,
248, 249, 250, 251, 252, 253, 254, 255, 256, 257,
258, 259, 260, 261, 262, 263, 264, 265, 266, 267,
268, 269, 270, 271, 272, 273, 274, 275, 276, 277,
278, 279, 280, 281, 282, 283, 284, 285, 286, 287,
288, 289, 290, 291, 292, 293, 294, 295, 296, 297,
298, 299, 212, 213, 214, 215, 216, 217, 218, 219,
220, 221, 222, 223, 224, 225, 226, 227, 228, 229,
230, 231, 232, 233, 234, 235, 236, 237, 238, 239,
240, 241, 242, 243, 244, 245, 246, 247, 248, 249,
250, 251, 252, 253, 254, 255, 256, 257, 258, 259,
260, 261, 262, 263, 264, 265, 266, 267, 268, 269,
270, 271, 272, 273, 274, 275, 276, 277, 278, 279,
280, 281, 282, 283, 284, 285, 286, 287, 288, 289,
290, 291, 292, 293, 294, 295, 296, 297, 298, 299,
0, 0, 301, 302, 303, 304, 305, 306, 307, 308,
309, 310, 311, 312, 313, 212, 213, 214, 215, 216,
217, 218, 219, 220, 221, 222, 223, 224, 225, 226,
227, 228, 229, 230, 231, 232, 233, 234, 235, 236,
237, 238, 239, 240, 241, 242, 243, 244, 245, 246,
247, 248, 249, 250, 251, 252, 253, 254, 255, 256,
257, 258, 259, 260, 261, 262, 263, 264, 265, 266,
267, 268, 269, 270, 271, 272, 273, 274, 275, 276,
277, 278, 279, 280, 281, 282, 283, 284, 285, 286,
287, 288, 289, 290, 291, 292, 293, 294, 295, 296,
297, 298, 299, 0, 0, 0, 1, 0, 0, 0,
2, 3, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 344,
0, 301, 302, 303, 304, 305, 306, 307, 308, 309,
310, 311, 312, 313, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 471, 0, 301,
302, 303, 304, 305, 306, 307, 308, 309, 310, 311,
312, 313, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 4, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 329,
0, 0, 0, 2, 3, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 301, 302, 303, 304, 305, 306, 307, 308,
309, 310, 311, 312, 313, 5, 6, 7, 8, 9,
10, 11, 12, 13, 14, 15, 16, 17, 18, 19,
20, 21, 22, 23, 24, 25, 26, 27, 28, 29,
30, 31, 32, 33, 34, 35, 36, 37, 38, 39,
40, 41, 42, 43, 44, 45, 46, 47, 48, 49,
50, 51, 52, 53, 54, 55, 56, 57, 58, 59,
60, 61, 62, 63, 64, 65, 66, 67, 4, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 68,
69, 70, 71, 72, 73, 74, 75, 76, 77, 78,
79, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 5, 6,
7, 8, 9, 10, 11, 12, 13, 14, 15, 16,
17, 18, 19, 20, 21, 22, 23, 24, 25, 26,
27, 28, 29, 30, 31, 32, 33, 34, 35, 36,
37, 38, 39, 40, 41, 42, 43, 44, 45, 46,
47, 48, 49, 50, 51, 52, 53, 54, 55, 56,
57, 58, 59, 60, 61, 62, 63, 64, 65, 66,
67, 113, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 68, 69, 70, 71, 72, 73, 74, 75,
76, 77, 78, 79, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 114, 115, 116, 117, 118,
119, 120, 121, 122, 123, 124, 125, 126, 127, 128,
129, 130, 131, 132, 133, 134, 135, 136, 137, 138,
139, 140, 141, 142, 143, 144, 145, 146, 147, 148,
149, 150, 151, 152, 153, 154, 155, 156, 157, 158,
159, 160, 161, 162, 163, 164, 165, 166, 167, 168,
169, 170, 171, 172, 173, 174, 175, 176, 177, 178,
179, 180, 181, 182, 183, 184, 185, 186, 187, 188,
189, 190, 191, 192, 193, 194, 195, 196, 197, 198,
199, 200
};
const short int
seclang_parser::yycheck_[] =
{
59, 60, 61, 292, 49, 60, 61, 140, 3, 142,
6, 98, 3, 302, 6, 295, 296, 62, 151, 78,
300, 201, 294, 78, 80, 297, 159, 160, 161, 301,
295, 296, 428, 166, 79, 300, 295, 296, 295, 296,
293, 300, 295, 296, 293, 300, 295, 296, 99, 100,
101, 140, 141, 355, 113, 142, 143, 144, 145, 146,
147, 148, 149, 150, 151, 152, 153, 154, 155, 156,
157, 158, 159, 160, 161, 162, 163, 164, 165, 166,
167, 168, 169, 170, 171, 172, 173, 174, 175, 176,
177, 178, 179, 180, 181, 182, 183, 184, 185, 186,
187, 188, 189, 190, 191, 192, 193, 194, 195, 196,
197, 198, 199, 200, 201, 202, 203, 204, 205, 206,
207, 208, 209, 210, 211, 212, 213, 214, 215, 216,
217, 218, 219, 220, 221, 222, 223, 224, 225, 226,
227, 228, 295, 296, 277, 295, 296, 295, 296, 295,
296, 210, 211, 298, 299, 295, 296, 298, 299, -1,
293, 294, 295, 296, 297, 295, 296, 295, 296, 295,
296, 295, 296, 295, 296, 295, 296, 331, 332, 331,
332, -1, 331, 332, 331, 332, -1, 331, 332, 331,
332, -1, 331, 332, 327, 331, 332, 331, 332, 331,
332, -1, 331, 332, 331, 332, 331, 332, 331, 332,
331, 332, 331, 332, 331, 332, 331, 332, 331, 332,
331, 332, 331, 332, 331, 332, 331, 332, -1, 316,
331, 332, 331, 332, -1, -1, -1, -1, -1, -1,
-1, 300, -1, -1, -1, -1, -1, -1, -1, -1,
-1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
-1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
-1, -1, 331, -1, -1, -1, -1, -1, -1, -1,
-1, -1, -1, -1, -1, -1, -1, 346, 347, 348,
349, 350, 351, 352, 353, 428, 429, 430, 431, -1,
-1, 434, 435, 436, -1, 438, 439, 440, 441, 442,
443, 444, 445, 446, 447, 448, 449, 450, 451, 452,
316, 454, 455, 456, 457, 316, -1, 460, 461, 462,
463, -1, -1, -1, -1, 468, 469, 470, -1, -1,
-1, -1, -1, -1, -1, 404, -1, -1, -1, -1,
409, -1, -1, 412, -1, -1, 415, -1, -1, 418,
-1, -1, 421, -1, -1, -1, -1, -1, 427, -1,
-1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
-1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
-1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
-1, -1, -1, -1, -1, -1, -1, 466, -1, -1,
-1, -1, -1, -1, -1, -1, -1, 476, 477, 464,
-1, 480, 481, 482, 483, 484, 485, 486, 487, 488,
489, 490, 491, 492, 493, 494, 495, 496, 497, 498,
499, 500, 501, 502, 503, 504, 505, 506, 507, 508,
509, -1, 511, 512, 513, 10, 11, 12, 13, 14,
15, 16, 17, 18, 19, 20, 21, 22, 23, 24,
25, 26, 27, 28, 29, 30, 31, 32, 33, 34,
35, 36, 37, 38, 39, 40, 41, 42, 43, 44,
45, 46, 47, 48, 49, 50, 51, 52, 53, 54,
55, 56, 57, 58, 59, 60, 61, 62, 63, 64,
65, 66, 67, 68, 69, 70, 71, 72, 73, 74,
75, 76, 77, 78, 79, 80, 81, 82, 83, 84,
85, 86, 87, 88, 89, 90, 91, 92, 93, 94,
95, 96, 97, 10, 11, 12, 13, 14, 15, 16,
17, 18, 19, 20, 21, 22, 23, 24, 25, 26,
27, 28, 29, 30, 31, 32, 33, 34, 35, 36,
37, 38, 39, 40, 41, 42, 43, 44, 45, 46,
47, 48, 49, 50, 51, 52, 53, 54, 55, 56,
57, 58, 59, 60, 61, 62, 63, 64, 65, 66,
67, 68, 69, 70, 71, 72, 73, 74, 75, 76,
77, 78, 79, 80, 81, 82, 83, 84, 85, 86,
87, 88, 89, 90, 91, 92, 93, 94, 95, 96,
97, 10, 11, 12, 13, 14, 15, 16, 17, 18,
19, 20, 21, 22, 23, 24, 25, 26, 27, 28,
29, 30, 31, 32, 33, 34, 35, 36, 37, 38,
39, 40, 41, 42, 43, 44, 45, 46, 47, 48,
49, 50, 51, 52, 53, 54, 55, 56, 57, 58,
59, 60, 61, 62, 63, 64, 65, 66, 67, 68,
69, 70, 71, 72, 73, 74, 75, 76, 77, 78,
79, 80, 81, 82, 83, 84, 85, 86, 87, 88,
89, 90, 91, 92, 93, 94, 95, 96, 97, -1,
-1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
-1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
-1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
-1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
315, -1, 317, 318, 319, 320, 321, 322, 323, 324,
325, 326, 327, 328, 329, -1, 331, 332, -1, -1,
-1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
-1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
-1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
-1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
-1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
-1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
-1, -1, -1, -1, -1, -1, -1, -1, 315, -1,
317, 318, 319, 320, 321, 322, 323, 324, 325, 326,
327, 328, 329, -1, 331, 332, -1, -1, -1, -1,
-1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
-1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
-1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
-1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
-1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
-1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
-1, -1, -1, -1, -1, -1, 315, -1, 317, 318,
319, 320, 321, 322, 323, 324, 325, 326, 327, 328,
329, -1, 331, 332, 10, 11, 12, 13, 14, 15,
16, 17, 18, 19, 20, 21, 22, 23, 24, 25,
26, 27, 28, 29, 30, 31, 32, 33, 34, 35,
36, 37, 38, 39, 40, 41, 42, 43, 44, 45,
46, 47, 48, 49, 50, 51, 52, 53, 54, 55,
56, 57, 58, 59, 60, 61, 62, 63, 64, 65,
66, 67, 68, 69, 70, 71, 72, 73, 74, 75,
76, 77, 78, 79, 80, 81, 82, 83, 84, 85,
86, 87, 88, 89, 90, 91, 92, 93, 94, 95,
96, 97, 10, 11, 12, 13, 14, 15, 16, 17,
18, 19, 20, 21, 22, 23, 24, 25, 26, 27,
28, 29, 30, 31, 32, 33, 34, 35, 36, 37,
38, 39, 40, 41, 42, 43, 44, 45, 46, 47,
48, 49, 50, 51, 52, 53, 54, 55, 56, 57,
58, 59, 60, 61, 62, 63, 64, 65, 66, 67,
68, 69, 70, 71, 72, 73, 74, 75, 76, 77,
78, 79, 80, 81, 82, 83, 84, 85, 86, 87,
88, 89, 90, 91, 92, 93, 94, 95, 96, 97,
10, 11, 12, 13, 14, 15, 16, 17, 18, 19,
20, 21, 22, 23, 24, 25, 26, 27, 28, 29,
30, 31, 32, 33, 34, 35, 36, 37, 38, 39,
40, 41, 42, 43, 44, 45, 46, 47, 48, 49,
50, 51, 52, 53, 54, 55, 56, 57, 58, 59,
60, 61, 62, 63, 64, 65, 66, 67, 68, 69,
70, 71, 72, 73, 74, 75, 76, 77, 78, 79,
80, 81, 82, 83, 84, 85, 86, 87, 88, 89,
90, 91, 92, 93, 94, 95, 96, 97, -1, -1,
-1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
-1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
-1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
-1, -1, -1, -1, -1, -1, -1, -1, -1, 315,
-1, 317, 318, 319, 320, 321, 322, 323, 324, 325,
326, 327, 328, 329, -1, 331, 332, -1, -1, -1,
-1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
-1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
-1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
-1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
-1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
-1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
-1, -1, -1, -1, -1, -1, -1, 315, -1, 317,
318, 319, 320, 321, 322, 323, 324, 325, 326, 327,
328, 329, -1, 331, 332, -1, -1, -1, -1, -1,
-1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
-1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
-1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
-1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
-1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
-1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
-1, -1, -1, -1, -1, 315, -1, 317, 318, 319,
320, 321, 322, 323, 324, 325, 326, 327, 328, 329,
-1, 331, 332, 8, 9, 10, 11, 12, 13, 14,
15, 16, 17, 18, 19, 20, 21, 22, 23, 24,
25, 26, 27, 28, 29, 30, 31, 32, 33, 34,
35, 36, 37, 38, 39, 40, 41, 42, 43, 44,
45, 46, 47, 48, 49, 50, 51, 52, 53, 54,
55, 56, 57, 58, 59, 60, 61, 62, 63, 64,
65, 66, 67, 68, 69, 70, 71, 72, 73, 74,
75, 76, 77, 78, 79, 80, 81, 82, 83, 84,
85, 86, 87, 88, 89, 90, 91, 92, 93, 94,
95, 96, 97, 8, 9, 10, 11, 12, 13, 14,
15, 16, 17, 18, 19, 20, 21, 22, 23, 24,
25, 26, 27, 28, 29, 30, 31, 32, 33, 34,
35, 36, 37, 38, 39, 40, 41, 42, 43, 44,
45, 46, 47, 48, 49, 50, 51, 52, 53, 54,
55, 56, 57, 58, 59, 60, 61, 62, 63, 64,
65, 66, 67, 68, 69, 70, 71, 72, 73, 74,
75, 76, 77, 78, 79, 80, 81, 82, 83, 84,
85, 86, 87, 88, 89, 90, 91, 92, 93, 94,
95, 96, 97, 8, 9, 10, 11, 12, 13, 14,
15, 16, 17, 18, 19, 20, 21, 22, 23, 24,
25, 26, 27, 28, 29, 30, 31, 32, 33, 34,
35, 36, 37, 38, 39, 40, 41, 42, 43, 44,
45, 46, 47, 48, 49, 50, 51, 52, 53, 54,
55, 56, 57, 58, 59, 60, 61, 62, 63, 64,
65, 66, 67, 68, 69, 70, 71, 72, 73, 74,
75, 76, 77, 78, 79, 80, 81, 82, 83, 84,
85, 86, 87, 88, 89, 90, 91, 92, 93, 94,
95, 96, 97, -1, -1, -1, -1, -1, -1, -1,
-1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
-1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
-1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
-1, 316, 317, 318, 319, 320, 321, 322, 323, 324,
325, 326, 327, 328, 329, -1, -1, -1, -1, -1,
-1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
-1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
-1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
-1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
-1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
-1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
-1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
-1, -1, 317, 318, 319, 320, 321, 322, 323, 324,
325, 326, 327, 328, 329, -1, -1, -1, -1, -1,
-1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
-1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
-1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
-1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
-1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
-1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
-1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
-1, -1, 317, 318, 319, 320, 321, 322, 323, 324,
325, 326, 327, 328, 329, 10, 11, 12, 13, 14,
15, 16, 17, 18, 19, 20, 21, 22, 23, 24,
25, 26, 27, 28, 29, 30, 31, 32, 33, 34,
35, 36, 37, 38, 39, 40, 41, 42, 43, 44,
45, 46, 47, 48, 49, 50, 51, 52, 53, 54,
55, 56, 57, 58, 59, 60, 61, 62, 63, 64,
65, 66, 67, 68, 69, 70, 71, 72, 73, 74,
75, 76, 77, 78, 79, 80, 81, 82, 83, 84,
85, 86, 87, 88, 89, 90, 91, 92, 93, 94,
95, 96, 97, -1, -1, -1, -1, 102, 103, 104,
105, 106, 107, 108, 109, 110, 111, 112, 113, 114,
115, 116, 117, 118, 119, 120, 121, 122, 123, -1,
125, 126, 127, 128, 129, 130, 131, 132, 133, 134,
135, 136, 137, 138, 10, 11, 12, 13, 14, 15,
16, 17, 18, 19, 20, 21, 22, 23, 24, 25,
26, 27, 28, 29, 30, 31, 32, 33, 34, 35,
36, 37, 38, 39, 40, 41, 42, 43, 44, 45,
46, 47, 48, 49, 50, 51, 52, 53, 54, 55,
56, 57, 58, 59, 60, 61, 62, 63, 64, 65,
66, 67, 68, 69, 70, 71, 72, 73, 74, 75,
76, 77, 78, 79, 80, 81, 82, 83, 84, 85,
86, 87, 88, 89, 90, 91, 92, 93, 94, 95,
96, 97, -1, -1, -1, -1, -1, 103, 104, 105,
106, 107, 108, 109, 110, 111, 112, 113, 114, 115,
116, 117, 118, 119, 120, 121, 122, 123, -1, 125,
126, 127, 128, 129, 130, 131, 132, 133, 134, 135,
136, 137, 138, -1, -1, -1, -1, -1, -1, -1,
-1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
-1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
-1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
-1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
315, -1, 317, 318, 319, 320, 321, 322, 323, 324,
325, 326, 327, 328, 329, 10, 11, 12, 13, 14,
15, 16, 17, 18, 19, 20, 21, 22, 23, 24,
25, 26, 27, 28, 29, 30, 31, 32, 33, 34,
35, 36, 37, 38, 39, 40, 41, 42, 43, 44,
45, 46, 47, 48, 49, 50, 51, 52, 53, 54,
55, 56, 57, 58, 59, 60, 61, 62, 63, 64,
65, 66, 67, 68, 69, 70, 71, 72, 73, 74,
75, 76, 77, 78, 79, 80, 81, 82, 83, 84,
85, 86, 87, 88, 89, 90, 91, 92, 93, 94,
95, 96, 97, -1, -1, -1, -1, 102, -1, -1,
-1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
-1, -1, -1, -1, -1, -1, -1, -1, -1, 315,
-1, 317, 318, 319, 320, 321, 322, 323, 324, 325,
326, 327, 328, 329, 10, 11, 12, 13, 14, 15,
16, 17, 18, 19, 20, 21, 22, 23, 24, 25,
26, 27, 28, 29, 30, 31, 32, 33, 34, 35,
36, 37, 38, 39, 40, 41, 42, 43, 44, 45,
46, 47, 48, 49, 50, 51, 52, 53, 54, 55,
56, 57, 58, 59, 60, 61, 62, 63, 64, 65,
66, 67, 68, 69, 70, 71, 72, 73, 74, 75,
76, 77, 78, 79, 80, 81, 82, 83, 84, 85,
86, 87, 88, 89, 90, 91, 92, 93, 94, 95,
96, 97, 10, 11, 12, 13, 14, 15, 16, 17,
18, 19, 20, 21, 22, 23, 24, 25, 26, 27,
28, 29, 30, 31, 32, 33, 34, 35, 36, 37,
38, 39, 40, 41, 42, 43, 44, 45, 46, 47,
48, 49, 50, 51, 52, 53, 54, 55, 56, 57,
58, 59, 60, 61, 62, 63, 64, 65, 66, 67,
68, 69, 70, 71, 72, 73, 74, 75, 76, 77,
78, 79, 80, 81, 82, 83, 84, 85, 86, 87,
88, 89, 90, 91, 92, 93, 94, 95, 96, 97,
-1, -1, 317, 318, 319, 320, 321, 322, 323, 324,
325, 326, 327, 328, 329, 10, 11, 12, 13, 14,
15, 16, 17, 18, 19, 20, 21, 22, 23, 24,
25, 26, 27, 28, 29, 30, 31, 32, 33, 34,
35, 36, 37, 38, 39, 40, 41, 42, 43, 44,
45, 46, 47, 48, 49, 50, 51, 52, 53, 54,
55, 56, 57, 58, 59, 60, 61, 62, 63, 64,
65, 66, 67, 68, 69, 70, 71, 72, 73, 74,
75, 76, 77, 78, 79, 80, 81, 82, 83, 84,
85, 86, 87, 88, 89, 90, 91, 92, 93, 94,
95, 96, 97, -1, -1, -1, 0, -1, -1, -1,
4, 5, -1, -1, -1, -1, -1, -1, -1, -1,
-1, -1, -1, -1, -1, -1, -1, -1, -1, 315,
-1, 317, 318, 319, 320, 321, 322, 323, 324, 325,
326, 327, 328, 329, -1, -1, -1, -1, -1, -1,
-1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
-1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
-1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
-1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
-1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
-1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
-1, -1, -1, -1, -1, -1, -1, 315, -1, 317,
318, 319, 320, 321, 322, 323, 324, 325, 326, 327,
328, 329, -1, -1, -1, -1, -1, -1, -1, -1,
-1, -1, -1, -1, -1, 139, -1, -1, -1, -1,
-1, -1, -1, -1, -1, -1, -1, -1, -1, 0,
-1, -1, -1, 4, 5, -1, -1, -1, -1, -1,
-1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
-1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
-1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
-1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
-1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
-1, -1, 317, 318, 319, 320, 321, 322, 323, 324,
325, 326, 327, 328, 329, 229, 230, 231, 232, 233,
234, 235, 236, 237, 238, 239, 240, 241, 242, 243,
244, 245, 246, 247, 248, 249, 250, 251, 252, 253,
254, 255, 256, 257, 258, 259, 260, 261, 262, 263,
264, 265, 266, 267, 268, 269, 270, 271, 272, 273,
274, 275, 276, 277, 278, 279, 280, 281, 282, 283,
284, 285, 286, 287, 288, 289, 290, 291, 139, -1,
-1, -1, -1, -1, -1, -1, -1, -1, -1, 303,
304, 305, 306, 307, 308, 309, 310, 311, 312, 313,
314, -1, -1, -1, -1, -1, -1, -1, -1, -1,
-1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
-1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
-1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
-1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
-1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
-1, -1, -1, -1, -1, -1, -1, -1, 229, 230,
231, 232, 233, 234, 235, 236, 237, 238, 239, 240,
241, 242, 243, 244, 245, 246, 247, 248, 249, 250,
251, 252, 253, 254, 255, 256, 257, 258, 259, 260,
261, 262, 263, 264, 265, 266, 267, 268, 269, 270,
271, 272, 273, 274, 275, 276, 277, 278, 279, 280,
281, 282, 283, 284, 285, 286, 287, 288, 289, 290,
291, 98, -1, -1, -1, -1, -1, -1, -1, -1,
-1, -1, 303, 304, 305, 306, 307, 308, 309, 310,
311, 312, 313, 314, -1, -1, -1, -1, -1, -1,
-1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
-1, -1, -1, -1, -1, 142, 143, 144, 145, 146,
147, 148, 149, 150, 151, 152, 153, 154, 155, 156,
157, 158, 159, 160, 161, 162, 163, 164, 165, 166,
167, 168, 169, 170, 171, 172, 173, 174, 175, 176,
177, 178, 179, 180, 181, 182, 183, 184, 185, 186,
187, 188, 189, 190, 191, 192, 193, 194, 195, 196,
197, 198, 199, 200, 201, 202, 203, 204, 205, 206,
207, 208, 209, 210, 211, 212, 213, 214, 215, 216,
217, 218, 219, 220, 221, 222, 223, 224, 225, 226,
227, 228
};
const unsigned short int
seclang_parser::yystos_[] =
{
0, 0, 4, 5, 139, 229, 230, 231, 232, 233,
234, 235, 236, 237, 238, 239, 240, 241, 242, 243,
244, 245, 246, 247, 248, 249, 250, 251, 252, 253,
254, 255, 256, 257, 258, 259, 260, 261, 262, 263,
264, 265, 266, 267, 268, 269, 270, 271, 272, 273,
274, 275, 276, 277, 278, 279, 280, 281, 282, 283,
284, 285, 286, 287, 288, 289, 290, 291, 303, 304,
305, 306, 307, 308, 309, 310, 311, 312, 313, 314,
334, 335, 336, 341, 295, 296, 140, 141, 295, 296,
295, 296, 300, 294, 297, 301, 295, 296, 295, 296,
295, 296, 298, 299, 295, 296, 298, 299, 295, 296,
293, 295, 296, 98, 142, 143, 144, 145, 146, 147,
148, 149, 150, 151, 152, 153, 154, 155, 156, 157,
158, 159, 160, 161, 162, 163, 164, 165, 166, 167,
168, 169, 170, 171, 172, 173, 174, 175, 176, 177,
178, 179, 180, 181, 182, 183, 184, 185, 186, 187,
188, 189, 190, 191, 192, 193, 194, 195, 196, 197,
198, 199, 200, 201, 202, 203, 204, 205, 206, 207,
208, 209, 210, 211, 212, 213, 214, 215, 216, 217,
218, 219, 220, 221, 222, 223, 224, 225, 226, 227,
228, 316, 337, 338, 345, 337, 295, 296, 292, 302,
8, 9, 10, 11, 12, 13, 14, 15, 16, 17,
18, 19, 20, 21, 22, 23, 24, 25, 26, 27,
28, 29, 30, 31, 32, 33, 34, 35, 36, 37,
38, 39, 40, 41, 42, 43, 44, 45, 46, 47,
48, 49, 50, 51, 52, 53, 54, 55, 56, 57,
58, 59, 60, 61, 62, 63, 64, 65, 66, 67,
68, 69, 70, 71, 72, 73, 74, 75, 76, 77,
78, 79, 80, 81, 82, 83, 84, 85, 86, 87,
88, 89, 90, 91, 92, 93, 94, 95, 96, 97,
316, 317, 318, 319, 320, 321, 322, 323, 324, 325,
326, 327, 328, 329, 342, 343, 344, 342, 342, 337,
295, 296, 300, 295, 296, 295, 296, 342, 337, 0,
335, 102, 344, 346, 293, 295, 296, 295, 296, 300,
295, 296, 295, 296, 315, 344, 347, 347, 347, 347,
347, 347, 347, 347, 338, 3, 344, 344, 331, 332,
331, 332, 331, 332, 331, 332, 331, 332, 331, 332,
331, 332, 331, 332, 331, 332, 331, 332, 331, 332,
331, 332, 331, 332, 331, 332, 331, 332, 331, 332,
331, 332, 331, 332, 331, 332, 331, 332, 331, 332,
331, 332, 331, 332, 347, 331, 332, 331, 332, 347,
331, 332, 347, 331, 332, 347, 331, 332, 347, 331,
332, 347, 331, 332, 331, 332, 343, 6, 102, 103,
104, 105, 106, 107, 108, 109, 110, 111, 112, 113,
114, 115, 116, 117, 118, 119, 120, 121, 122, 123,
125, 126, 127, 128, 129, 130, 131, 132, 133, 134,
135, 136, 137, 138, 339, 340, 347, 344, 99, 100,
101, 315, 344, 316, 345, 316, 8, 9, 344, 340,
347, 347, 347, 347, 347, 347, 347, 347, 347, 347,
347, 347, 347, 347, 347, 347, 347, 347, 347, 347,
347, 347, 347, 347, 347, 347, 347, 347, 347, 347,
337, 347, 347, 347, 344, 344
};
const unsigned short int
seclang_parser::yyr1_[] =
{
0, 333, 334, 334, 334, 335, 336, 336, 336, 336,
336, 336, 336, 336, 336, 336, 336, 336, 336, 336,
336, 336, 336, 336, 336, 336, 336, 336, 336, 337,
337, 338, 338, 339, 339, 339, 339, 340, 340, 340,
340, 340, 340, 340, 340, 340, 340, 340, 340, 340,
340, 340, 340, 340, 340, 340, 340, 340, 340, 340,
340, 340, 340, 340, 340, 340, 340, 340, 340, 340,
340, 340, 341, 341, 341, 341, 341, 341, 341, 341,
341, 341, 341, 341, 341, 341, 341, 341, 341, 341,
341, 341, 341, 341, 341, 341, 341, 341, 341, 341,
341, 341, 341, 341, 341, 341, 341, 341, 341, 341,
341, 341, 341, 341, 341, 341, 341, 341, 341, 341,
341, 341, 341, 341, 341, 341, 341, 341, 341, 341,
341, 341, 341, 341, 341, 341, 341, 341, 341, 341,
341, 341, 341, 341, 341, 341, 341, 341, 341, 341,
341, 342, 342, 343, 343, 343, 343, 343, 343, 344,
344, 344, 344, 344, 344, 344, 344, 344, 344, 344,
344, 344, 344, 344, 344, 344, 344, 344, 344, 344,
344, 344, 344, 344, 344, 344, 344, 344, 344, 344,
344, 344, 344, 344, 344, 344, 344, 344, 344, 344,
344, 344, 344, 344, 344, 344, 344, 344, 344, 344,
344, 344, 344, 344, 344, 344, 344, 344, 344, 344,
344, 344, 344, 344, 344, 344, 344, 344, 344, 344,
344, 344, 344, 344, 344, 344, 344, 344, 344, 344,
344, 344, 344, 344, 344, 344, 344, 344, 344, 344,
344, 344, 344, 344, 344, 344, 344, 344, 344, 344,
344, 344, 344, 344, 344, 344, 344, 344, 344, 344,
344, 344, 344, 344, 344, 344, 344, 344, 344, 344,
344, 344, 344, 344, 344, 344, 344, 344, 344, 344,
344, 344, 344, 344, 344, 344, 344, 344, 344, 344,
344, 344, 344, 344, 344, 344, 344, 344, 344, 344,
344, 344, 344, 344, 344, 344, 344, 344, 344, 344,
344, 344, 344, 344, 344, 344, 344, 344, 345, 345,
345, 345, 345, 345, 345, 345, 345, 345, 345, 345,
345, 345, 345, 345, 345, 345, 345, 345, 345, 345,
345, 345, 345, 345, 345, 345, 345, 345, 345, 345,
345, 345, 345, 345, 345, 345, 345, 345, 345, 345,
345, 345, 345, 345, 345, 345, 345, 345, 345, 345,
345, 345, 345, 345, 345, 345, 345, 345, 345, 345,
345, 345, 345, 345, 345, 345, 345, 345, 345, 345,
345, 345, 345, 345, 345, 345, 345, 345, 345, 345,
345, 345, 345, 345, 345, 345, 345, 345, 345, 345,
345, 345, 346, 346, 346, 346, 346, 347, 347, 347,
347
};
const unsigned char
seclang_parser::yyr2_[] =
{
0, 2, 1, 2, 1, 1, 1, 1, 2, 2,
2, 1, 1, 1, 1, 2, 2, 1, 2, 2,
2, 2, 2, 2, 1, 1, 1, 2, 2, 3,
1, 3, 1, 1, 2, 1, 2, 1, 1, 1,
1, 1, 2, 2, 2, 2, 2, 2, 2, 2,
2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
2, 1, 1, 4, 3, 2, 2, 2, 1, 2,
2, 2, 2, 2, 2, 2, 1, 1, 2, 2,
1, 1, 1, 2, 2, 2, 2, 1, 2, 2,
1, 1, 1, 1, 1, 1, 2, 2, 1, 1,
1, 2, 2, 1, 1, 1, 1, 1, 1, 2,
2, 2, 2, 1, 1, 1, 1, 1, 1, 1,
2, 2, 2, 2, 2, 2, 1, 1, 1, 1,
2, 2, 1, 1, 1, 1, 1, 1, 1, 1,
1, 1, 3, 3, 4, 4, 1, 2, 2, 2,
2, 1, 2, 2, 1, 2, 2, 1, 2, 2,
1, 2, 2, 1, 2, 2, 1, 2, 2, 1,
2, 2, 1, 2, 2, 1, 2, 2, 1, 2,
2, 1, 2, 2, 1, 2, 2, 1, 2, 2,
1, 2, 2, 1, 2, 2, 1, 2, 2, 1,
2, 2, 1, 2, 2, 1, 2, 2, 1, 2,
2, 2, 1, 2, 2, 2, 1, 2, 2, 2,
1, 2, 2, 2, 1, 2, 2, 2, 1, 2,
2, 2, 1, 2, 2, 1, 2, 2, 1, 2,
2, 1, 2, 2, 1, 1, 2, 2, 1, 1,
1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
1, 1, 1, 1, 1, 2, 2, 2, 1, 1,
1, 2, 2, 2, 2, 2, 2, 2, 1, 1,
1, 1, 1, 1, 1, 1, 1, 1, 2, 2,
1, 1, 2, 1, 1, 1, 1, 1, 1, 1,
1, 2, 1, 1, 1, 1, 1, 1, 1, 2,
2, 2, 2, 1, 1, 1, 1, 2, 1, 1,
1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
1, 1, 2, 1, 3, 3, 3, 2, 2, 1,
1
};
// YYTNAME[SYMBOL-NUM] -- String name of the symbol SYMBOL-NUM.
// First, the terminals, then, starting at \a yyntokens_, nonterminals.
const char*
const seclang_parser::yytname_[] =
{
"\"end of file\"", "error", "$undefined", "\",\"",
"\"CONFIG_CONTENT_INJECTION\"", "\"CONGIG_DIR_RESPONSE_BODY_MP_CLEAR\"",
"PIPE", "NEW_LINE", "VAR_COUNT", "VAR_EXCLUSION", "VARIABLE_ARGS",
"VARIABLE_ARGS_POST", "VARIABLE_ARGS_GET", "VARIABLE_FILES_SIZES",
"VARIABLE_FILES_NAMES", "VARIABLE_FILES_TMP_CONTENT",
"VARIABLE_MULTIPART_FILENAME", "VARIABLE_MULTIPART_NAME",
"VARIABLE_MATCHED_VARS_NAMES", "VARIABLE_MATCHED_VARS", "VARIABLE_FILES",
"VARIABLE_REQUEST_COOKIES", "VARIABLE_REQUEST_HEADERS",
"VARIABLE_RESPONSE_HEADERS", "VARIABLE_GEO",
"VARIABLE_REQUEST_COOKIES_NAMES", "VARIABLE_ARGS_COMBINED_SIZE",
"VARIABLE_ARGS_GET_NAMES", "VARIABLE_RULE", "\"Variable ARGS_NAMES\"",
"VARIABLE_ARGS_POST_NAMES", "\"AUTH_TYPE\"", "\"FILES_COMBINED_SIZE\"",
"\"FILES_TMPNAMES\"", "\"FULL_REQUEST\"", "\"FULL_REQUEST_LENGTH\"",
"\"INBOUND_DATA_ERROR\"", "\"MATCHED_VAR\"", "\"MATCHED_VAR_NAME\"",
"VARIABLE_MULTIPART_BOUNDARY_QUOTED",
"VARIABLE_MULTIPART_BOUNDARY_WHITESPACE", "\"MULTIPART_CRLF_LF_LINES\"",
"\"MULTIPART_DATA_AFTER\"", "VARIABLE_MULTIPART_DATA_BEFORE",
"\"MULTIPART_FILE_LIMIT_EXCEEDED\"", "\"MULTIPART_HEADER_FOLDING\"",
"\"MULTIPART_INVALID_HEADER_FOLDING\"",
"VARIABLE_MULTIPART_INVALID_PART", "\"MULTIPART_INVALID_QUOTING\"",
"VARIABLE_MULTIPART_LF_LINE", "VARIABLE_MULTIPART_MISSING_SEMICOLON",
"VARIABLE_MULTIPART_SEMICOLON_MISSING", "\"MULTIPART_STRICT_ERROR\"",
"\"MULTIPART_UNMATCHED_BOUNDARY\"", "\"OUTBOUND_DATA_ERROR\"",
"\"PATH_INFO\"", "\"QUERY_STRING\"", "\"REMOTE_ADDR\"",
"\"REMOTE_HOST\"", "\"REMOTE_PORT\"", "\"REQBODY_ERROR_MSG\"",
"\"REQBODY_ERROR\"", "\"REQBODY_PROCESSOR_ERROR_MSG\"",
"\"REQBODY_PROCESSOR_ERROR\"", "\"REQBODY_PROCESSOR\"",
"\"REQUEST_BASENAME\"", "\"REQUEST_BODY_LENGTH\"", "\"REQUEST_BODY\"",
"\"REQUEST_FILENAME\"", "VARIABLE_REQUEST_HEADERS_NAMES",
"\"REQUEST_LINE\"", "\"REQUEST_METHOD\"", "\"REQUEST_PROTOCOL\"",
"\"REQUEST_URI_RAW\"", "\"REQUEST_URI\"", "\"RESOURCE\"",
"\"RESPONSE_BODY\"", "\"RESPONSE_CONTENT_LENGTH\"",
"VARIABLE_RESPONSE_CONTENT_TYPE", "VARIABLE_RESPONSE_HEADERS_NAMES",
"\"RESPONSE_PROTOCOL\"", "\"RESPONSE_STATUS\"", "\"SERVER_ADDR\"",
"\"SERVER_NAME\"", "\"SERVER_PORT\"", "\"SESSIONID\"", "\"UNIQUE_ID\"",
"\"URLENCODED_ERROR\"", "\"USERID\"", "\"WEBAPPID\"",
"\"VARIABLE_STATUS\"", "\"VARIABLE_IP\"", "\"VARIABLE_GLOBAL\"",
"\"VARIABLE_TX\"", "\"VARIABLE_SESSION\"", "\"VARIABLE_USER\"",
"\"RUN_TIME_VAR_ENV\"", "\"RUN_TIME_VAR_XML\"", "\"SetVar\"",
"SETVAR_OPERATION_EQUALS", "SETVAR_OPERATION_EQUALS_PLUS",
"SETVAR_OPERATION_EQUALS_MINUS", "\"NOT\"", "\"OPERATOR_BEGINS_WITH\"",
"\"OPERATOR_CONTAINS\"", "\"OPERATOR_CONTAINS_WORD\"",
"\"OPERATOR_DETECT_SQLI\"", "\"OPERATOR_DETECT_XSS\"",
"\"OPERATOR_ENDS_WITH\"", "\"OPERATOR_EQ\"", "\"OPERATOR_FUZZY_HASH\"",
"\"OPERATOR_GEOLOOKUP\"", "\"OPERATOR_GE\"", "\"OPERATOR_GSB_LOOKUP\"",
"\"OPERATOR_GT\"", "\"OPERATOR_INSPECT_FILE\"",
"\"OPERATOR_IP_MATCH_FROM_FILE\"", "\"OPERATOR_IP_MATCH\"",
"\"OPERATOR_LE\"", "\"OPERATOR_LT\"", "\"OPERATOR_PM_FROM_FILE\"",
"\"OPERATOR_PM\"", "\"OPERATOR_RBL\"", "\"OPERATOR_RSUB\"",
"\"Operator RX (content only)\"", "\"OPERATOR_RX\"",
"\"OPERATOR_STR_EQ\"", "\"OPERATOR_STR_MATCH\"",
"\"OPERATOR_UNCONDITIONAL_MATCH\"", "\"OPERATOR_VALIDATE_BYTE_RANGE\"",
"\"OPERATOR_VALIDATE_DTD\"", "\"OPERATOR_VALIDATE_HASH\"",
"\"OPERATOR_VALIDATE_SCHEMA\"", "\"OPERATOR_VALIDATE_URL_ENCODING\"",
"\"OPERATOR_VALIDATE_UTF8_ENCODING\"", "\"OPERATOR_VERIFY_CC\"",
"\"OPERATOR_VERIFY_CPF\"", "\"OPERATOR_VERIFY_SSN\"",
"\"OPERATOR_WITHIN\"", "CONFIG_DIR_AUDIT_LOG_FMT", "JSON", "NATIVE",
"\"ACTION_CTL_RULE_ENGINE\"", "\"Accuracy\"", "\"Allow\"", "\"Append\"",
"\"AuditLog\"", "\"Block\"", "\"Capture\"", "\"Chain\"",
"\"ACTION_CTL_AUDIT_ENGINE\"", "\"ACTION_CTL_AUDIT_LOG_PARTS\"",
"\"ACTION_CTL_BDY_JSON\"", "\"ACTION_CTL_BDY_XML\"",
"\"ACTION_CTL_FORCE_REQ_BODY_VAR\"",
"\"ACTION_CTL_REQUEST_BODY_ACCESS\"", "\"ACTION_CTL_RULE_REMOVE_BY_ID\"",
"\"ACTION_CTL_RULE_REMOVE_BY_TAG\"",
"\"ACTION_CTL_RULE_REMOVE_TARGET_BY_ID\"",
"\"ACTION_CTL_RULE_REMOVE_TARGET_BY_TAG\"", "\"Deny\"",
"\"DeprecateVar\"", "\"Drop\"", "\"Exec\"", "\"ExpireVar\"", "\"Id\"",
"\"InitCol\"", "\"Log\"", "\"LogData\"", "\"Maturity\"", "\"Msg\"",
"\"MultiMatch\"", "\"NoAuditLog\"", "\"NoLog\"", "\"Pass\"", "\"Pause\"",
"\"Phase\"", "\"Prepend\"", "\"Proxy\"", "\"Redirect\"", "\"Rev\"",
"\"SanatiseArg\"", "\"SanatiseMatched\"", "\"SanatiseMatchedBytes\"",
"\"SanatiseRequestHeader\"", "\"SanatiseResponseHeader\"", "\"SetEnv\"",
"\"SetRsc\"", "\"SetSid\"", "\"SetUID\"", "\"Severity\"", "\"Skip\"",
"\"SkipAfter\"", "\"Status\"", "\"Tag\"",
"\"ACTION_TRANSFORMATION_BASE_64_ENCODE\"",
"\"ACTION_TRANSFORMATION_BASE_64_DECODE\"",
"\"ACTION_TRANSFORMATION_BASE_64_DECODE_EXT\"",
"\"ACTION_TRANSFORMATION_CMD_LINE\"",
"\"ACTION_TRANSFORMATION_COMPRESS_WHITESPACE\"",
"\"ACTION_TRANSFORMATION_CSS_DECODE\"",
"\"ACTION_TRANSFORMATION_HEX_ENCODE\"",
"\"ACTION_TRANSFORMATION_HEX_DECODE\"",
"\"ACTION_TRANSFORMATION_HTML_ENTITY_DECODE\"",
"\"ACTION_TRANSFORMATION_JS_DECODE\"",
"\"ACTION_TRANSFORMATION_LENGTH\"",
"\"ACTION_TRANSFORMATION_LOWERCASE\"", "\"ACTION_TRANSFORMATION_MD5\"",
"\"ACTION_TRANSFORMATION_NONE\"",
"\"ACTION_TRANSFORMATION_NORMALISE_PATH\"",
"\"ACTION_TRANSFORMATION_NORMALISE_PATH_WIN\"",
"\"ACTION_TRANSFORMATION_PARITY_EVEN_7_BIT\"",
"\"ACTION_TRANSFORMATION_PARITY_ODD_7_BIT\"",
"\"ACTION_TRANSFORMATION_PARITY_ZERO_7_BIT\"",
"\"ACTION_TRANSFORMATION_REMOVE_COMMENTS\"",
"\"ACTION_TRANSFORMATION_REMOVE_COMMENTS_CHAR\"",
"\"ACTION_TRANSFORMATION_REMOVE_NULLS\"",
"\"ACTION_TRANSFORMATION_REMOVE_WHITESPACE\"",
"\"ACTION_TRANSFORMATION_REPLACE_COMMENTS\"",
"\"ACTION_TRANSFORMATION_REPLACE_NULLS\"",
"\"ACTION_TRANSFORMATION_SHA1\"",
"\"ACTION_TRANSFORMATION_SQL_HEX_DECODE\"",
"\"ACTION_TRANSFORMATION_TRIM\"", "\"ACTION_TRANSFORMATION_UPPERCASE\"",
"\"ACTION_TRANSFORMATION_URL_DECODE\"",
"\"ACTION_TRANSFORMATION_URL_DECODE_UNI\"",
"\"ACTION_TRANSFORMATION_UTF8_TO_UNICODE\"", "\"Ver\"", "\"xmlns\"",
"\"CONFIG_COMPONENT_SIG\"", "\"CONFIG_CONN_ENGINE\"",
"\"CONFIG_SEC_ARGUMENT_SEPARATOR\"", "\"CONFIG_SEC_WEB_APP_ID\"",
"\"CONFIG_SEC_SERVER_SIG\"", "\"CONFIG_DIR_AUDIT_DIR\"",
"\"CONFIG_DIR_AUDIT_DIR_MOD\"", "\"CONFIG_DIR_AUDIT_ENG\"",
"\"CONFIG_DIR_AUDIT_FLE_MOD\"", "\"CONFIG_DIR_AUDIT_LOG\"",
"\"CONFIG_DIR_AUDIT_LOG2\"", "\"CONFIG_DIR_AUDIT_LOG_P\"",
"\"CONFIG_DIR_AUDIT_STS\"", "\"CONFIG_DIR_AUDIT_TPE\"",
"\"CONFIG_DIR_DEBUG_LOG\"", "\"CONFIG_DIR_DEBUG_LVL\"",
"\"CONFIG_SEC_CACHE_TRANSFORMATIONS\"",
"\"CONFIG_SEC_DISABLE_BACKEND_COMPRESS\"", "\"CONFIG_SEC_HASH_ENGINE\"",
"\"CONFIG_SEC_HASH_KEY\"", "\"CONFIG_SEC_HASH_PARAM\"",
"\"CONFIG_SEC_HASH_METHOD_RX\"", "\"CONFIG_SEC_HASH_METHOD_PM\"",
"\"CONFIG_SEC_CHROOT_DIR\"", "\"CONFIG_DIR_GEO_DB\"",
"\"CONFIG_DIR_GSB_DB\"", "\"CONFIG_SEC_GUARDIAN_LOG\"",
"\"CONFIG_DIR_PCRE_MATCH_LIMIT\"",
"\"CONFIG_DIR_PCRE_MATCH_LIMIT_RECURSION\"",
"\"CONFIG_SEC_CONN_R_STATE_LIMIT\"", "\"CONFIG_SEC_CONN_W_STATE_LIMIT\"",
"\"CONFIG_SEC_SENSOR_ID\"", "\"CONFIG_DIR_REQ_BODY\"",
"\"CONFIG_DIR_REQ_BODY_IN_MEMORY_LIMIT\"",
"\"CONFIG_DIR_REQ_BODY_LIMIT\"", "\"CONFIG_DIR_REQ_BODY_LIMIT_ACTION\"",
"\"CONFIG_DIR_REQ_BODY_NO_FILES_LIMIT\"", "\"CONFIG_DIR_RES_BODY\"",
"\"CONFIG_DIR_RES_BODY_LIMIT\"", "\"CONFIG_DIR_RES_BODY_LIMIT_ACTION\"",
"\"CONFIG_SEC_RULE_INHERITANCE\"", "\"CONFIG_SEC_RULE_PERF_TIME\"",
"\"CONFIG_DIR_RULE_ENG\"", "\"CONFIG_DIR_SEC_ACTION\"",
"\"CONFIG_DIR_SEC_DEFAULT_ACTION\"", "\"CONFIG_DIR_SEC_MARKER\"",
"\"CONFIG_DIR_UNICODE_MAP_FILE\"", "\"CONFIG_SEC_COLLECTION_TIMEOUT\"",
"\"CONFIG_SEC_HTTP_BLKEY\"", "\"CONFIG_SEC_INTERCEPT_ON_ERROR\"",
"\"CONFIG_SEC_REMOTE_RULES_FAIL_ACTION\"",
"\"CONFIG_SEC_RULE_REMOVE_BY_ID\"", "\"CONFIG_SEC_RULE_REMOVE_BY_MSG\"",
"\"CONFIG_SEC_RULE_REMOVE_BY_TAG\"",
"\"CONFIG_SEC_RULE_UPDATE_TARGET_BY_TAG\"",
"\"CONFIG_SEC_RULE_UPDATE_TARGET_BY_MSG\"",
"\"CONFIG_SEC_RULE_UPDATE_TARGET_BY_ID\"",
"\"CONFIG_SEC_RULE_UPDATE_ACTION_BY_ID\"",
"\"CONFIG_UPDLOAD_KEEP_FILES\"", "\"CONFIG_UPDLOAD_SAVE_TMP_FILES\"",
"\"CONFIG_UPLOAD_DIR\"", "\"CONFIG_UPLOAD_FILE_LIMIT\"",
"\"CONFIG_UPLOAD_FILE_MODE\"", "\"CONFIG_VALUE_ABORT\"",
"\"CONFIG_VALUE_DETC\"", "\"CONFIG_VALUE_HTTPS\"",
"\"CONFIG_VALUE_OFF\"", "\"CONFIG_VALUE_ON\"",
"\"CONFIG_VALUE_PARALLEL\"", "\"CONFIG_VALUE_PROCESS_PARTIAL\"",
"\"CONFIG_VALUE_REJECT\"", "\"CONFIG_VALUE_RELEVANT_ONLY\"",
"\"CONFIG_VALUE_SERIAL\"", "\"CONFIG_VALUE_WARN\"",
"\"CONFIG_XML_EXTERNAL_ENTITY\"", "\"CONGIG_DIR_RESPONSE_BODY_MP\"",
"\"CONGIG_DIR_SEC_ARG_SEP\"", "\"CONGIG_DIR_SEC_COOKIE_FORMAT\"",
"\"CONFIG_SEC_COOKIEV0_SEPARATOR\"", "\"CONGIG_DIR_SEC_DATA_DIR\"",
"\"CONGIG_DIR_SEC_STATUS_ENGINE\"",
"\"CONFIG_SEC_STREAM_IN_BODY_INSPECTION\"",
"\"CONFIG_SEC_STREAM_OUT_BODY_INSPECTION\"",
"\"CONGIG_DIR_SEC_TMP_DIR\"", "\"DIRECTIVE\"",
"\"DIRECTIVE_SECRULESCRIPT\"", "\"FREE_TEXT_QUOTE_MACRO_EXPANSION\"",
"\"QUOTATION_MARK\"", "\"RUN_TIME_VAR_BLD\"", "\"RUN_TIME_VAR_DUR\"",
"\"RUN_TIME_VAR_HSV\"", "\"RUN_TIME_VAR_REMOTE_USER\"",
"\"RUN_TIME_VAR_TIME\"", "\"RUN_TIME_VAR_TIME_DAY\"",
"\"RUN_TIME_VAR_TIME_EPOCH\"", "\"RUN_TIME_VAR_TIME_HOUR\"",
"\"RUN_TIME_VAR_TIME_MIN\"", "\"RUN_TIME_VAR_TIME_MON\"",
"\"RUN_TIME_VAR_TIME_SEC\"", "\"RUN_TIME_VAR_TIME_WDAY\"",
"\"RUN_TIME_VAR_TIME_YEAR\"", "\"VARIABLE\"", "\"Dictionary element\"",
"\"Dictionary element, selected by regexp\"", "$accept", "input", "line",
"audit_log", "actions", "actions_may_quoted", "op", "op_before_init",
"expression", "variables", "variables_may_be_quoted", "var", "act",
"setvar_action", "run_time_string", YY_NULLPTR
};
#if YYDEBUG
const unsigned short int
seclang_parser::yyrline_[] =
{
0, 734, 734, 738, 739, 742, 747, 753, 759, 763,
767, 773, 779, 785, 791, 796, 801, 807, 814, 818,
822, 828, 832, 836, 841, 846, 851, 856, 860, 867,
871, 878, 884, 894, 903, 913, 922, 935, 939, 943,
947, 951, 955, 959, 963, 967, 971, 976, 980, 984,
988, 992, 997, 1002, 1006, 1010, 1014, 1018, 1022, 1026,
1030, 1034, 1038, 1042, 1046, 1050, 1054, 1058, 1062, 1066,
1070, 1074, 1088, 1089, 1113, 1132, 1147, 1171, 1227, 1231,
1235, 1239, 1243, 1247, 1251, 1255, 1259, 1268, 1272, 1277,
1280, 1285, 1290, 1295, 1300, 1303, 1308, 1311, 1316, 1321,
1324, 1329, 1334, 1339, 1344, 1349, 1354, 1359, 1362, 1367,
1372, 1377, 1382, 1385, 1390, 1395, 1400, 1413, 1426, 1439,
1452, 1465, 1491, 1517, 1529, 1549, 1577, 1582, 1587, 1596,
1601, 1605, 1609, 1613, 1617, 1621, 1625, 1630, 1635, 1647,
1653, 1657, 1661, 1672, 1681, 1682, 1689, 1694, 1699, 1704,
1711, 1719, 1723, 1730, 1735, 1741, 1747, 1753, 1760, 1770,
1774, 1778, 1782, 1786, 1790, 1794, 1798, 1802, 1806, 1810,
1814, 1818, 1822, 1826, 1830, 1834, 1838, 1842, 1846, 1850,
1854, 1858, 1862, 1866, 1870, 1874, 1878, 1882, 1886, 1890,
1894, 1898, 1902, 1906, 1910, 1914, 1918, 1922, 1926, 1930,
1934, 1938, 1942, 1946, 1950, 1954, 1958, 1962, 1966, 1970,
1974, 1978, 1982, 1986, 1990, 1994, 1998, 2002, 2006, 2010,
2014, 2018, 2022, 2026, 2030, 2034, 2038, 2042, 2046, 2050,
2054, 2058, 2062, 2066, 2070, 2074, 2078, 2082, 2086, 2090,
2094, 2098, 2102, 2106, 2110, 2114, 2118, 2122, 2126, 2131,
2135, 2139, 2144, 2148, 2152, 2157, 2162, 2166, 2170, 2174,
2178, 2182, 2186, 2190, 2194, 2198, 2202, 2206, 2210, 2214,
2218, 2222, 2226, 2230, 2234, 2238, 2242, 2246, 2250, 2254,
2258, 2262, 2266, 2270, 2274, 2278, 2282, 2286, 2290, 2294,
2298, 2302, 2306, 2310, 2314, 2318, 2322, 2326, 2330, 2334,
2338, 2342, 2346, 2350, 2354, 2358, 2362, 2366, 2370, 2374,
2378, 2382, 2386, 2390, 2394, 2398, 2406, 2413, 2420, 2427,
2434, 2441, 2448, 2455, 2462, 2469, 2476, 2483, 2493, 2497,
2501, 2505, 2509, 2513, 2517, 2521, 2526, 2531, 2536, 2540,
2544, 2548, 2553, 2558, 2562, 2566, 2570, 2574, 2578, 2582,
2586, 2590, 2594, 2598, 2602, 2607, 2611, 2616, 2620, 2624,
2628, 2632, 2636, 2640, 2644, 2648, 2652, 2656, 2660, 2664,
2668, 2672, 2676, 2680, 2684, 2688, 2692, 2696, 2700, 2704,
2708, 2712, 2716, 2720, 2724, 2728, 2732, 2736, 2740, 2744,
2748, 2752, 2756, 2760, 2764, 2768, 2772, 2776, 2780, 2784,
2788, 2792, 2796, 2800, 2804, 2808, 2812, 2816, 2820, 2824,
2828, 2832, 2836, 2840, 2844, 2848, 2852, 2856, 2860, 2864,
2868, 2872, 2879, 2883, 2887, 2891, 2895, 2902, 2907, 2912,
2918
};
// Print the state stack on the debug stream.
void
seclang_parser::yystack_print_ ()
{
*yycdebug_ << "Stack now";
for (stack_type::const_iterator
i = yystack_.begin (),
i_end = yystack_.end ();
i != i_end; ++i)
*yycdebug_ << ' ' << i->state;
*yycdebug_ << std::endl;
}
// Report on the debug stream that the rule \a yyrule is going to be reduced.
void
seclang_parser::yy_reduce_print_ (int yyrule)
{
unsigned int yylno = yyrline_[yyrule];
int yynrhs = yyr2_[yyrule];
// Print the symbols being reduced, and their result.
*yycdebug_ << "Reducing stack by rule " << yyrule - 1
<< " (line " << yylno << "):" << std::endl;
// The symbols being reduced.
for (int yyi = 0; yyi < yynrhs; yyi++)
YY_SYMBOL_PRINT (" $" << yyi + 1 << " =",
yystack_[(yynrhs) - (yyi + 1)]);
}
#endif // YYDEBUG
} // yy
#line 6415 "seclang-parser.cc" // lalr1.cc:1167
#line 2925 "seclang-parser.yy" // lalr1.cc:1168
void yy::seclang_parser::error (const location_type& l, const std::string& m) {
driver.error (l, m);
}