From 1da30e76e835b2b8d0c8367fc3df0c5c5163688b Mon Sep 17 00:00:00 2001 From: Simon Wisselink Date: Mon, 25 Mar 2024 13:54:02 +0100 Subject: [PATCH] Documented support for `is in`, added support for `is not in`. (#955) * Documented support for `is in`, added support for `is not in`. Fixes #937 * minor docs improvement --- changelog/937.md | 2 + .../language-syntax-operators.md | 24 + .../language-function-if.md | 28 +- .../language-function-while.md | 27 +- src/Lexer/TemplateLexer.php | 78 +- src/Lexer/TemplateLexer.plex | 2 +- src/Parser/TemplateParser.php | 1658 +++++++++-------- src/Parser/TemplateParser.y | 17 +- .../TagTests/If/CompileIfTest.php | 6 + 9 files changed, 943 insertions(+), 899 deletions(-) create mode 100644 changelog/937.md diff --git a/changelog/937.md b/changelog/937.md new file mode 100644 index 000000000..37f80e99a --- /dev/null +++ b/changelog/937.md @@ -0,0 +1,2 @@ +- Documented support for `{if $element is in $array}` syntax [#937](https://github.com/smarty-php/smarty/issues/937) +- Added support for `{if $element is not in $array}` syntax [#937](https://github.com/smarty-php/smarty/issues/937) \ No newline at end of file diff --git a/docs/designers/language-basic-syntax/language-syntax-operators.md b/docs/designers/language-basic-syntax/language-syntax-operators.md index 98eff0761..98a56538e 100644 --- a/docs/designers/language-basic-syntax/language-syntax-operators.md +++ b/docs/designers/language-basic-syntax/language-syntax-operators.md @@ -27,6 +27,30 @@ Various basic operators can be applied directly to variable values. > complex, it may be a good idea to move the bits that do not deal > explicitly with presentation to PHP by way of plugins or modifiers. +## List +The following is a list of recognized operators, which must be +separated from surrounding elements by spaces. Note that items listed in +\[brackets\] are optional. PHP equivalents are shown where applicable. + +| Operator | Alternates | Syntax Example | Meaning | PHP Equivalent | +|--------------------|------------|----------------------|--------------------------------|--------------------| +| == | eq | $a eq $b | equals | == | +| != | ne, neq | $a neq $b | not equals | != | +| > | gt | $a gt $b | greater than | > | +| < | lt | $a lt $b | less than | < | +| >= | gte, ge | $a ge $b | greater than or equal | >= | +| <= | lte, le | $a le $b | less than or equal | <= | +| === | | $a === 0 | check for identity | === | +| ! | not | not $a | negation (unary) | ! | +| % | mod | $a mod $b | modulo | % | +| is \[not\] div by | | $a is not div by 4 | divisible by | $a % $b == 0 | +| is \[not\] even | | $a is not even | \[not\] an even number (unary) | $a % 2 == 0 | +| is \[not\] even by | | $a is not even by $b | grouping level \[not\] even | ($a / $b) % 2 == 0 | +| is \[not\] odd | | $a is not odd | \[not\] an odd number (unary) | $a % 2 != 0 | +| is \[not\] odd by | | $a is not odd by $b | \[not\] an odd grouping | ($a / $b) % 2 != 0 | +| is in | | $a is in $b | exists in array | in_array($a, $b) | +| is \[not\] in | | $a is not in $b | does not exist in array | !in_array($a, $b) | + ## Ternary You can use the `?:` (or ternary) operator to test one expression and present the value of the second or third expression, based on the result of the test. diff --git a/docs/designers/language-builtin-functions/language-function-if.md b/docs/designers/language-builtin-functions/language-function-if.md index 1372ea588..eb00cfda3 100644 --- a/docs/designers/language-builtin-functions/language-function-if.md +++ b/docs/designers/language-builtin-functions/language-function-if.md @@ -3,32 +3,8 @@ `{if}` statements in Smarty have much the same flexibility as PHP [if](https://www.php.net/if) statements, with a few added features for the template engine. Every `{if}` must be paired with a matching `{/if}`. -`{else}` and `{elseif}` are also permitted. All PHP conditionals and -functions are recognized, such as *\|\|*, *or*, *&&*, *and*, -*is_array()*, etc. - -The following is a list of recognized qualifiers, which must be -separated from surrounding elements by spaces. Note that items listed in -\[brackets\] are optional. PHP equivalents are shown where applicable. - -## Qualifiers - -| Qualifier | Alternates | Syntax Example | Meaning | PHP Equivalent | -|--------------------|------------|----------------------|--------------------------------|--------------------| -| == | eq | $a eq $b | equals | == | -| != | ne, neq | $a neq $b | not equals | != | -| > | gt | $a gt $b | greater than | > | -| < | lt | $a lt $b | less than | < | -| >= | gte, ge | $a ge $b | greater than or equal | >= | -| <= | lte, le | $a le $b | less than or equal | <= | -| === | | $a === 0 | check for identity | === | -| ! | not | not $a | negation (unary) | ! | -| % | mod | $a mod $b | modulo | % | -| is \[not\] div by | | $a is not div by 4 | divisible by | $a % $b == 0 | -| is \[not\] even | | $a is not even | \[not\] an even number (unary) | $a % 2 == 0 | -| is \[not\] even by | | $a is not even by $b | grouping level \[not\] even | ($a / $b) % 2 == 0 | -| is \[not\] odd | | $a is not odd | \[not\] an odd number (unary) | $a % 2 != 0 | -| is \[not\] odd by | | $a is not odd by $b | \[not\] an odd grouping | ($a / $b) % 2 != 0 | +`{else}` and `{elseif}` are also permitted. All [operators](../language-basic-syntax/language-syntax-operators.md) are recognized, such as *==*, +*\|\|*, *or*, *&&*, *and*, etc and you can use modifiers as functions, such as *is_array()*. ## Examples ```smarty diff --git a/docs/designers/language-builtin-functions/language-function-while.md b/docs/designers/language-builtin-functions/language-function-while.md index 13eaef9b4..d0a4b2f3c 100644 --- a/docs/designers/language-builtin-functions/language-function-while.md +++ b/docs/designers/language-builtin-functions/language-function-while.md @@ -3,31 +3,8 @@ `{while}` loops in Smarty have much the same flexibility as PHP [while](https://www.php.net/while) statements, with a few added features for the template engine. Every `{while}` must be paired with a matching -`{/while}`. All PHP conditionals and functions are recognized, such as -*\|\|*, *or*, *&&*, *and*, *is_array()*, etc. - -The following is a list of recognized qualifiers, which must be -separated from surrounding elements by spaces. Note that items listed in -\[brackets\] are optional. PHP equivalents are shown where applicable. - -## Qualifiers - -| Qualifier | Alternates | Syntax Example | Meaning | PHP Equivalent | -|--------------------|------------|----------------------|--------------------------------|--------------------| -| == | eq | $a eq $b | equals | == | -| != | ne, neq | $a neq $b | not equals | != | -| > | gt | $a gt $b | greater than | > | -| < | lt | $a lt $b | less than | < | -| >= | gte, ge | $a ge $b | greater than or equal | >= | -| <= | lte, le | $a le $b | less than or equal | <= | -| === | | $a === 0 | check for identity | === | -| ! | not | not $a | negation (unary) | ! | -| % | mod | $a mod $b | modulo | % | -| is \[not\] div by | | $a is not div by 4 | divisible by | $a % $b == 0 | -| is \[not\] even | | $a is not even | \[not\] an even number (unary) | $a % 2 == 0 | -| is \[not\] even by | | $a is not even by $b | grouping level \[not\] even | ($a / $b) % 2 == 0 | -| is \[not\] odd | | $a is not odd | \[not\] an odd number (unary) | $a % 2 != 0 | -| is \[not\] odd by | | $a is not odd by $b | \[not\] an odd grouping | ($a / $b) % 2 != 0 | +`{/while}`. All [operators](../language-basic-syntax/language-syntax-operators.md) are recognized, such as *==*, +*\|\|*, *or*, *&&*, *and*, etc and you can use modifiers as functions, such as *is_array()*. ## Examples ```smarty diff --git a/src/Lexer/TemplateLexer.php b/src/Lexer/TemplateLexer.php index 5c7253ba7..2e7f33055 100644 --- a/src/Lexer/TemplateLexer.php +++ b/src/Lexer/TemplateLexer.php @@ -567,7 +567,7 @@ public function yy_r2_23() public function yylex3() { if (!isset($this->yy_global_pattern3)) { - $this->yy_global_pattern3 = $this->replace("/\G(\\s*SMARTYrdel)|\G((SMARTYldel)SMARTYal)|\G([\"])|\G('[^'\\\\]*(?:\\\\.[^'\\\\]*)*')|\G([$][0-9]*[a-zA-Z_]\\w*)|\G([$])|\G(\\s+is\\s+in\\s+)|\G(\\s+as\\s+)|\G(\\s+to\\s+)|\G(\\s+step\\s+)|\G(\\s+instanceof\\s+)|\G(\\s*([!=][=]{1,2}|[<][=>]?|[>][=]?|[&|]{2})\\s*)|\G(\\s+(eq|ne|neq|gt|ge|gte|lt|le|lte|mod|and|or|xor)\\s+)|\G(\\s+is\\s+(not\\s+)?(odd|even|div)\\s+by\\s+)|\G(\\s+is\\s+(not\\s+)?(odd|even))|\G([!]\\s*|not\\s+)|\G([(](int(eger)?|bool(ean)?|float|double|real|string|binary|array|object)[)]\\s*)|\G(\\s*[(]\\s*)|\G(\\s*[)])|\G(\\[\\s*)|\G(\\s*\\])|\G(\\s*[-][>]\\s*)|\G(\\s*[=][>]\\s*)|\G(\\s*[=]\\s*)|\G(([+]|[-]){2})|\G(\\s*([+]|[-])\\s*)|\G(\\s*([*]{1,2}|[%\/^&]|[<>]{2})\\s*)|\G([@])|\G(array\\s*[(]\\s*)|\G([#])|\G(\\s+[0-9]*[a-zA-Z_][a-zA-Z0-9_\-:]*\\s*[=]\\s*)|\G(([0-9]*[a-zA-Z_]\\w*)?(\\\\[0-9]*[a-zA-Z_]\\w*)+)|\G([0-9]*[a-zA-Z_]\\w*)|\G(\\d+)|\G([`])|\G([|][@]?)|\G([.])|\G(\\s*[,]\\s*)|\G(\\s*[;]\\s*)|\G([:]{2})|\G(\\s*[:]\\s*)|\G(\\s*[?]\\s*)|\G(0[xX][0-9a-fA-F]+)|\G(\\s+)|\G([\S\s])/isS"); + $this->yy_global_pattern3 = $this->replace("/\G(\\s*SMARTYrdel)|\G((SMARTYldel)SMARTYal)|\G([\"])|\G('[^'\\\\]*(?:\\\\.[^'\\\\]*)*')|\G([$][0-9]*[a-zA-Z_]\\w*)|\G([$])|\G(\\s+is\\s+(not\\s+)?in\\s+)|\G(\\s+as\\s+)|\G(\\s+to\\s+)|\G(\\s+step\\s+)|\G(\\s+instanceof\\s+)|\G(\\s*([!=][=]{1,2}|[<][=>]?|[>][=]?|[&|]{2})\\s*)|\G(\\s+(eq|ne|neq|gt|ge|gte|lt|le|lte|mod|and|or|xor)\\s+)|\G(\\s+is\\s+(not\\s+)?(odd|even|div)\\s+by\\s+)|\G(\\s+is\\s+(not\\s+)?(odd|even))|\G([!]\\s*|not\\s+)|\G([(](int(eger)?|bool(ean)?|float|double|real|string|binary|array|object)[)]\\s*)|\G(\\s*[(]\\s*)|\G(\\s*[)])|\G(\\[\\s*)|\G(\\s*\\])|\G(\\s*[-][>]\\s*)|\G(\\s*[=][>]\\s*)|\G(\\s*[=]\\s*)|\G(([+]|[-]){2})|\G(\\s*([+]|[-])\\s*)|\G(\\s*([*]{1,2}|[%\/^&]|[<>]{2})\\s*)|\G([@])|\G(array\\s*[(]\\s*)|\G([#])|\G(\\s+[0-9]*[a-zA-Z_][a-zA-Z0-9_\-:]*\\s*[=]\\s*)|\G(([0-9]*[a-zA-Z_]\\w*)?(\\\\[0-9]*[a-zA-Z_]\\w*)+)|\G([0-9]*[a-zA-Z_]\\w*)|\G(\\d+)|\G([`])|\G([|][@]?)|\G([.])|\G(\\s*[,]\\s*)|\G(\\s*[;]\\s*)|\G([:]{2})|\G(\\s*[:]\\s*)|\G(\\s*[?]\\s*)|\G(0[xX][0-9a-fA-F]+)|\G(\\s+)|\G([\S\s])/isS"); } if (!isset($this->dataLength)) { $this->dataLength = strlen($this->data); @@ -659,122 +659,122 @@ public function yy_r3_8() $this->token = \Smarty\Parser\TemplateParser::TP_ISIN; } - public function yy_r3_9() + public function yy_r3_10() { $this->token = \Smarty\Parser\TemplateParser::TP_AS; } - public function yy_r3_10() + public function yy_r3_11() { $this->token = \Smarty\Parser\TemplateParser::TP_TO; } - public function yy_r3_11() + public function yy_r3_12() { $this->token = \Smarty\Parser\TemplateParser::TP_STEP; } - public function yy_r3_12() + public function yy_r3_13() { $this->token = \Smarty\Parser\TemplateParser::TP_INSTANCEOF; } - public function yy_r3_13() + public function yy_r3_14() { $this->token = \Smarty\Parser\TemplateParser::TP_LOGOP; } - public function yy_r3_15() + public function yy_r3_16() { $this->token = \Smarty\Parser\TemplateParser::TP_SLOGOP; } - public function yy_r3_17() + public function yy_r3_18() { $this->token = \Smarty\Parser\TemplateParser::TP_TLOGOP; } - public function yy_r3_20() + public function yy_r3_21() { $this->token = \Smarty\Parser\TemplateParser::TP_SINGLECOND; } - public function yy_r3_23() + public function yy_r3_24() { $this->token = \Smarty\Parser\TemplateParser::TP_NOT; } - public function yy_r3_24() + public function yy_r3_25() { $this->token = \Smarty\Parser\TemplateParser::TP_TYPECAST; } - public function yy_r3_28() + public function yy_r3_29() { $this->token = \Smarty\Parser\TemplateParser::TP_OPENP; } - public function yy_r3_29() + public function yy_r3_30() { $this->token = \Smarty\Parser\TemplateParser::TP_CLOSEP; } - public function yy_r3_30() + public function yy_r3_31() { $this->token = \Smarty\Parser\TemplateParser::TP_OPENB; } - public function yy_r3_31() + public function yy_r3_32() { $this->token = \Smarty\Parser\TemplateParser::TP_CLOSEB; } - public function yy_r3_32() + public function yy_r3_33() { $this->token = \Smarty\Parser\TemplateParser::TP_PTR; } - public function yy_r3_33() + public function yy_r3_34() { $this->token = \Smarty\Parser\TemplateParser::TP_APTR; } - public function yy_r3_34() + public function yy_r3_35() { $this->token = \Smarty\Parser\TemplateParser::TP_EQUAL; } - public function yy_r3_35() + public function yy_r3_36() { $this->token = \Smarty\Parser\TemplateParser::TP_INCDEC; } - public function yy_r3_37() + public function yy_r3_38() { $this->token = \Smarty\Parser\TemplateParser::TP_UNIMATH; } - public function yy_r3_39() + public function yy_r3_40() { $this->token = \Smarty\Parser\TemplateParser::TP_MATH; } - public function yy_r3_41() + public function yy_r3_42() { $this->token = \Smarty\Parser\TemplateParser::TP_AT; } - public function yy_r3_42() + public function yy_r3_43() { $this->token = \Smarty\Parser\TemplateParser::TP_ARRAYOPEN; } - public function yy_r3_43() + public function yy_r3_44() { $this->token = \Smarty\Parser\TemplateParser::TP_HATCH; } - public function yy_r3_44() + public function yy_r3_45() { // resolve conflicts with shorttag and right_delimiter starting with '=' @@ -786,73 +786,73 @@ public function yy_r3_44() $this->token = \Smarty\Parser\TemplateParser::TP_ATTR; } } - public function yy_r3_45() + public function yy_r3_46() { $this->token = \Smarty\Parser\TemplateParser::TP_NAMESPACE; } - public function yy_r3_48() + public function yy_r3_49() { $this->token = \Smarty\Parser\TemplateParser::TP_ID; } - public function yy_r3_49() + public function yy_r3_50() { $this->token = \Smarty\Parser\TemplateParser::TP_INTEGER; } - public function yy_r3_50() + public function yy_r3_51() { $this->token = \Smarty\Parser\TemplateParser::TP_BACKTICK; $this->yypopstate(); } - public function yy_r3_51() + public function yy_r3_52() { $this->token = \Smarty\Parser\TemplateParser::TP_VERT; } - public function yy_r3_52() + public function yy_r3_53() { $this->token = \Smarty\Parser\TemplateParser::TP_DOT; } - public function yy_r3_53() + public function yy_r3_54() { $this->token = \Smarty\Parser\TemplateParser::TP_COMMA; } - public function yy_r3_54() + public function yy_r3_55() { $this->token = \Smarty\Parser\TemplateParser::TP_SEMICOLON; } - public function yy_r3_55() + public function yy_r3_56() { $this->token = \Smarty\Parser\TemplateParser::TP_DOUBLECOLON; } - public function yy_r3_56() + public function yy_r3_57() { $this->token = \Smarty\Parser\TemplateParser::TP_COLON; } - public function yy_r3_57() + public function yy_r3_58() { $this->token = \Smarty\Parser\TemplateParser::TP_QMARK; } - public function yy_r3_58() + public function yy_r3_59() { $this->token = \Smarty\Parser\TemplateParser::TP_HEX; } - public function yy_r3_59() + public function yy_r3_60() { $this->token = \Smarty\Parser\TemplateParser::TP_SPACE; } - public function yy_r3_60() + public function yy_r3_61() { $this->token = \Smarty\Parser\TemplateParser::TP_TEXT; diff --git a/src/Lexer/TemplateLexer.plex b/src/Lexer/TemplateLexer.plex index d29b65597..282a99cf9 100644 --- a/src/Lexer/TemplateLexer.plex +++ b/src/Lexer/TemplateLexer.plex @@ -324,7 +324,7 @@ class TemplateLexer slop = ~\s+(eq|ne|neq|gt|ge|gte|lt|le|lte|mod|and|or|xor)\s+~ tlop = ~\s+is\s+(not\s+)?(odd|even|div)\s+by\s+~ scond = ~\s+is\s+(not\s+)?(odd|even)~ - isin = ~\s+is\s+in\s+~ + isin = ~\s+is\s+(not\s+)?in\s+~ as = ~\s+as\s+~ to = ~\s+to\s+~ step = ~\s+step\s+~ diff --git a/src/Parser/TemplateParser.php b/src/Parser/TemplateParser.php index 58971b9c8..12d9b6c5a 100644 --- a/src/Parser/TemplateParser.php +++ b/src/Parser/TemplateParser.php @@ -263,505 +263,541 @@ private function mergePrefixCode($code) const TP_ARRAYOPEN = 57; const TP_QUOTE = 58; const TP_BACKTICK = 59; - const YY_NO_ACTION = 525; - const YY_ACCEPT_ACTION = 524; - const YY_ERROR_ACTION = 523; + const YY_NO_ACTION = 527; + const YY_ACCEPT_ACTION = 526; + const YY_ERROR_ACTION = 525; - const YY_SZ_ACTTAB = 2191; + const YY_SZ_ACTTAB = 2372; public static $yy_action = array( - 33, 126, 524, 96, 261, 279, 437, 242, 243, 244, - 1, 98, 135, 127, 199, 228, 6, 55, 437, 217, - 197, 260, 109, 317, 392, 292, 212, 256, 213, 103, - 219, 392, 21, 392, 99, 43, 392, 32, 44, 45, - 273, 221, 392, 277, 392, 200, 392, 54, 4, 313, - 294, 46, 22, 280, 220, 5, 52, 242, 243, 244, - 1, 20, 132, 189, 190, 266, 6, 55, 241, 217, - 211, 29, 109, 224, 9, 156, 212, 256, 213, 493, - 205, 267, 21, 252, 264, 43, 176, 297, 44, 45, - 273, 221, 312, 230, 306, 200, 211, 54, 4, 320, - 294, 294, 3, 248, 99, 5, 52, 242, 243, 244, - 1, 294, 97, 386, 53, 231, 6, 55, 36, 217, - 99, 150, 109, 252, 16, 386, 212, 256, 213, 149, - 219, 386, 21, 112, 437, 43, 302, 93, 44, 45, - 273, 221, 306, 277, 211, 200, 437, 54, 4, 112, - 294, 197, 39, 99, 140, 5, 52, 242, 243, 244, - 1, 136, 134, 262, 199, 28, 6, 55, 155, 217, - 252, 151, 109, 99, 94, 91, 212, 256, 213, 137, - 219, 251, 21, 57, 308, 43, 13, 7, 44, 45, - 273, 221, 294, 277, 263, 200, 54, 54, 4, 294, - 294, 181, 112, 298, 197, 5, 52, 242, 243, 244, - 1, 259, 134, 232, 191, 353, 6, 55, 26, 217, - 330, 353, 109, 104, 149, 437, 212, 256, 213, 174, - 219, 222, 21, 250, 51, 43, 141, 437, 44, 45, - 273, 221, 232, 277, 296, 200, 251, 54, 4, 233, - 294, 35, 104, 353, 285, 5, 52, 242, 243, 244, - 1, 259, 133, 138, 199, 353, 6, 55, 108, 217, - 173, 353, 109, 175, 297, 14, 212, 256, 213, 450, - 219, 15, 11, 264, 51, 43, 450, 139, 44, 45, - 273, 221, 144, 277, 152, 200, 181, 54, 4, 136, - 294, 226, 251, 154, 251, 5, 52, 242, 243, 244, - 1, 146, 134, 251, 186, 197, 6, 55, 170, 217, - 157, 251, 109, 17, 180, 294, 212, 256, 213, 329, - 208, 215, 21, 180, 54, 43, 252, 294, 44, 45, - 273, 221, 143, 277, 181, 200, 254, 54, 4, 19, - 294, 126, 104, 253, 227, 5, 52, 242, 243, 244, - 1, 98, 134, 259, 184, 161, 6, 55, 178, 217, - 240, 148, 109, 175, 297, 292, 212, 256, 213, 284, - 219, 251, 21, 197, 23, 43, 51, 127, 44, 45, - 273, 221, 164, 277, 168, 200, 252, 54, 4, 171, - 294, 304, 251, 197, 327, 5, 52, 242, 243, 244, - 1, 137, 134, 167, 199, 180, 6, 55, 13, 217, - 181, 255, 109, 251, 87, 181, 212, 256, 213, 25, - 185, 18, 21, 177, 297, 43, 88, 15, 44, 45, - 273, 221, 294, 277, 24, 200, 295, 54, 4, 258, - 294, 41, 42, 40, 12, 5, 52, 242, 243, 244, - 1, 163, 136, 437, 199, 39, 6, 55, 287, 288, - 289, 290, 109, 259, 303, 437, 212, 256, 213, 450, - 219, 214, 21, 209, 194, 47, 450, 438, 44, 45, - 273, 221, 9, 277, 309, 200, 51, 54, 4, 438, - 294, 41, 42, 40, 12, 5, 52, 242, 243, 244, - 1, 10, 136, 24, 199, 321, 6, 55, 287, 288, - 289, 290, 109, 113, 239, 240, 212, 256, 213, 220, - 219, 255, 21, 8, 24, 43, 322, 316, 44, 45, - 273, 221, 89, 277, 293, 200, 195, 54, 4, 95, - 294, 34, 169, 172, 238, 5, 52, 282, 210, 211, - 247, 232, 90, 106, 158, 188, 100, 86, 234, 196, - 254, 104, 98, 19, 153, 268, 269, 253, 92, 220, - 159, 276, 201, 278, 251, 283, 292, 245, 282, 210, - 211, 247, 466, 90, 106, 466, 187, 100, 63, 466, - 246, 179, 110, 98, 181, 165, 268, 269, 257, 223, - 118, 265, 276, 201, 278, 251, 283, 292, 46, 22, - 280, 282, 270, 211, 249, 272, 111, 106, 274, 188, - 100, 86, 220, 282, 275, 211, 98, 259, 111, 268, - 269, 198, 116, 75, 7, 276, 201, 278, 98, 283, - 292, 268, 269, 145, 291, 56, 160, 276, 201, 278, - 51, 283, 292, 41, 42, 40, 12, 315, 162, 282, - 229, 211, 204, 311, 111, 318, 197, 198, 116, 75, - 287, 288, 289, 290, 98, 319, 36, 268, 269, 197, - 328, 331, 301, 276, 201, 278, 301, 283, 292, 37, - 14, 357, 282, 301, 211, 225, 15, 105, 203, 311, - 198, 119, 49, 14, 117, 301, 301, 98, 301, 15, - 268, 269, 437, 301, 301, 301, 276, 201, 278, 301, - 283, 292, 301, 301, 437, 282, 301, 211, 301, 301, - 111, 301, 301, 198, 119, 70, 301, 301, 301, 301, - 98, 301, 142, 268, 269, 301, 301, 301, 301, 276, - 201, 278, 251, 283, 292, 46, 22, 280, 282, 301, - 211, 207, 301, 111, 301, 301, 198, 119, 70, 301, - 301, 301, 301, 98, 301, 166, 268, 269, 301, 301, - 301, 301, 276, 201, 278, 251, 283, 292, 46, 22, - 280, 282, 301, 211, 202, 301, 111, 301, 301, 198, - 116, 75, 301, 301, 301, 301, 98, 301, 301, 268, - 269, 197, 301, 301, 301, 276, 201, 278, 301, 283, - 292, 301, 301, 354, 282, 301, 211, 301, 301, 111, - 301, 310, 198, 119, 70, 354, 301, 301, 301, 98, - 301, 354, 268, 269, 197, 301, 301, 301, 276, 201, - 278, 301, 283, 292, 301, 301, 388, 282, 301, 211, - 206, 301, 105, 301, 301, 198, 119, 61, 388, 233, - 301, 301, 98, 301, 388, 268, 269, 197, 301, 301, - 301, 276, 201, 278, 301, 283, 292, 301, 301, 385, - 282, 301, 211, 301, 301, 111, 301, 301, 198, 115, - 67, 385, 301, 301, 301, 98, 301, 385, 268, 269, - 301, 301, 301, 301, 276, 201, 278, 254, 283, 292, - 19, 301, 301, 282, 253, 211, 301, 466, 111, 301, - 466, 193, 114, 62, 466, 282, 301, 211, 98, 301, - 111, 268, 269, 198, 101, 85, 301, 276, 201, 278, - 98, 283, 292, 268, 269, 254, 216, 301, 19, 276, - 201, 278, 253, 283, 292, 282, 466, 211, 301, 301, - 111, 14, 301, 198, 102, 84, 301, 15, 301, 301, - 98, 301, 301, 268, 269, 301, 301, 301, 301, 276, - 201, 278, 301, 283, 292, 301, 301, 282, 301, 211, - 301, 301, 111, 301, 301, 198, 119, 58, 301, 282, - 301, 211, 98, 301, 111, 268, 269, 198, 119, 69, - 301, 276, 201, 278, 98, 283, 292, 268, 269, 301, - 301, 301, 301, 276, 201, 278, 301, 283, 292, 282, - 301, 211, 301, 301, 111, 301, 301, 198, 101, 59, - 301, 301, 301, 301, 98, 301, 301, 268, 269, 301, - 301, 301, 301, 276, 201, 278, 301, 283, 292, 301, - 301, 282, 301, 211, 301, 301, 111, 301, 301, 198, - 119, 68, 301, 282, 301, 211, 98, 301, 111, 268, - 269, 198, 119, 60, 301, 276, 201, 278, 98, 283, - 292, 268, 269, 301, 301, 301, 301, 276, 201, 278, - 301, 283, 292, 282, 301, 211, 301, 301, 111, 301, - 301, 198, 119, 61, 301, 301, 301, 301, 98, 301, - 301, 268, 269, 301, 301, 301, 301, 276, 201, 278, - 301, 283, 292, 301, 301, 282, 301, 211, 301, 301, - 111, 301, 301, 198, 119, 71, 301, 282, 301, 211, - 98, 301, 111, 268, 269, 198, 119, 72, 301, 276, - 201, 278, 98, 283, 292, 268, 269, 301, 301, 301, - 301, 276, 201, 278, 301, 283, 292, 282, 301, 211, - 301, 301, 111, 301, 301, 198, 119, 73, 301, 301, - 301, 301, 98, 301, 301, 268, 269, 301, 301, 301, - 301, 276, 201, 278, 301, 283, 292, 301, 301, 282, - 301, 211, 301, 301, 111, 301, 301, 198, 119, 74, - 301, 282, 301, 211, 98, 301, 111, 268, 269, 198, - 119, 76, 301, 276, 201, 278, 98, 283, 292, 268, - 269, 301, 301, 301, 301, 276, 201, 278, 301, 283, - 292, 282, 301, 211, 301, 301, 111, 301, 301, 192, - 119, 64, 301, 301, 301, 301, 98, 301, 301, 268, - 269, 301, 301, 301, 301, 276, 201, 278, 301, 283, - 292, 301, 301, 282, 301, 211, 301, 301, 111, 301, - 301, 198, 119, 65, 301, 282, 301, 211, 98, 301, - 111, 268, 269, 198, 119, 66, 301, 276, 201, 278, - 98, 283, 292, 268, 269, 301, 301, 301, 301, 276, - 201, 278, 301, 283, 292, 282, 301, 211, 301, 301, - 111, 301, 301, 198, 119, 77, 301, 301, 301, 301, - 98, 301, 301, 268, 269, 301, 301, 301, 301, 276, - 201, 278, 301, 283, 292, 301, 301, 282, 301, 211, - 301, 301, 111, 301, 301, 198, 119, 78, 301, 282, - 301, 211, 98, 301, 111, 268, 269, 198, 119, 79, - 301, 276, 201, 278, 98, 283, 292, 268, 269, 301, - 301, 301, 301, 276, 201, 278, 301, 283, 292, 282, - 301, 211, 301, 301, 111, 301, 301, 198, 119, 80, - 301, 301, 301, 301, 98, 301, 301, 268, 269, 301, - 301, 301, 301, 276, 201, 278, 301, 283, 292, 301, - 301, 282, 301, 211, 301, 301, 111, 301, 301, 198, - 119, 81, 301, 282, 301, 211, 98, 301, 111, 268, - 269, 198, 119, 82, 301, 276, 201, 278, 98, 283, - 292, 268, 269, 301, 301, 301, 301, 276, 201, 278, - 301, 283, 292, 282, 301, 211, 301, 301, 111, 301, - 301, 198, 119, 83, 301, 301, 301, 301, 98, 301, - 301, 268, 269, 301, 301, 301, 301, 276, 201, 278, - 301, 283, 292, 301, 301, 282, 301, 211, 301, 301, - 111, 301, 301, 198, 119, 48, 301, 282, 301, 211, - 98, 301, 111, 268, 269, 198, 119, 50, 301, 276, - 201, 278, 98, 283, 292, 268, 269, 301, 301, 301, - 301, 276, 201, 278, 301, 283, 292, 307, 107, 301, - 301, 301, 301, 242, 243, 244, 2, 301, 305, 301, - 301, 301, 6, 55, 41, 42, 40, 12, 109, 301, - 301, 301, 212, 256, 213, 301, 301, 38, 301, 14, - 301, 287, 288, 289, 290, 15, 301, 301, 301, 301, - 41, 42, 40, 12, 301, 301, 301, 301, 301, 301, - 301, 301, 300, 27, 301, 301, 307, 287, 288, 289, - 290, 301, 242, 243, 244, 2, 301, 305, 301, 301, - 301, 6, 55, 301, 301, 301, 301, 109, 301, 14, - 301, 212, 256, 213, 301, 15, 301, 301, 301, 301, - 41, 42, 40, 12, 301, 301, 301, 301, 301, 301, - 301, 301, 301, 301, 301, 301, 301, 287, 288, 289, - 290, 301, 27, 301, 301, 235, 236, 237, 130, 301, - 301, 242, 243, 244, 1, 301, 301, 301, 301, 301, - 6, 55, 301, 301, 301, 301, 109, 301, 301, 301, - 212, 256, 213, 282, 301, 211, 301, 301, 111, 301, - 301, 198, 131, 301, 301, 301, 301, 301, 98, 301, - 301, 301, 301, 301, 301, 301, 325, 276, 201, 278, - 301, 283, 292, 301, 301, 301, 301, 301, 282, 301, - 211, 301, 301, 111, 301, 301, 198, 125, 301, 301, - 282, 301, 211, 98, 301, 111, 301, 301, 198, 129, - 301, 281, 276, 201, 278, 98, 283, 292, 301, 301, - 301, 301, 301, 301, 276, 201, 278, 301, 283, 292, - 301, 301, 301, 301, 282, 301, 211, 301, 301, 111, - 301, 301, 198, 120, 301, 301, 301, 301, 301, 98, - 301, 301, 301, 301, 301, 301, 301, 301, 276, 201, - 278, 301, 283, 292, 301, 301, 282, 301, 211, 301, - 301, 111, 301, 301, 198, 121, 301, 301, 282, 301, - 211, 98, 301, 111, 301, 301, 198, 122, 301, 301, - 276, 201, 278, 98, 283, 292, 301, 301, 301, 301, - 301, 301, 276, 201, 278, 301, 283, 292, 282, 301, - 211, 301, 301, 111, 301, 301, 198, 123, 301, 301, - 301, 301, 301, 98, 301, 301, 301, 301, 301, 301, - 301, 301, 276, 201, 278, 301, 283, 292, 301, 301, - 282, 301, 211, 301, 301, 111, 301, 301, 198, 124, - 301, 301, 282, 301, 211, 98, 301, 111, 301, 301, - 198, 128, 301, 301, 276, 201, 278, 98, 283, 292, - 301, 301, 218, 301, 301, 301, 276, 201, 278, 466, - 283, 292, 466, 218, 301, 3, 466, 450, 301, 301, - 466, 271, 301, 466, 301, 301, 218, 466, 450, 301, - 301, 254, 271, 466, 19, 301, 466, 301, 253, 35, - 466, 450, 301, 450, 401, 271, 450, 14, 466, 147, - 450, 301, 301, 15, 450, 301, 301, 450, 301, 466, - 301, 450, 286, 301, 301, 301, 301, 450, 301, 301, - 450, 301, 466, 301, 450, 218, 437, 301, 401, 401, - 401, 401, 466, 301, 301, 466, 301, 301, 437, 466, - 450, 301, 30, 301, 271, 401, 401, 401, 401, 466, - 301, 301, 466, 301, 324, 301, 466, 450, 301, 301, - 301, 271, 301, 301, 301, 301, 450, 301, 301, 450, - 301, 466, 301, 450, 301, 301, 301, 41, 42, 40, - 12, 301, 301, 450, 301, 299, 450, 301, 466, 301, - 450, 301, 301, 301, 287, 288, 289, 290, 41, 42, - 40, 12, 323, 41, 42, 40, 12, 301, 41, 42, - 40, 12, 182, 314, 31, 287, 288, 289, 290, 183, - 287, 288, 289, 290, 301, 287, 288, 289, 290, 301, - 301, 301, 301, 301, 301, 41, 42, 40, 12, 301, - 301, 301, 41, 42, 40, 12, 301, 301, 41, 42, - 40, 12, 287, 288, 289, 290, 326, 301, 301, 287, - 288, 289, 290, 301, 301, 287, 288, 289, 290, 466, - 301, 301, 466, 301, 301, 301, 466, 450, 301, 41, - 42, 40, 12, 301, 301, 301, 301, 301, 301, 301, - 301, 301, 301, 301, 301, 301, 287, 288, 289, 290, - 301, 301, 301, 450, 301, 301, 450, 301, 466, 301, - 450, + 33, 197, 264, 299, 176, 298, 259, 242, 243, 244, + 1, 259, 135, 232, 199, 354, 6, 84, 495, 217, + 331, 354, 109, 104, 393, 248, 212, 256, 213, 51, + 219, 393, 21, 393, 51, 43, 393, 32, 44, 45, + 273, 221, 393, 277, 393, 200, 393, 83, 4, 136, + 295, 226, 149, 99, 220, 5, 52, 242, 243, 244, + 1, 307, 132, 211, 190, 9, 6, 84, 241, 217, + 211, 126, 109, 150, 261, 252, 212, 256, 213, 137, + 205, 98, 21, 313, 83, 43, 13, 295, 44, 45, + 273, 221, 260, 230, 197, 200, 293, 83, 4, 321, + 295, 35, 149, 86, 309, 5, 52, 242, 243, 244, + 1, 146, 97, 387, 82, 231, 6, 84, 14, 217, + 138, 251, 109, 148, 15, 387, 212, 256, 213, 452, + 219, 387, 21, 251, 439, 43, 452, 252, 44, 45, + 273, 221, 3, 277, 99, 200, 439, 83, 4, 252, + 295, 259, 526, 96, 252, 5, 52, 242, 243, 244, + 1, 136, 134, 262, 199, 103, 6, 84, 155, 217, + 252, 279, 109, 112, 51, 439, 212, 256, 213, 127, + 219, 316, 21, 99, 228, 43, 314, 439, 44, 45, + 273, 221, 318, 277, 263, 200, 83, 83, 4, 295, + 295, 46, 22, 280, 40, 5, 52, 242, 243, 244, + 1, 20, 134, 189, 191, 266, 6, 84, 254, 217, + 250, 19, 109, 152, 141, 253, 212, 256, 213, 197, + 219, 267, 21, 251, 251, 43, 175, 298, 44, 45, + 273, 221, 151, 277, 108, 200, 91, 83, 4, 87, + 295, 295, 251, 354, 180, 5, 52, 242, 243, 244, + 1, 259, 133, 140, 199, 354, 6, 84, 307, 217, + 211, 354, 109, 181, 197, 39, 212, 256, 213, 286, + 219, 14, 11, 94, 51, 43, 88, 15, 44, 45, + 273, 221, 153, 277, 143, 200, 92, 83, 4, 139, + 295, 295, 251, 154, 104, 5, 52, 242, 243, 244, + 1, 303, 134, 251, 186, 173, 6, 84, 36, 217, + 99, 126, 109, 181, 227, 285, 212, 256, 213, 137, + 208, 98, 21, 127, 180, 43, 13, 295, 44, 45, + 273, 221, 181, 277, 232, 200, 293, 83, 4, 112, + 295, 234, 196, 297, 104, 5, 52, 242, 243, 244, + 1, 29, 134, 224, 184, 156, 6, 84, 468, 217, + 197, 468, 109, 197, 23, 468, 212, 256, 213, 264, + 219, 18, 21, 175, 298, 43, 215, 15, 44, 45, + 273, 221, 232, 277, 170, 200, 168, 83, 4, 233, + 295, 295, 104, 144, 99, 5, 52, 242, 243, 244, + 1, 259, 134, 251, 199, 157, 6, 84, 26, 217, + 161, 181, 109, 181, 255, 439, 212, 256, 213, 178, + 185, 240, 21, 112, 51, 43, 164, 439, 44, 45, + 273, 221, 174, 277, 222, 200, 251, 83, 4, 305, + 295, 41, 42, 281, 12, 5, 52, 242, 243, 244, + 1, 197, 136, 163, 199, 167, 6, 84, 288, 289, + 290, 291, 109, 17, 304, 251, 212, 256, 213, 330, + 219, 16, 21, 258, 171, 47, 180, 25, 44, 45, + 273, 221, 39, 277, 93, 200, 255, 83, 4, 328, + 295, 41, 42, 281, 12, 5, 52, 242, 243, 244, + 1, 181, 136, 439, 199, 214, 6, 84, 288, 289, + 290, 291, 109, 177, 298, 439, 212, 256, 213, 28, + 219, 8, 21, 209, 194, 43, 89, 295, 44, 45, + 273, 221, 452, 277, 24, 200, 296, 83, 4, 452, + 295, 7, 440, 239, 240, 5, 52, 283, 210, 211, + 247, 95, 90, 106, 440, 188, 100, 81, 10, 9, + 254, 310, 98, 19, 294, 268, 269, 253, 195, 158, + 113, 169, 276, 201, 278, 172, 284, 293, 283, 210, + 211, 247, 197, 90, 106, 238, 187, 100, 58, 24, + 34, 322, 220, 98, 358, 159, 268, 269, 225, 223, + 317, 245, 179, 276, 201, 278, 14, 284, 293, 246, + 110, 283, 15, 211, 249, 439, 111, 106, 220, 188, + 100, 81, 24, 257, 323, 254, 98, 439, 19, 268, + 269, 118, 253, 265, 270, 272, 276, 201, 278, 7, + 284, 293, 283, 220, 211, 274, 292, 111, 85, 229, + 198, 116, 70, 275, 319, 160, 329, 98, 162, 320, + 268, 269, 36, 145, 216, 37, 332, 276, 201, 278, + 303, 284, 293, 41, 42, 281, 12, 303, 303, 283, + 303, 211, 204, 312, 111, 303, 303, 198, 116, 70, + 288, 289, 290, 291, 98, 303, 303, 268, 269, 303, + 303, 303, 303, 303, 276, 201, 278, 303, 284, 293, + 303, 303, 303, 283, 303, 211, 303, 303, 105, 203, + 312, 198, 119, 49, 303, 117, 303, 303, 98, 303, + 254, 268, 269, 19, 303, 303, 303, 253, 276, 201, + 278, 303, 284, 293, 303, 283, 14, 211, 147, 303, + 111, 303, 15, 198, 119, 65, 197, 303, 303, 303, + 98, 303, 468, 268, 269, 468, 197, 303, 355, 468, + 276, 201, 278, 303, 284, 293, 303, 303, 389, 283, + 355, 211, 207, 303, 111, 303, 355, 198, 119, 65, + 389, 303, 303, 303, 98, 303, 389, 268, 269, 303, + 197, 468, 303, 303, 276, 201, 278, 303, 284, 293, + 303, 303, 386, 283, 303, 211, 202, 303, 111, 303, + 303, 198, 116, 70, 386, 303, 303, 303, 98, 303, + 386, 268, 269, 303, 303, 303, 303, 303, 276, 201, + 278, 303, 284, 293, 303, 303, 303, 283, 303, 211, + 303, 303, 111, 303, 311, 198, 119, 65, 303, 303, + 303, 303, 98, 303, 303, 268, 269, 303, 303, 303, + 303, 303, 276, 201, 278, 303, 284, 293, 303, 303, + 303, 283, 303, 211, 206, 303, 105, 303, 303, 198, + 119, 56, 303, 233, 303, 303, 98, 303, 303, 268, + 269, 303, 303, 303, 303, 303, 276, 201, 278, 303, + 284, 293, 303, 283, 303, 211, 303, 303, 111, 303, + 303, 198, 115, 62, 303, 303, 303, 303, 98, 303, + 303, 268, 269, 303, 303, 303, 303, 303, 276, 201, + 278, 303, 284, 293, 303, 303, 303, 283, 303, 211, + 303, 303, 111, 303, 303, 193, 114, 57, 303, 303, + 303, 303, 98, 303, 303, 268, 269, 303, 303, 303, + 303, 303, 276, 201, 278, 303, 284, 293, 303, 283, + 303, 211, 303, 303, 111, 303, 303, 198, 101, 80, + 303, 303, 303, 303, 98, 303, 303, 268, 269, 303, + 303, 303, 303, 303, 276, 201, 278, 303, 284, 293, + 303, 303, 303, 283, 303, 211, 303, 303, 111, 303, + 303, 198, 102, 79, 303, 303, 303, 303, 98, 303, + 303, 268, 269, 303, 303, 303, 303, 303, 276, 201, + 278, 303, 284, 293, 303, 283, 303, 211, 303, 303, + 111, 303, 303, 198, 119, 53, 303, 303, 303, 303, + 98, 303, 303, 268, 269, 303, 303, 303, 303, 303, + 276, 201, 278, 303, 284, 293, 303, 303, 303, 283, + 303, 211, 303, 303, 111, 303, 303, 198, 119, 64, + 303, 303, 303, 303, 98, 303, 303, 268, 269, 303, + 303, 303, 303, 303, 276, 201, 278, 303, 284, 293, + 303, 283, 303, 211, 303, 303, 111, 303, 303, 198, + 101, 54, 303, 303, 303, 303, 98, 303, 303, 268, + 269, 303, 303, 303, 303, 303, 276, 201, 278, 303, + 284, 293, 303, 303, 303, 283, 303, 211, 303, 303, + 111, 303, 303, 198, 119, 63, 303, 303, 303, 303, + 98, 303, 303, 268, 269, 303, 303, 303, 303, 303, + 276, 201, 278, 303, 284, 293, 303, 283, 303, 211, + 303, 303, 111, 303, 303, 198, 119, 55, 303, 303, + 303, 303, 98, 303, 303, 268, 269, 303, 303, 303, + 303, 303, 276, 201, 278, 303, 284, 293, 303, 303, + 303, 283, 303, 211, 303, 303, 111, 303, 303, 198, + 119, 56, 303, 303, 303, 303, 98, 303, 303, 268, + 269, 303, 303, 303, 303, 303, 276, 201, 278, 303, + 284, 293, 303, 283, 303, 211, 303, 303, 111, 303, + 303, 198, 119, 66, 303, 303, 303, 303, 98, 303, + 303, 268, 269, 303, 303, 303, 303, 303, 276, 201, + 278, 303, 284, 293, 303, 303, 303, 283, 303, 211, + 303, 303, 111, 303, 303, 198, 119, 67, 303, 303, + 303, 303, 98, 303, 303, 268, 269, 303, 303, 303, + 303, 303, 276, 201, 278, 303, 284, 293, 303, 283, + 303, 211, 303, 303, 111, 303, 303, 198, 119, 68, + 303, 303, 303, 303, 98, 303, 303, 268, 269, 303, + 303, 303, 303, 303, 276, 201, 278, 303, 284, 293, + 303, 303, 303, 283, 303, 211, 303, 303, 111, 303, + 303, 198, 119, 69, 303, 303, 303, 303, 98, 303, + 303, 268, 269, 303, 303, 303, 303, 303, 276, 201, + 278, 303, 284, 293, 303, 283, 303, 211, 303, 303, + 111, 303, 303, 198, 119, 71, 303, 303, 303, 303, + 98, 303, 303, 268, 269, 303, 303, 303, 303, 303, + 276, 201, 278, 303, 284, 293, 303, 303, 303, 283, + 303, 211, 303, 303, 111, 303, 303, 192, 119, 59, + 303, 303, 303, 303, 98, 303, 303, 268, 269, 303, + 303, 303, 303, 303, 276, 201, 278, 303, 284, 293, + 303, 283, 303, 211, 303, 303, 111, 303, 303, 198, + 119, 60, 303, 303, 303, 303, 98, 303, 303, 268, + 269, 303, 303, 303, 303, 303, 276, 201, 278, 303, + 284, 293, 303, 303, 303, 283, 303, 211, 303, 303, + 111, 303, 303, 198, 119, 61, 303, 303, 303, 303, + 98, 303, 303, 268, 269, 303, 303, 303, 303, 303, + 276, 201, 278, 303, 284, 293, 303, 283, 303, 211, + 303, 303, 111, 303, 303, 198, 119, 72, 303, 303, + 303, 303, 98, 303, 303, 268, 269, 303, 303, 303, + 303, 303, 276, 201, 278, 303, 284, 293, 303, 303, + 303, 283, 303, 211, 303, 303, 111, 303, 303, 198, + 119, 73, 303, 303, 303, 303, 98, 303, 303, 268, + 269, 303, 303, 303, 303, 303, 276, 201, 278, 303, + 284, 293, 303, 283, 303, 211, 303, 303, 111, 303, + 303, 198, 119, 74, 303, 303, 303, 303, 98, 303, + 303, 268, 269, 303, 303, 303, 303, 303, 276, 201, + 278, 303, 284, 293, 303, 303, 303, 283, 303, 211, + 303, 303, 111, 303, 303, 198, 119, 75, 303, 303, + 303, 303, 98, 303, 303, 268, 269, 303, 303, 303, + 303, 303, 276, 201, 278, 303, 284, 293, 303, 283, + 303, 211, 303, 303, 111, 303, 303, 198, 119, 76, + 303, 303, 303, 303, 98, 303, 303, 268, 269, 303, + 303, 303, 303, 303, 276, 201, 278, 303, 284, 293, + 303, 303, 303, 283, 303, 211, 303, 303, 111, 303, + 303, 198, 119, 77, 303, 303, 303, 303, 98, 303, + 303, 268, 269, 303, 303, 303, 303, 303, 276, 201, + 278, 303, 284, 293, 303, 283, 303, 211, 303, 303, + 111, 303, 303, 198, 119, 78, 303, 303, 303, 303, + 98, 303, 303, 268, 269, 303, 303, 303, 303, 303, + 276, 201, 278, 303, 284, 293, 303, 303, 303, 283, + 303, 211, 303, 303, 111, 303, 303, 198, 119, 48, + 303, 303, 303, 303, 98, 303, 303, 268, 269, 303, + 303, 303, 303, 303, 276, 201, 278, 303, 284, 293, + 303, 283, 303, 211, 303, 303, 111, 303, 303, 198, + 119, 50, 303, 303, 303, 303, 98, 303, 303, 268, + 269, 303, 303, 303, 303, 303, 276, 201, 278, 303, + 284, 293, 308, 303, 303, 303, 303, 303, 242, 243, + 244, 2, 303, 306, 303, 303, 303, 6, 84, 254, + 303, 303, 19, 109, 303, 303, 253, 212, 256, 213, + 303, 303, 38, 303, 14, 14, 303, 303, 303, 165, + 15, 15, 303, 303, 303, 41, 42, 281, 12, 251, + 303, 303, 46, 22, 280, 40, 303, 301, 27, 303, + 303, 308, 288, 289, 290, 291, 303, 242, 243, 244, + 2, 303, 306, 303, 303, 303, 6, 84, 303, 303, + 303, 303, 109, 303, 14, 303, 212, 256, 213, 303, + 15, 142, 303, 303, 303, 41, 42, 281, 12, 303, + 303, 251, 303, 303, 46, 22, 280, 40, 303, 303, + 303, 303, 288, 289, 290, 291, 302, 27, 303, 303, + 235, 236, 237, 130, 303, 303, 242, 243, 244, 1, + 468, 303, 303, 468, 303, 6, 84, 468, 452, 303, + 303, 109, 303, 303, 303, 212, 256, 213, 283, 303, + 211, 303, 303, 111, 303, 303, 198, 131, 303, 303, + 303, 303, 303, 98, 452, 303, 303, 452, 303, 468, + 303, 452, 326, 276, 201, 278, 303, 284, 293, 303, + 218, 303, 303, 283, 303, 211, 303, 468, 111, 303, + 468, 198, 125, 3, 468, 452, 303, 303, 98, 271, + 303, 303, 303, 303, 303, 303, 303, 282, 276, 201, + 278, 303, 284, 293, 283, 303, 211, 303, 303, 111, + 166, 452, 198, 129, 452, 303, 468, 303, 452, 98, + 251, 303, 303, 46, 22, 280, 40, 303, 303, 276, + 201, 278, 303, 284, 293, 303, 218, 303, 303, 283, + 303, 211, 303, 468, 111, 303, 468, 198, 120, 35, + 468, 452, 303, 303, 98, 271, 303, 303, 303, 303, + 303, 303, 303, 303, 276, 201, 278, 303, 284, 293, + 283, 303, 211, 303, 303, 111, 303, 452, 198, 121, + 452, 303, 468, 303, 452, 98, 303, 303, 303, 303, + 303, 303, 303, 303, 303, 276, 201, 278, 303, 284, + 293, 303, 218, 303, 303, 283, 303, 211, 303, 468, + 111, 303, 468, 198, 122, 303, 468, 452, 303, 303, + 98, 271, 303, 303, 303, 303, 303, 303, 303, 303, + 276, 201, 278, 303, 284, 293, 283, 303, 211, 303, + 303, 111, 303, 452, 198, 123, 452, 303, 468, 303, + 452, 98, 303, 303, 303, 303, 303, 303, 303, 303, + 303, 276, 201, 278, 303, 284, 293, 303, 30, 303, + 303, 283, 303, 211, 218, 468, 111, 303, 468, 198, + 124, 468, 468, 452, 468, 303, 98, 271, 468, 452, + 303, 303, 303, 271, 303, 303, 276, 201, 278, 303, + 284, 293, 283, 402, 211, 303, 303, 111, 303, 452, + 198, 128, 452, 303, 468, 452, 452, 98, 452, 303, + 468, 303, 452, 287, 303, 107, 325, 276, 201, 278, + 303, 284, 293, 303, 303, 439, 303, 402, 402, 402, + 402, 41, 42, 281, 12, 303, 303, 439, 303, 41, + 42, 281, 12, 303, 402, 402, 402, 402, 288, 289, + 290, 291, 41, 42, 281, 12, 288, 289, 290, 291, + 300, 324, 41, 42, 281, 12, 182, 315, 303, 288, + 289, 290, 291, 183, 303, 303, 303, 303, 303, 288, + 289, 290, 291, 41, 42, 281, 12, 31, 303, 41, + 42, 281, 12, 303, 327, 303, 41, 42, 281, 12, + 288, 289, 290, 291, 303, 303, 288, 289, 290, 291, + 303, 303, 303, 288, 289, 290, 291, 41, 42, 281, + 12, 41, 42, 281, 12, 303, 303, 303, 303, 303, + 303, 303, 303, 303, 288, 289, 290, 291, 288, 289, + 290, 291, ); public static $yy_lookahead = array( - 2, 70, 61, 62, 73, 92, 34, 9, 10, 11, - 12, 80, 14, 100, 16, 43, 18, 19, 46, 21, - 1, 90, 24, 51, 13, 94, 28, 29, 30, 80, - 32, 20, 34, 22, 17, 37, 25, 39, 40, 41, - 42, 43, 31, 45, 33, 47, 35, 49, 50, 100, - 52, 85, 86, 87, 43, 57, 58, 9, 10, 11, - 12, 12, 14, 14, 16, 16, 18, 19, 65, 21, - 67, 12, 24, 14, 33, 16, 28, 29, 30, 1, - 32, 32, 34, 97, 96, 37, 98, 99, 40, 41, - 42, 43, 51, 45, 65, 47, 67, 49, 50, 51, - 52, 52, 15, 69, 17, 57, 58, 9, 10, 11, - 12, 52, 14, 13, 16, 15, 18, 19, 15, 21, - 17, 95, 24, 97, 20, 25, 28, 29, 30, 95, - 32, 31, 34, 46, 34, 37, 107, 33, 40, 41, - 42, 43, 65, 45, 67, 47, 46, 49, 50, 46, - 52, 1, 2, 17, 14, 57, 58, 9, 10, 11, - 12, 14, 14, 16, 16, 12, 18, 19, 95, 21, - 97, 72, 24, 17, 34, 76, 28, 29, 30, 43, - 32, 82, 34, 106, 107, 37, 50, 34, 40, 41, - 42, 43, 52, 45, 47, 47, 49, 49, 50, 52, - 52, 102, 46, 13, 1, 57, 58, 9, 10, 11, - 12, 21, 14, 70, 16, 25, 18, 19, 27, 21, - 77, 31, 24, 80, 95, 34, 28, 29, 30, 14, - 32, 16, 34, 82, 44, 37, 72, 46, 40, 41, - 42, 43, 70, 45, 69, 47, 82, 49, 50, 77, - 52, 15, 80, 13, 51, 57, 58, 9, 10, 11, - 12, 21, 14, 80, 16, 25, 18, 19, 79, 21, - 76, 31, 24, 98, 99, 25, 28, 29, 30, 43, - 32, 31, 34, 96, 44, 37, 50, 14, 40, 41, - 42, 43, 72, 45, 72, 47, 102, 49, 50, 14, - 52, 16, 82, 72, 82, 57, 58, 9, 10, 11, - 12, 72, 14, 82, 16, 1, 18, 19, 76, 21, - 95, 82, 24, 15, 102, 52, 28, 29, 30, 21, - 32, 17, 34, 102, 49, 37, 97, 52, 40, 41, - 42, 43, 70, 45, 102, 47, 9, 49, 50, 12, - 52, 70, 80, 16, 73, 57, 58, 9, 10, 11, - 12, 80, 14, 21, 16, 95, 18, 19, 6, 21, - 8, 72, 24, 98, 99, 94, 28, 29, 30, 92, - 32, 82, 34, 1, 2, 37, 44, 100, 40, 41, - 42, 43, 72, 45, 76, 47, 97, 49, 50, 76, - 52, 59, 82, 1, 14, 57, 58, 9, 10, 11, - 12, 43, 14, 72, 16, 102, 18, 19, 50, 21, - 102, 103, 24, 82, 80, 102, 28, 29, 30, 27, - 32, 25, 34, 98, 99, 37, 80, 31, 40, 41, - 42, 43, 52, 45, 33, 47, 35, 49, 50, 16, + 2, 1, 97, 13, 99, 100, 21, 9, 10, 11, + 12, 21, 14, 70, 16, 25, 18, 19, 1, 21, + 77, 31, 24, 80, 13, 69, 28, 29, 30, 44, + 32, 20, 34, 22, 44, 37, 25, 39, 40, 41, + 42, 43, 31, 45, 33, 47, 35, 49, 50, 14, + 52, 16, 96, 17, 43, 57, 58, 9, 10, 11, + 12, 65, 14, 67, 16, 33, 18, 19, 65, 21, + 67, 70, 24, 96, 73, 98, 28, 29, 30, 43, + 32, 80, 34, 51, 49, 37, 50, 52, 40, 41, + 42, 43, 91, 45, 1, 47, 95, 49, 50, 51, + 52, 15, 96, 107, 108, 57, 58, 9, 10, 11, + 12, 72, 14, 13, 16, 15, 18, 19, 25, 21, + 80, 82, 24, 72, 31, 25, 28, 29, 30, 43, + 32, 31, 34, 82, 34, 37, 50, 98, 40, 41, + 42, 43, 15, 45, 17, 47, 46, 49, 50, 98, + 52, 21, 61, 62, 98, 57, 58, 9, 10, 11, + 12, 14, 14, 16, 16, 80, 18, 19, 96, 21, + 98, 93, 24, 46, 44, 34, 28, 29, 30, 101, + 32, 51, 34, 17, 43, 37, 101, 46, 40, 41, + 42, 43, 51, 45, 47, 47, 49, 49, 50, 52, + 52, 85, 86, 87, 88, 57, 58, 9, 10, 11, + 12, 12, 14, 14, 16, 16, 18, 19, 9, 21, + 82, 12, 24, 72, 72, 16, 28, 29, 30, 1, + 32, 32, 34, 82, 82, 37, 99, 100, 40, 41, + 42, 43, 72, 45, 79, 47, 76, 49, 50, 80, + 52, 52, 82, 13, 103, 57, 58, 9, 10, 11, + 12, 21, 14, 14, 16, 25, 18, 19, 65, 21, + 67, 31, 24, 103, 1, 2, 28, 29, 30, 51, + 32, 25, 34, 34, 44, 37, 80, 31, 40, 41, + 42, 43, 72, 45, 70, 47, 76, 49, 50, 14, + 52, 52, 82, 72, 80, 57, 58, 9, 10, 11, + 12, 108, 14, 82, 16, 76, 18, 19, 15, 21, + 17, 70, 24, 103, 73, 93, 28, 29, 30, 43, + 32, 80, 34, 101, 103, 37, 50, 52, 40, 41, + 42, 43, 103, 45, 70, 47, 95, 49, 50, 46, + 52, 77, 78, 69, 80, 57, 58, 9, 10, 11, + 12, 12, 14, 14, 16, 16, 18, 19, 9, 21, + 1, 12, 24, 1, 2, 16, 28, 29, 30, 97, + 32, 25, 34, 99, 100, 37, 17, 31, 40, 41, + 42, 43, 70, 45, 76, 47, 76, 49, 50, 77, + 52, 52, 80, 72, 17, 57, 58, 9, 10, 11, + 12, 21, 14, 82, 16, 96, 18, 19, 27, 21, + 96, 103, 24, 103, 104, 34, 28, 29, 30, 6, + 32, 8, 34, 46, 44, 37, 72, 46, 40, 41, + 42, 43, 14, 45, 16, 47, 82, 49, 50, 59, 52, 36, 37, 38, 39, 57, 58, 9, 10, 11, - 12, 95, 14, 34, 16, 2, 18, 19, 53, 54, - 55, 56, 24, 21, 59, 46, 28, 29, 30, 43, - 32, 48, 34, 63, 64, 37, 50, 34, 40, 41, - 42, 43, 33, 45, 35, 47, 44, 49, 50, 46, + 12, 1, 14, 96, 16, 72, 18, 19, 53, 54, + 55, 56, 24, 15, 59, 82, 28, 29, 30, 21, + 32, 20, 34, 16, 76, 37, 103, 27, 40, 41, + 42, 43, 2, 45, 33, 47, 104, 49, 50, 14, 52, 36, 37, 38, 39, 57, 58, 9, 10, 11, - 12, 34, 14, 33, 16, 35, 18, 19, 53, 54, - 55, 56, 24, 46, 7, 8, 28, 29, 30, 43, - 32, 103, 34, 34, 33, 37, 35, 51, 40, 41, - 42, 43, 95, 45, 99, 47, 64, 49, 50, 81, - 52, 15, 81, 81, 7, 57, 58, 65, 66, 67, - 68, 70, 70, 71, 95, 73, 74, 75, 77, 78, - 9, 80, 80, 12, 72, 83, 84, 16, 76, 43, - 95, 89, 90, 91, 82, 93, 94, 13, 65, 66, - 67, 68, 9, 70, 71, 12, 73, 74, 75, 16, - 13, 16, 16, 80, 102, 72, 83, 84, 16, 48, - 16, 16, 89, 90, 91, 82, 93, 94, 85, 86, - 87, 65, 14, 67, 68, 16, 70, 71, 32, 73, - 74, 75, 43, 65, 32, 67, 80, 21, 70, 83, - 84, 73, 74, 75, 34, 89, 90, 91, 80, 93, - 94, 83, 84, 26, 16, 16, 49, 89, 90, 91, - 44, 93, 94, 36, 37, 38, 39, 51, 49, 65, - 16, 67, 104, 105, 70, 51, 1, 73, 74, 75, - 53, 54, 55, 56, 80, 51, 15, 83, 84, 1, - 16, 35, 108, 89, 90, 91, 108, 93, 94, 22, - 25, 13, 65, 108, 67, 17, 31, 70, 104, 105, - 73, 74, 75, 25, 77, 108, 108, 80, 108, 31, - 83, 84, 34, 108, 108, 108, 89, 90, 91, 108, - 93, 94, 108, 108, 46, 65, 108, 67, 108, 108, - 70, 108, 108, 73, 74, 75, 108, 108, 108, 108, - 80, 108, 72, 83, 84, 108, 108, 108, 108, 89, - 90, 91, 82, 93, 94, 85, 86, 87, 65, 108, - 67, 101, 108, 70, 108, 108, 73, 74, 75, 108, - 108, 108, 108, 80, 108, 72, 83, 84, 108, 108, - 108, 108, 89, 90, 91, 82, 93, 94, 85, 86, - 87, 65, 108, 67, 101, 108, 70, 108, 108, 73, - 74, 75, 108, 108, 108, 108, 80, 108, 108, 83, - 84, 1, 108, 108, 108, 89, 90, 91, 108, 93, - 94, 108, 108, 13, 65, 108, 67, 108, 108, 70, - 108, 105, 73, 74, 75, 25, 108, 108, 108, 80, - 108, 31, 83, 84, 1, 108, 108, 108, 89, 90, - 91, 108, 93, 94, 108, 108, 13, 65, 108, 67, - 101, 108, 70, 108, 108, 73, 74, 75, 25, 77, - 108, 108, 80, 108, 31, 83, 84, 1, 108, 108, - 108, 89, 90, 91, 108, 93, 94, 108, 108, 13, - 65, 108, 67, 108, 108, 70, 108, 108, 73, 74, - 75, 25, 108, 108, 108, 80, 108, 31, 83, 84, - 108, 108, 108, 108, 89, 90, 91, 9, 93, 94, - 12, 108, 108, 65, 16, 67, 108, 9, 70, 108, - 12, 73, 74, 75, 16, 65, 108, 67, 80, 108, - 70, 83, 84, 73, 74, 75, 108, 89, 90, 91, - 80, 93, 94, 83, 84, 9, 48, 108, 12, 89, - 90, 91, 16, 93, 94, 65, 48, 67, 108, 108, - 70, 25, 108, 73, 74, 75, 108, 31, 108, 108, - 80, 108, 108, 83, 84, 108, 108, 108, 108, 89, - 90, 91, 108, 93, 94, 108, 108, 65, 108, 67, - 108, 108, 70, 108, 108, 73, 74, 75, 108, 65, - 108, 67, 80, 108, 70, 83, 84, 73, 74, 75, - 108, 89, 90, 91, 80, 93, 94, 83, 84, 108, - 108, 108, 108, 89, 90, 91, 108, 93, 94, 65, - 108, 67, 108, 108, 70, 108, 108, 73, 74, 75, - 108, 108, 108, 108, 80, 108, 108, 83, 84, 108, - 108, 108, 108, 89, 90, 91, 108, 93, 94, 108, - 108, 65, 108, 67, 108, 108, 70, 108, 108, 73, - 74, 75, 108, 65, 108, 67, 80, 108, 70, 83, - 84, 73, 74, 75, 108, 89, 90, 91, 80, 93, - 94, 83, 84, 108, 108, 108, 108, 89, 90, 91, - 108, 93, 94, 65, 108, 67, 108, 108, 70, 108, - 108, 73, 74, 75, 108, 108, 108, 108, 80, 108, - 108, 83, 84, 108, 108, 108, 108, 89, 90, 91, - 108, 93, 94, 108, 108, 65, 108, 67, 108, 108, - 70, 108, 108, 73, 74, 75, 108, 65, 108, 67, - 80, 108, 70, 83, 84, 73, 74, 75, 108, 89, - 90, 91, 80, 93, 94, 83, 84, 108, 108, 108, - 108, 89, 90, 91, 108, 93, 94, 65, 108, 67, - 108, 108, 70, 108, 108, 73, 74, 75, 108, 108, - 108, 108, 80, 108, 108, 83, 84, 108, 108, 108, - 108, 89, 90, 91, 108, 93, 94, 108, 108, 65, - 108, 67, 108, 108, 70, 108, 108, 73, 74, 75, - 108, 65, 108, 67, 80, 108, 70, 83, 84, 73, - 74, 75, 108, 89, 90, 91, 80, 93, 94, 83, - 84, 108, 108, 108, 108, 89, 90, 91, 108, 93, - 94, 65, 108, 67, 108, 108, 70, 108, 108, 73, - 74, 75, 108, 108, 108, 108, 80, 108, 108, 83, - 84, 108, 108, 108, 108, 89, 90, 91, 108, 93, - 94, 108, 108, 65, 108, 67, 108, 108, 70, 108, - 108, 73, 74, 75, 108, 65, 108, 67, 80, 108, - 70, 83, 84, 73, 74, 75, 108, 89, 90, 91, - 80, 93, 94, 83, 84, 108, 108, 108, 108, 89, - 90, 91, 108, 93, 94, 65, 108, 67, 108, 108, - 70, 108, 108, 73, 74, 75, 108, 108, 108, 108, - 80, 108, 108, 83, 84, 108, 108, 108, 108, 89, - 90, 91, 108, 93, 94, 108, 108, 65, 108, 67, - 108, 108, 70, 108, 108, 73, 74, 75, 108, 65, - 108, 67, 80, 108, 70, 83, 84, 73, 74, 75, - 108, 89, 90, 91, 80, 93, 94, 83, 84, 108, - 108, 108, 108, 89, 90, 91, 108, 93, 94, 65, - 108, 67, 108, 108, 70, 108, 108, 73, 74, 75, - 108, 108, 108, 108, 80, 108, 108, 83, 84, 108, - 108, 108, 108, 89, 90, 91, 108, 93, 94, 108, - 108, 65, 108, 67, 108, 108, 70, 108, 108, 73, - 74, 75, 108, 65, 108, 67, 80, 108, 70, 83, - 84, 73, 74, 75, 108, 89, 90, 91, 80, 93, - 94, 83, 84, 108, 108, 108, 108, 89, 90, 91, - 108, 93, 94, 65, 108, 67, 108, 108, 70, 108, - 108, 73, 74, 75, 108, 108, 108, 108, 80, 108, - 108, 83, 84, 108, 108, 108, 108, 89, 90, 91, - 108, 93, 94, 108, 108, 65, 108, 67, 108, 108, - 70, 108, 108, 73, 74, 75, 108, 65, 108, 67, - 80, 108, 70, 83, 84, 73, 74, 75, 108, 89, - 90, 91, 80, 93, 94, 83, 84, 108, 108, 108, - 108, 89, 90, 91, 108, 93, 94, 3, 20, 108, - 108, 108, 108, 9, 10, 11, 12, 108, 14, 108, - 108, 108, 18, 19, 36, 37, 38, 39, 24, 108, - 108, 108, 28, 29, 30, 108, 108, 23, 108, 25, - 108, 53, 54, 55, 56, 31, 108, 108, 108, 108, - 36, 37, 38, 39, 108, 108, 108, 108, 108, 108, - 108, 108, 58, 59, 108, 108, 3, 53, 54, 55, - 56, 108, 9, 10, 11, 12, 108, 14, 108, 108, - 108, 18, 19, 108, 108, 108, 108, 24, 108, 25, - 108, 28, 29, 30, 108, 31, 108, 108, 108, 108, - 36, 37, 38, 39, 108, 108, 108, 108, 108, 108, - 108, 108, 108, 108, 108, 108, 108, 53, 54, 55, - 56, 58, 59, 108, 108, 3, 4, 5, 6, 108, - 108, 9, 10, 11, 12, 108, 108, 108, 108, 108, - 18, 19, 108, 108, 108, 108, 24, 108, 108, 108, - 28, 29, 30, 65, 108, 67, 108, 108, 70, 108, - 108, 73, 74, 108, 108, 108, 108, 108, 80, 108, - 108, 108, 108, 108, 108, 108, 88, 89, 90, 91, - 108, 93, 94, 108, 108, 108, 108, 108, 65, 108, - 67, 108, 108, 70, 108, 108, 73, 74, 108, 108, - 65, 108, 67, 80, 108, 70, 108, 108, 73, 74, - 108, 88, 89, 90, 91, 80, 93, 94, 108, 108, - 108, 108, 108, 108, 89, 90, 91, 108, 93, 94, - 108, 108, 108, 108, 65, 108, 67, 108, 108, 70, - 108, 108, 73, 74, 108, 108, 108, 108, 108, 80, - 108, 108, 108, 108, 108, 108, 108, 108, 89, 90, - 91, 108, 93, 94, 108, 108, 65, 108, 67, 108, - 108, 70, 108, 108, 73, 74, 108, 108, 65, 108, - 67, 80, 108, 70, 108, 108, 73, 74, 108, 108, - 89, 90, 91, 80, 93, 94, 108, 108, 108, 108, - 108, 108, 89, 90, 91, 108, 93, 94, 65, 108, - 67, 108, 108, 70, 108, 108, 73, 74, 108, 108, - 108, 108, 108, 80, 108, 108, 108, 108, 108, 108, - 108, 108, 89, 90, 91, 108, 93, 94, 108, 108, - 65, 108, 67, 108, 108, 70, 108, 108, 73, 74, - 108, 108, 65, 108, 67, 80, 108, 70, 108, 108, - 73, 74, 108, 108, 89, 90, 91, 80, 93, 94, - 108, 108, 2, 108, 108, 108, 89, 90, 91, 9, - 93, 94, 12, 2, 108, 15, 16, 17, 108, 108, - 9, 21, 108, 12, 108, 108, 2, 16, 17, 108, - 108, 9, 21, 9, 12, 108, 12, 108, 16, 15, - 16, 17, 108, 43, 2, 21, 46, 25, 48, 27, - 50, 108, 108, 31, 43, 108, 108, 46, 108, 48, - 108, 50, 51, 108, 108, 108, 108, 43, 108, 108, - 46, 108, 48, 108, 50, 2, 34, 108, 36, 37, - 38, 39, 9, 108, 108, 12, 108, 108, 46, 16, - 17, 108, 2, 108, 21, 53, 54, 55, 56, 9, - 108, 108, 12, 108, 13, 108, 16, 17, 108, 108, - 108, 21, 108, 108, 108, 108, 43, 108, 108, 46, - 108, 48, 108, 50, 108, 108, 108, 36, 37, 38, - 39, 108, 108, 43, 108, 13, 46, 108, 48, 108, - 50, 108, 108, 108, 53, 54, 55, 56, 36, 37, - 38, 39, 35, 36, 37, 38, 39, 108, 36, 37, - 38, 39, 13, 51, 2, 53, 54, 55, 56, 13, - 53, 54, 55, 56, 108, 53, 54, 55, 56, 108, - 108, 108, 108, 108, 108, 36, 37, 38, 39, 108, - 108, 108, 36, 37, 38, 39, 108, 108, 36, 37, - 38, 39, 53, 54, 55, 56, 13, 108, 108, 53, - 54, 55, 56, 108, 108, 53, 54, 55, 56, 9, - 108, 108, 12, 108, 108, 108, 16, 17, 108, 36, - 37, 38, 39, 108, 108, 108, 108, 108, 108, 108, - 108, 108, 108, 108, 108, 108, 53, 54, 55, 56, - 108, 108, 108, 43, 108, 108, 46, 108, 48, 108, - 50, + 12, 103, 14, 34, 16, 48, 18, 19, 53, 54, + 55, 56, 24, 99, 100, 46, 28, 29, 30, 12, + 32, 34, 34, 63, 64, 37, 96, 52, 40, 41, + 42, 43, 43, 45, 33, 47, 35, 49, 50, 50, + 52, 34, 34, 7, 8, 57, 58, 65, 66, 67, + 68, 81, 70, 71, 46, 73, 74, 75, 34, 33, + 9, 35, 80, 12, 100, 83, 84, 16, 64, 96, + 46, 81, 90, 91, 92, 81, 94, 95, 65, 66, + 67, 68, 1, 70, 71, 7, 73, 74, 75, 33, + 15, 35, 43, 80, 13, 96, 83, 84, 17, 48, + 51, 13, 16, 90, 91, 92, 25, 94, 95, 13, + 16, 65, 31, 67, 68, 34, 70, 71, 43, 73, + 74, 75, 33, 16, 35, 9, 80, 46, 12, 83, + 84, 16, 16, 16, 14, 16, 90, 91, 92, 34, + 94, 95, 65, 43, 67, 32, 16, 70, 16, 16, + 73, 74, 75, 32, 51, 49, 16, 80, 49, 51, + 83, 84, 15, 26, 48, 22, 35, 90, 91, 92, + 109, 94, 95, 36, 37, 38, 39, 109, 109, 65, + 109, 67, 105, 106, 70, 109, 109, 73, 74, 75, + 53, 54, 55, 56, 80, 109, 109, 83, 84, 109, + 109, 109, 109, 109, 90, 91, 92, 109, 94, 95, + 109, 109, 109, 65, 109, 67, 109, 109, 70, 105, + 106, 73, 74, 75, 109, 77, 109, 109, 80, 109, + 9, 83, 84, 12, 109, 109, 109, 16, 90, 91, + 92, 109, 94, 95, 109, 65, 25, 67, 27, 109, + 70, 109, 31, 73, 74, 75, 1, 109, 109, 109, + 80, 109, 9, 83, 84, 12, 1, 109, 13, 16, + 90, 91, 92, 109, 94, 95, 109, 109, 13, 65, + 25, 67, 102, 109, 70, 109, 31, 73, 74, 75, + 25, 109, 109, 109, 80, 109, 31, 83, 84, 109, + 1, 48, 109, 109, 90, 91, 92, 109, 94, 95, + 109, 109, 13, 65, 109, 67, 102, 109, 70, 109, + 109, 73, 74, 75, 25, 109, 109, 109, 80, 109, + 31, 83, 84, 109, 109, 109, 109, 109, 90, 91, + 92, 109, 94, 95, 109, 109, 109, 65, 109, 67, + 109, 109, 70, 109, 106, 73, 74, 75, 109, 109, + 109, 109, 80, 109, 109, 83, 84, 109, 109, 109, + 109, 109, 90, 91, 92, 109, 94, 95, 109, 109, + 109, 65, 109, 67, 102, 109, 70, 109, 109, 73, + 74, 75, 109, 77, 109, 109, 80, 109, 109, 83, + 84, 109, 109, 109, 109, 109, 90, 91, 92, 109, + 94, 95, 109, 65, 109, 67, 109, 109, 70, 109, + 109, 73, 74, 75, 109, 109, 109, 109, 80, 109, + 109, 83, 84, 109, 109, 109, 109, 109, 90, 91, + 92, 109, 94, 95, 109, 109, 109, 65, 109, 67, + 109, 109, 70, 109, 109, 73, 74, 75, 109, 109, + 109, 109, 80, 109, 109, 83, 84, 109, 109, 109, + 109, 109, 90, 91, 92, 109, 94, 95, 109, 65, + 109, 67, 109, 109, 70, 109, 109, 73, 74, 75, + 109, 109, 109, 109, 80, 109, 109, 83, 84, 109, + 109, 109, 109, 109, 90, 91, 92, 109, 94, 95, + 109, 109, 109, 65, 109, 67, 109, 109, 70, 109, + 109, 73, 74, 75, 109, 109, 109, 109, 80, 109, + 109, 83, 84, 109, 109, 109, 109, 109, 90, 91, + 92, 109, 94, 95, 109, 65, 109, 67, 109, 109, + 70, 109, 109, 73, 74, 75, 109, 109, 109, 109, + 80, 109, 109, 83, 84, 109, 109, 109, 109, 109, + 90, 91, 92, 109, 94, 95, 109, 109, 109, 65, + 109, 67, 109, 109, 70, 109, 109, 73, 74, 75, + 109, 109, 109, 109, 80, 109, 109, 83, 84, 109, + 109, 109, 109, 109, 90, 91, 92, 109, 94, 95, + 109, 65, 109, 67, 109, 109, 70, 109, 109, 73, + 74, 75, 109, 109, 109, 109, 80, 109, 109, 83, + 84, 109, 109, 109, 109, 109, 90, 91, 92, 109, + 94, 95, 109, 109, 109, 65, 109, 67, 109, 109, + 70, 109, 109, 73, 74, 75, 109, 109, 109, 109, + 80, 109, 109, 83, 84, 109, 109, 109, 109, 109, + 90, 91, 92, 109, 94, 95, 109, 65, 109, 67, + 109, 109, 70, 109, 109, 73, 74, 75, 109, 109, + 109, 109, 80, 109, 109, 83, 84, 109, 109, 109, + 109, 109, 90, 91, 92, 109, 94, 95, 109, 109, + 109, 65, 109, 67, 109, 109, 70, 109, 109, 73, + 74, 75, 109, 109, 109, 109, 80, 109, 109, 83, + 84, 109, 109, 109, 109, 109, 90, 91, 92, 109, + 94, 95, 109, 65, 109, 67, 109, 109, 70, 109, + 109, 73, 74, 75, 109, 109, 109, 109, 80, 109, + 109, 83, 84, 109, 109, 109, 109, 109, 90, 91, + 92, 109, 94, 95, 109, 109, 109, 65, 109, 67, + 109, 109, 70, 109, 109, 73, 74, 75, 109, 109, + 109, 109, 80, 109, 109, 83, 84, 109, 109, 109, + 109, 109, 90, 91, 92, 109, 94, 95, 109, 65, + 109, 67, 109, 109, 70, 109, 109, 73, 74, 75, + 109, 109, 109, 109, 80, 109, 109, 83, 84, 109, + 109, 109, 109, 109, 90, 91, 92, 109, 94, 95, + 109, 109, 109, 65, 109, 67, 109, 109, 70, 109, + 109, 73, 74, 75, 109, 109, 109, 109, 80, 109, + 109, 83, 84, 109, 109, 109, 109, 109, 90, 91, + 92, 109, 94, 95, 109, 65, 109, 67, 109, 109, + 70, 109, 109, 73, 74, 75, 109, 109, 109, 109, + 80, 109, 109, 83, 84, 109, 109, 109, 109, 109, + 90, 91, 92, 109, 94, 95, 109, 109, 109, 65, + 109, 67, 109, 109, 70, 109, 109, 73, 74, 75, + 109, 109, 109, 109, 80, 109, 109, 83, 84, 109, + 109, 109, 109, 109, 90, 91, 92, 109, 94, 95, + 109, 65, 109, 67, 109, 109, 70, 109, 109, 73, + 74, 75, 109, 109, 109, 109, 80, 109, 109, 83, + 84, 109, 109, 109, 109, 109, 90, 91, 92, 109, + 94, 95, 109, 109, 109, 65, 109, 67, 109, 109, + 70, 109, 109, 73, 74, 75, 109, 109, 109, 109, + 80, 109, 109, 83, 84, 109, 109, 109, 109, 109, + 90, 91, 92, 109, 94, 95, 109, 65, 109, 67, + 109, 109, 70, 109, 109, 73, 74, 75, 109, 109, + 109, 109, 80, 109, 109, 83, 84, 109, 109, 109, + 109, 109, 90, 91, 92, 109, 94, 95, 109, 109, + 109, 65, 109, 67, 109, 109, 70, 109, 109, 73, + 74, 75, 109, 109, 109, 109, 80, 109, 109, 83, + 84, 109, 109, 109, 109, 109, 90, 91, 92, 109, + 94, 95, 109, 65, 109, 67, 109, 109, 70, 109, + 109, 73, 74, 75, 109, 109, 109, 109, 80, 109, + 109, 83, 84, 109, 109, 109, 109, 109, 90, 91, + 92, 109, 94, 95, 109, 109, 109, 65, 109, 67, + 109, 109, 70, 109, 109, 73, 74, 75, 109, 109, + 109, 109, 80, 109, 109, 83, 84, 109, 109, 109, + 109, 109, 90, 91, 92, 109, 94, 95, 109, 65, + 109, 67, 109, 109, 70, 109, 109, 73, 74, 75, + 109, 109, 109, 109, 80, 109, 109, 83, 84, 109, + 109, 109, 109, 109, 90, 91, 92, 109, 94, 95, + 109, 109, 109, 65, 109, 67, 109, 109, 70, 109, + 109, 73, 74, 75, 109, 109, 109, 109, 80, 109, + 109, 83, 84, 109, 109, 109, 109, 109, 90, 91, + 92, 109, 94, 95, 109, 65, 109, 67, 109, 109, + 70, 109, 109, 73, 74, 75, 109, 109, 109, 109, + 80, 109, 109, 83, 84, 109, 109, 109, 109, 109, + 90, 91, 92, 109, 94, 95, 109, 109, 109, 65, + 109, 67, 109, 109, 70, 109, 109, 73, 74, 75, + 109, 109, 109, 109, 80, 109, 109, 83, 84, 109, + 109, 109, 109, 109, 90, 91, 92, 109, 94, 95, + 109, 65, 109, 67, 109, 109, 70, 109, 109, 73, + 74, 75, 109, 109, 109, 109, 80, 109, 109, 83, + 84, 109, 109, 109, 109, 109, 90, 91, 92, 109, + 94, 95, 3, 109, 109, 109, 109, 109, 9, 10, + 11, 12, 109, 14, 109, 109, 109, 18, 19, 9, + 109, 109, 12, 24, 109, 109, 16, 28, 29, 30, + 109, 109, 23, 109, 25, 25, 109, 109, 109, 72, + 31, 31, 109, 109, 109, 36, 37, 38, 39, 82, + 109, 109, 85, 86, 87, 88, 109, 58, 59, 109, + 109, 3, 53, 54, 55, 56, 109, 9, 10, 11, + 12, 109, 14, 109, 109, 109, 18, 19, 109, 109, + 109, 109, 24, 109, 25, 109, 28, 29, 30, 109, + 31, 72, 109, 109, 109, 36, 37, 38, 39, 109, + 109, 82, 109, 109, 85, 86, 87, 88, 109, 109, + 109, 109, 53, 54, 55, 56, 58, 59, 109, 109, + 3, 4, 5, 6, 109, 109, 9, 10, 11, 12, + 9, 109, 109, 12, 109, 18, 19, 16, 17, 109, + 109, 24, 109, 109, 109, 28, 29, 30, 65, 109, + 67, 109, 109, 70, 109, 109, 73, 74, 109, 109, + 109, 109, 109, 80, 43, 109, 109, 46, 109, 48, + 109, 50, 89, 90, 91, 92, 109, 94, 95, 109, + 2, 109, 109, 65, 109, 67, 109, 9, 70, 109, + 12, 73, 74, 15, 16, 17, 109, 109, 80, 21, + 109, 109, 109, 109, 109, 109, 109, 89, 90, 91, + 92, 109, 94, 95, 65, 109, 67, 109, 109, 70, + 72, 43, 73, 74, 46, 109, 48, 109, 50, 80, + 82, 109, 109, 85, 86, 87, 88, 109, 109, 90, + 91, 92, 109, 94, 95, 109, 2, 109, 109, 65, + 109, 67, 109, 9, 70, 109, 12, 73, 74, 15, + 16, 17, 109, 109, 80, 21, 109, 109, 109, 109, + 109, 109, 109, 109, 90, 91, 92, 109, 94, 95, + 65, 109, 67, 109, 109, 70, 109, 43, 73, 74, + 46, 109, 48, 109, 50, 80, 109, 109, 109, 109, + 109, 109, 109, 109, 109, 90, 91, 92, 109, 94, + 95, 109, 2, 109, 109, 65, 109, 67, 109, 9, + 70, 109, 12, 73, 74, 109, 16, 17, 109, 109, + 80, 21, 109, 109, 109, 109, 109, 109, 109, 109, + 90, 91, 92, 109, 94, 95, 65, 109, 67, 109, + 109, 70, 109, 43, 73, 74, 46, 109, 48, 109, + 50, 80, 109, 109, 109, 109, 109, 109, 109, 109, + 109, 90, 91, 92, 109, 94, 95, 109, 2, 109, + 109, 65, 109, 67, 2, 9, 70, 109, 12, 73, + 74, 9, 16, 17, 12, 109, 80, 21, 16, 17, + 109, 109, 109, 21, 109, 109, 90, 91, 92, 109, + 94, 95, 65, 2, 67, 109, 109, 70, 109, 43, + 73, 74, 46, 109, 48, 43, 50, 80, 46, 109, + 48, 109, 50, 51, 109, 20, 13, 90, 91, 92, + 109, 94, 95, 109, 109, 34, 109, 36, 37, 38, + 39, 36, 37, 38, 39, 109, 109, 46, 109, 36, + 37, 38, 39, 109, 53, 54, 55, 56, 53, 54, + 55, 56, 36, 37, 38, 39, 53, 54, 55, 56, + 13, 35, 36, 37, 38, 39, 13, 51, 109, 53, + 54, 55, 56, 13, 109, 109, 109, 109, 109, 53, + 54, 55, 56, 36, 37, 38, 39, 2, 109, 36, + 37, 38, 39, 109, 13, 109, 36, 37, 38, 39, + 53, 54, 55, 56, 109, 109, 53, 54, 55, 56, + 109, 109, 109, 53, 54, 55, 56, 36, 37, 38, + 39, 36, 37, 38, 39, 109, 109, 109, 109, 109, + 109, 109, 109, 109, 53, 54, 55, 56, 53, 54, + 55, 56, ); - const YY_SHIFT_USE_DFLT = -29; + const YY_SHIFT_USE_DFLT = -16; const YY_SHIFT_MAX = 234; public static $yy_shift_ofst = array( - -29, 98, 98, 148, 198, 198, 248, 148, 148, 198, + -16, 98, 98, 148, 198, 198, 248, 148, 148, 198, 148, 248, -2, 48, 298, 148, 148, 148, 298, 148, 148, 148, 148, 148, 148, 148, 148, 148, 148, 148, 348, 148, 148, 148, 148, 398, 148, 148, 148, 448, - 498, 498, 498, 498, 498, 498, 498, 498, 1574, 1624, - 1624, 147, 1564, 688, 285, 140, 675, 1623, 1548, 627, - 2021, 2047, 2042, 2052, 415, 2079, 2086, 2092, 2123, 465, + 498, 498, 498, 498, 498, 498, 498, 498, 1819, 1869, + 1869, 147, 1809, 2225, 647, 2233, 2256, 2246, 2277, 415, + 2283, 2290, 2315, 2311, 465, 465, 465, 465, 465, 465, 465, 465, 465, 465, 465, 465, 465, 465, 465, 465, - 465, 465, 465, 465, 465, 465, 465, 1952, 956, 136, - 87, 675, 675, 140, 140, 150, 1682, 1930, 561, 59, - 820, 853, 886, 337, 337, 103, 250, 273, 250, 406, - 314, 156, 215, 215, 203, 382, 402, 250, 19, 19, - 19, 19, 19, 19, 19, 19, 17, 17, 78, 19, - -29, -29, 1941, 1954, 2003, 2020, 2140, 49, 918, 583, - 236, 250, 250, 308, 250, 390, 250, 390, 250, 368, - 368, 250, 250, 250, 250, 368, 153, 368, 368, 368, - 436, 368, 436, 368, 250, 250, 250, 250, 19, 463, - 19, 19, 463, 19, 499, 17, 17, 17, -29, -29, - -29, -29, -29, -29, 1972, 11, 100, 190, 240, 928, - -28, 191, 342, 616, 362, 517, 104, 433, 452, 429, - 453, 477, 411, 459, 41, 486, 480, 501, 536, 547, - 574, 587, 585, 586, 592, 594, 595, 608, 609, 589, - 596, 602, 610, 638, 499, 639, 607, 619, 654, 624, - 634, 674, 671, 656, 677, + 465, 465, 591, 35, 249, 93, 1868, 731, 1820, 36, + 127, 93, 93, 249, 249, 273, 1927, 1988, 561, 349, + 765, 775, 809, 209, 209, 303, 256, 285, 256, 356, + 369, 387, 428, 428, 228, 372, 460, 256, 0, 0, + 0, 0, 0, 0, 0, 0, 166, 166, 17, 0, + -16, -16, 2192, 2054, 2120, 2186, 1931, 199, 626, 359, + 86, 256, 256, 458, 256, 485, 256, 485, 256, 286, + 286, 256, 256, 256, 256, 286, 517, 286, 286, 286, + 499, 286, 499, 286, 256, 256, 256, 256, 0, 490, + 0, 0, 490, 0, 497, 166, 166, 166, -16, -16, + -16, -16, -16, -16, 2221, 11, 100, -10, 240, 763, + 141, 391, 390, 130, 423, 546, 461, 467, -15, 479, + 518, 534, 511, 536, 32, 559, 566, 599, 585, 588, + 598, 606, 596, 604, 617, 625, 627, 630, 629, 610, + 623, 631, 615, 640, 497, 642, 616, 619, 643, 613, + 618, 650, 657, 641, 653, ); - const YY_REDUCE_USE_DFLT = -88; + const YY_REDUCE_USE_DFLT = -96; const YY_REDUCE_MAX = 183; public static $yy_reduce_ofst = array( - -59, 492, 523, 556, 568, 604, 637, 670, 703, 736, - 769, 802, 835, 868, 880, 910, 942, 954, 984, 1016, - 1028, 1058, 1090, 1102, 1132, 1164, 1176, 1206, 1238, 1250, - 1280, 1312, 1324, 1354, 1386, 1398, 1428, 1460, 1472, 1648, - 1683, 1695, 1729, 1761, 1773, 1803, 1835, 1847, 533, 680, - 713, -69, 77, 99, 281, 491, 502, 29, -34, -34, - -34, -34, -34, -34, -34, -34, -34, -34, -34, -34, - -34, -34, -34, -34, -34, -34, -34, -34, -34, -34, - -34, -34, -34, -34, -34, -34, -34, 239, 299, -12, - 175, 222, 231, 143, 172, 318, 3, 34, 26, -51, - 194, 194, 194, 73, 26, 275, 164, 272, 220, 320, - 242, 275, -87, 287, 194, 194, 194, 341, 323, 194, - 194, 194, 194, 194, 194, 194, 275, 335, 194, 194, - 420, 194, 129, 129, 129, 129, 129, 183, -14, 129, - 129, 151, 151, 189, 151, 344, 151, 356, 151, 187, - 187, 151, 151, 151, 151, 187, 225, 187, 187, 187, - 270, 187, 366, 187, 151, 151, 151, 151, 313, 428, - 313, 313, 428, 313, 447, 445, 445, 445, 482, 468, - 471, 472, 469, 485, + 91, 492, 523, 556, 587, 624, 658, 690, 724, 758, + 792, 826, 858, 892, 924, 958, 990, 1024, 1056, 1090, + 1122, 1156, 1188, 1222, 1254, 1288, 1320, 1354, 1386, 1420, + 1452, 1486, 1518, 1552, 1584, 1618, 1650, 1684, 1716, 1893, + 1928, 1959, 1994, 2025, 2060, 2091, 2126, 2157, 1777, 1829, + 1958, 1, -4, 116, 116, 116, 116, 116, 116, 116, + 116, 116, 116, 116, 116, 116, 116, 116, 116, 116, + 116, 116, 116, 116, 116, 116, 116, 116, 116, 116, + 116, 116, 170, 251, 274, 220, 203, 39, 51, -95, + 284, 151, 231, -57, 322, 320, 3, -44, -23, 85, + 239, 239, 239, 72, -23, 137, 152, 224, 331, 364, + 318, 137, 78, 232, 239, 239, 239, 393, 408, 239, + 239, 239, 239, 239, 239, 239, 137, 424, 239, 239, + 470, 239, 6, 6, 6, 6, 6, 40, 56, 6, + 6, 138, 138, 165, 138, 169, 138, 206, 138, 282, + 282, 138, 138, 138, 138, 282, 319, 282, 282, 282, + 324, 282, 367, 282, 138, 138, 138, 138, 383, 392, + 383, 383, 392, 383, 440, 474, 474, 474, 514, 480, + 500, 504, 483, 509, ); public static $yyExpectedTokens = array( array(), @@ -817,11 +853,6 @@ private function mergePrefixCode($code) array(25, 31, 36, 37, 38, 39, 53, 54, 55, 56, ), array(14, 16, 47, 49, 52, ), array(3, 9, 10, 11, 12, 14, 18, 19, 24, 28, 29, 30, 58, 59, ), - array(1, 13, 17, 25, 31, 34, 46, ), - array(14, 16, 49, 52, ), - array(14, 34, 52, ), - array(1, 25, 31, ), - array(3, 9, 10, 11, 12, 14, 18, 19, 24, 28, 29, 30, 58, 59, ), array(20, 36, 37, 38, 39, 53, 54, 55, 56, ), array(26, 36, 37, 38, 39, 53, 54, 55, 56, ), array(13, 36, 37, 38, 39, 53, 54, 55, 56, ), @@ -851,6 +882,11 @@ private function mergePrefixCode($code) array(36, 37, 38, 39, 53, 54, 55, 56, ), array(36, 37, 38, 39, 53, 54, 55, 56, ), array(36, 37, 38, 39, 53, 54, 55, 56, ), + array(1, 13, 17, 25, 31, 34, 46, ), + array(14, 16, 49, 52, ), + array(14, 34, 52, ), + array(1, 25, 31, ), + array(3, 9, 10, 11, 12, 14, 18, 19, 24, 28, 29, 30, 58, 59, ), array(9, 12, 16, 25, 27, 31, ), array(9, 12, 16, 25, 31, ), array(17, 43, 50, ), @@ -1096,47 +1132,48 @@ private function mergePrefixCode($code) array(), array(), array(), + array(), ); public static $yy_default = array( - 342, 523, 523, 523, 508, 508, 523, 485, 485, 523, - 485, 523, 523, 523, 523, 523, 523, 523, 523, 523, - 523, 523, 523, 523, 523, 523, 523, 523, 523, 523, - 523, 523, 523, 523, 523, 523, 523, 523, 523, 523, - 523, 523, 523, 523, 523, 523, 523, 523, 382, 361, - 382, 523, 523, 424, 523, 523, 382, 523, 523, 387, - 523, 523, 523, 355, 523, 523, 523, 523, 523, 366, - 484, 405, 411, 483, 509, 511, 510, 410, 412, 409, - 413, 389, 393, 394, 384, 387, 355, 382, 382, 498, - 440, 382, 382, 523, 523, 373, 332, 439, 450, 523, - 396, 396, 396, 450, 450, 440, 382, 523, 382, 382, - 376, 440, 523, 523, 396, 396, 396, 363, 378, 396, - 403, 415, 416, 417, 404, 408, 440, 495, 415, 402, - 340, 492, 439, 439, 439, 439, 439, 523, 452, 450, - 466, 352, 362, 523, 365, 523, 370, 523, 371, 447, - 448, 356, 358, 359, 360, 476, 450, 475, 478, 477, - 443, 444, 445, 446, 372, 368, 369, 364, 374, 486, - 377, 379, 487, 433, 450, 472, 499, 496, 340, 491, - 491, 491, 450, 450, 424, 420, 424, 414, 414, 451, - 424, 424, 414, 414, 338, 523, 523, 523, 414, 424, - 434, 523, 523, 523, 523, 420, 523, 523, 420, 523, - 523, 523, 523, 523, 523, 523, 523, 523, 523, 420, - 422, 523, 497, 523, 466, 523, 523, 523, 523, 523, - 429, 523, 523, 523, 390, 333, 334, 335, 336, 337, - 339, 341, 343, 344, 345, 346, 347, 348, 349, 351, - 380, 381, 468, 469, 470, 490, 375, 488, 489, 418, - 427, 428, 437, 438, 449, 453, 454, 455, 397, 398, - 399, 400, 401, 419, 421, 423, 425, 429, 430, 431, - 406, 407, 432, 435, 436, 463, 461, 500, 501, 502, - 503, 441, 442, 474, 467, 482, 350, 473, 519, 520, - 512, 513, 514, 517, 516, 518, 521, 522, 515, 505, - 507, 506, 504, 479, 464, 462, 460, 457, 458, 459, - 465, 480, 481, 426, 456, 494, 471, 466, 383, 367, - 391, 395, + 343, 525, 525, 525, 510, 510, 525, 487, 487, 525, + 487, 525, 525, 525, 525, 525, 525, 525, 525, 525, + 525, 525, 525, 525, 525, 525, 525, 525, 525, 525, + 525, 525, 525, 525, 525, 525, 525, 525, 525, 525, + 525, 525, 525, 525, 525, 525, 525, 525, 383, 362, + 383, 525, 525, 525, 388, 525, 525, 525, 356, 525, + 525, 525, 525, 525, 367, 486, 406, 413, 485, 511, + 513, 512, 412, 414, 411, 415, 390, 394, 395, 385, + 388, 356, 426, 525, 525, 383, 525, 383, 383, 500, + 442, 383, 383, 525, 525, 374, 333, 441, 452, 525, + 397, 397, 397, 452, 452, 442, 383, 525, 383, 383, + 377, 442, 525, 525, 397, 397, 397, 364, 379, 397, + 404, 417, 418, 419, 405, 410, 442, 497, 417, 403, + 341, 494, 441, 441, 441, 441, 441, 525, 454, 452, + 468, 353, 363, 525, 366, 525, 371, 525, 372, 449, + 450, 357, 359, 360, 361, 478, 452, 477, 480, 479, + 445, 446, 447, 448, 373, 369, 370, 365, 375, 488, + 378, 380, 489, 435, 452, 474, 501, 498, 341, 493, + 493, 493, 452, 452, 426, 422, 426, 416, 416, 453, + 426, 426, 416, 416, 339, 525, 525, 525, 416, 426, + 436, 525, 525, 525, 525, 422, 525, 525, 422, 525, + 525, 525, 525, 525, 525, 525, 525, 525, 525, 422, + 424, 525, 499, 525, 468, 525, 525, 525, 525, 525, + 431, 525, 525, 525, 391, 334, 335, 336, 337, 338, + 340, 342, 344, 345, 346, 347, 348, 349, 350, 352, + 381, 382, 470, 471, 472, 492, 376, 490, 491, 420, + 429, 430, 439, 440, 451, 455, 456, 457, 398, 399, + 400, 401, 402, 421, 423, 425, 427, 431, 432, 433, + 407, 408, 409, 434, 437, 438, 465, 463, 502, 503, + 504, 505, 443, 444, 476, 469, 484, 351, 475, 521, + 522, 514, 515, 516, 519, 518, 520, 523, 524, 517, + 507, 509, 508, 506, 481, 466, 464, 462, 459, 460, + 461, 467, 482, 483, 428, 458, 496, 473, 468, 384, + 368, 392, 396, ); - const YYNOCODE = 109; + const YYNOCODE = 110; const YYSTACKDEPTH = 500; - const YYNSTATE = 332; - const YYNRULE = 191; + const YYNSTATE = 333; + const YYNRULE = 192; const YYERRORSYMBOL = 60; const YYERRSYMDT = 'yy0'; const YYFALLBACK = 0; @@ -1188,11 +1225,12 @@ public function PrintTrace() 'modifierlist', 'statement', 'statements', 'foraction', 'varvar', 'modparameters', 'attribute', 'nullcoalescing', 'ternary', 'tlop', 'lop', 'scond', - 'array', 'function', 'ns1', 'doublequoted_with_quotes', - 'static_class_access', 'arraydef', 'object', 'arrayindex', - 'indexdef', 'varvarele', 'objectchain', 'objectelement', - 'method', 'params', 'modifier', 'modparameter', - 'arrayelements', 'arrayelement', 'doublequoted', 'doublequotedcontent', + 'isin', 'array', 'function', 'ns1', + 'doublequoted_with_quotes', 'static_class_access', 'arraydef', 'object', + 'arrayindex', 'indexdef', 'varvarele', 'objectchain', + 'objectelement', 'method', 'params', 'modifier', + 'modparameter', 'arrayelements', 'arrayelement', 'doublequoted', + 'doublequotedcontent', ); public static $yyRuleName = array( @@ -1271,8 +1309,9 @@ public function PrintTrace() 'expr ::= expr tlop value', 'expr ::= expr lop expr', 'expr ::= expr scond', - 'expr ::= expr ISIN array', - 'expr ::= expr ISIN value', + 'isin ::= ISIN', + 'expr ::= expr isin array', + 'expr ::= expr isin value', 'nullcoalescing ::= expr QMARK QMARK expr', 'ternary ::= expr QMARK DOLLARID COLON expr', 'ternary ::= expr QMARK value COLON expr', @@ -1777,6 +1816,7 @@ public function yy_shift($yyNewState, $yyMajor, $yypMinor) array( 0 => 75, 1 => 3 ), array( 0 => 75, 1 => 3 ), array( 0 => 75, 1 => 2 ), + array( 0 => 88, 1 => 1 ), array( 0 => 75, 1 => 3 ), array( 0 => 75, 1 => 3 ), array( 0 => 83, 1 => 4 ), @@ -1807,8 +1847,8 @@ public function yy_shift($yyNewState, $yyMajor, $yypMinor) array( 0 => 74, 1 => 1 ), array( 0 => 74, 1 => 1 ), array( 0 => 74, 1 => 3 ), - array( 0 => 90, 1 => 1 ), - array( 0 => 90, 1 => 1 ), + array( 0 => 91, 1 => 1 ), + array( 0 => 91, 1 => 1 ), array( 0 => 73, 1 => 1 ), array( 0 => 73, 1 => 1 ), array( 0 => 73, 1 => 3 ), @@ -1819,80 +1859,80 @@ public function yy_shift($yyNewState, $yyMajor, $yypMinor) array( 0 => 73, 1 => 4 ), array( 0 => 70, 1 => 2 ), array( 0 => 70, 1 => 2 ), - array( 0 => 95, 1 => 2 ), - array( 0 => 95, 1 => 0 ), - array( 0 => 96, 1 => 2 ), - array( 0 => 96, 1 => 2 ), - array( 0 => 96, 1 => 4 ), - array( 0 => 96, 1 => 2 ), - array( 0 => 96, 1 => 2 ), - array( 0 => 96, 1 => 4 ), - array( 0 => 96, 1 => 3 ), - array( 0 => 96, 1 => 5 ), - array( 0 => 96, 1 => 3 ), - array( 0 => 96, 1 => 3 ), - array( 0 => 96, 1 => 3 ), - array( 0 => 96, 1 => 3 ), - array( 0 => 96, 1 => 3 ), - array( 0 => 96, 1 => 3 ), array( 0 => 96, 1 => 2 ), + array( 0 => 96, 1 => 0 ), + array( 0 => 97, 1 => 2 ), + array( 0 => 97, 1 => 2 ), + array( 0 => 97, 1 => 4 ), + array( 0 => 97, 1 => 2 ), + array( 0 => 97, 1 => 2 ), + array( 0 => 97, 1 => 4 ), + array( 0 => 97, 1 => 3 ), + array( 0 => 97, 1 => 5 ), + array( 0 => 97, 1 => 3 ), + array( 0 => 97, 1 => 3 ), + array( 0 => 97, 1 => 3 ), + array( 0 => 97, 1 => 3 ), + array( 0 => 97, 1 => 3 ), + array( 0 => 97, 1 => 3 ), + array( 0 => 97, 1 => 2 ), array( 0 => 80, 1 => 1 ), array( 0 => 80, 1 => 1 ), array( 0 => 80, 1 => 2 ), - array( 0 => 97, 1 => 1 ), - array( 0 => 97, 1 => 1 ), - array( 0 => 97, 1 => 3 ), - array( 0 => 94, 1 => 2 ), array( 0 => 98, 1 => 1 ), - array( 0 => 98, 1 => 2 ), - array( 0 => 99, 1 => 3 ), - array( 0 => 99, 1 => 3 ), - array( 0 => 99, 1 => 5 ), - array( 0 => 99, 1 => 6 ), + array( 0 => 98, 1 => 1 ), + array( 0 => 98, 1 => 3 ), + array( 0 => 95, 1 => 2 ), + array( 0 => 99, 1 => 1 ), array( 0 => 99, 1 => 2 ), - array( 0 => 89, 1 => 4 ), - array( 0 => 100, 1 => 4 ), - array( 0 => 100, 1 => 4 ), - array( 0 => 101, 1 => 3 ), - array( 0 => 101, 1 => 1 ), - array( 0 => 101, 1 => 0 ), + array( 0 => 100, 1 => 3 ), + array( 0 => 100, 1 => 3 ), + array( 0 => 100, 1 => 5 ), + array( 0 => 100, 1 => 6 ), + array( 0 => 100, 1 => 2 ), + array( 0 => 90, 1 => 4 ), + array( 0 => 101, 1 => 4 ), + array( 0 => 101, 1 => 4 ), + array( 0 => 102, 1 => 3 ), + array( 0 => 102, 1 => 1 ), + array( 0 => 102, 1 => 0 ), array( 0 => 76, 1 => 3 ), array( 0 => 76, 1 => 2 ), - array( 0 => 102, 1 => 3 ), - array( 0 => 102, 1 => 2 ), - array( 0 => 81, 1 => 2 ), - array( 0 => 81, 1 => 0 ), - array( 0 => 103, 1 => 2 ), array( 0 => 103, 1 => 3 ), array( 0 => 103, 1 => 2 ), - array( 0 => 92, 1 => 1 ), - array( 0 => 92, 1 => 2 ), - array( 0 => 92, 1 => 1 ), - array( 0 => 92, 1 => 2 ), - array( 0 => 92, 1 => 3 ), + array( 0 => 81, 1 => 2 ), + array( 0 => 81, 1 => 0 ), + array( 0 => 104, 1 => 2 ), + array( 0 => 104, 1 => 3 ), + array( 0 => 104, 1 => 2 ), + array( 0 => 93, 1 => 1 ), + array( 0 => 93, 1 => 2 ), + array( 0 => 93, 1 => 1 ), + array( 0 => 93, 1 => 2 ), + array( 0 => 93, 1 => 3 ), array( 0 => 86, 1 => 1 ), array( 0 => 86, 1 => 1 ), array( 0 => 85, 1 => 1 ), array( 0 => 87, 1 => 1 ), - array( 0 => 93, 1 => 3 ), - array( 0 => 93, 1 => 3 ), - array( 0 => 104, 1 => 1 ), - array( 0 => 104, 1 => 3 ), - array( 0 => 104, 1 => 0 ), - array( 0 => 105, 1 => 3 ), - array( 0 => 105, 1 => 3 ), + array( 0 => 94, 1 => 3 ), + array( 0 => 94, 1 => 3 ), array( 0 => 105, 1 => 1 ), - array( 0 => 91, 1 => 2 ), - array( 0 => 91, 1 => 3 ), - array( 0 => 106, 1 => 2 ), + array( 0 => 105, 1 => 3 ), + array( 0 => 105, 1 => 0 ), + array( 0 => 106, 1 => 3 ), + array( 0 => 106, 1 => 3 ), array( 0 => 106, 1 => 1 ), - array( 0 => 107, 1 => 3 ), - array( 0 => 107, 1 => 3 ), - array( 0 => 107, 1 => 1 ), - array( 0 => 107, 1 => 3 ), - array( 0 => 107, 1 => 3 ), - array( 0 => 107, 1 => 1 ), + array( 0 => 92, 1 => 2 ), + array( 0 => 92, 1 => 3 ), + array( 0 => 107, 1 => 2 ), array( 0 => 107, 1 => 1 ), + array( 0 => 108, 1 => 3 ), + array( 0 => 108, 1 => 3 ), + array( 0 => 108, 1 => 1 ), + array( 0 => 108, 1 => 3 ), + array( 0 => 108, 1 => 3 ), + array( 0 => 108, 1 => 1 ), + array( 0 => 108, 1 => 1 ), ); public static $yyReduceMap = array( @@ -1912,18 +1952,18 @@ public function yy_shift($yyNewState, $yyMajor, $yypMinor) 64 => 6, 65 => 6, 66 => 6, - 82 => 6, - 87 => 6, + 83 => 6, 88 => 6, - 93 => 6, - 97 => 6, + 89 => 6, + 94 => 6, 98 => 6, - 102 => 6, + 99 => 6, 103 => 6, - 105 => 6, - 110 => 6, - 174 => 6, - 179 => 6, + 104 => 6, + 106 => 6, + 111 => 6, + 175 => 6, + 180 => 6, 7 => 7, 8 => 8, 9 => 9, @@ -1963,18 +2003,18 @@ public function yy_shift($yyNewState, $yyMajor, $yypMinor) 48 => 48, 49 => 49, 58 => 49, - 152 => 49, - 156 => 49, - 160 => 49, - 162 => 49, + 153 => 49, + 157 => 49, + 161 => 49, + 163 => 49, 50 => 50, - 153 => 50, - 159 => 50, + 154 => 50, + 160 => 50, 51 => 51, 52 => 52, 53 => 52, 54 => 54, - 137 => 54, + 138 => 54, 57 => 57, 59 => 59, 60 => 60, @@ -1994,56 +2034,56 @@ public function yy_shift($yyNewState, $yyMajor, $yypMinor) 77 => 77, 78 => 78, 79 => 79, - 80 => 79, - 81 => 81, - 83 => 83, - 85 => 83, - 86 => 83, - 117 => 83, + 80 => 80, + 81 => 80, + 82 => 82, 84 => 84, - 89 => 89, + 86 => 84, + 87 => 84, + 118 => 84, + 85 => 85, 90 => 90, 91 => 91, 92 => 92, - 94 => 94, + 93 => 93, 95 => 95, - 96 => 95, - 99 => 99, + 96 => 96, + 97 => 96, 100 => 100, 101 => 101, - 104 => 104, - 106 => 106, + 102 => 102, + 105 => 105, 107 => 107, 108 => 108, 109 => 109, - 111 => 111, + 110 => 110, 112 => 112, 113 => 113, 114 => 114, 115 => 115, 116 => 116, - 118 => 118, - 176 => 118, + 117 => 117, 119 => 119, + 177 => 119, 120 => 120, 121 => 121, 122 => 122, 123 => 123, 124 => 124, - 132 => 124, 125 => 125, + 133 => 125, 126 => 126, 127 => 127, - 128 => 127, - 130 => 127, - 131 => 127, - 129 => 129, - 133 => 133, + 128 => 128, + 129 => 128, + 131 => 128, + 132 => 128, + 130 => 130, 134 => 134, 135 => 135, - 180 => 135, 136 => 136, - 138 => 138, + 181 => 136, + 137 => 137, 139 => 139, 140 => 140, 141 => 141, @@ -2057,12 +2097,12 @@ public function yy_shift($yyNewState, $yyMajor, $yypMinor) 149 => 149, 150 => 150, 151 => 151, - 154 => 154, + 152 => 152, 155 => 155, - 157 => 157, + 156 => 156, 158 => 158, - 161 => 161, - 163 => 163, + 159 => 159, + 162 => 162, 164 => 164, 165 => 165, 166 => 166, @@ -2072,20 +2112,21 @@ public function yy_shift($yyNewState, $yyMajor, $yypMinor) 170 => 170, 171 => 171, 172 => 172, - 173 => 172, - 175 => 175, - 177 => 177, + 173 => 173, + 174 => 173, + 176 => 176, 178 => 178, - 181 => 181, + 179 => 179, 182 => 182, 183 => 183, 184 => 184, - 187 => 184, 185 => 185, 188 => 185, 186 => 186, - 189 => 189, + 189 => 186, + 187 => 187, 190 => 190, + 191 => 191, ); // line 245 "src/Parser/TemplateParser.y" public function yy_r0(){ @@ -2409,50 +2450,59 @@ public function yy_r74(){ } // line 666 "src/Parser/TemplateParser.y" public function yy_r75(){ - $this->_retvalue = 'in_array('.$this->yystack[$this->yyidx + -2]->minor.','.$this->yystack[$this->yyidx + 0]->minor.')'; + static $isin = [ + 'isin' => 'in_array(', + 'isnotin' => '!in_array(', + ]; + $op = strtolower(str_replace(' ', '', $this->yystack[$this->yyidx + 0]->minor)); + $this->_retvalue = $isin[$op]; } -// line 670 "src/Parser/TemplateParser.y" +// line 675 "src/Parser/TemplateParser.y" public function yy_r76(){ - $this->_retvalue = 'in_array('.$this->yystack[$this->yyidx + -2]->minor.',(array)'.$this->yystack[$this->yyidx + 0]->minor.')'; + $this->_retvalue = $this->yystack[$this->yyidx + -1]->minor . $this->yystack[$this->yyidx + -2]->minor.','.$this->yystack[$this->yyidx + 0]->minor.')'; } -// line 675 "src/Parser/TemplateParser.y" +// line 679 "src/Parser/TemplateParser.y" public function yy_r77(){ - $this->_retvalue = $this->yystack[$this->yyidx + -3]->minor.' ?? '.$this->yystack[$this->yyidx + 0]->minor; + $this->_retvalue = $this->yystack[$this->yyidx + -1]->minor . $this->yystack[$this->yyidx + -2]->minor.',(array)'.$this->yystack[$this->yyidx + 0]->minor.')'; } -// line 682 "src/Parser/TemplateParser.y" +// line 684 "src/Parser/TemplateParser.y" public function yy_r78(){ - $this->_retvalue = $this->yystack[$this->yyidx + -4]->minor.' ? '. $this->compiler->compileVariable('\''.substr($this->yystack[$this->yyidx + -2]->minor,1).'\'') . ' : '.$this->yystack[$this->yyidx + 0]->minor; + $this->_retvalue = $this->yystack[$this->yyidx + -3]->minor.' ?? '.$this->yystack[$this->yyidx + 0]->minor; } -// line 686 "src/Parser/TemplateParser.y" +// line 691 "src/Parser/TemplateParser.y" public function yy_r79(){ - $this->_retvalue = $this->yystack[$this->yyidx + -4]->minor.' ? '.$this->yystack[$this->yyidx + -2]->minor.' : '.$this->yystack[$this->yyidx + 0]->minor; + $this->_retvalue = $this->yystack[$this->yyidx + -4]->minor.' ? '. $this->compiler->compileVariable('\''.substr($this->yystack[$this->yyidx + -2]->minor,1).'\'') . ' : '.$this->yystack[$this->yyidx + 0]->minor; } // line 695 "src/Parser/TemplateParser.y" - public function yy_r81(){ + public function yy_r80(){ + $this->_retvalue = $this->yystack[$this->yyidx + -4]->minor.' ? '.$this->yystack[$this->yyidx + -2]->minor.' : '.$this->yystack[$this->yyidx + 0]->minor; + } +// line 704 "src/Parser/TemplateParser.y" + public function yy_r82(){ $this->_retvalue = $this->yystack[$this->yyidx + -3]->minor.' ?: '.$this->yystack[$this->yyidx + 0]->minor; } -// line 705 "src/Parser/TemplateParser.y" - public function yy_r83(){ +// line 714 "src/Parser/TemplateParser.y" + public function yy_r84(){ $this->_retvalue = $this->yystack[$this->yyidx + -1]->minor.$this->yystack[$this->yyidx + 0]->minor; } -// line 710 "src/Parser/TemplateParser.y" - public function yy_r84(){ +// line 719 "src/Parser/TemplateParser.y" + public function yy_r85(){ $this->_retvalue = '!'.$this->yystack[$this->yyidx + 0]->minor; } -// line 731 "src/Parser/TemplateParser.y" - public function yy_r89(){ +// line 740 "src/Parser/TemplateParser.y" + public function yy_r90(){ $this->_retvalue = $this->yystack[$this->yyidx + -2]->minor.'.'.$this->yystack[$this->yyidx + 0]->minor; } -// line 735 "src/Parser/TemplateParser.y" - public function yy_r90(){ +// line 744 "src/Parser/TemplateParser.y" + public function yy_r91(){ $this->_retvalue = $this->yystack[$this->yyidx + -1]->minor.'.'; } -// line 739 "src/Parser/TemplateParser.y" - public function yy_r91(){ +// line 748 "src/Parser/TemplateParser.y" + public function yy_r92(){ $this->_retvalue = '.'.$this->yystack[$this->yyidx + 0]->minor; } -// line 744 "src/Parser/TemplateParser.y" - public function yy_r92(){ +// line 753 "src/Parser/TemplateParser.y" + public function yy_r93(){ if (defined($this->yystack[$this->yyidx + 0]->minor)) { if ($this->security) { $this->security->isTrustedConstant($this->yystack[$this->yyidx + 0]->minor, $this->compiler); @@ -2462,16 +2512,16 @@ public function yy_r92(){ $this->_retvalue = '\''.$this->yystack[$this->yyidx + 0]->minor.'\''; } } -// line 761 "src/Parser/TemplateParser.y" - public function yy_r94(){ +// line 770 "src/Parser/TemplateParser.y" + public function yy_r95(){ $this->_retvalue = '('. $this->yystack[$this->yyidx + -1]->minor .')'; } -// line 765 "src/Parser/TemplateParser.y" - public function yy_r95(){ +// line 774 "src/Parser/TemplateParser.y" + public function yy_r96(){ $this->_retvalue = $this->yystack[$this->yyidx + -2]->minor.$this->yystack[$this->yyidx + -1]->minor.$this->yystack[$this->yyidx + 0]->minor; } -// line 783 "src/Parser/TemplateParser.y" - public function yy_r99(){ +// line 792 "src/Parser/TemplateParser.y" + public function yy_r100(){ if ($this->security && $this->security->static_classes !== array()) { $this->compiler->trigger_template_error('dynamic static class not allowed by security setting'); } @@ -2483,19 +2533,19 @@ public function yy_r99(){ } $this->_retvalue = $prefixVar .'::'.$this->yystack[$this->yyidx + 0]->minor[0].$this->yystack[$this->yyidx + 0]->minor[1]; } -// line 797 "src/Parser/TemplateParser.y" - public function yy_r100(){ +// line 806 "src/Parser/TemplateParser.y" + public function yy_r101(){ $prefixVar = $this->compiler->getNewPrefixVariable(); $tmp = $this->compiler->appendCode('', $this->yystack[$this->yyidx + 0]->minor); $this->compiler->appendPrefixCode($this->compiler->appendCode($tmp, "")); $this->_retvalue = $prefixVar; } -// line 804 "src/Parser/TemplateParser.y" - public function yy_r101(){ +// line 813 "src/Parser/TemplateParser.y" + public function yy_r102(){ $this->_retvalue = $this->compiler->compileModifier($this->yystack[$this->yyidx + 0]->minor, $this->yystack[$this->yyidx + -1]->minor); } -// line 817 "src/Parser/TemplateParser.y" - public function yy_r104(){ +// line 826 "src/Parser/TemplateParser.y" + public function yy_r105(){ if (!in_array(strtolower($this->yystack[$this->yyidx + -2]->minor), array('self', 'parent')) && (!$this->security || $this->security->isTrustedStaticClassAccess($this->yystack[$this->yyidx + -2]->minor, $this->yystack[$this->yyidx + 0]->minor, $this->compiler))) { if (isset($this->smarty->registered_classes[$this->yystack[$this->yyidx + -2]->minor])) { $this->_retvalue = $this->smarty->registered_classes[$this->yystack[$this->yyidx + -2]->minor].'::'.$this->yystack[$this->yyidx + 0]->minor[0].$this->yystack[$this->yyidx + 0]->minor[1]; @@ -2506,16 +2556,16 @@ public function yy_r104(){ $this->compiler->trigger_template_error ('static class \''.$this->yystack[$this->yyidx + -2]->minor.'\' is undefined or not allowed by security setting'); } } -// line 836 "src/Parser/TemplateParser.y" - public function yy_r106(){ +// line 845 "src/Parser/TemplateParser.y" + public function yy_r107(){ $this->_retvalue = $this->yystack[$this->yyidx + 0]->minor; } -// line 847 "src/Parser/TemplateParser.y" - public function yy_r107(){ +// line 856 "src/Parser/TemplateParser.y" + public function yy_r108(){ $this->_retvalue = $this->compiler->compileVariable('\''.substr($this->yystack[$this->yyidx + 0]->minor,1).'\''); } -// line 850 "src/Parser/TemplateParser.y" - public function yy_r108(){ +// line 859 "src/Parser/TemplateParser.y" + public function yy_r109(){ if ($this->yystack[$this->yyidx + 0]->minor['var'] === '\'smarty\'') { $smarty_var = (new \Smarty\Compile\SpecialVariableCompiler())->compile(array(),$this->compiler,$this->yystack[$this->yyidx + 0]->minor['smarty_internal_index']); $this->_retvalue = $smarty_var; @@ -2526,164 +2576,164 @@ public function yy_r108(){ $this->_retvalue = $this->compiler->compileVariable($this->yystack[$this->yyidx + 0]->minor['var']).$this->yystack[$this->yyidx + 0]->minor['smarty_internal_index']; } } -// line 863 "src/Parser/TemplateParser.y" - public function yy_r109(){ +// line 872 "src/Parser/TemplateParser.y" + public function yy_r110(){ $this->_retvalue = '$_smarty_tpl->getVariable('. $this->yystack[$this->yyidx + -2]->minor .')->'.$this->yystack[$this->yyidx + 0]->minor; } -// line 873 "src/Parser/TemplateParser.y" - public function yy_r111(){ +// line 882 "src/Parser/TemplateParser.y" + public function yy_r112(){ $this->_retvalue = $this->compiler->compileConfigVariable('\'' . $this->yystack[$this->yyidx + -1]->minor . '\''); } -// line 877 "src/Parser/TemplateParser.y" - public function yy_r112(){ +// line 886 "src/Parser/TemplateParser.y" + public function yy_r113(){ $this->_retvalue = '(is_array($tmp = ' . $this->compiler->compileConfigVariable('\'' . $this->yystack[$this->yyidx + -2]->minor . '\'') . ') ? $tmp'.$this->yystack[$this->yyidx + 0]->minor.' :null)'; } -// line 881 "src/Parser/TemplateParser.y" - public function yy_r113(){ +// line 890 "src/Parser/TemplateParser.y" + public function yy_r114(){ $this->_retvalue = $this->compiler->compileConfigVariable($this->yystack[$this->yyidx + -1]->minor); } -// line 885 "src/Parser/TemplateParser.y" - public function yy_r114(){ +// line 894 "src/Parser/TemplateParser.y" + public function yy_r115(){ $this->_retvalue = '(is_array($tmp = ' . $this->compiler->compileConfigVariable($this->yystack[$this->yyidx + -2]->minor) . ') ? $tmp'.$this->yystack[$this->yyidx + 0]->minor.' : null)'; } -// line 889 "src/Parser/TemplateParser.y" - public function yy_r115(){ +// line 898 "src/Parser/TemplateParser.y" + public function yy_r116(){ $this->_retvalue = array('var'=>'\''.substr($this->yystack[$this->yyidx + -1]->minor,1).'\'', 'smarty_internal_index'=>$this->yystack[$this->yyidx + 0]->minor); } -// line 892 "src/Parser/TemplateParser.y" - public function yy_r116(){ +// line 901 "src/Parser/TemplateParser.y" + public function yy_r117(){ $this->_retvalue = array('var'=>$this->yystack[$this->yyidx + -1]->minor, 'smarty_internal_index'=>$this->yystack[$this->yyidx + 0]->minor); } -// line 905 "src/Parser/TemplateParser.y" - public function yy_r118(){ +// line 914 "src/Parser/TemplateParser.y" + public function yy_r119(){ return; } -// line 911 "src/Parser/TemplateParser.y" - public function yy_r119(){ +// line 920 "src/Parser/TemplateParser.y" + public function yy_r120(){ $this->_retvalue = '['.$this->compiler->compileVariable('\''.substr($this->yystack[$this->yyidx + 0]->minor,1).'\'').']'; } -// line 914 "src/Parser/TemplateParser.y" - public function yy_r120(){ +// line 923 "src/Parser/TemplateParser.y" + public function yy_r121(){ $this->_retvalue = '['.$this->compiler->compileVariable($this->yystack[$this->yyidx + 0]->minor).']'; } -// line 918 "src/Parser/TemplateParser.y" - public function yy_r121(){ +// line 927 "src/Parser/TemplateParser.y" + public function yy_r122(){ $this->_retvalue = '['.$this->compiler->compileVariable($this->yystack[$this->yyidx + -2]->minor).'->'.$this->yystack[$this->yyidx + 0]->minor.']'; } -// line 922 "src/Parser/TemplateParser.y" - public function yy_r122(){ +// line 931 "src/Parser/TemplateParser.y" + public function yy_r123(){ $this->_retvalue = '[\''. $this->yystack[$this->yyidx + 0]->minor .'\']'; } -// line 926 "src/Parser/TemplateParser.y" - public function yy_r123(){ +// line 935 "src/Parser/TemplateParser.y" + public function yy_r124(){ $this->_retvalue = '['. $this->yystack[$this->yyidx + 0]->minor .']'; } -// line 931 "src/Parser/TemplateParser.y" - public function yy_r124(){ +// line 940 "src/Parser/TemplateParser.y" + public function yy_r125(){ $this->_retvalue = '['. $this->yystack[$this->yyidx + -1]->minor .']'; } -// line 936 "src/Parser/TemplateParser.y" - public function yy_r125(){ +// line 945 "src/Parser/TemplateParser.y" + public function yy_r126(){ $this->_retvalue = '['.(new \Smarty\Compile\SpecialVariableCompiler())->compile(array(),$this->compiler,'[\'section\'][\''.$this->yystack[$this->yyidx + -1]->minor.'\'][\'index\']').']'; } -// line 940 "src/Parser/TemplateParser.y" - public function yy_r126(){ +// line 949 "src/Parser/TemplateParser.y" + public function yy_r127(){ $this->_retvalue = '['.(new \Smarty\Compile\SpecialVariableCompiler())->compile(array(),$this->compiler,'[\'section\'][\''.$this->yystack[$this->yyidx + -3]->minor.'\'][\''.$this->yystack[$this->yyidx + -1]->minor.'\']').']'; } -// line 943 "src/Parser/TemplateParser.y" - public function yy_r127(){ +// line 952 "src/Parser/TemplateParser.y" + public function yy_r128(){ $this->_retvalue = '['.$this->yystack[$this->yyidx + -1]->minor.']'; } -// line 949 "src/Parser/TemplateParser.y" - public function yy_r129(){ +// line 958 "src/Parser/TemplateParser.y" + public function yy_r130(){ $this->_retvalue = '['.$this->compiler->compileVariable('\''.substr($this->yystack[$this->yyidx + -1]->minor,1).'\'').']'; } -// line 965 "src/Parser/TemplateParser.y" - public function yy_r133(){ +// line 974 "src/Parser/TemplateParser.y" + public function yy_r134(){ $this->_retvalue = '[]'; } -// line 975 "src/Parser/TemplateParser.y" - public function yy_r134(){ +// line 984 "src/Parser/TemplateParser.y" + public function yy_r135(){ $this->_retvalue = '\''.substr($this->yystack[$this->yyidx + 0]->minor,1).'\''; } -// line 979 "src/Parser/TemplateParser.y" - public function yy_r135(){ +// line 988 "src/Parser/TemplateParser.y" + public function yy_r136(){ $this->_retvalue = '\'\''; } -// line 984 "src/Parser/TemplateParser.y" - public function yy_r136(){ +// line 993 "src/Parser/TemplateParser.y" + public function yy_r137(){ $this->_retvalue = $this->yystack[$this->yyidx + -1]->minor.'.'.$this->yystack[$this->yyidx + 0]->minor; } -// line 992 "src/Parser/TemplateParser.y" - public function yy_r138(){ +// line 1001 "src/Parser/TemplateParser.y" + public function yy_r139(){ $var = trim(substr($this->yystack[$this->yyidx + 0]->minor, $this->compiler->getLdelLength(), -$this->compiler->getRdelLength()), ' $'); $this->_retvalue = $this->compiler->compileVariable('\''.$var.'\''); } -// line 998 "src/Parser/TemplateParser.y" - public function yy_r139(){ +// line 1007 "src/Parser/TemplateParser.y" + public function yy_r140(){ $this->_retvalue = '('.$this->yystack[$this->yyidx + -1]->minor.')'; } -// line 1005 "src/Parser/TemplateParser.y" - public function yy_r140(){ +// line 1014 "src/Parser/TemplateParser.y" + public function yy_r141(){ if ($this->yystack[$this->yyidx + -1]->minor['var'] === '\'smarty\'') { $this->_retvalue = (new \Smarty\Compile\SpecialVariableCompiler())->compile(array(),$this->compiler,$this->yystack[$this->yyidx + -1]->minor['smarty_internal_index']).$this->yystack[$this->yyidx + 0]->minor; } else { $this->_retvalue = $this->compiler->compileVariable($this->yystack[$this->yyidx + -1]->minor['var']).$this->yystack[$this->yyidx + -1]->minor['smarty_internal_index'].$this->yystack[$this->yyidx + 0]->minor; } } -// line 1014 "src/Parser/TemplateParser.y" - public function yy_r141(){ +// line 1023 "src/Parser/TemplateParser.y" + public function yy_r142(){ $this->_retvalue = $this->yystack[$this->yyidx + 0]->minor; } -// line 1019 "src/Parser/TemplateParser.y" - public function yy_r142(){ +// line 1028 "src/Parser/TemplateParser.y" + public function yy_r143(){ $this->_retvalue = $this->yystack[$this->yyidx + -1]->minor.$this->yystack[$this->yyidx + 0]->minor; } -// line 1024 "src/Parser/TemplateParser.y" - public function yy_r143(){ +// line 1033 "src/Parser/TemplateParser.y" + public function yy_r144(){ if ($this->security && substr($this->yystack[$this->yyidx + -1]->minor,0,1) === '_') { $this->compiler->trigger_template_error (self::ERR1); } $this->_retvalue = '->'.$this->yystack[$this->yyidx + -1]->minor.$this->yystack[$this->yyidx + 0]->minor; } -// line 1031 "src/Parser/TemplateParser.y" - public function yy_r144(){ +// line 1040 "src/Parser/TemplateParser.y" + public function yy_r145(){ if ($this->security) { $this->compiler->trigger_template_error (self::ERR2); } $this->_retvalue = '->{'.$this->compiler->compileVariable($this->yystack[$this->yyidx + -1]->minor).$this->yystack[$this->yyidx + 0]->minor.'}'; } -// line 1038 "src/Parser/TemplateParser.y" - public function yy_r145(){ +// line 1047 "src/Parser/TemplateParser.y" + public function yy_r146(){ if ($this->security) { $this->compiler->trigger_template_error (self::ERR2); } $this->_retvalue = '->{'.$this->yystack[$this->yyidx + -2]->minor.$this->yystack[$this->yyidx + 0]->minor.'}'; } -// line 1045 "src/Parser/TemplateParser.y" - public function yy_r146(){ +// line 1054 "src/Parser/TemplateParser.y" + public function yy_r147(){ if ($this->security) { $this->compiler->trigger_template_error (self::ERR2); } $this->_retvalue = '->{\''.$this->yystack[$this->yyidx + -4]->minor.'\'.'.$this->yystack[$this->yyidx + -2]->minor.$this->yystack[$this->yyidx + 0]->minor.'}'; } -// line 1053 "src/Parser/TemplateParser.y" - public function yy_r147(){ +// line 1062 "src/Parser/TemplateParser.y" + public function yy_r148(){ $this->_retvalue = '->'.$this->yystack[$this->yyidx + 0]->minor; } -// line 1061 "src/Parser/TemplateParser.y" - public function yy_r148(){ +// line 1070 "src/Parser/TemplateParser.y" + public function yy_r149(){ $this->_retvalue = $this->compiler->compileModifierInExpression($this->yystack[$this->yyidx + -3]->minor, $this->yystack[$this->yyidx + -1]->minor); } -// line 1069 "src/Parser/TemplateParser.y" - public function yy_r149(){ +// line 1078 "src/Parser/TemplateParser.y" + public function yy_r150(){ if ($this->security && substr($this->yystack[$this->yyidx + -3]->minor,0,1) === '_') { $this->compiler->trigger_template_error (self::ERR1); } $this->_retvalue = $this->yystack[$this->yyidx + -3]->minor . '('. implode(',',$this->yystack[$this->yyidx + -1]->minor) .')'; } -// line 1076 "src/Parser/TemplateParser.y" - public function yy_r150(){ +// line 1085 "src/Parser/TemplateParser.y" + public function yy_r151(){ if ($this->security) { $this->compiler->trigger_template_error (self::ERR2); } @@ -2691,56 +2741,56 @@ public function yy_r150(){ $this->compiler->appendPrefixCode("compiler->compileVariable('\''.substr($this->yystack[$this->yyidx + -3]->minor,1).'\'').';?>'); $this->_retvalue = $prefixVar .'('. implode(',',$this->yystack[$this->yyidx + -1]->minor) .')'; } -// line 1087 "src/Parser/TemplateParser.y" - public function yy_r151(){ +// line 1096 "src/Parser/TemplateParser.y" + public function yy_r152(){ $this->_retvalue = array_merge($this->yystack[$this->yyidx + -2]->minor,array($this->yystack[$this->yyidx + 0]->minor)); } -// line 1104 "src/Parser/TemplateParser.y" - public function yy_r154(){ +// line 1113 "src/Parser/TemplateParser.y" + public function yy_r155(){ $this->_retvalue = array_merge($this->yystack[$this->yyidx + -2]->minor,array(array_merge($this->yystack[$this->yyidx + -1]->minor,$this->yystack[$this->yyidx + 0]->minor))); } -// line 1108 "src/Parser/TemplateParser.y" - public function yy_r155(){ +// line 1117 "src/Parser/TemplateParser.y" + public function yy_r156(){ $this->_retvalue = array(array_merge($this->yystack[$this->yyidx + -1]->minor,$this->yystack[$this->yyidx + 0]->minor)); } -// line 1116 "src/Parser/TemplateParser.y" - public function yy_r157(){ +// line 1125 "src/Parser/TemplateParser.y" + public function yy_r158(){ $this->_retvalue = array($this->yystack[$this->yyidx + 0]->minor); } -// line 1124 "src/Parser/TemplateParser.y" - public function yy_r158(){ +// line 1133 "src/Parser/TemplateParser.y" + public function yy_r159(){ $this->_retvalue = array_merge($this->yystack[$this->yyidx + -1]->minor,$this->yystack[$this->yyidx + 0]->minor); } -// line 1137 "src/Parser/TemplateParser.y" - public function yy_r161(){ +// line 1146 "src/Parser/TemplateParser.y" + public function yy_r162(){ $this->_retvalue = array(trim($this->yystack[$this->yyidx + -1]->minor).$this->yystack[$this->yyidx + 0]->minor); } -// line 1146 "src/Parser/TemplateParser.y" - public function yy_r163(){ +// line 1155 "src/Parser/TemplateParser.y" + public function yy_r164(){ $this->_retvalue = array($this->yystack[$this->yyidx + 0]->minor, '', 'method'); } -// line 1151 "src/Parser/TemplateParser.y" - public function yy_r164(){ +// line 1160 "src/Parser/TemplateParser.y" + public function yy_r165(){ $this->_retvalue = array($this->yystack[$this->yyidx + -1]->minor, $this->yystack[$this->yyidx + 0]->minor, 'method'); } -// line 1156 "src/Parser/TemplateParser.y" - public function yy_r165(){ +// line 1165 "src/Parser/TemplateParser.y" + public function yy_r166(){ $this->_retvalue = array($this->yystack[$this->yyidx + 0]->minor, ''); } -// line 1161 "src/Parser/TemplateParser.y" - public function yy_r166(){ +// line 1170 "src/Parser/TemplateParser.y" + public function yy_r167(){ $this->_retvalue = array($this->yystack[$this->yyidx + -1]->minor, $this->yystack[$this->yyidx + 0]->minor, 'property'); } -// line 1166 "src/Parser/TemplateParser.y" - public function yy_r167(){ +// line 1175 "src/Parser/TemplateParser.y" + public function yy_r168(){ $this->_retvalue = array($this->yystack[$this->yyidx + -2]->minor, $this->yystack[$this->yyidx + -1]->minor.$this->yystack[$this->yyidx + 0]->minor, 'property'); } -// line 1172 "src/Parser/TemplateParser.y" - public function yy_r168(){ +// line 1181 "src/Parser/TemplateParser.y" + public function yy_r169(){ $this->_retvalue = ' '. trim($this->yystack[$this->yyidx + 0]->minor) . ' '; } -// line 1176 "src/Parser/TemplateParser.y" - public function yy_r169(){ +// line 1185 "src/Parser/TemplateParser.y" + public function yy_r170(){ static $lops = array( 'eq' => ' == ', 'ne' => ' != ', @@ -2759,8 +2809,8 @@ public function yy_r169(){ $op = strtolower(preg_replace('/\s*/', '', $this->yystack[$this->yyidx + 0]->minor)); $this->_retvalue = $lops[$op]; } -// line 1195 "src/Parser/TemplateParser.y" - public function yy_r170(){ +// line 1204 "src/Parser/TemplateParser.y" + public function yy_r171(){ static $tlops = array( 'isdivby' => array('op' => ' % ', 'pre' => '!('), 'isnotdivby' => array('op' => ' % ', 'pre' => '('), @@ -2772,8 +2822,8 @@ public function yy_r170(){ $op = strtolower(preg_replace('/\s*/', '', $this->yystack[$this->yyidx + 0]->minor)); $this->_retvalue = $tlops[$op]; } -// line 1208 "src/Parser/TemplateParser.y" - public function yy_r171(){ +// line 1217 "src/Parser/TemplateParser.y" + public function yy_r172(){ static $scond = array ( 'iseven' => '!(1 & ', 'isnoteven' => '(1 & ', @@ -2783,54 +2833,54 @@ public function yy_r171(){ $op = strtolower(str_replace(' ', '', $this->yystack[$this->yyidx + 0]->minor)); $this->_retvalue = $scond[$op]; } -// line 1222 "src/Parser/TemplateParser.y" - public function yy_r172(){ +// line 1231 "src/Parser/TemplateParser.y" + public function yy_r173(){ $this->_retvalue = 'array('.$this->yystack[$this->yyidx + -1]->minor.')'; } -// line 1233 "src/Parser/TemplateParser.y" - public function yy_r175(){ +// line 1242 "src/Parser/TemplateParser.y" + public function yy_r176(){ $this->_retvalue = $this->yystack[$this->yyidx + -2]->minor.','.$this->yystack[$this->yyidx + 0]->minor; } -// line 1241 "src/Parser/TemplateParser.y" - public function yy_r177(){ +// line 1250 "src/Parser/TemplateParser.y" + public function yy_r178(){ $this->_retvalue = $this->yystack[$this->yyidx + -2]->minor.'=>'.$this->yystack[$this->yyidx + 0]->minor; } -// line 1245 "src/Parser/TemplateParser.y" - public function yy_r178(){ +// line 1254 "src/Parser/TemplateParser.y" + public function yy_r179(){ $this->_retvalue = '\''.$this->yystack[$this->yyidx + -2]->minor.'\'=>'.$this->yystack[$this->yyidx + 0]->minor; } -// line 1261 "src/Parser/TemplateParser.y" - public function yy_r181(){ +// line 1270 "src/Parser/TemplateParser.y" + public function yy_r182(){ $this->compiler->leaveDoubleQuote(); $this->_retvalue = $this->yystack[$this->yyidx + -1]->minor->to_smarty_php($this); } -// line 1267 "src/Parser/TemplateParser.y" - public function yy_r182(){ +// line 1276 "src/Parser/TemplateParser.y" + public function yy_r183(){ $this->yystack[$this->yyidx + -1]->minor->append_subtree($this, $this->yystack[$this->yyidx + 0]->minor); $this->_retvalue = $this->yystack[$this->yyidx + -1]->minor; } -// line 1272 "src/Parser/TemplateParser.y" - public function yy_r183(){ +// line 1281 "src/Parser/TemplateParser.y" + public function yy_r184(){ $this->_retvalue = new Dq($this, $this->yystack[$this->yyidx + 0]->minor); } -// line 1276 "src/Parser/TemplateParser.y" - public function yy_r184(){ +// line 1285 "src/Parser/TemplateParser.y" + public function yy_r185(){ $this->_retvalue = new Code('(string)'.$this->yystack[$this->yyidx + -1]->minor); } -// line 1280 "src/Parser/TemplateParser.y" - public function yy_r185(){ +// line 1289 "src/Parser/TemplateParser.y" + public function yy_r186(){ $this->_retvalue = new Code('(string)('.$this->yystack[$this->yyidx + -1]->minor.')'); } -// line 1284 "src/Parser/TemplateParser.y" - public function yy_r186(){ +// line 1293 "src/Parser/TemplateParser.y" + public function yy_r187(){ $this->_retvalue = new Code('(string)$_smarty_tpl->getValue(\''. substr($this->yystack[$this->yyidx + 0]->minor,1) .'\')'); } -// line 1296 "src/Parser/TemplateParser.y" - public function yy_r189(){ +// line 1305 "src/Parser/TemplateParser.y" + public function yy_r190(){ $this->_retvalue = new Tag($this, $this->yystack[$this->yyidx + 0]->minor); } -// line 1300 "src/Parser/TemplateParser.y" - public function yy_r190(){ +// line 1309 "src/Parser/TemplateParser.y" + public function yy_r191(){ $this->_retvalue = new DqContent($this->yystack[$this->yyidx + 0]->minor); } diff --git a/src/Parser/TemplateParser.y b/src/Parser/TemplateParser.y index 68648196a..d01a42af3 100644 --- a/src/Parser/TemplateParser.y +++ b/src/Parser/TemplateParser.y @@ -663,12 +663,21 @@ expr(res) ::= expr(e1) scond(c). { res = c . e1 . ')'; } -expr(res) ::= expr(e1) ISIN array(a). { - res = 'in_array('.e1.','.a.')'; +isin(res) ::= ISIN(o). { + static $isin = [ + 'isin' => 'in_array(', + 'isnotin' => '!in_array(', + ]; + $op = strtolower(str_replace(' ', '', o)); + res = $isin[$op]; +} + +expr(res) ::= expr(e1) isin(c) array(a). { + res = c . e1.','.a.')'; } -expr(res) ::= expr(e1) ISIN value(v). { - res = 'in_array('.e1.',(array)'.v.')'; +expr(res) ::= expr(e1) isin(c) value(v). { + res = c . e1.',(array)'.v.')'; } // null coalescing diff --git a/tests/UnitTests/TemplateSource/TagTests/If/CompileIfTest.php b/tests/UnitTests/TemplateSource/TagTests/If/CompileIfTest.php index 82ee97182..a45becc0f 100644 --- a/tests/UnitTests/TemplateSource/TagTests/If/CompileIfTest.php +++ b/tests/UnitTests/TemplateSource/TagTests/If/CompileIfTest.php @@ -169,6 +169,12 @@ public function dataTestIf() array('{if {counter start=1} == 1}yes{else}no{/if}', 'yes', 'Tag1', $i ++), array('{if false}false{elseif {counter start=1} == 1}yes{else}no{/if}', 'yes', 'Tag2', $i ++), array('{if {counter start=1} == 0}false{elseif {counter} == 2}yes{else}no{/if}', 'yes', 'Tag3', $i ++), + + array('{if 2 is in ["foo", 2]}yes{else}no{/if}', 'yes', 'IsIn', $i++), + array('{if 2 is in ["foo", "bar"]}yes{else}no{/if}', 'no', 'IsIn2', $i++), + array('{if 2 is not in ["foo", "bar"]}yes{else}no{/if}', 'yes', 'IsNotIn', $i++), + array('{if 2 is not in ["foo", 2]}yes{else}no{/if}', 'no', 'IsNotIn2', $i++), + ); }