diff --git a/externals/jsonlint/src/Seld/JsonLint/JsonParser.php b/externals/jsonlint/src/Seld/JsonLint/JsonParser.php index 1db157d..7100abf 100644 --- a/externals/jsonlint/src/Seld/JsonLint/JsonParser.php +++ b/externals/jsonlint/src/Seld/JsonLint/JsonParser.php @@ -1,488 +1,488 @@ * * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. */ /** * Parser class * * Example: * * $parser = new JsonParser(); * // returns null if it's valid json, or an error object * $parser->lint($json); * // returns parsed json, like json_decode does, but slower, throws exceptions on failure. * $parser->parse($json); * * Ported from https://github.com/zaach/jsonlint */ class JsonLintJsonParser { const DETECT_KEY_CONFLICTS = 1; const ALLOW_DUPLICATE_KEYS = 2; const PARSE_TO_ASSOC = 4; private $lexer; private $flags; private $stack; private $vstack; // semantic value stack private $lstack; // location stack private $symbols = array( 'error' => 2, 'JSONString' => 3, 'STRING' => 4, 'JSONNumber' => 5, 'NUMBER' => 6, 'JSONNullLiteral' => 7, 'NULL' => 8, 'JSONBooleanLiteral' => 9, 'TRUE' => 10, 'FALSE' => 11, 'JSONText' => 12, 'JSONValue' => 13, 'EOF' => 14, 'JSONObject' => 15, 'JSONArray' => 16, '{' => 17, '}' => 18, 'JSONMemberList' => 19, 'JSONMember' => 20, ':' => 21, ',' => 22, '[' => 23, ']' => 24, 'JSONElementList' => 25, '$accept' => 0, '$end' => 1, ); private $terminals_ = array( 2 => "error", 4 => "STRING", 6 => "NUMBER", 8 => "NULL", 10 => "TRUE", 11 => "FALSE", 14 => "EOF", 17 => "{", 18 => "}", 21 => ":", 22 => ",", 23 => "[", 24 => "]", ); private $productions_ = array( 0, array(3, 1), array(5, 1), array(7, 1), array(9, 1), array(9, 1), array(12, 2), array(13, 1), array(13, 1), array(13, 1), array(13, 1), array(13, 1), array(13, 1), array(15, 2), array(15, 3), array(20, 3), array(19, 1), array(19, 3), array(16, 2), array(16, 3), array(25, 1), array(25, 3) ); private $table = array(array(3 => 5, 4 => array(1,12), 5 => 6, 6 => array(1,13), 7 => 3, 8 => array(1,9), 9 => 4, 10 => array(1,10), 11 => array(1,11), 12 => 1, 13 => 2, 15 => 7, 16 => 8, 17 => array(1,14), 23 => array(1,15)), array( 1 => array(3)), array( 14 => array(1,16)), array( 14 => array(2,7), 18 => array(2,7), 22 => array(2,7), 24 => array(2,7)), array( 14 => array(2,8), 18 => array(2,8), 22 => array(2,8), 24 => array(2,8)), array( 14 => array(2,9), 18 => array(2,9), 22 => array(2,9), 24 => array(2,9)), array( 14 => array(2,10), 18 => array(2,10), 22 => array(2,10), 24 => array(2,10)), array( 14 => array(2,11), 18 => array(2,11), 22 => array(2,11), 24 => array(2,11)), array( 14 => array(2,12), 18 => array(2,12), 22 => array(2,12), 24 => array(2,12)), array( 14 => array(2,3), 18 => array(2,3), 22 => array(2,3), 24 => array(2,3)), array( 14 => array(2,4), 18 => array(2,4), 22 => array(2,4), 24 => array(2,4)), array( 14 => array(2,5), 18 => array(2,5), 22 => array(2,5), 24 => array(2,5)), array( 14 => array(2,1), 18 => array(2,1), 21 => array(2,1), 22 => array(2,1), 24 => array(2,1)), array( 14 => array(2,2), 18 => array(2,2), 22 => array(2,2), 24 => array(2,2)), array( 3 => 20, 4 => array(1,12), 18 => array(1,17), 19 => 18, 20 => 19 ), array( 3 => 5, 4 => array(1,12), 5 => 6, 6 => array(1,13), 7 => 3, 8 => array(1,9), 9 => 4, 10 => array(1,10), 11 => array(1,11), 13 => 23, 15 => 7, 16 => 8, 17 => array(1,14), 23 => array(1,15), 24 => array(1,21), 25 => 22 ), array( 1 => array(2,6)), array( 14 => array(2,13), 18 => array(2,13), 22 => array(2,13), 24 => array(2,13)), array( 18 => array(1,24), 22 => array(1,25)), array( 18 => array(2,16), 22 => array(2,16)), array( 21 => array(1,26)), array( 14 => array(2,18), 18 => array(2,18), 22 => array(2,18), 24 => array(2,18)), array( 22 => array(1,28), 24 => array(1,27)), array( 22 => array(2,20), 24 => array(2,20)), array( 14 => array(2,14), 18 => array(2,14), 22 => array(2,14), 24 => array(2,14)), array( 3 => 20, 4 => array(1,12), 20 => 29 ), array( 3 => 5, 4 => array(1,12), 5 => 6, 6 => array(1,13), 7 => 3, 8 => array(1,9), 9 => 4, 10 => array(1,10), 11 => array(1,11), 13 => 30, 15 => 7, 16 => 8, 17 => array(1,14), 23 => array(1,15)), array( 14 => array(2,19), 18 => array(2,19), 22 => array(2,19), 24 => array(2,19)), array( 3 => 5, 4 => array(1,12), 5 => 6, 6 => array(1,13), 7 => 3, 8 => array(1,9), 9 => 4, 10 => array(1,10), 11 => array(1,11), 13 => 31, 15 => 7, 16 => 8, 17 => array(1,14), 23 => array(1,15)), array( 18 => array(2,17), 22 => array(2,17)), array( 18 => array(2,15), 22 => array(2,15)), array( 22 => array(2,21), 24 => array(2,21)), ); private $defaultActions = array( 16 => array(2, 6) ); /** * @param string $input JSON string * @return null|JsonLintParsingException null if no error is found, a JsonLintParsingException containing all details otherwise */ public function lint($input) { try { $this->parse($input); } catch (JsonLintParsingException $e) { return $e; } } /** * @param string $input JSON string * @return mixed * @throws JsonLintParsingException */ public function parse($input, $flags = 0) { $this->failOnBOM($input); $this->flags = $flags; $this->stack = array(0); $this->vstack = array(null); $this->lstack = array(); $yytext = ''; $yylineno = 0; $yyleng = 0; $recovering = 0; $TERROR = 2; $EOF = 1; $this->lexer = new JsonLintLexer(); $this->lexer->setInput($input); $yyloc = $this->lexer->yylloc; $this->lstack[] = $yyloc; $symbol = null; $preErrorSymbol = null; $state = null; $action = null; $a = null; $r = null; $yyval = new stdClass; $p = null; $len = null; $newState = null; $expected = null; $errStr = null; while (true) { // retrieve state number from top of stack $state = $this->stack[count($this->stack)-1]; // use default actions if available if (isset($this->defaultActions[$state])) { $action = $this->defaultActions[$state]; } else { if ($symbol == null) { $symbol = $this->lex(); } // read action for current state and first input $action = isset($this->table[$state][$symbol]) ? $this->table[$state][$symbol] : false; } // handle parse error if (!$action || !$action[0]) { if (!$recovering) { // Report error $expected = array(); foreach ($this->table[$state] as $p => $ignore) { if (isset($this->terminals_[$p]) && $p > 2) { $expected[] = "'" . $this->terminals_[$p] . "'"; } } $message = null; if (in_array("'STRING'", $expected) && in_array(substr($this->lexer->match, 0, 1), array('"', "'"))) { $message = "Invalid string"; if ("'" === substr($this->lexer->match, 0, 1)) { $message .= ", it appears you used single quotes instead of double quotes"; } elseif (preg_match('{".+?(\\\\[^"bfnrt/\\\\u])}', $this->lexer->getUpcomingInput(), $match)) { $message .= ", it appears you have an unescaped backslash at: ".$match[1]; } elseif (preg_match('{"(?:[^"]+|\\\\")*$}m', $this->lexer->getUpcomingInput())) { - $message .= ", it appears you forgot to terminated the string, or attempted to write a multiline string which is invalid"; + $message .= ", it appears you forgot to terminate the string, or attempted to write a multiline string which is invalid"; } } $errStr = 'Parse error on line ' . ($yylineno+1) . ":\n"; $errStr .= $this->lexer->showPosition() . "\n"; if ($message) { $errStr .= $message; } else { $errStr .= (count($expected) > 1) ? "Expected one of: " : "Expected: "; $errStr .= implode(', ', $expected); } if (',' === substr(trim($this->lexer->getPastInput()), -1)) { $errStr .= " - It appears you have an extra trailing comma"; } $this->parseError($errStr, array( 'text' => $this->lexer->match, 'token' => !empty($this->terminals_[$symbol]) ? $this->terminals_[$symbol] : $symbol, 'line' => $this->lexer->yylineno, 'loc' => $yyloc, 'expected' => $expected, )); } // just recovered from another error if ($recovering == 3) { if ($symbol == $EOF) { throw new JsonLintParsingException($errStr ? $errStr : 'Parsing halted.'); } // discard current lookahead and grab another $yyleng = $this->lexer->yyleng; $yytext = $this->lexer->yytext; $yylineno = $this->lexer->yylineno; $yyloc = $this->lexer->yylloc; $symbol = $this->lex(); } // try to recover from error while (true) { // check for error recovery rule in this state if (array_key_exists($TERROR, $this->table[$state])) { break; } if ($state == 0) { throw new JsonLintParsingException($errStr ? $errStr : 'Parsing halted.'); } $this->popStack(1); $state = $this->stack[count($this->stack)-1]; } $preErrorSymbol = $symbol; // save the lookahead token $symbol = $TERROR; // insert generic error symbol as new lookahead $state = $this->stack[count($this->stack)-1]; $action = isset($this->table[$state][$TERROR]) ? $this->table[$state][$TERROR] : false; $recovering = 3; // allow 3 real symbols to be shifted before reporting a new error } // this shouldn't happen, unless resolve defaults are off if (is_array($action[0]) && count($action) > 1) { throw new JsonLintParsingException('Parse Error: multiple actions possible at state: ' . $state . ', token: ' . $symbol); } switch ($action[0]) { case 1: // shift $this->stack[] = $symbol; $this->vstack[] = $this->lexer->yytext; $this->lstack[] = $this->lexer->yylloc; $this->stack[] = $action[1]; // push state $symbol = null; if (!$preErrorSymbol) { // normal execution/no error $yyleng = $this->lexer->yyleng; $yytext = $this->lexer->yytext; $yylineno = $this->lexer->yylineno; $yyloc = $this->lexer->yylloc; if ($recovering > 0) { $recovering--; } } else { // error just occurred, resume old lookahead f/ before error $symbol = $preErrorSymbol; $preErrorSymbol = null; } break; case 2: // reduce $len = $this->productions_[$action[1]][1]; // perform semantic action $yyval->token = $this->vstack[count($this->vstack) - $len]; // default to $$ = $1 // default location, uses first token for firsts, last for lasts $yyval->store = array( // _$ = store 'first_line' => $this->lstack[count($this->lstack) - ($len ? $len : 1)]['first_line'], 'last_line' => $this->lstack[count($this->lstack) - 1]['last_line'], 'first_column' => $this->lstack[count($this->lstack) - ($len ? $len : 1)]['first_column'], 'last_column' => $this->lstack[count($this->lstack) - 1]['last_column'], ); $r = $this->performAction($yyval, $yytext, $yyleng, $yylineno, $action[1], $this->vstack, $this->lstack); if (!$r instanceof JsonLintUndefined) { return $r; } if ($len) { $this->popStack($len); } $this->stack[] = $this->productions_[$action[1]][0]; // push nonterminal (reduce) $this->vstack[] = $yyval->token; $this->lstack[] = $yyval->store; $newState = $this->table[$this->stack[count($this->stack)-2]][$this->stack[count($this->stack)-1]]; $this->stack[] = $newState; break; case 3: // accept return true; } } return true; } protected function parseError($str, $hash) { throw new JsonLintParsingException($str, $hash); } // $$ = $tokens // needs to be passed by ref? // $ = $token // _$ removed, useless? private function performAction(stdClass $yyval, $yytext, $yyleng, $yylineno, $yystate, &$tokens) { // $0 = $len $len = count($tokens) - 1; switch ($yystate) { case 1: $yytext = preg_replace_callback('{(?:\\\\["bfnrt/\\\\]|\\\\u[a-fA-F0-9]{4})}', array($this, 'stringInterpolation'), $yytext); $yyval->token = $yytext; break; case 2: if (strpos($yytext, 'e') !== false || strpos($yytext, 'E') !== false) { $yyval->token = floatval($yytext); } else { $yyval->token = strpos($yytext, '.') === false ? intval($yytext) : floatval($yytext); } break; case 3: $yyval->token = null; break; case 4: $yyval->token = true; break; case 5: $yyval->token = false; break; case 6: return $yyval->token = $tokens[$len-1]; case 13: if ($this->flags & self::PARSE_TO_ASSOC) { $yyval->token = array(); } else { $yyval->token = new stdClass; } break; case 14: $yyval->token = $tokens[$len-1]; break; case 15: $yyval->token = array($tokens[$len-2], $tokens[$len]); break; case 16: $property = $tokens[$len][0]; if ($this->flags & self::PARSE_TO_ASSOC) { $yyval->token = array(); $yyval->token[$property] = $tokens[$len][1]; } else { $yyval->token = new stdClass; $yyval->token->$property = $tokens[$len][1]; } break; case 17: if ($this->flags & self::PARSE_TO_ASSOC) { $yyval->token =& $tokens[$len-2]; $key = $tokens[$len][0]; if (($this->flags & self::DETECT_KEY_CONFLICTS) && isset($tokens[$len-2][$key])) { $errStr = 'Parse error on line ' . ($yylineno+1) . ":\n"; $errStr .= $this->lexer->showPosition() . "\n"; $errStr .= "Duplicate key: ".$tokens[$len][0]; throw new JsonLintParsingException($errStr); } elseif (($this->flags & self::ALLOW_DUPLICATE_KEYS) && isset($tokens[$len-2][$key])) { // Forget about it... } $tokens[$len-2][$key] = $tokens[$len][1]; } else { $yyval->token = $tokens[$len-2]; $key = $tokens[$len][0]; if (($this->flags & self::DETECT_KEY_CONFLICTS) && isset($tokens[$len-2]->{$key})) { $errStr = 'Parse error on line ' . ($yylineno+1) . ":\n"; $errStr .= $this->lexer->showPosition() . "\n"; $errStr .= "Duplicate key: ".$tokens[$len][0]; throw new JsonLintParsingException($errStr); } elseif (($this->flags & self::ALLOW_DUPLICATE_KEYS) && isset($tokens[$len-2]->{$key})) { $duplicateCount = 1; do { $duplicateKey = $key . '.' . $duplicateCount++; } while (isset($tokens[$len-2]->$duplicateKey)); $key = $duplicateKey; } $tokens[$len-2]->$key = $tokens[$len][1]; } break; case 18: $yyval->token = array(); break; case 19: $yyval->token = $tokens[$len-1]; break; case 20: $yyval->token = array($tokens[$len]); break; case 21: $tokens[$len-2][] = $tokens[$len]; $yyval->token = $tokens[$len-2]; break; } return new JsonLintUndefined(); } private function stringInterpolation($match) { switch ($match[0]) { case '\\\\': return '\\'; case '\"': return '"'; case '\b': return chr(8); case '\f': return chr(12); case '\n': return "\n"; case '\r': return "\r"; case '\t': return "\t"; case '\/': return "/"; default: return html_entity_decode('&#x'.ltrim(substr($match[0], 2), '0').';', 0, 'UTF-8'); } } private function popStack($n) { $this->stack = array_slice($this->stack, 0, - (2 * $n)); $this->vstack = array_slice($this->vstack, 0, - $n); $this->lstack = array_slice($this->lstack, 0, - $n); } private function lex() { $token = $this->lexer->lex(); if (!$token) { $token = 1; } // if token isn't its numeric value, convert if (!is_numeric($token)) { $token = isset($this->symbols[$token]) ? $this->symbols[$token] : $token; } return $token; } private function failOnBOM($input) { // UTF-8 ByteOrderMark sequence $bom = "\xEF\xBB\xBF"; if (substr($input, 0, 3) === $bom) { $this->parseError("BOM detected, make sure your input does not include a Unicode Byte-Order-Mark", array()); } } } \ No newline at end of file diff --git a/scripts/__init_script__.php b/scripts/__init_script__.php index 6f6b36f..d13cfa6 100644 --- a/scripts/__init_script__.php +++ b/scripts/__init_script__.php @@ -1,95 +1,98 @@ 0) { ob_end_clean(); } error_reporting(E_ALL | E_STRICT); $config_map = array( // Always display script errors. Without this, they may not appear, which is // unhelpful when users encounter a problem. On the web this is a security // concern because you don't want to expose errors to clients, but in a // script context we always want to show errors. 'display_errors' => true, // Send script error messages to the server's `error_log` setting. 'log_errors' => true, // Set the error log to the default, so errors go to stderr. Without this // errors may end up in some log, and users may not know where the log is // or check it. 'error_log' => null, // XDebug raises a fatal error if the call stack gets too deep, but the // default setting is 100, which we may exceed legitimately with module // includes (and in other cases, like recursive filesystem operations // applied to 100+ levels of directory nesting). Stop it from triggering: // we explicitly limit recursive algorithms which should be limited. // // After Feb 2014, XDebug interprets a value of 0 to mean "do not allow any // function calls". Previously, 0 effectively disabled this check. For // context, see T5027. 'xdebug.max_nesting_level' => PHP_INT_MAX, // Don't limit memory, doing so just generally just prevents us from // processing large inputs without many tangible benefits. 'memory_limit' => -1, ); foreach ($config_map as $config_key => $config_value) { ini_set($config_key, $config_value); } if (!ini_get('date.timezone')) { // If the timezone isn't set, PHP issues a warning whenever you try to parse // a date (like those from Git or Mercurial logs), even if the date contains // timezone information (like "PST" or "-0700") which makes the // environmental timezone setting is completely irrelevant. We never rely on // the system timezone setting in any capacity, so prevent PHP from flipping // out by setting it to a safe default (UTC) if it isn't set to some other // value. date_default_timezone_set('UTC'); } // Adjust `include_path`. ini_set('include_path', implode(PATH_SEPARATOR, array( dirname(dirname(__FILE__)).'/externals/includes', ini_get('include_path'), ))); // Disable the insanely dangerous XML entity loader by default. if (function_exists('libxml_disable_entity_loader')) { libxml_disable_entity_loader(true); } // Now, load libphutil. $root = dirname(dirname(__FILE__)); require_once $root.'/src/__phutil_library_init__.php'; PhutilErrorHandler::initialize(); $router = PhutilSignalRouter::initialize(); $handler = new PhutilBacktraceSignalHandler(); $router->installHandler('phutil.backtrace', $handler); + + $handler = new PhutilConsoleMetricsSignalHandler(); + $router->installHandler('phutil.winch', $handler); } __phutil_init_script__(); diff --git a/scripts/test/progress_bar.php b/scripts/test/progress_bar.php index 97d73aa..ed0f762 100755 --- a/scripts/test/progress_bar.php +++ b/scripts/test/progress_bar.php @@ -1,58 +1,71 @@ #!/usr/bin/env php parseStandardArguments(); echo pht( "PROGRESS BAR TEST SCRIPT\n\n". "This script is a test script for `%s`. It will draw some progress bars, ". "and generally allow you to test bar behaviors and changes.", 'PhutilConsoleProgressBar'); echo "\n\n"; echo pht( "GENERAL NOTES\n\n". " - When run as `%s`, no progress bars should be shown ". "(stderr is not a tty).\n". " - When run in a narrow terminal, the bar should resize automatically ". "to fit the terminal.\n". " - When run with `%s`, the bar should not be drawn.\n", 'php -f progress_bar.php 2>&1 | more', '--trace'); echo "\n\n"; echo pht('STANDARD PROGRESS BAR')."\n"; $n = 80; $bar = id(new PhutilConsoleProgressBar()) ->setTotal($n); for ($ii = 0; $ii < $n; $ii++) { $bar->update(1); usleep(10000); } $bar->done(); echo "\n".pht( "INTERRUPTED PROGRESS BAR\n". "This bar will be interrupted by an exception.\n". "It should clean itself up.")."\n"; try { run_interrupt_bar(); } catch (Exception $ex) { echo pht('Caught exception!')."\n"; } +echo "\n".pht( + "RESIZING BARS\n". + "If you resize the window while a progress bars draws, it should more or ". + "less detect the change."); + +$n = 1024; +$bar = id(new PhutilConsoleProgressBar()) + ->setTotal($n); +for ($ii = 0; $ii < $n; $ii++) { + $bar->update(1); + usleep(10000); +} +$bar->done(); function run_interrupt_bar() { $bar = id(new PhutilConsoleProgressBar()) ->setTotal(100); for ($ii = 0; $ii < 100; $ii++) { if ($ii === 20) { throw new Exception(pht('Boo!')); } $bar->update(1); usleep(10000); } } diff --git a/src/__phutil_library_map__.php b/src/__phutil_library_map__.php index 6761f56..2fb390a 100644 --- a/src/__phutil_library_map__.php +++ b/src/__phutil_library_map__.php @@ -1,1098 +1,1123 @@ 2, 'class' => array( 'AASTNode' => 'parser/aast/api/AASTNode.php', 'AASTNodeList' => 'parser/aast/api/AASTNodeList.php', 'AASTToken' => 'parser/aast/api/AASTToken.php', 'AASTTree' => 'parser/aast/api/AASTTree.php', 'AbstractDirectedGraph' => 'utils/AbstractDirectedGraph.php', 'AbstractDirectedGraphTestCase' => 'utils/__tests__/AbstractDirectedGraphTestCase.php', 'AphrontAccessDeniedQueryException' => 'aphront/storage/exception/AphrontAccessDeniedQueryException.php', 'AphrontBaseMySQLDatabaseConnection' => 'aphront/storage/connection/mysql/AphrontBaseMySQLDatabaseConnection.php', 'AphrontCharacterSetQueryException' => 'aphront/storage/exception/AphrontCharacterSetQueryException.php', 'AphrontConnectionLostQueryException' => 'aphront/storage/exception/AphrontConnectionLostQueryException.php', 'AphrontConnectionQueryException' => 'aphront/storage/exception/AphrontConnectionQueryException.php', 'AphrontCountQueryException' => 'aphront/storage/exception/AphrontCountQueryException.php', 'AphrontDatabaseConnection' => 'aphront/storage/connection/AphrontDatabaseConnection.php', 'AphrontDatabaseTransactionState' => 'aphront/storage/connection/AphrontDatabaseTransactionState.php', 'AphrontDeadlockQueryException' => 'aphront/storage/exception/AphrontDeadlockQueryException.php', 'AphrontDuplicateKeyQueryException' => 'aphront/storage/exception/AphrontDuplicateKeyQueryException.php', + 'AphrontHTTPHeaderParser' => 'aphront/headerparser/AphrontHTTPHeaderParser.php', + 'AphrontHTTPHeaderParserTestCase' => 'aphront/headerparser/__tests__/AphrontHTTPHeaderParserTestCase.php', 'AphrontInvalidCredentialsQueryException' => 'aphront/storage/exception/AphrontInvalidCredentialsQueryException.php', 'AphrontIsolatedDatabaseConnection' => 'aphront/storage/connection/AphrontIsolatedDatabaseConnection.php', 'AphrontLockTimeoutQueryException' => 'aphront/storage/exception/AphrontLockTimeoutQueryException.php', + 'AphrontMultipartParser' => 'aphront/multipartparser/AphrontMultipartParser.php', + 'AphrontMultipartParserTestCase' => 'aphront/multipartparser/__tests__/AphrontMultipartParserTestCase.php', + 'AphrontMultipartPart' => 'aphront/multipartparser/AphrontMultipartPart.php', 'AphrontMySQLDatabaseConnection' => 'aphront/storage/connection/mysql/AphrontMySQLDatabaseConnection.php', 'AphrontMySQLiDatabaseConnection' => 'aphront/storage/connection/mysql/AphrontMySQLiDatabaseConnection.php', 'AphrontNotSupportedQueryException' => 'aphront/storage/exception/AphrontNotSupportedQueryException.php', 'AphrontObjectMissingQueryException' => 'aphront/storage/exception/AphrontObjectMissingQueryException.php', 'AphrontParameterQueryException' => 'aphront/storage/exception/AphrontParameterQueryException.php', 'AphrontQueryException' => 'aphront/storage/exception/AphrontQueryException.php', 'AphrontQueryTimeoutQueryException' => 'aphront/storage/exception/AphrontQueryTimeoutQueryException.php', 'AphrontRecoverableQueryException' => 'aphront/storage/exception/AphrontRecoverableQueryException.php', 'AphrontRequestStream' => 'aphront/requeststream/AphrontRequestStream.php', 'AphrontSchemaQueryException' => 'aphront/storage/exception/AphrontSchemaQueryException.php', 'AphrontScopedUnguardedWriteCapability' => 'aphront/writeguard/AphrontScopedUnguardedWriteCapability.php', 'AphrontWriteGuard' => 'aphront/writeguard/AphrontWriteGuard.php', 'BaseHTTPFuture' => 'future/http/BaseHTTPFuture.php', 'CaseInsensitiveArray' => 'utils/CaseInsensitiveArray.php', 'CaseInsensitiveArrayTestCase' => 'utils/__tests__/CaseInsensitiveArrayTestCase.php', 'CommandException' => 'future/exec/CommandException.php', 'ConduitClient' => 'conduit/ConduitClient.php', 'ConduitClientException' => 'conduit/ConduitClientException.php', 'ConduitClientTestCase' => 'conduit/__tests__/ConduitClientTestCase.php', 'ConduitFuture' => 'conduit/ConduitFuture.php', 'ExecFuture' => 'future/exec/ExecFuture.php', 'ExecFutureTestCase' => 'future/exec/__tests__/ExecFutureTestCase.php', 'ExecPassthruTestCase' => 'future/exec/__tests__/ExecPassthruTestCase.php', 'FileFinder' => 'filesystem/FileFinder.php', 'FileFinderTestCase' => 'filesystem/__tests__/FileFinderTestCase.php', 'FileList' => 'filesystem/FileList.php', 'Filesystem' => 'filesystem/Filesystem.php', 'FilesystemException' => 'filesystem/FilesystemException.php', 'FilesystemTestCase' => 'filesystem/__tests__/FilesystemTestCase.php', 'Future' => 'future/Future.php', 'FutureIterator' => 'future/FutureIterator.php', 'FutureIteratorTestCase' => 'future/__tests__/FutureIteratorTestCase.php', 'FutureProxy' => 'future/FutureProxy.php', 'HTTPFuture' => 'future/http/HTTPFuture.php', 'HTTPFutureCURLResponseStatus' => 'future/http/status/HTTPFutureCURLResponseStatus.php', 'HTTPFutureCertificateResponseStatus' => 'future/http/status/HTTPFutureCertificateResponseStatus.php', 'HTTPFutureHTTPResponseStatus' => 'future/http/status/HTTPFutureHTTPResponseStatus.php', 'HTTPFutureParseResponseStatus' => 'future/http/status/HTTPFutureParseResponseStatus.php', 'HTTPFutureResponseStatus' => 'future/http/status/HTTPFutureResponseStatus.php', 'HTTPFutureTransportResponseStatus' => 'future/http/status/HTTPFutureTransportResponseStatus.php', 'HTTPSFuture' => 'future/http/HTTPSFuture.php', 'ImmediateFuture' => 'future/ImmediateFuture.php', 'LibphutilUSEnglishTranslation' => 'internationalization/translation/LibphutilUSEnglishTranslation.php', 'LinesOfALarge' => 'filesystem/linesofalarge/LinesOfALarge.php', 'LinesOfALargeExecFuture' => 'filesystem/linesofalarge/LinesOfALargeExecFuture.php', 'LinesOfALargeExecFutureTestCase' => 'filesystem/linesofalarge/__tests__/LinesOfALargeExecFutureTestCase.php', 'LinesOfALargeFile' => 'filesystem/linesofalarge/LinesOfALargeFile.php', 'LinesOfALargeFileTestCase' => 'filesystem/linesofalarge/__tests__/LinesOfALargeFileTestCase.php', 'MFilterTestHelper' => 'utils/__tests__/MFilterTestHelper.php', 'PHPASTParserTestCase' => 'parser/xhpast/__tests__/PHPASTParserTestCase.php', 'PhageAction' => 'phage/action/PhageAction.php', 'PhageAgentAction' => 'phage/action/PhageAgentAction.php', 'PhageAgentBootloader' => 'phage/bootloader/PhageAgentBootloader.php', 'PhageAgentTestCase' => 'phage/__tests__/PhageAgentTestCase.php', 'PhageExecuteAction' => 'phage/action/PhageExecuteAction.php', 'PhageLocalAction' => 'phage/action/PhageLocalAction.php', 'PhagePHPAgent' => 'phage/agent/PhagePHPAgent.php', 'PhagePHPAgentBootloader' => 'phage/bootloader/PhagePHPAgentBootloader.php', 'PhagePlanAction' => 'phage/action/PhagePlanAction.php', 'Phobject' => 'object/Phobject.php', 'PhobjectTestCase' => 'object/__tests__/PhobjectTestCase.php', 'PhutilAPCKeyValueCache' => 'cache/PhutilAPCKeyValueCache.php', 'PhutilAWSCloudFormationFuture' => 'future/aws/PhutilAWSCloudFormationFuture.php', 'PhutilAWSEC2Future' => 'future/aws/PhutilAWSEC2Future.php', 'PhutilAWSException' => 'future/aws/PhutilAWSException.php', 'PhutilAWSFuture' => 'future/aws/PhutilAWSFuture.php', 'PhutilAWSManagementWorkflow' => 'future/aws/management/PhutilAWSManagementWorkflow.php', 'PhutilAWSS3DeleteManagementWorkflow' => 'future/aws/management/PhutilAWSS3DeleteManagementWorkflow.php', 'PhutilAWSS3Future' => 'future/aws/PhutilAWSS3Future.php', 'PhutilAWSS3GetManagementWorkflow' => 'future/aws/management/PhutilAWSS3GetManagementWorkflow.php', 'PhutilAWSS3ManagementWorkflow' => 'future/aws/management/PhutilAWSS3ManagementWorkflow.php', 'PhutilAWSS3PutManagementWorkflow' => 'future/aws/management/PhutilAWSS3PutManagementWorkflow.php', 'PhutilAWSv4Signature' => 'future/aws/PhutilAWSv4Signature.php', 'PhutilAWSv4SignatureTestCase' => 'future/aws/__tests__/PhutilAWSv4SignatureTestCase.php', 'PhutilAggregateException' => 'error/PhutilAggregateException.php', 'PhutilAllCapsEnglishLocale' => 'internationalization/locales/PhutilAllCapsEnglishLocale.php', 'PhutilAmazonAuthAdapter' => 'auth/PhutilAmazonAuthAdapter.php', 'PhutilArgumentParser' => 'parser/argument/PhutilArgumentParser.php', 'PhutilArgumentParserException' => 'parser/argument/exception/PhutilArgumentParserException.php', 'PhutilArgumentParserTestCase' => 'parser/argument/__tests__/PhutilArgumentParserTestCase.php', 'PhutilArgumentSpecification' => 'parser/argument/PhutilArgumentSpecification.php', 'PhutilArgumentSpecificationException' => 'parser/argument/exception/PhutilArgumentSpecificationException.php', 'PhutilArgumentSpecificationTestCase' => 'parser/argument/__tests__/PhutilArgumentSpecificationTestCase.php', 'PhutilArgumentSpellingCorrector' => 'parser/argument/PhutilArgumentSpellingCorrector.php', 'PhutilArgumentSpellingCorrectorTestCase' => 'parser/argument/__tests__/PhutilArgumentSpellingCorrectorTestCase.php', 'PhutilArgumentUsageException' => 'parser/argument/exception/PhutilArgumentUsageException.php', 'PhutilArgumentWorkflow' => 'parser/argument/workflow/PhutilArgumentWorkflow.php', 'PhutilArray' => 'utils/PhutilArray.php', 'PhutilArrayTestCase' => 'utils/__tests__/PhutilArrayTestCase.php', 'PhutilArrayWithDefaultValue' => 'utils/PhutilArrayWithDefaultValue.php', 'PhutilAsanaAuthAdapter' => 'auth/PhutilAsanaAuthAdapter.php', 'PhutilAsanaFuture' => 'future/asana/PhutilAsanaFuture.php', 'PhutilAuthAdapter' => 'auth/PhutilAuthAdapter.php', 'PhutilAuthConfigurationException' => 'auth/exception/PhutilAuthConfigurationException.php', 'PhutilAuthCredentialException' => 'auth/exception/PhutilAuthCredentialException.php', 'PhutilAuthException' => 'auth/exception/PhutilAuthException.php', 'PhutilAuthUserAbortedException' => 'auth/exception/PhutilAuthUserAbortedException.php', 'PhutilBacktraceSignalHandler' => 'future/exec/PhutilBacktraceSignalHandler.php', 'PhutilBallOfPHP' => 'phage/util/PhutilBallOfPHP.php', 'PhutilBinaryAnalyzer' => 'filesystem/binary/PhutilBinaryAnalyzer.php', 'PhutilBinaryAnalyzerTestCase' => 'filesystem/binary/__tests__/PhutilBinaryAnalyzerTestCase.php', 'PhutilBitbucketAuthAdapter' => 'auth/PhutilBitbucketAuthAdapter.php', 'PhutilBootloader' => 'moduleutils/PhutilBootloader.php', 'PhutilBootloaderException' => 'moduleutils/PhutilBootloaderException.php', 'PhutilBritishEnglishLocale' => 'internationalization/locales/PhutilBritishEnglishLocale.php', 'PhutilBufferedIterator' => 'utils/PhutilBufferedIterator.php', 'PhutilBufferedIteratorTestCase' => 'utils/__tests__/PhutilBufferedIteratorTestCase.php', 'PhutilBugtraqParser' => 'parser/PhutilBugtraqParser.php', 'PhutilBugtraqParserTestCase' => 'parser/__tests__/PhutilBugtraqParserTestCase.php', 'PhutilCIDRBlock' => 'ip/PhutilCIDRBlock.php', 'PhutilCIDRList' => 'ip/PhutilCIDRList.php', 'PhutilCLikeCodeSnippetContextFreeGrammar' => 'grammar/code/PhutilCLikeCodeSnippetContextFreeGrammar.php', 'PhutilCalendarAbsoluteDateTime' => 'parser/calendar/data/PhutilCalendarAbsoluteDateTime.php', 'PhutilCalendarContainerNode' => 'parser/calendar/data/PhutilCalendarContainerNode.php', 'PhutilCalendarDateTime' => 'parser/calendar/data/PhutilCalendarDateTime.php', 'PhutilCalendarDateTimeTestCase' => 'parser/calendar/data/__tests__/PhutilCalendarDateTimeTestCase.php', 'PhutilCalendarDocumentNode' => 'parser/calendar/data/PhutilCalendarDocumentNode.php', 'PhutilCalendarDuration' => 'parser/calendar/data/PhutilCalendarDuration.php', 'PhutilCalendarEventNode' => 'parser/calendar/data/PhutilCalendarEventNode.php', 'PhutilCalendarNode' => 'parser/calendar/data/PhutilCalendarNode.php', 'PhutilCalendarProxyDateTime' => 'parser/calendar/data/PhutilCalendarProxyDateTime.php', 'PhutilCalendarRawNode' => 'parser/calendar/data/PhutilCalendarRawNode.php', 'PhutilCalendarRecurrenceList' => 'parser/calendar/data/PhutilCalendarRecurrenceList.php', 'PhutilCalendarRecurrenceRule' => 'parser/calendar/data/PhutilCalendarRecurrenceRule.php', 'PhutilCalendarRecurrenceRuleTestCase' => 'parser/calendar/data/__tests__/PhutilCalendarRecurrenceRuleTestCase.php', 'PhutilCalendarRecurrenceSet' => 'parser/calendar/data/PhutilCalendarRecurrenceSet.php', 'PhutilCalendarRecurrenceSource' => 'parser/calendar/data/PhutilCalendarRecurrenceSource.php', 'PhutilCalendarRecurrenceTestCase' => 'parser/calendar/data/__tests__/PhutilCalendarRecurrenceTestCase.php', 'PhutilCalendarRelativeDateTime' => 'parser/calendar/data/PhutilCalendarRelativeDateTime.php', 'PhutilCalendarRootNode' => 'parser/calendar/data/PhutilCalendarRootNode.php', 'PhutilCalendarUserNode' => 'parser/calendar/data/PhutilCalendarUserNode.php', 'PhutilCallbackFilterIterator' => 'utils/PhutilCallbackFilterIterator.php', 'PhutilCallbackSignalHandler' => 'future/exec/PhutilCallbackSignalHandler.php', 'PhutilChannel' => 'channel/PhutilChannel.php', 'PhutilChannelChannel' => 'channel/PhutilChannelChannel.php', 'PhutilChannelTestCase' => 'channel/__tests__/PhutilChannelTestCase.php', 'PhutilChunkedIterator' => 'utils/PhutilChunkedIterator.php', 'PhutilChunkedIteratorTestCase' => 'utils/__tests__/PhutilChunkedIteratorTestCase.php', 'PhutilClassMapQuery' => 'symbols/PhutilClassMapQuery.php', 'PhutilCodeSnippetContextFreeGrammar' => 'grammar/code/PhutilCodeSnippetContextFreeGrammar.php', 'PhutilCommandString' => 'xsprintf/PhutilCommandString.php', 'PhutilConsole' => 'console/PhutilConsole.php', 'PhutilConsoleBlock' => 'console/view/PhutilConsoleBlock.php', + 'PhutilConsoleError' => 'console/view/PhutilConsoleError.php', 'PhutilConsoleFormatter' => 'console/PhutilConsoleFormatter.php', + 'PhutilConsoleInfo' => 'console/view/PhutilConsoleInfo.php', 'PhutilConsoleList' => 'console/view/PhutilConsoleList.php', + 'PhutilConsoleLogLine' => 'console/view/PhutilConsoleLogLine.php', 'PhutilConsoleMessage' => 'console/PhutilConsoleMessage.php', + 'PhutilConsoleMetrics' => 'console/PhutilConsoleMetrics.php', + 'PhutilConsoleMetricsSignalHandler' => 'future/exec/PhutilConsoleMetricsSignalHandler.php', 'PhutilConsoleProgressBar' => 'console/PhutilConsoleProgressBar.php', 'PhutilConsoleServer' => 'console/PhutilConsoleServer.php', 'PhutilConsoleServerChannel' => 'console/PhutilConsoleServerChannel.php', + 'PhutilConsoleSkip' => 'console/view/PhutilConsoleSkip.php', 'PhutilConsoleStdinNotInteractiveException' => 'console/PhutilConsoleStdinNotInteractiveException.php', 'PhutilConsoleSyntaxHighlighter' => 'markup/syntax/highlighter/PhutilConsoleSyntaxHighlighter.php', 'PhutilConsoleTable' => 'console/view/PhutilConsoleTable.php', 'PhutilConsoleView' => 'console/view/PhutilConsoleView.php', + 'PhutilConsoleWarning' => 'console/view/PhutilConsoleWarning.php', 'PhutilConsoleWrapTestCase' => 'console/__tests__/PhutilConsoleWrapTestCase.php', 'PhutilContextFreeGrammar' => 'grammar/PhutilContextFreeGrammar.php', 'PhutilCowsay' => 'utils/PhutilCowsay.php', 'PhutilCowsayTestCase' => 'utils/__tests__/PhutilCowsayTestCase.php', 'PhutilCsprintfTestCase' => 'xsprintf/__tests__/PhutilCsprintfTestCase.php', 'PhutilCzechLocale' => 'internationalization/locales/PhutilCzechLocale.php', 'PhutilDaemon' => 'daemon/PhutilDaemon.php', 'PhutilDaemonHandle' => 'daemon/PhutilDaemonHandle.php', 'PhutilDaemonOverseer' => 'daemon/PhutilDaemonOverseer.php', 'PhutilDaemonOverseerModule' => 'daemon/PhutilDaemonOverseerModule.php', 'PhutilDaemonPool' => 'daemon/PhutilDaemonPool.php', 'PhutilDefaultSyntaxHighlighter' => 'markup/syntax/highlighter/PhutilDefaultSyntaxHighlighter.php', 'PhutilDefaultSyntaxHighlighterEngine' => 'markup/syntax/engine/PhutilDefaultSyntaxHighlighterEngine.php', 'PhutilDefaultSyntaxHighlighterEnginePygmentsFuture' => 'markup/syntax/highlighter/pygments/PhutilDefaultSyntaxHighlighterEnginePygmentsFuture.php', 'PhutilDefaultSyntaxHighlighterEngineTestCase' => 'markup/syntax/engine/__tests__/PhutilDefaultSyntaxHighlighterEngineTestCase.php', 'PhutilDeferredLog' => 'filesystem/PhutilDeferredLog.php', 'PhutilDeferredLogTestCase' => 'filesystem/__tests__/PhutilDeferredLogTestCase.php', 'PhutilDiffBinaryAnalyzer' => 'filesystem/binary/PhutilDiffBinaryAnalyzer.php', 'PhutilDirectedScalarGraph' => 'utils/PhutilDirectedScalarGraph.php', 'PhutilDirectoryFixture' => 'filesystem/PhutilDirectoryFixture.php', 'PhutilDirectoryKeyValueCache' => 'cache/PhutilDirectoryKeyValueCache.php', 'PhutilDisqusAuthAdapter' => 'auth/PhutilDisqusAuthAdapter.php', 'PhutilDivinerSyntaxHighlighter' => 'markup/syntax/highlighter/PhutilDivinerSyntaxHighlighter.php', 'PhutilDocblockParser' => 'parser/PhutilDocblockParser.php', 'PhutilDocblockParserTestCase' => 'parser/__tests__/PhutilDocblockParserTestCase.php', 'PhutilEditDistanceMatrix' => 'utils/PhutilEditDistanceMatrix.php', 'PhutilEditDistanceMatrixTestCase' => 'utils/__tests__/PhutilEditDistanceMatrixTestCase.php', 'PhutilEditorConfig' => 'parser/PhutilEditorConfig.php', 'PhutilEditorConfigTestCase' => 'parser/__tests__/PhutilEditorConfigTestCase.php', 'PhutilEmailAddress' => 'parser/PhutilEmailAddress.php', 'PhutilEmailAddressTestCase' => 'parser/__tests__/PhutilEmailAddressTestCase.php', 'PhutilEmojiLocale' => 'internationalization/locales/PhutilEmojiLocale.php', 'PhutilEmptyAuthAdapter' => 'auth/PhutilEmptyAuthAdapter.php', 'PhutilEnglishCanadaLocale' => 'internationalization/locales/PhutilEnglishCanadaLocale.php', 'PhutilErrorHandler' => 'error/PhutilErrorHandler.php', 'PhutilErrorHandlerTestCase' => 'error/__tests__/PhutilErrorHandlerTestCase.php', 'PhutilErrorTrap' => 'error/PhutilErrorTrap.php', 'PhutilEvent' => 'events/PhutilEvent.php', 'PhutilEventConstants' => 'events/constant/PhutilEventConstants.php', 'PhutilEventEngine' => 'events/PhutilEventEngine.php', 'PhutilEventListener' => 'events/PhutilEventListener.php', 'PhutilEventType' => 'events/constant/PhutilEventType.php', 'PhutilExampleBufferedIterator' => 'utils/PhutilExampleBufferedIterator.php', 'PhutilExcessiveServiceCallsDaemon' => 'daemon/torture/PhutilExcessiveServiceCallsDaemon.php', 'PhutilExecChannel' => 'channel/PhutilExecChannel.php', 'PhutilExecPassthru' => 'future/exec/PhutilExecPassthru.php', 'PhutilExecutableFuture' => 'future/exec/PhutilExecutableFuture.php', 'PhutilExecutionEnvironment' => 'utils/PhutilExecutionEnvironment.php', 'PhutilExtensionsTestCase' => 'moduleutils/__tests__/PhutilExtensionsTestCase.php', 'PhutilFacebookAuthAdapter' => 'auth/PhutilFacebookAuthAdapter.php', 'PhutilFatalDaemon' => 'daemon/torture/PhutilFatalDaemon.php', 'PhutilFileLock' => 'filesystem/PhutilFileLock.php', 'PhutilFileLockTestCase' => 'filesystem/__tests__/PhutilFileLockTestCase.php', 'PhutilFileTree' => 'filesystem/PhutilFileTree.php', 'PhutilFrenchLocale' => 'internationalization/locales/PhutilFrenchLocale.php', 'PhutilGermanLocale' => 'internationalization/locales/PhutilGermanLocale.php', 'PhutilGitBinaryAnalyzer' => 'filesystem/binary/PhutilGitBinaryAnalyzer.php', 'PhutilGitHubAuthAdapter' => 'auth/PhutilGitHubAuthAdapter.php', 'PhutilGitHubFuture' => 'future/github/PhutilGitHubFuture.php', 'PhutilGitHubResponse' => 'future/github/PhutilGitHubResponse.php', 'PhutilGitURI' => 'parser/PhutilGitURI.php', 'PhutilGitURITestCase' => 'parser/__tests__/PhutilGitURITestCase.php', 'PhutilGoogleAuthAdapter' => 'auth/PhutilGoogleAuthAdapter.php', 'PhutilHTTPEngineExtension' => 'future/http/PhutilHTTPEngineExtension.php', 'PhutilHangForeverDaemon' => 'daemon/torture/PhutilHangForeverDaemon.php', 'PhutilHashingIterator' => 'utils/PhutilHashingIterator.php', 'PhutilHashingIteratorTestCase' => 'utils/__tests__/PhutilHashingIteratorTestCase.php', 'PhutilHelpArgumentWorkflow' => 'parser/argument/workflow/PhutilHelpArgumentWorkflow.php', 'PhutilHgsprintfTestCase' => 'xsprintf/__tests__/PhutilHgsprintfTestCase.php', 'PhutilHighIntensityIntervalDaemon' => 'daemon/torture/PhutilHighIntensityIntervalDaemon.php', 'PhutilICSParser' => 'parser/calendar/ics/PhutilICSParser.php', 'PhutilICSParserException' => 'parser/calendar/ics/PhutilICSParserException.php', 'PhutilICSParserTestCase' => 'parser/calendar/ics/__tests__/PhutilICSParserTestCase.php', 'PhutilICSWriter' => 'parser/calendar/ics/PhutilICSWriter.php', 'PhutilICSWriterTestCase' => 'parser/calendar/ics/__tests__/PhutilICSWriterTestCase.php', 'PhutilINIParserException' => 'parser/exception/PhutilINIParserException.php', 'PhutilIPAddress' => 'ip/PhutilIPAddress.php', 'PhutilIPAddressTestCase' => 'ip/__tests__/PhutilIPAddressTestCase.php', 'PhutilIPv4Address' => 'ip/PhutilIPv4Address.php', 'PhutilIPv6Address' => 'ip/PhutilIPv6Address.php', 'PhutilInRequestKeyValueCache' => 'cache/PhutilInRequestKeyValueCache.php', 'PhutilInteractiveEditor' => 'console/PhutilInteractiveEditor.php', 'PhutilInvalidRuleParserGeneratorException' => 'parser/generator/exception/PhutilInvalidRuleParserGeneratorException.php', 'PhutilInvalidStateException' => 'exception/PhutilInvalidStateException.php', 'PhutilInvalidStateExceptionTestCase' => 'exception/__tests__/PhutilInvalidStateExceptionTestCase.php', 'PhutilInvisibleSyntaxHighlighter' => 'markup/syntax/highlighter/PhutilInvisibleSyntaxHighlighter.php', 'PhutilIrreducibleRuleParserGeneratorException' => 'parser/generator/exception/PhutilIrreducibleRuleParserGeneratorException.php', 'PhutilJIRAAuthAdapter' => 'auth/PhutilJIRAAuthAdapter.php', 'PhutilJSON' => 'parser/PhutilJSON.php', 'PhutilJSONFragmentLexer' => 'lexer/PhutilJSONFragmentLexer.php', 'PhutilJSONFragmentLexerHighlighterTestCase' => 'markup/syntax/highlighter/__tests__/PhutilJSONFragmentLexerHighlighterTestCase.php', 'PhutilJSONParser' => 'parser/PhutilJSONParser.php', 'PhutilJSONParserException' => 'parser/exception/PhutilJSONParserException.php', 'PhutilJSONParserTestCase' => 'parser/__tests__/PhutilJSONParserTestCase.php', 'PhutilJSONProtocolChannel' => 'channel/PhutilJSONProtocolChannel.php', 'PhutilJSONProtocolChannelTestCase' => 'channel/__tests__/PhutilJSONProtocolChannelTestCase.php', 'PhutilJSONTestCase' => 'parser/__tests__/PhutilJSONTestCase.php', 'PhutilJavaCodeSnippetContextFreeGrammar' => 'grammar/code/PhutilJavaCodeSnippetContextFreeGrammar.php', 'PhutilKeyValueCache' => 'cache/PhutilKeyValueCache.php', 'PhutilKeyValueCacheNamespace' => 'cache/PhutilKeyValueCacheNamespace.php', 'PhutilKeyValueCacheProfiler' => 'cache/PhutilKeyValueCacheProfiler.php', 'PhutilKeyValueCacheProxy' => 'cache/PhutilKeyValueCacheProxy.php', 'PhutilKeyValueCacheStack' => 'cache/PhutilKeyValueCacheStack.php', 'PhutilKeyValueCacheTestCase' => 'cache/__tests__/PhutilKeyValueCacheTestCase.php', 'PhutilKoreanLocale' => 'internationalization/locales/PhutilKoreanLocale.php', 'PhutilLDAPAuthAdapter' => 'auth/PhutilLDAPAuthAdapter.php', 'PhutilLanguageGuesser' => 'parser/PhutilLanguageGuesser.php', 'PhutilLanguageGuesserTestCase' => 'parser/__tests__/PhutilLanguageGuesserTestCase.php', 'PhutilLexer' => 'lexer/PhutilLexer.php', 'PhutilLexerSyntaxHighlighter' => 'markup/syntax/highlighter/PhutilLexerSyntaxHighlighter.php', 'PhutilLibraryConflictException' => 'moduleutils/PhutilLibraryConflictException.php', 'PhutilLibraryMapBuilder' => 'moduleutils/PhutilLibraryMapBuilder.php', 'PhutilLibraryTestCase' => '__tests__/PhutilLibraryTestCase.php', 'PhutilLipsumContextFreeGrammar' => 'grammar/PhutilLipsumContextFreeGrammar.php', 'PhutilLocale' => 'internationalization/PhutilLocale.php', 'PhutilLocaleTestCase' => 'internationalization/__tests__/PhutilLocaleTestCase.php', 'PhutilLock' => 'filesystem/PhutilLock.php', 'PhutilLockException' => 'filesystem/PhutilLockException.php', 'PhutilLogFileChannel' => 'channel/PhutilLogFileChannel.php', 'PhutilLunarPhase' => 'utils/PhutilLunarPhase.php', 'PhutilLunarPhaseTestCase' => 'utils/__tests__/PhutilLunarPhaseTestCase.php', 'PhutilMarkupEngine' => 'markup/PhutilMarkupEngine.php', 'PhutilMarkupTestCase' => 'markup/__tests__/PhutilMarkupTestCase.php', 'PhutilMemcacheKeyValueCache' => 'cache/PhutilMemcacheKeyValueCache.php', 'PhutilMercurialBinaryAnalyzer' => 'filesystem/binary/PhutilMercurialBinaryAnalyzer.php', 'PhutilMethodNotImplementedException' => 'error/PhutilMethodNotImplementedException.php', 'PhutilMetricsChannel' => 'channel/PhutilMetricsChannel.php', 'PhutilMissingSymbolException' => 'symbols/exception/PhutilMissingSymbolException.php', 'PhutilModuleUtilsTestCase' => 'moduleutils/__tests__/PhutilModuleUtilsTestCase.php', 'PhutilNiceDaemon' => 'daemon/torture/PhutilNiceDaemon.php', 'PhutilNumber' => 'internationalization/PhutilNumber.php', 'PhutilOAuth1AuthAdapter' => 'auth/PhutilOAuth1AuthAdapter.php', 'PhutilOAuth1Future' => 'future/oauth/PhutilOAuth1Future.php', 'PhutilOAuth1FutureTestCase' => 'future/oauth/__tests__/PhutilOAuth1FutureTestCase.php', 'PhutilOAuthAuthAdapter' => 'auth/PhutilOAuthAuthAdapter.php', 'PhutilOnDiskKeyValueCache' => 'cache/PhutilOnDiskKeyValueCache.php', 'PhutilOpaqueEnvelope' => 'error/PhutilOpaqueEnvelope.php', 'PhutilOpaqueEnvelopeKey' => 'error/PhutilOpaqueEnvelopeKey.php', 'PhutilOpaqueEnvelopeTestCase' => 'error/__tests__/PhutilOpaqueEnvelopeTestCase.php', 'PhutilPHPCodeSnippetContextFreeGrammar' => 'grammar/code/PhutilPHPCodeSnippetContextFreeGrammar.php', 'PhutilPHPFragmentLexer' => 'lexer/PhutilPHPFragmentLexer.php', 'PhutilPHPFragmentLexerHighlighterTestCase' => 'markup/syntax/highlighter/__tests__/PhutilPHPFragmentLexerHighlighterTestCase.php', 'PhutilPHPFragmentLexerTestCase' => 'lexer/__tests__/PhutilPHPFragmentLexerTestCase.php', 'PhutilPHPObjectProtocolChannel' => 'channel/PhutilPHPObjectProtocolChannel.php', 'PhutilPHPObjectProtocolChannelTestCase' => 'channel/__tests__/PhutilPHPObjectProtocolChannelTestCase.php', 'PhutilParserGenerator' => 'parser/PhutilParserGenerator.php', 'PhutilParserGeneratorException' => 'parser/generator/exception/PhutilParserGeneratorException.php', 'PhutilParserGeneratorTestCase' => 'parser/__tests__/PhutilParserGeneratorTestCase.php', 'PhutilPayPalAPIFuture' => 'future/paypal/PhutilPayPalAPIFuture.php', 'PhutilPerson' => 'internationalization/PhutilPerson.php', 'PhutilPersonTest' => 'internationalization/__tests__/PhutilPersonTest.php', 'PhutilPhabricatorAuthAdapter' => 'auth/PhutilPhabricatorAuthAdapter.php', 'PhutilPhtTestCase' => 'internationalization/__tests__/PhutilPhtTestCase.php', 'PhutilPirateEnglishLocale' => 'internationalization/locales/PhutilPirateEnglishLocale.php', 'PhutilPortugueseBrazilLocale' => 'internationalization/locales/PhutilPortugueseBrazilLocale.php', 'PhutilPortuguesePortugalLocale' => 'internationalization/locales/PhutilPortuguesePortugalLocale.php', 'PhutilPregsprintfTestCase' => 'xsprintf/__tests__/PhutilPregsprintfTestCase.php', 'PhutilProcessGroupDaemon' => 'daemon/torture/PhutilProcessGroupDaemon.php', 'PhutilProseDiff' => 'utils/PhutilProseDiff.php', 'PhutilProseDiffTestCase' => 'utils/__tests__/PhutilProseDiffTestCase.php', 'PhutilProseDifferenceEngine' => 'utils/PhutilProseDifferenceEngine.php', 'PhutilProtocolChannel' => 'channel/PhutilProtocolChannel.php', 'PhutilProxyException' => 'error/PhutilProxyException.php', 'PhutilProxyIterator' => 'utils/PhutilProxyIterator.php', 'PhutilPygmentizeBinaryAnalyzer' => 'filesystem/binary/PhutilPygmentizeBinaryAnalyzer.php', 'PhutilPygmentizeParser' => 'parser/PhutilPygmentizeParser.php', 'PhutilPygmentizeParserTestCase' => 'parser/__tests__/PhutilPygmentizeParserTestCase.php', 'PhutilPygmentsSyntaxHighlighter' => 'markup/syntax/highlighter/PhutilPygmentsSyntaxHighlighter.php', 'PhutilPythonFragmentLexer' => 'lexer/PhutilPythonFragmentLexer.php', 'PhutilQsprintfInterface' => 'xsprintf/PhutilQsprintfInterface.php', 'PhutilQueryStringParser' => 'parser/PhutilQueryStringParser.php', 'PhutilQueryStringParserTestCase' => 'parser/__tests__/PhutilQueryStringParserTestCase.php', 'PhutilRainbowSyntaxHighlighter' => 'markup/syntax/highlighter/PhutilRainbowSyntaxHighlighter.php', 'PhutilRawEnglishLocale' => 'internationalization/locales/PhutilRawEnglishLocale.php', 'PhutilReadableSerializer' => 'readableserializer/PhutilReadableSerializer.php', 'PhutilReadableSerializerTestCase' => 'readableserializer/__tests__/PhutilReadableSerializerTestCase.php', 'PhutilRealNameContextFreeGrammar' => 'grammar/PhutilRealNameContextFreeGrammar.php', 'PhutilRemarkupBlockInterpreter' => 'markup/engine/remarkup/blockrule/PhutilRemarkupBlockInterpreter.php', 'PhutilRemarkupBlockRule' => 'markup/engine/remarkup/blockrule/PhutilRemarkupBlockRule.php', 'PhutilRemarkupBlockStorage' => 'markup/engine/remarkup/PhutilRemarkupBlockStorage.php', 'PhutilRemarkupBoldRule' => 'markup/engine/remarkup/markuprule/PhutilRemarkupBoldRule.php', 'PhutilRemarkupCodeBlockRule' => 'markup/engine/remarkup/blockrule/PhutilRemarkupCodeBlockRule.php', 'PhutilRemarkupDefaultBlockRule' => 'markup/engine/remarkup/blockrule/PhutilRemarkupDefaultBlockRule.php', 'PhutilRemarkupDelRule' => 'markup/engine/remarkup/markuprule/PhutilRemarkupDelRule.php', 'PhutilRemarkupDocumentLinkRule' => 'markup/engine/remarkup/markuprule/PhutilRemarkupDocumentLinkRule.php', 'PhutilRemarkupEngine' => 'markup/engine/PhutilRemarkupEngine.php', 'PhutilRemarkupEngineTestCase' => 'markup/engine/__tests__/PhutilRemarkupEngineTestCase.php', 'PhutilRemarkupEscapeRemarkupRule' => 'markup/engine/remarkup/markuprule/PhutilRemarkupEscapeRemarkupRule.php', 'PhutilRemarkupHeaderBlockRule' => 'markup/engine/remarkup/blockrule/PhutilRemarkupHeaderBlockRule.php', 'PhutilRemarkupHighlightRule' => 'markup/engine/remarkup/markuprule/PhutilRemarkupHighlightRule.php', 'PhutilRemarkupHorizontalRuleBlockRule' => 'markup/engine/remarkup/blockrule/PhutilRemarkupHorizontalRuleBlockRule.php', 'PhutilRemarkupHyperlinkRule' => 'markup/engine/remarkup/markuprule/PhutilRemarkupHyperlinkRule.php', 'PhutilRemarkupInlineBlockRule' => 'markup/engine/remarkup/blockrule/PhutilRemarkupInlineBlockRule.php', 'PhutilRemarkupInterpreterBlockRule' => 'markup/engine/remarkup/blockrule/PhutilRemarkupInterpreterBlockRule.php', 'PhutilRemarkupItalicRule' => 'markup/engine/remarkup/markuprule/PhutilRemarkupItalicRule.php', 'PhutilRemarkupLinebreaksRule' => 'markup/engine/remarkup/markuprule/PhutilRemarkupLinebreaksRule.php', 'PhutilRemarkupListBlockRule' => 'markup/engine/remarkup/blockrule/PhutilRemarkupListBlockRule.php', 'PhutilRemarkupLiteralBlockRule' => 'markup/engine/remarkup/blockrule/PhutilRemarkupLiteralBlockRule.php', 'PhutilRemarkupMonospaceRule' => 'markup/engine/remarkup/markuprule/PhutilRemarkupMonospaceRule.php', 'PhutilRemarkupNoteBlockRule' => 'markup/engine/remarkup/blockrule/PhutilRemarkupNoteBlockRule.php', 'PhutilRemarkupQuotesBlockRule' => 'markup/engine/remarkup/blockrule/PhutilRemarkupQuotesBlockRule.php', 'PhutilRemarkupReplyBlockRule' => 'markup/engine/remarkup/blockrule/PhutilRemarkupReplyBlockRule.php', 'PhutilRemarkupRule' => 'markup/engine/remarkup/markuprule/PhutilRemarkupRule.php', 'PhutilRemarkupSimpleTableBlockRule' => 'markup/engine/remarkup/blockrule/PhutilRemarkupSimpleTableBlockRule.php', 'PhutilRemarkupTableBlockRule' => 'markup/engine/remarkup/blockrule/PhutilRemarkupTableBlockRule.php', 'PhutilRemarkupTestInterpreterRule' => 'markup/engine/remarkup/blockrule/PhutilRemarkupTestInterpreterRule.php', 'PhutilRemarkupUnderlineRule' => 'markup/engine/remarkup/markuprule/PhutilRemarkupUnderlineRule.php', 'PhutilRope' => 'utils/PhutilRope.php', 'PhutilRopeTestCase' => 'utils/__tests__/PhutilRopeTestCase.php', 'PhutilSafeHTML' => 'markup/PhutilSafeHTML.php', 'PhutilSafeHTMLProducerInterface' => 'markup/PhutilSafeHTMLProducerInterface.php', 'PhutilSafeHTMLTestCase' => 'markup/__tests__/PhutilSafeHTMLTestCase.php', 'PhutilSaturateStdoutDaemon' => 'daemon/torture/PhutilSaturateStdoutDaemon.php', 'PhutilSearchQueryCompiler' => 'search/PhutilSearchQueryCompiler.php', 'PhutilSearchQueryCompilerSyntaxException' => 'search/PhutilSearchQueryCompilerSyntaxException.php', 'PhutilSearchQueryCompilerTestCase' => 'search/__tests__/PhutilSearchQueryCompilerTestCase.php', 'PhutilSearchQueryToken' => 'search/PhutilSearchQueryToken.php', 'PhutilSearchStemmer' => 'search/PhutilSearchStemmer.php', 'PhutilSearchStemmerTestCase' => 'search/__tests__/PhutilSearchStemmerTestCase.php', 'PhutilServiceProfiler' => 'serviceprofiler/PhutilServiceProfiler.php', 'PhutilShellLexer' => 'lexer/PhutilShellLexer.php', 'PhutilShellLexerTestCase' => 'lexer/__tests__/PhutilShellLexerTestCase.php', 'PhutilSignalHandler' => 'future/exec/PhutilSignalHandler.php', 'PhutilSignalRouter' => 'future/exec/PhutilSignalRouter.php', 'PhutilSimpleOptions' => 'parser/PhutilSimpleOptions.php', 'PhutilSimpleOptionsLexer' => 'lexer/PhutilSimpleOptionsLexer.php', 'PhutilSimpleOptionsLexerTestCase' => 'lexer/__tests__/PhutilSimpleOptionsLexerTestCase.php', 'PhutilSimpleOptionsTestCase' => 'parser/__tests__/PhutilSimpleOptionsTestCase.php', 'PhutilSimplifiedChineseLocale' => 'internationalization/locales/PhutilSimplifiedChineseLocale.php', 'PhutilSlackAuthAdapter' => 'auth/PhutilSlackAuthAdapter.php', 'PhutilSlackFuture' => 'future/slack/PhutilSlackFuture.php', 'PhutilSocketChannel' => 'channel/PhutilSocketChannel.php', 'PhutilSortVector' => 'utils/PhutilSortVector.php', 'PhutilSpanishSpainLocale' => 'internationalization/locales/PhutilSpanishSpainLocale.php', 'PhutilSprite' => 'sprites/PhutilSprite.php', 'PhutilSpriteSheet' => 'sprites/PhutilSpriteSheet.php', 'PhutilStreamIterator' => 'utils/PhutilStreamIterator.php', 'PhutilSubversionBinaryAnalyzer' => 'filesystem/binary/PhutilSubversionBinaryAnalyzer.php', 'PhutilSymbolLoader' => 'symbols/PhutilSymbolLoader.php', 'PhutilSyntaxHighlighter' => 'markup/syntax/highlighter/PhutilSyntaxHighlighter.php', 'PhutilSyntaxHighlighterEngine' => 'markup/syntax/engine/PhutilSyntaxHighlighterEngine.php', 'PhutilSyntaxHighlighterException' => 'markup/syntax/highlighter/PhutilSyntaxHighlighterException.php', 'PhutilSystem' => 'utils/PhutilSystem.php', 'PhutilSystemTestCase' => 'utils/__tests__/PhutilSystemTestCase.php', 'PhutilTerminalString' => 'xsprintf/PhutilTerminalString.php', 'PhutilTestPhobject' => 'object/__tests__/PhutilTestPhobject.php', 'PhutilTortureTestDaemon' => 'daemon/torture/PhutilTortureTestDaemon.php', 'PhutilTraditionalChineseLocale' => 'internationalization/locales/PhutilTraditionalChineseLocale.php', 'PhutilTranslation' => 'internationalization/PhutilTranslation.php', 'PhutilTranslationTestCase' => 'internationalization/__tests__/PhutilTranslationTestCase.php', 'PhutilTranslator' => 'internationalization/PhutilTranslator.php', 'PhutilTranslatorTestCase' => 'internationalization/__tests__/PhutilTranslatorTestCase.php', 'PhutilTsprintfTestCase' => 'xsprintf/__tests__/PhutilTsprintfTestCase.php', 'PhutilTwitchAuthAdapter' => 'auth/PhutilTwitchAuthAdapter.php', 'PhutilTwitchFuture' => 'future/twitch/PhutilTwitchFuture.php', 'PhutilTwitterAuthAdapter' => 'auth/PhutilTwitterAuthAdapter.php', 'PhutilTypeCheckException' => 'parser/exception/PhutilTypeCheckException.php', 'PhutilTypeExtraParametersException' => 'parser/exception/PhutilTypeExtraParametersException.php', 'PhutilTypeLexer' => 'lexer/PhutilTypeLexer.php', 'PhutilTypeMissingParametersException' => 'parser/exception/PhutilTypeMissingParametersException.php', 'PhutilTypeSpec' => 'parser/PhutilTypeSpec.php', 'PhutilTypeSpecTestCase' => 'parser/__tests__/PhutilTypeSpecTestCase.php', 'PhutilURI' => 'parser/PhutilURI.php', 'PhutilURITestCase' => 'parser/__tests__/PhutilURITestCase.php', 'PhutilUSEnglishLocale' => 'internationalization/locales/PhutilUSEnglishLocale.php', 'PhutilUTF8StringTruncator' => 'utils/PhutilUTF8StringTruncator.php', 'PhutilUTF8TestCase' => 'utils/__tests__/PhutilUTF8TestCase.php', 'PhutilUnknownSymbolParserGeneratorException' => 'parser/generator/exception/PhutilUnknownSymbolParserGeneratorException.php', 'PhutilUnreachableRuleParserGeneratorException' => 'parser/generator/exception/PhutilUnreachableRuleParserGeneratorException.php', 'PhutilUnreachableTerminalParserGeneratorException' => 'parser/generator/exception/PhutilUnreachableTerminalParserGeneratorException.php', 'PhutilUrisprintfTestCase' => 'xsprintf/__tests__/PhutilUrisprintfTestCase.php', 'PhutilUtilsTestCase' => 'utils/__tests__/PhutilUtilsTestCase.php', 'PhutilVeryWowEnglishLocale' => 'internationalization/locales/PhutilVeryWowEnglishLocale.php', 'PhutilWordPressAuthAdapter' => 'auth/PhutilWordPressAuthAdapter.php', 'PhutilWordPressFuture' => 'future/wordpress/PhutilWordPressFuture.php', 'PhutilXHPASTBinary' => 'parser/xhpast/bin/PhutilXHPASTBinary.php', 'PhutilXHPASTSyntaxHighlighter' => 'markup/syntax/highlighter/PhutilXHPASTSyntaxHighlighter.php', 'PhutilXHPASTSyntaxHighlighterFuture' => 'markup/syntax/highlighter/xhpast/PhutilXHPASTSyntaxHighlighterFuture.php', 'PhutilXHPASTSyntaxHighlighterTestCase' => 'markup/syntax/highlighter/__tests__/PhutilXHPASTSyntaxHighlighterTestCase.php', 'QueryFuture' => 'future/query/QueryFuture.php', 'TempFile' => 'filesystem/TempFile.php', 'TestAbstractDirectedGraph' => 'utils/__tests__/TestAbstractDirectedGraph.php', 'XHPASTNode' => 'parser/xhpast/api/XHPASTNode.php', 'XHPASTNodeTestCase' => 'parser/xhpast/api/__tests__/XHPASTNodeTestCase.php', 'XHPASTSyntaxErrorException' => 'parser/xhpast/api/XHPASTSyntaxErrorException.php', 'XHPASTToken' => 'parser/xhpast/api/XHPASTToken.php', 'XHPASTTree' => 'parser/xhpast/api/XHPASTTree.php', 'XHPASTTreeTestCase' => 'parser/xhpast/api/__tests__/XHPASTTreeTestCase.php', 'XsprintfUnknownConversionException' => 'xsprintf/exception/XsprintfUnknownConversionException.php', ), 'function' => array( 'array_fuse' => 'utils/utils.php', 'array_interleave' => 'utils/utils.php', 'array_mergev' => 'utils/utils.php', 'array_select_keys' => 'utils/utils.php', 'assert_instances_of' => 'utils/utils.php', 'assert_stringlike' => 'utils/utils.php', 'coalesce' => 'utils/utils.php', 'csprintf' => 'xsprintf/csprintf.php', 'exec_manual' => 'future/exec/execx.php', 'execx' => 'future/exec/execx.php', 'head' => 'utils/utils.php', 'head_key' => 'utils/utils.php', 'hgsprintf' => 'xsprintf/hgsprintf.php', 'hsprintf' => 'markup/render.php', 'id' => 'utils/utils.php', 'idx' => 'utils/utils.php', 'idxv' => 'utils/utils.php', 'ifilter' => 'utils/utils.php', 'igroup' => 'utils/utils.php', 'ipull' => 'utils/utils.php', 'isort' => 'utils/utils.php', 'jsprintf' => 'xsprintf/jsprintf.php', 'last' => 'utils/utils.php', 'last_key' => 'utils/utils.php', 'ldap_sprintf' => 'xsprintf/ldapsprintf.php', 'mfilter' => 'utils/utils.php', 'mgroup' => 'utils/utils.php', 'mpull' => 'utils/utils.php', 'msort' => 'utils/utils.php', 'msortv' => 'utils/utils.php', 'newv' => 'utils/utils.php', 'nonempty' => 'utils/utils.php', 'phlog' => 'error/phlog.php', 'pht' => 'internationalization/pht.php', 'phutil_censor_credentials' => 'utils/utils.php', 'phutil_console_confirm' => 'console/format.php', 'phutil_console_format' => 'console/format.php', 'phutil_console_get_terminal_width' => 'console/format.php', 'phutil_console_prompt' => 'console/format.php', 'phutil_console_require_tty' => 'console/format.php', 'phutil_console_select' => 'console/format.php', 'phutil_console_wrap' => 'console/format.php', 'phutil_count' => 'internationalization/pht.php', 'phutil_date_format' => 'utils/viewutils.php', 'phutil_deprecated' => 'moduleutils/moduleutils.php', 'phutil_error_listener_example' => 'error/phlog.php', 'phutil_escape_html' => 'markup/render.php', 'phutil_escape_html_newlines' => 'markup/render.php', 'phutil_escape_uri' => 'markup/render.php', 'phutil_escape_uri_path_component' => 'markup/render.php', 'phutil_fnmatch' => 'utils/utils.php', 'phutil_format_bytes' => 'utils/viewutils.php', 'phutil_format_relative_time' => 'utils/viewutils.php', 'phutil_format_relative_time_detailed' => 'utils/viewutils.php', 'phutil_format_units_generic' => 'utils/viewutils.php', 'phutil_fwrite_nonblocking_stream' => 'utils/utils.php', 'phutil_get_current_library_name' => 'moduleutils/moduleutils.php', 'phutil_get_library_name_for_root' => 'moduleutils/moduleutils.php', 'phutil_get_library_root' => 'moduleutils/moduleutils.php', 'phutil_get_library_root_for_path' => 'moduleutils/moduleutils.php', 'phutil_get_signal_name' => 'future/exec/execx.php', 'phutil_hashes_are_identical' => 'utils/utils.php', 'phutil_implode_html' => 'markup/render.php', 'phutil_ini_decode' => 'utils/utils.php', 'phutil_is_hiphop_runtime' => 'utils/utils.php', 'phutil_is_utf8' => 'utils/utf8.php', 'phutil_is_utf8_slowly' => 'utils/utf8.php', 'phutil_is_utf8_with_only_bmp_characters' => 'utils/utf8.php', 'phutil_is_windows' => 'utils/utils.php', 'phutil_json_decode' => 'utils/utils.php', 'phutil_json_encode' => 'utils/utils.php', 'phutil_load_library' => 'moduleutils/core.php', 'phutil_loggable_string' => 'utils/utils.php', 'phutil_parse_bytes' => 'utils/viewutils.php', 'phutil_passthru' => 'future/exec/execx.php', 'phutil_person' => 'internationalization/pht.php', 'phutil_register_library' => 'moduleutils/core.php', 'phutil_register_library_map' => 'moduleutils/core.php', 'phutil_safe_html' => 'markup/render.php', 'phutil_split_lines' => 'utils/utils.php', 'phutil_tag' => 'markup/render.php', 'phutil_tag_div' => 'markup/render.php', 'phutil_unescape_uri_path_component' => 'markup/render.php', 'phutil_units' => 'utils/utils.php', 'phutil_utf8_console_strlen' => 'utils/utf8.php', 'phutil_utf8_convert' => 'utils/utf8.php', 'phutil_utf8_encode_codepoint' => 'utils/utf8.php', 'phutil_utf8_hard_wrap' => 'utils/utf8.php', 'phutil_utf8_hard_wrap_html' => 'utils/utf8.php', + 'phutil_utf8_is_cjk' => 'utils/utf8.php', 'phutil_utf8_is_combining_character' => 'utils/utf8.php', 'phutil_utf8_strlen' => 'utils/utf8.php', 'phutil_utf8_strtolower' => 'utils/utf8.php', 'phutil_utf8_strtoupper' => 'utils/utf8.php', 'phutil_utf8_strtr' => 'utils/utf8.php', 'phutil_utf8_ucwords' => 'utils/utf8.php', 'phutil_utf8ize' => 'utils/utf8.php', 'phutil_utf8v' => 'utils/utf8.php', 'phutil_utf8v_codepoints' => 'utils/utf8.php', 'phutil_utf8v_combine_characters' => 'utils/utf8.php', 'phutil_utf8v_combined' => 'utils/utf8.php', 'phutil_validate_json' => 'utils/utils.php', 'phutil_var_export' => 'utils/utils.php', 'ppull' => 'utils/utils.php', 'pregsprintf' => 'xsprintf/pregsprintf.php', 'qsprintf' => 'xsprintf/qsprintf.php', 'qsprintf_check_scalar_type' => 'xsprintf/qsprintf.php', 'qsprintf_check_type' => 'xsprintf/qsprintf.php', 'queryfx' => 'xsprintf/queryfx.php', 'queryfx_all' => 'xsprintf/queryfx.php', 'queryfx_one' => 'xsprintf/queryfx.php', 'tsprintf' => 'xsprintf/tsprintf.php', 'urisprintf' => 'xsprintf/urisprintf.php', 'vcsprintf' => 'xsprintf/csprintf.php', 'vjsprintf' => 'xsprintf/jsprintf.php', 'vqsprintf' => 'xsprintf/qsprintf.php', 'vurisprintf' => 'xsprintf/urisprintf.php', 'xhp_parser_node_constants' => 'parser/xhpast/parser_nodes.php', 'xhpast_parser_token_constants' => 'parser/xhpast/parser_tokens.php', 'xsprintf' => 'xsprintf/xsprintf.php', 'xsprintf_callback_example' => 'xsprintf/xsprintf.php', 'xsprintf_command' => 'xsprintf/csprintf.php', 'xsprintf_javascript' => 'xsprintf/jsprintf.php', 'xsprintf_ldap' => 'xsprintf/ldapsprintf.php', 'xsprintf_mercurial' => 'xsprintf/hgsprintf.php', 'xsprintf_query' => 'xsprintf/qsprintf.php', 'xsprintf_regex' => 'xsprintf/pregsprintf.php', 'xsprintf_terminal' => 'xsprintf/tsprintf.php', 'xsprintf_uri' => 'xsprintf/urisprintf.php', ), 'xmap' => array( 'AASTNode' => 'Phobject', 'AASTNodeList' => array( 'Phobject', 'Countable', 'Iterator', ), 'AASTToken' => 'Phobject', 'AASTTree' => 'Phobject', 'AbstractDirectedGraph' => 'Phobject', 'AbstractDirectedGraphTestCase' => 'PhutilTestCase', 'AphrontAccessDeniedQueryException' => 'AphrontQueryException', 'AphrontBaseMySQLDatabaseConnection' => 'AphrontDatabaseConnection', 'AphrontCharacterSetQueryException' => 'AphrontQueryException', 'AphrontConnectionLostQueryException' => 'AphrontRecoverableQueryException', 'AphrontConnectionQueryException' => 'AphrontQueryException', 'AphrontCountQueryException' => 'AphrontQueryException', 'AphrontDatabaseConnection' => array( 'Phobject', 'PhutilQsprintfInterface', ), 'AphrontDatabaseTransactionState' => 'Phobject', 'AphrontDeadlockQueryException' => 'AphrontRecoverableQueryException', 'AphrontDuplicateKeyQueryException' => 'AphrontQueryException', + 'AphrontHTTPHeaderParser' => 'Phobject', + 'AphrontHTTPHeaderParserTestCase' => 'PhutilTestCase', 'AphrontInvalidCredentialsQueryException' => 'AphrontQueryException', 'AphrontIsolatedDatabaseConnection' => 'AphrontDatabaseConnection', 'AphrontLockTimeoutQueryException' => 'AphrontRecoverableQueryException', + 'AphrontMultipartParser' => 'Phobject', + 'AphrontMultipartParserTestCase' => 'PhutilTestCase', + 'AphrontMultipartPart' => 'Phobject', 'AphrontMySQLDatabaseConnection' => 'AphrontBaseMySQLDatabaseConnection', 'AphrontMySQLiDatabaseConnection' => 'AphrontBaseMySQLDatabaseConnection', 'AphrontNotSupportedQueryException' => 'AphrontQueryException', 'AphrontObjectMissingQueryException' => 'AphrontQueryException', 'AphrontParameterQueryException' => 'AphrontQueryException', 'AphrontQueryException' => 'Exception', 'AphrontQueryTimeoutQueryException' => 'AphrontRecoverableQueryException', 'AphrontRecoverableQueryException' => 'AphrontQueryException', 'AphrontRequestStream' => 'Phobject', 'AphrontSchemaQueryException' => 'AphrontQueryException', 'AphrontScopedUnguardedWriteCapability' => 'Phobject', 'AphrontWriteGuard' => 'Phobject', 'BaseHTTPFuture' => 'Future', 'CaseInsensitiveArray' => 'PhutilArray', 'CaseInsensitiveArrayTestCase' => 'PhutilTestCase', 'CommandException' => 'Exception', 'ConduitClient' => 'Phobject', 'ConduitClientException' => 'Exception', 'ConduitClientTestCase' => 'PhutilTestCase', 'ConduitFuture' => 'FutureProxy', 'ExecFuture' => 'PhutilExecutableFuture', 'ExecFutureTestCase' => 'PhutilTestCase', 'ExecPassthruTestCase' => 'PhutilTestCase', 'FileFinder' => 'Phobject', 'FileFinderTestCase' => 'PhutilTestCase', 'FileList' => 'Phobject', 'Filesystem' => 'Phobject', 'FilesystemException' => 'Exception', 'FilesystemTestCase' => 'PhutilTestCase', 'Future' => 'Phobject', 'FutureIterator' => array( 'Phobject', 'Iterator', ), 'FutureIteratorTestCase' => 'PhutilTestCase', 'FutureProxy' => 'Future', 'HTTPFuture' => 'BaseHTTPFuture', 'HTTPFutureCURLResponseStatus' => 'HTTPFutureResponseStatus', 'HTTPFutureCertificateResponseStatus' => 'HTTPFutureResponseStatus', 'HTTPFutureHTTPResponseStatus' => 'HTTPFutureResponseStatus', 'HTTPFutureParseResponseStatus' => 'HTTPFutureResponseStatus', 'HTTPFutureResponseStatus' => 'Exception', 'HTTPFutureTransportResponseStatus' => 'HTTPFutureResponseStatus', 'HTTPSFuture' => 'BaseHTTPFuture', 'ImmediateFuture' => 'Future', 'LibphutilUSEnglishTranslation' => 'PhutilTranslation', 'LinesOfALarge' => array( 'Phobject', 'Iterator', ), 'LinesOfALargeExecFuture' => 'LinesOfALarge', 'LinesOfALargeExecFutureTestCase' => 'PhutilTestCase', 'LinesOfALargeFile' => 'LinesOfALarge', 'LinesOfALargeFileTestCase' => 'PhutilTestCase', 'MFilterTestHelper' => 'Phobject', 'PHPASTParserTestCase' => 'PhutilTestCase', 'PhageAction' => 'Phobject', 'PhageAgentAction' => 'PhageAction', 'PhageAgentBootloader' => 'Phobject', 'PhageAgentTestCase' => 'PhutilTestCase', 'PhageExecuteAction' => 'PhageAction', 'PhageLocalAction' => 'PhageAgentAction', 'PhagePHPAgent' => 'Phobject', 'PhagePHPAgentBootloader' => 'PhageAgentBootloader', 'PhagePlanAction' => 'PhageAction', 'Phobject' => 'Iterator', 'PhobjectTestCase' => 'PhutilTestCase', 'PhutilAPCKeyValueCache' => 'PhutilKeyValueCache', 'PhutilAWSCloudFormationFuture' => 'PhutilAWSFuture', 'PhutilAWSEC2Future' => 'PhutilAWSFuture', 'PhutilAWSException' => 'Exception', 'PhutilAWSFuture' => 'FutureProxy', 'PhutilAWSManagementWorkflow' => 'PhutilArgumentWorkflow', 'PhutilAWSS3DeleteManagementWorkflow' => 'PhutilAWSS3ManagementWorkflow', 'PhutilAWSS3Future' => 'PhutilAWSFuture', 'PhutilAWSS3GetManagementWorkflow' => 'PhutilAWSS3ManagementWorkflow', 'PhutilAWSS3ManagementWorkflow' => 'PhutilAWSManagementWorkflow', 'PhutilAWSS3PutManagementWorkflow' => 'PhutilAWSS3ManagementWorkflow', 'PhutilAWSv4Signature' => 'Phobject', 'PhutilAWSv4SignatureTestCase' => 'PhutilTestCase', 'PhutilAggregateException' => 'Exception', 'PhutilAllCapsEnglishLocale' => 'PhutilLocale', 'PhutilAmazonAuthAdapter' => 'PhutilOAuthAuthAdapter', 'PhutilArgumentParser' => 'Phobject', 'PhutilArgumentParserException' => 'Exception', 'PhutilArgumentParserTestCase' => 'PhutilTestCase', 'PhutilArgumentSpecification' => 'Phobject', 'PhutilArgumentSpecificationException' => 'PhutilArgumentParserException', 'PhutilArgumentSpecificationTestCase' => 'PhutilTestCase', 'PhutilArgumentSpellingCorrector' => 'Phobject', 'PhutilArgumentSpellingCorrectorTestCase' => 'PhutilTestCase', 'PhutilArgumentUsageException' => 'PhutilArgumentParserException', 'PhutilArgumentWorkflow' => 'Phobject', 'PhutilArray' => array( 'Phobject', 'Countable', 'ArrayAccess', 'Iterator', ), 'PhutilArrayTestCase' => 'PhutilTestCase', 'PhutilArrayWithDefaultValue' => 'PhutilArray', 'PhutilAsanaAuthAdapter' => 'PhutilOAuthAuthAdapter', 'PhutilAsanaFuture' => 'FutureProxy', 'PhutilAuthAdapter' => 'Phobject', 'PhutilAuthConfigurationException' => 'PhutilAuthException', 'PhutilAuthCredentialException' => 'PhutilAuthException', 'PhutilAuthException' => 'Exception', 'PhutilAuthUserAbortedException' => 'PhutilAuthException', 'PhutilBacktraceSignalHandler' => 'PhutilSignalHandler', 'PhutilBallOfPHP' => 'Phobject', 'PhutilBinaryAnalyzer' => 'Phobject', 'PhutilBinaryAnalyzerTestCase' => 'PhutilTestCase', 'PhutilBitbucketAuthAdapter' => 'PhutilOAuth1AuthAdapter', 'PhutilBootloaderException' => 'Exception', 'PhutilBritishEnglishLocale' => 'PhutilLocale', 'PhutilBufferedIterator' => array( 'Phobject', 'Iterator', ), 'PhutilBufferedIteratorTestCase' => 'PhutilTestCase', 'PhutilBugtraqParser' => 'Phobject', 'PhutilBugtraqParserTestCase' => 'PhutilTestCase', 'PhutilCIDRBlock' => 'Phobject', 'PhutilCIDRList' => 'Phobject', 'PhutilCLikeCodeSnippetContextFreeGrammar' => 'PhutilCodeSnippetContextFreeGrammar', 'PhutilCalendarAbsoluteDateTime' => 'PhutilCalendarDateTime', 'PhutilCalendarContainerNode' => 'PhutilCalendarNode', 'PhutilCalendarDateTime' => 'Phobject', 'PhutilCalendarDateTimeTestCase' => 'PhutilTestCase', 'PhutilCalendarDocumentNode' => 'PhutilCalendarContainerNode', 'PhutilCalendarDuration' => 'Phobject', 'PhutilCalendarEventNode' => 'PhutilCalendarContainerNode', 'PhutilCalendarNode' => 'Phobject', 'PhutilCalendarProxyDateTime' => 'PhutilCalendarDateTime', 'PhutilCalendarRawNode' => 'PhutilCalendarContainerNode', 'PhutilCalendarRecurrenceList' => 'PhutilCalendarRecurrenceSource', 'PhutilCalendarRecurrenceRule' => 'PhutilCalendarRecurrenceSource', 'PhutilCalendarRecurrenceRuleTestCase' => 'PhutilTestCase', 'PhutilCalendarRecurrenceSet' => 'Phobject', 'PhutilCalendarRecurrenceSource' => 'Phobject', 'PhutilCalendarRecurrenceTestCase' => 'PhutilTestCase', 'PhutilCalendarRelativeDateTime' => 'PhutilCalendarProxyDateTime', 'PhutilCalendarRootNode' => 'PhutilCalendarContainerNode', 'PhutilCalendarUserNode' => 'PhutilCalendarNode', 'PhutilCallbackFilterIterator' => 'FilterIterator', 'PhutilCallbackSignalHandler' => 'PhutilSignalHandler', 'PhutilChannel' => 'Phobject', 'PhutilChannelChannel' => 'PhutilChannel', 'PhutilChannelTestCase' => 'PhutilTestCase', 'PhutilChunkedIterator' => array( 'Phobject', 'Iterator', ), 'PhutilChunkedIteratorTestCase' => 'PhutilTestCase', 'PhutilClassMapQuery' => 'Phobject', 'PhutilCodeSnippetContextFreeGrammar' => 'PhutilContextFreeGrammar', 'PhutilCommandString' => 'Phobject', 'PhutilConsole' => 'Phobject', 'PhutilConsoleBlock' => 'PhutilConsoleView', + 'PhutilConsoleError' => 'PhutilConsoleLogLine', 'PhutilConsoleFormatter' => 'Phobject', + 'PhutilConsoleInfo' => 'PhutilConsoleLogLine', 'PhutilConsoleList' => 'PhutilConsoleView', + 'PhutilConsoleLogLine' => 'PhutilConsoleView', 'PhutilConsoleMessage' => 'Phobject', + 'PhutilConsoleMetrics' => 'Phobject', + 'PhutilConsoleMetricsSignalHandler' => 'PhutilSignalHandler', 'PhutilConsoleProgressBar' => 'Phobject', 'PhutilConsoleServer' => 'Phobject', 'PhutilConsoleServerChannel' => 'PhutilChannelChannel', + 'PhutilConsoleSkip' => 'PhutilConsoleLogLine', 'PhutilConsoleStdinNotInteractiveException' => 'Exception', 'PhutilConsoleSyntaxHighlighter' => 'Phobject', 'PhutilConsoleTable' => 'PhutilConsoleView', 'PhutilConsoleView' => 'Phobject', + 'PhutilConsoleWarning' => 'PhutilConsoleLogLine', 'PhutilConsoleWrapTestCase' => 'PhutilTestCase', 'PhutilContextFreeGrammar' => 'Phobject', 'PhutilCowsay' => 'Phobject', 'PhutilCowsayTestCase' => 'PhutilTestCase', 'PhutilCsprintfTestCase' => 'PhutilTestCase', 'PhutilCzechLocale' => 'PhutilLocale', 'PhutilDaemon' => 'Phobject', 'PhutilDaemonHandle' => 'Phobject', 'PhutilDaemonOverseer' => 'Phobject', 'PhutilDaemonOverseerModule' => 'Phobject', 'PhutilDaemonPool' => 'Phobject', 'PhutilDefaultSyntaxHighlighter' => 'Phobject', 'PhutilDefaultSyntaxHighlighterEngine' => 'PhutilSyntaxHighlighterEngine', 'PhutilDefaultSyntaxHighlighterEnginePygmentsFuture' => 'FutureProxy', 'PhutilDefaultSyntaxHighlighterEngineTestCase' => 'PhutilTestCase', 'PhutilDeferredLog' => 'Phobject', 'PhutilDeferredLogTestCase' => 'PhutilTestCase', 'PhutilDiffBinaryAnalyzer' => 'PhutilBinaryAnalyzer', 'PhutilDirectedScalarGraph' => 'AbstractDirectedGraph', 'PhutilDirectoryFixture' => 'Phobject', 'PhutilDirectoryKeyValueCache' => 'PhutilKeyValueCache', 'PhutilDisqusAuthAdapter' => 'PhutilOAuthAuthAdapter', 'PhutilDivinerSyntaxHighlighter' => 'Phobject', 'PhutilDocblockParser' => 'Phobject', 'PhutilDocblockParserTestCase' => 'PhutilTestCase', 'PhutilEditDistanceMatrix' => 'Phobject', 'PhutilEditDistanceMatrixTestCase' => 'PhutilTestCase', 'PhutilEditorConfig' => 'Phobject', 'PhutilEditorConfigTestCase' => 'PhutilTestCase', 'PhutilEmailAddress' => 'Phobject', 'PhutilEmailAddressTestCase' => 'PhutilTestCase', 'PhutilEmojiLocale' => 'PhutilLocale', 'PhutilEmptyAuthAdapter' => 'PhutilAuthAdapter', 'PhutilEnglishCanadaLocale' => 'PhutilLocale', 'PhutilErrorHandler' => 'Phobject', 'PhutilErrorHandlerTestCase' => 'PhutilTestCase', 'PhutilErrorTrap' => 'Phobject', 'PhutilEvent' => 'Phobject', 'PhutilEventConstants' => 'Phobject', 'PhutilEventEngine' => 'Phobject', 'PhutilEventListener' => 'Phobject', 'PhutilEventType' => 'PhutilEventConstants', 'PhutilExampleBufferedIterator' => 'PhutilBufferedIterator', 'PhutilExcessiveServiceCallsDaemon' => 'PhutilTortureTestDaemon', 'PhutilExecChannel' => 'PhutilChannel', 'PhutilExecPassthru' => 'PhutilExecutableFuture', 'PhutilExecutableFuture' => 'Future', 'PhutilExecutionEnvironment' => 'Phobject', 'PhutilExtensionsTestCase' => 'PhutilTestCase', 'PhutilFacebookAuthAdapter' => 'PhutilOAuthAuthAdapter', 'PhutilFatalDaemon' => 'PhutilTortureTestDaemon', 'PhutilFileLock' => 'PhutilLock', 'PhutilFileLockTestCase' => 'PhutilTestCase', 'PhutilFileTree' => 'Phobject', 'PhutilFrenchLocale' => 'PhutilLocale', 'PhutilGermanLocale' => 'PhutilLocale', 'PhutilGitBinaryAnalyzer' => 'PhutilBinaryAnalyzer', 'PhutilGitHubAuthAdapter' => 'PhutilOAuthAuthAdapter', 'PhutilGitHubFuture' => 'FutureProxy', 'PhutilGitHubResponse' => 'Phobject', 'PhutilGitURI' => 'Phobject', 'PhutilGitURITestCase' => 'PhutilTestCase', 'PhutilGoogleAuthAdapter' => 'PhutilOAuthAuthAdapter', 'PhutilHTTPEngineExtension' => 'Phobject', 'PhutilHangForeverDaemon' => 'PhutilTortureTestDaemon', 'PhutilHashingIterator' => array( 'PhutilProxyIterator', 'Iterator', ), 'PhutilHashingIteratorTestCase' => 'PhutilTestCase', 'PhutilHelpArgumentWorkflow' => 'PhutilArgumentWorkflow', 'PhutilHgsprintfTestCase' => 'PhutilTestCase', 'PhutilHighIntensityIntervalDaemon' => 'PhutilTortureTestDaemon', 'PhutilICSParser' => 'Phobject', 'PhutilICSParserException' => 'Exception', 'PhutilICSParserTestCase' => 'PhutilTestCase', 'PhutilICSWriter' => 'Phobject', 'PhutilICSWriterTestCase' => 'PhutilTestCase', 'PhutilINIParserException' => 'Exception', 'PhutilIPAddress' => 'Phobject', 'PhutilIPAddressTestCase' => 'PhutilTestCase', 'PhutilIPv4Address' => 'PhutilIPAddress', 'PhutilIPv6Address' => 'PhutilIPAddress', 'PhutilInRequestKeyValueCache' => 'PhutilKeyValueCache', 'PhutilInteractiveEditor' => 'Phobject', 'PhutilInvalidRuleParserGeneratorException' => 'PhutilParserGeneratorException', 'PhutilInvalidStateException' => 'Exception', 'PhutilInvalidStateExceptionTestCase' => 'PhutilTestCase', 'PhutilInvisibleSyntaxHighlighter' => 'Phobject', 'PhutilIrreducibleRuleParserGeneratorException' => 'PhutilParserGeneratorException', 'PhutilJIRAAuthAdapter' => 'PhutilOAuth1AuthAdapter', 'PhutilJSON' => 'Phobject', 'PhutilJSONFragmentLexer' => 'PhutilLexer', 'PhutilJSONFragmentLexerHighlighterTestCase' => 'PhutilTestCase', 'PhutilJSONParser' => 'Phobject', 'PhutilJSONParserException' => 'Exception', 'PhutilJSONParserTestCase' => 'PhutilTestCase', 'PhutilJSONProtocolChannel' => 'PhutilProtocolChannel', 'PhutilJSONProtocolChannelTestCase' => 'PhutilTestCase', 'PhutilJSONTestCase' => 'PhutilTestCase', 'PhutilJavaCodeSnippetContextFreeGrammar' => 'PhutilCLikeCodeSnippetContextFreeGrammar', 'PhutilKeyValueCache' => 'Phobject', 'PhutilKeyValueCacheNamespace' => 'PhutilKeyValueCacheProxy', 'PhutilKeyValueCacheProfiler' => 'PhutilKeyValueCacheProxy', 'PhutilKeyValueCacheProxy' => 'PhutilKeyValueCache', 'PhutilKeyValueCacheStack' => 'PhutilKeyValueCache', 'PhutilKeyValueCacheTestCase' => 'PhutilTestCase', 'PhutilKoreanLocale' => 'PhutilLocale', 'PhutilLDAPAuthAdapter' => 'PhutilAuthAdapter', 'PhutilLanguageGuesser' => 'Phobject', 'PhutilLanguageGuesserTestCase' => 'PhutilTestCase', 'PhutilLexer' => 'Phobject', 'PhutilLexerSyntaxHighlighter' => 'PhutilSyntaxHighlighter', 'PhutilLibraryConflictException' => 'Exception', 'PhutilLibraryMapBuilder' => 'Phobject', 'PhutilLibraryTestCase' => 'PhutilTestCase', 'PhutilLipsumContextFreeGrammar' => 'PhutilContextFreeGrammar', 'PhutilLocale' => 'Phobject', 'PhutilLocaleTestCase' => 'PhutilTestCase', 'PhutilLock' => 'Phobject', 'PhutilLockException' => 'Exception', 'PhutilLogFileChannel' => 'PhutilChannelChannel', 'PhutilLunarPhase' => 'Phobject', 'PhutilLunarPhaseTestCase' => 'PhutilTestCase', 'PhutilMarkupEngine' => 'Phobject', 'PhutilMarkupTestCase' => 'PhutilTestCase', 'PhutilMemcacheKeyValueCache' => 'PhutilKeyValueCache', 'PhutilMercurialBinaryAnalyzer' => 'PhutilBinaryAnalyzer', 'PhutilMethodNotImplementedException' => 'Exception', 'PhutilMetricsChannel' => 'PhutilChannelChannel', 'PhutilMissingSymbolException' => 'Exception', 'PhutilModuleUtilsTestCase' => 'PhutilTestCase', 'PhutilNiceDaemon' => 'PhutilTortureTestDaemon', 'PhutilNumber' => 'Phobject', 'PhutilOAuth1AuthAdapter' => 'PhutilAuthAdapter', 'PhutilOAuth1Future' => 'FutureProxy', 'PhutilOAuth1FutureTestCase' => 'PhutilTestCase', 'PhutilOAuthAuthAdapter' => 'PhutilAuthAdapter', 'PhutilOnDiskKeyValueCache' => 'PhutilKeyValueCache', 'PhutilOpaqueEnvelope' => 'Phobject', 'PhutilOpaqueEnvelopeKey' => 'Phobject', 'PhutilOpaqueEnvelopeTestCase' => 'PhutilTestCase', 'PhutilPHPCodeSnippetContextFreeGrammar' => 'PhutilCLikeCodeSnippetContextFreeGrammar', 'PhutilPHPFragmentLexer' => 'PhutilLexer', 'PhutilPHPFragmentLexerHighlighterTestCase' => 'PhutilTestCase', 'PhutilPHPFragmentLexerTestCase' => 'PhutilTestCase', 'PhutilPHPObjectProtocolChannel' => 'PhutilProtocolChannel', 'PhutilPHPObjectProtocolChannelTestCase' => 'PhutilTestCase', 'PhutilParserGenerator' => 'Phobject', 'PhutilParserGeneratorException' => 'Exception', 'PhutilParserGeneratorTestCase' => 'PhutilTestCase', 'PhutilPayPalAPIFuture' => 'FutureProxy', 'PhutilPersonTest' => array( 'Phobject', 'PhutilPerson', ), 'PhutilPhabricatorAuthAdapter' => 'PhutilOAuthAuthAdapter', 'PhutilPhtTestCase' => 'PhutilTestCase', 'PhutilPirateEnglishLocale' => 'PhutilLocale', 'PhutilPortugueseBrazilLocale' => 'PhutilLocale', 'PhutilPortuguesePortugalLocale' => 'PhutilLocale', 'PhutilPregsprintfTestCase' => 'PhutilTestCase', 'PhutilProcessGroupDaemon' => 'PhutilTortureTestDaemon', 'PhutilProseDiff' => 'Phobject', 'PhutilProseDiffTestCase' => 'PhutilTestCase', 'PhutilProseDifferenceEngine' => 'Phobject', 'PhutilProtocolChannel' => 'PhutilChannelChannel', 'PhutilProxyException' => 'Exception', 'PhutilProxyIterator' => array( 'Phobject', 'Iterator', ), 'PhutilPygmentizeBinaryAnalyzer' => 'PhutilBinaryAnalyzer', 'PhutilPygmentizeParser' => 'Phobject', 'PhutilPygmentizeParserTestCase' => 'PhutilTestCase', 'PhutilPygmentsSyntaxHighlighter' => 'Phobject', 'PhutilPythonFragmentLexer' => 'PhutilLexer', 'PhutilQueryStringParser' => 'Phobject', 'PhutilQueryStringParserTestCase' => 'PhutilTestCase', 'PhutilRainbowSyntaxHighlighter' => 'Phobject', 'PhutilRawEnglishLocale' => 'PhutilLocale', 'PhutilReadableSerializer' => 'Phobject', 'PhutilReadableSerializerTestCase' => 'PhutilTestCase', 'PhutilRealNameContextFreeGrammar' => 'PhutilContextFreeGrammar', 'PhutilRemarkupBlockInterpreter' => 'Phobject', 'PhutilRemarkupBlockRule' => 'Phobject', 'PhutilRemarkupBlockStorage' => 'Phobject', 'PhutilRemarkupBoldRule' => 'PhutilRemarkupRule', 'PhutilRemarkupCodeBlockRule' => 'PhutilRemarkupBlockRule', 'PhutilRemarkupDefaultBlockRule' => 'PhutilRemarkupBlockRule', 'PhutilRemarkupDelRule' => 'PhutilRemarkupRule', 'PhutilRemarkupDocumentLinkRule' => 'PhutilRemarkupRule', 'PhutilRemarkupEngine' => 'PhutilMarkupEngine', 'PhutilRemarkupEngineTestCase' => 'PhutilTestCase', 'PhutilRemarkupEscapeRemarkupRule' => 'PhutilRemarkupRule', 'PhutilRemarkupHeaderBlockRule' => 'PhutilRemarkupBlockRule', 'PhutilRemarkupHighlightRule' => 'PhutilRemarkupRule', 'PhutilRemarkupHorizontalRuleBlockRule' => 'PhutilRemarkupBlockRule', 'PhutilRemarkupHyperlinkRule' => 'PhutilRemarkupRule', 'PhutilRemarkupInlineBlockRule' => 'PhutilRemarkupBlockRule', 'PhutilRemarkupInterpreterBlockRule' => 'PhutilRemarkupBlockRule', 'PhutilRemarkupItalicRule' => 'PhutilRemarkupRule', 'PhutilRemarkupLinebreaksRule' => 'PhutilRemarkupRule', 'PhutilRemarkupListBlockRule' => 'PhutilRemarkupBlockRule', 'PhutilRemarkupLiteralBlockRule' => 'PhutilRemarkupBlockRule', 'PhutilRemarkupMonospaceRule' => 'PhutilRemarkupRule', 'PhutilRemarkupNoteBlockRule' => 'PhutilRemarkupBlockRule', 'PhutilRemarkupQuotesBlockRule' => 'PhutilRemarkupBlockRule', 'PhutilRemarkupReplyBlockRule' => 'PhutilRemarkupBlockRule', 'PhutilRemarkupRule' => 'Phobject', 'PhutilRemarkupSimpleTableBlockRule' => 'PhutilRemarkupBlockRule', 'PhutilRemarkupTableBlockRule' => 'PhutilRemarkupBlockRule', 'PhutilRemarkupTestInterpreterRule' => 'PhutilRemarkupBlockInterpreter', 'PhutilRemarkupUnderlineRule' => 'PhutilRemarkupRule', 'PhutilRope' => 'Phobject', 'PhutilRopeTestCase' => 'PhutilTestCase', 'PhutilSafeHTML' => 'Phobject', 'PhutilSafeHTMLTestCase' => 'PhutilTestCase', 'PhutilSaturateStdoutDaemon' => 'PhutilTortureTestDaemon', 'PhutilSearchQueryCompiler' => 'Phobject', 'PhutilSearchQueryCompilerSyntaxException' => 'Exception', 'PhutilSearchQueryCompilerTestCase' => 'PhutilTestCase', 'PhutilSearchQueryToken' => 'Phobject', 'PhutilSearchStemmer' => 'Phobject', 'PhutilSearchStemmerTestCase' => 'PhutilTestCase', 'PhutilServiceProfiler' => 'Phobject', 'PhutilShellLexer' => 'PhutilLexer', 'PhutilShellLexerTestCase' => 'PhutilTestCase', 'PhutilSignalHandler' => 'Phobject', 'PhutilSignalRouter' => 'Phobject', 'PhutilSimpleOptions' => 'Phobject', 'PhutilSimpleOptionsLexer' => 'PhutilLexer', 'PhutilSimpleOptionsLexerTestCase' => 'PhutilTestCase', 'PhutilSimpleOptionsTestCase' => 'PhutilTestCase', 'PhutilSimplifiedChineseLocale' => 'PhutilLocale', 'PhutilSlackAuthAdapter' => 'PhutilOAuthAuthAdapter', 'PhutilSlackFuture' => 'FutureProxy', 'PhutilSocketChannel' => 'PhutilChannel', 'PhutilSortVector' => 'Phobject', 'PhutilSpanishSpainLocale' => 'PhutilLocale', 'PhutilSprite' => 'Phobject', 'PhutilSpriteSheet' => 'Phobject', 'PhutilStreamIterator' => array( 'Phobject', 'Iterator', ), 'PhutilSubversionBinaryAnalyzer' => 'PhutilBinaryAnalyzer', 'PhutilSyntaxHighlighter' => 'Phobject', 'PhutilSyntaxHighlighterEngine' => 'Phobject', 'PhutilSyntaxHighlighterException' => 'Exception', 'PhutilSystem' => 'Phobject', 'PhutilSystemTestCase' => 'PhutilTestCase', 'PhutilTerminalString' => 'Phobject', 'PhutilTestPhobject' => 'Phobject', 'PhutilTortureTestDaemon' => 'PhutilDaemon', 'PhutilTraditionalChineseLocale' => 'PhutilLocale', 'PhutilTranslation' => 'Phobject', 'PhutilTranslationTestCase' => 'PhutilTestCase', 'PhutilTranslator' => 'Phobject', 'PhutilTranslatorTestCase' => 'PhutilTestCase', 'PhutilTsprintfTestCase' => 'PhutilTestCase', 'PhutilTwitchAuthAdapter' => 'PhutilOAuthAuthAdapter', 'PhutilTwitchFuture' => 'FutureProxy', 'PhutilTwitterAuthAdapter' => 'PhutilOAuth1AuthAdapter', 'PhutilTypeCheckException' => 'Exception', 'PhutilTypeExtraParametersException' => 'Exception', 'PhutilTypeLexer' => 'PhutilLexer', 'PhutilTypeMissingParametersException' => 'Exception', 'PhutilTypeSpec' => 'Phobject', 'PhutilTypeSpecTestCase' => 'PhutilTestCase', 'PhutilURI' => 'Phobject', 'PhutilURITestCase' => 'PhutilTestCase', 'PhutilUSEnglishLocale' => 'PhutilLocale', 'PhutilUTF8StringTruncator' => 'Phobject', 'PhutilUTF8TestCase' => 'PhutilTestCase', 'PhutilUnknownSymbolParserGeneratorException' => 'PhutilParserGeneratorException', 'PhutilUnreachableRuleParserGeneratorException' => 'PhutilParserGeneratorException', 'PhutilUnreachableTerminalParserGeneratorException' => 'PhutilParserGeneratorException', 'PhutilUrisprintfTestCase' => 'PhutilTestCase', 'PhutilUtilsTestCase' => 'PhutilTestCase', 'PhutilVeryWowEnglishLocale' => 'PhutilLocale', 'PhutilWordPressAuthAdapter' => 'PhutilOAuthAuthAdapter', 'PhutilWordPressFuture' => 'FutureProxy', 'PhutilXHPASTBinary' => 'Phobject', 'PhutilXHPASTSyntaxHighlighter' => 'Phobject', 'PhutilXHPASTSyntaxHighlighterFuture' => 'FutureProxy', 'PhutilXHPASTSyntaxHighlighterTestCase' => 'PhutilTestCase', 'QueryFuture' => 'Future', 'TempFile' => 'Phobject', 'TestAbstractDirectedGraph' => 'AbstractDirectedGraph', 'XHPASTNode' => 'AASTNode', 'XHPASTNodeTestCase' => 'PhutilTestCase', 'XHPASTSyntaxErrorException' => 'Exception', 'XHPASTToken' => 'AASTToken', 'XHPASTTree' => 'AASTTree', 'XHPASTTreeTestCase' => 'PhutilTestCase', 'XsprintfUnknownConversionException' => 'InvalidArgumentException', ), )); diff --git a/src/aphront/headerparser/AphrontHTTPHeaderParser.php b/src/aphront/headerparser/AphrontHTTPHeaderParser.php new file mode 100644 index 0000000..cc55520 --- /dev/null +++ b/src/aphront/headerparser/AphrontHTTPHeaderParser.php @@ -0,0 +1,150 @@ +name = null; + $this->content = null; + + $parts = explode(':', $raw_header, 2); + $this->name = trim($parts[0]); + if (count($parts) > 1) { + $this->content = trim($parts[1]); + } + + $this->pairs = null; + + return $this; + } + + public function getHeaderName() { + $this->requireParse(); + return $this->name; + } + + public function getHeaderContent() { + $this->requireParse(); + return $this->content; + } + + public function getHeaderContentAsPairs() { + $content = $this->getHeaderContent(); + + + $state = 'prekey'; + $length = strlen($content); + + $pair_name = null; + $pair_value = null; + + $pairs = array(); + $ii = 0; + while ($ii < $length) { + $c = $content[$ii]; + + switch ($state) { + case 'prekey'; + // We're eating space in front of a key. + if ($c == ' ') { + $ii++; + break; + } + $pair_name = ''; + $state = 'key'; + break; + case 'key'; + // We're parsing a key name until we find "=" or ";". + if ($c == ';') { + $state = 'done'; + break; + } + + if ($c == '=') { + $ii++; + $state = 'value'; + break; + } + + $ii++; + $pair_name .= $c; + break; + case 'value': + // We found an "=", so now figure out if the value is quoted + // or not. + if ($c == '"') { + $ii++; + $state = 'quoted'; + break; + } + $state = 'unquoted'; + break; + case 'quoted': + // We're in a quoted string, parse until we find the closing quote. + if ($c == '"') { + $ii++; + $state = 'done'; + break; + } + + $ii++; + $pair_value .= $c; + break; + case 'unquoted': + // We're in an unquoted string, parse until we find a space or a + // semicolon. + if ($c == ' ' || $c == ';') { + $state = 'done'; + break; + } + $ii++; + $pair_value .= $c; + break; + case 'done': + // We parsed something, so eat any trailing whitespace and semicolons + // and look for a new value. + if ($c == ' ' || $c == ';') { + $ii++; + break; + } + + $pairs[] = array( + $pair_name, + $pair_value, + ); + + $pair_name = null; + $pair_value = null; + + $state = 'prekey'; + break; + } + } + + if ($state == 'quoted') { + throw new Exception( + pht( + 'Header has unterminated double quote for key "%s".', + $pair_name)); + } + + if ($pair_name !== null) { + $pairs[] = array( + $pair_name, + $pair_value, + ); + } + + return $pairs; + } + + private function requireParse() { + if ($this->name === null) { + throw new PhutilInvalidStateException('parseRawHeader'); + } + } + +} diff --git a/src/aphront/headerparser/__tests__/AphrontHTTPHeaderParserTestCase.php b/src/aphront/headerparser/__tests__/AphrontHTTPHeaderParserTestCase.php new file mode 100644 index 0000000..b26f1c1 --- /dev/null +++ b/src/aphront/headerparser/__tests__/AphrontHTTPHeaderParserTestCase.php @@ -0,0 +1,108 @@ +parseRawHeader($input); + + $actual_name = $parser->getHeaderName(); + $actual_content = $parser->getHeaderContent(); + + $this->assertEqual( + $expect_name, + $actual_name, + pht('Header name for: %s', $input)); + + $this->assertEqual( + $expect_content, + $actual_content, + pht('Header content for: %s', $input)); + + if (isset($case[3])) { + $expect_pairs = $case[3]; + + $caught = null; + try { + $actual_pairs = $parser->getHeaderContentAsPairs(); + } catch (Exception $ex) { + $caught = $ex; + } + + if ($expect_pairs === false) { + $this->assertEqual( + true, + ($caught instanceof Exception), + pht('Expect exception for header pairs of: %s', $input)); + } else { + $this->assertEqual( + $expect_pairs, + $actual_pairs, + pht('Header pairs for: %s', $input)); + } + } + } + } + + +} diff --git a/src/aphront/multipartparser/AphrontMultipartParser.php b/src/aphront/multipartparser/AphrontMultipartParser.php new file mode 100644 index 0000000..dc7d6df --- /dev/null +++ b/src/aphront/multipartparser/AphrontMultipartParser.php @@ -0,0 +1,249 @@ +contentType = $content_type; + return $this; + } + + public function getContentType() { + return $this->contentType; + } + + public function beginParse() { + $content_type = $this->getContentType(); + if ($content_type === null) { + throw new PhutilInvalidStateException('setContentType'); + } + + if (!preg_match('(^multipart/form-data)', $content_type)) { + throw new Exception( + pht( + 'Expected "multipart/form-data" content type when executing a '. + 'multipart body read.')); + } + + $type_parts = preg_split('(\s*;\s*)', $content_type); + $boundary = null; + foreach ($type_parts as $type_part) { + $matches = null; + if (preg_match('(^boundary=(.*))', $type_part, $matches)) { + $boundary = $matches[1]; + break; + } + } + + if ($boundary === null) { + throw new Exception( + pht('Received "multipart/form-data" request with no "boundary".')); + } + + $this->parts = array(); + $this->part = null; + + $this->buffer = ''; + $this->boundary = $boundary; + + // We're looking for a (usually empty) body before the first boundary. + $this->state = 'bodynewline'; + } + + public function continueParse($bytes) { + $this->buffer .= $bytes; + + $continue = true; + while ($continue) { + switch ($this->state) { + case 'endboundary': + // We've just parsed a boundary. Next, we expect either "--" (which + // indicates we've reached the end of the parts) or "\r\n" (which + // indicates we should read the headers for the next part). + + if (strlen($this->buffer) < 2) { + // We don't have enough bytes yet, so wait for more. + $continue = false; + break; + } + + if (!strncmp($this->buffer, '--', 2)) { + // This is "--" after a boundary, so we're done. We'll read the + // rest of the body (the "epilogue") and discard it. + $this->buffer = substr($this->buffer, 2); + $this->state = 'epilogue'; + + $this->part = null; + break; + } + + if (!strncmp($this->buffer, "\r\n", 2)) { + // This is "\r\n" after a boundary, so we're going to going to + // read the headers for a part. + $this->buffer = substr($this->buffer, 2); + $this->state = 'header'; + + // Create the object to hold the part we're about to read. + $part = new AphrontMultipartPart(); + $this->parts[] = $part; + $this->part = $part; + break; + } + + throw new Exception( + pht('Expected "\r\n" or "--" after multipart data boundary.')); + case 'header': + // We've just parsed a boundary, followed by "\r\n". We are going + // to read the headers for this part. They are in the form of HTTP + // headers and terminated by "\r\n". The section is terminated by + // a line with no header on it. + + if (strlen($this->buffer) < 2) { + // We don't have enough data to find a "\r\n", so wait for more. + $continue = false; + break; + } + + if (!strncmp("\r\n", $this->buffer, 2)) { + // This line immediately began "\r\n", so we're done with parsing + // headers. Start parsing the body. + $this->buffer = substr($this->buffer, 2); + $this->state = 'body'; + break; + } + + // This is an actual header, so look for the end of it. + $header_len = strpos($this->buffer, "\r\n"); + if ($header_len === false) { + // We don't have a full header yet, so wait for more data. + $continue = false; + break; + } + + $header_buf = substr($this->buffer, 0, $header_len); + $this->part->appendRawHeader($header_buf); + + $this->buffer = substr($this->buffer, $header_len + 2); + break; + case 'body': + // We've parsed a boundary and headers, and are parsing the data for + // this part. The data is terminated by "\r\n--", then the boundary. + + // We'll look for "\r\n", then switch to the "bodynewline" state if + // we find it. + + $marker = "\r"; + $marker_pos = strpos($this->buffer, $marker); + + if ($marker_pos === false) { + // There's no "\r" anywhere in the buffer, so we can just read it + // as provided. Then, since we read all the data, we're done until + // we get more. + + // Note that if we're in the preamble, we won't have a "part" + // object and will just discard the data. + if ($this->part) { + $this->part->appendData($this->buffer); + } + $this->buffer = ''; + $continue = false; + break; + } + + if ($marker_pos > 0) { + // If there are bytes before the "\r", + if ($this->part) { + $this->part->appendData(substr($this->buffer, 0, $marker_pos)); + } + $this->buffer = substr($this->buffer, $marker_pos); + } + + $expect = "\r\n"; + $expect_len = strlen($expect); + if (strlen($this->buffer) < $expect_len) { + // We don't have enough bytes yet to know if this is "\r\n" + // or not. + $continue = false; + break; + } + + if (strncmp($this->buffer, $expect, $expect_len)) { + // The next two bytes aren't "\r\n", so eat them and go looking + // for more newlines. + if ($this->part) { + $this->part->appendData(substr($this->buffer, 0, $expect_len)); + } + $this->buffer = substr($this->buffer, $expect_len); + break; + } + + // Eat the "\r\n". + $this->buffer = substr($this->buffer, $expect_len); + $this->state = 'bodynewline'; + break; + case 'bodynewline': + // We've parsed a newline in a body, or we just started parsing the + // request. In either case, we're looking for "--", then the boundary. + // If we find it, this section is done. If we don't, we consume the + // bytes and move on. + + $expect = '--'.$this->boundary; + $expect_len = strlen($expect); + + if (strlen($this->buffer) < $expect_len) { + // We don't have enough bytes yet, so wait for more. + $continue = false; + break; + } + + if (strncmp($this->buffer, $expect, $expect_len)) { + // This wasn't the boundary, so return to the "body" state and + // consume it. (But first, we need to append the "\r\n" which we + // ate earlier.) + if ($this->part) { + $this->part->appendData("\r\n"); + } + $this->state = 'body'; + break; + } + + // This is the boundary, so toss it and move on. + $this->buffer = substr($this->buffer, $expect_len); + $this->state = 'endboundary'; + break; + case 'epilogue': + // We just discard any epilogue. + $this->buffer = ''; + $continue = false; + break; + default: + throw new Exception( + pht( + 'Unknown parser state "%s".\n', + $this->state)); + } + } + } + + public function endParse() { + if ($this->state !== 'epilogue') { + throw new Exception( + pht( + 'Expected "multipart/form-data" parse to end '. + 'in state "epilogue".')); + } + + return $this->parts; + } + + +} diff --git a/src/aphront/multipartparser/AphrontMultipartPart.php b/src/aphront/multipartparser/AphrontMultipartPart.php new file mode 100644 index 0000000..04e79e9 --- /dev/null +++ b/src/aphront/multipartparser/AphrontMultipartPart.php @@ -0,0 +1,96 @@ +parseRawHeader($bytes); + + $header_name = $parser->getHeaderName(); + + $this->headers[] = array( + $header_name, + $parser->getHeaderContent(), + ); + + if (strtolower($header_name) === 'content-disposition') { + $pairs = $parser->getHeaderContentAsPairs(); + foreach ($pairs as $pair) { + list($key, $value) = $pair; + switch ($key) { + case 'filename': + $this->filename = $value; + break; + case 'name': + $this->name = $value; + break; + } + } + } + + return $this; + } + + public function appendData($bytes) { + $this->byteSize += strlen($bytes); + + if ($this->isVariable()) { + $this->value .= $bytes; + } else { + if (!$this->tempFile) { + $this->tempFile = new TempFile(getmypid().'.upload'); + } + Filesystem::appendFile($this->tempFile, $bytes); + } + + return $this; + } + + public function isVariable() { + return ($this->filename === null); + } + + public function getName() { + return $this->name; + } + + public function getVariableValue() { + if (!$this->isVariable()) { + throw new Exception(pht('This part is not a variable!')); + } + + return $this->value; + } + + public function getPHPFileDictionary() { + if (!$this->tempFile) { + $this->appendData(''); + } + + $mime_type = 'application/octet-stream'; + foreach ($this->headers as $header) { + list($name, $value) = $header; + if (strtolower($name) == 'content-type') { + $mime_type = $value; + break; + } + } + + return array( + 'name' => $this->filename, + 'type' => $mime_type, + 'tmp_name' => (string)$this->tempFile, + 'error' => 0, + 'size' => $this->byteSize, + ); + } + +} diff --git a/src/aphront/multipartparser/__tests__/AphrontMultipartParserTestCase.php b/src/aphront/multipartparser/__tests__/AphrontMultipartParserTestCase.php new file mode 100644 index 0000000..845ac10 --- /dev/null +++ b/src/aphront/multipartparser/__tests__/AphrontMultipartParserTestCase.php @@ -0,0 +1,45 @@ + 'simple.txt', + 'variables' => array( + array('a', 'b'), + ), + ), + ); + + $data_dir = dirname(__FILE__).'/data/'; + foreach ($map as $test_case) { + $data = Filesystem::readFile($data_dir.$test_case['data']); + $data = str_replace("\n", "\r\n", $data); + + $parser = id(new AphrontMultipartParser()) + ->setContentType('multipart/form-data; boundary=ABCDEFG'); + $parser->beginParse(); + $parser->continueParse($data); + $parts = $parser->endParse(); + + $variables = array(); + foreach ($parts as $part) { + if (!$part->isVariable()) { + continue; + } + + $variables[] = array( + $part->getName(), + $part->getVariableValue(), + ); + } + + $expect_variables = idx($test_case, 'variables', array()); + $this->assertEqual($expect_variables, $variables); + } + } + + + +} diff --git a/src/aphront/multipartparser/__tests__/data/simple.txt b/src/aphront/multipartparser/__tests__/data/simple.txt new file mode 100644 index 0000000..92df22f --- /dev/null +++ b/src/aphront/multipartparser/__tests__/data/simple.txt @@ -0,0 +1,5 @@ +--ABCDEFG +Content-Disposition: form-data; name="a" + +b +--ABCDEFG-- diff --git a/src/conduit/ConduitClient.php b/src/conduit/ConduitClient.php index cbc2b9c..21c5f52 100644 --- a/src/conduit/ConduitClient.php +++ b/src/conduit/ConduitClient.php @@ -1,399 +1,395 @@ connectionID; } public function __construct($uri) { $this->uri = new PhutilURI($uri); if (!strlen($this->uri->getDomain())) { throw new Exception( pht("Conduit URI '%s' must include a valid host.", $uri)); } $this->host = $this->uri->getDomain(); } /** * Override the domain specified in the service URI and provide a specific * host identity. * * This can be used to connect to a specific node in a cluster environment. */ public function setHost($host) { $this->host = $host; return $this; } public function getHost() { return $this->host; } public function setConduitToken($conduit_token) { $this->conduitToken = $conduit_token; return $this; } public function getConduitToken() { return $this->conduitToken; } public function setOAuthToken($oauth_token) { $this->oauthToken = $oauth_token; return $this; } public function callMethodSynchronous($method, array $params) { return $this->callMethod($method, $params)->resolve(); } public function didReceiveResponse($method, $data) { if ($method == 'conduit.connect') { $this->sessionKey = idx($data, 'sessionKey'); $this->connectionID = idx($data, 'connectionID'); } return $data; } public function setTimeout($timeout) { $this->timeout = $timeout; return $this; } public function setSigningKeys( $public_key, PhutilOpaqueEnvelope $private_key) { $this->publicKey = $public_key; $this->privateKey = $private_key; return $this; } public function callMethod($method, array $params) { $meta = array(); if ($this->sessionKey) { $meta['sessionKey'] = $this->sessionKey; } if ($this->connectionID) { $meta['connectionID'] = $this->connectionID; } if ($method == 'conduit.connect') { $certificate = idx($params, 'certificate'); if ($certificate) { $token = time(); $params['authToken'] = $token; $params['authSignature'] = sha1($token.$certificate); } unset($params['certificate']); } if ($this->privateKey && $this->publicKey) { $meta['auth.type'] = self::AUTH_ASYMMETRIC; $meta['auth.key'] = $this->publicKey; $meta['auth.host'] = $this->getHostStringForSignature(); $signature = $this->signRequest($method, $params, $meta); $meta['auth.signature'] = $signature; } if ($this->conduitToken) { $meta['token'] = $this->conduitToken; } if ($this->oauthToken) { $meta['access_token'] = $this->oauthToken; } if ($meta) { $params['__conduit__'] = $meta; } $uri = id(clone $this->uri)->setPath('/api/'.$method); $data = array( 'params' => json_encode($params), 'output' => 'json', // This is a hint to Phabricator that the client expects a Conduit // response. It is not necessary, but provides better error messages in // some cases. '__conduit__' => true, ); // Always use the cURL-based HTTPSFuture, for proxy support and other // protocol edge cases that HTTPFuture does not support. $core_future = new HTTPSFuture($uri, $data); $core_future->addHeader('Host', $this->getHostStringForHeader()); $core_future->setMethod('POST'); $core_future->setTimeout($this->timeout); if ($this->username !== null) { $core_future->setHTTPBasicAuthCredentials( $this->username, $this->password); } - $conduit_future = new ConduitFuture($core_future); - $conduit_future->setClient($this, $method); - $conduit_future->beginProfile($data); - $conduit_future->isReady(); - - return $conduit_future; + return id(new ConduitFuture($core_future)) + ->setClient($this, $method); } public function setBasicAuthCredentials($username, $password) { $this->username = $username; $this->password = new PhutilOpaqueEnvelope($password); return $this; } private function getHostStringForHeader() { return $this->newHostString(false); } private function getHostStringForSignature() { return $this->newHostString(true); } /** * Build a string describing the host for this request. * * This method builds strings in two modes: with explicit ports for request * signing (which always include the port number) and with implicit ports * for use in the "Host:" header of requests (which omit the port number if * the port is the same as the default port for the protocol). * * This implicit port behavior is similar to what browsers do, so it is less * likely to get us into trouble with webserver configurations. * * @param bool True to include the port explicitly. * @return string String describing the host for the request. */ private function newHostString($with_explicit_port) { $host = $this->getHost(); $uri = new PhutilURI($this->uri); $protocol = $uri->getProtocol(); $port = $uri->getPort(); $implicit_ports = array( 'https' => 443, ); $default_port = 80; $implicit_port = idx($implicit_ports, $protocol, $default_port); if ($with_explicit_port) { if (!$port) { $port = $implicit_port; } } else { if ($port == $implicit_port) { $port = null; } } if (!$port) { $result = $host; } else { $result = $host.':'.$port; } return $result; } private function signRequest( $method, array $params, array $meta) { $input = self::encodeRequestDataForSignature( $method, $params, $meta); $signature = null; $result = openssl_sign( $input, $signature, $this->privateKey->openEnvelope()); if (!$result) { throw new Exception( pht('Unable to sign Conduit request with signing key.')); } return self::SIGNATURE_CONSIGN_1.base64_encode($signature); } public static function verifySignature( $method, array $params, array $meta, $openssl_public_key) { $auth_type = idx($meta, 'auth.type'); switch ($auth_type) { case self::AUTH_ASYMMETRIC: break; default: throw new Exception( pht( 'Unable to verify request signature, specified "%s" '. '("%s") is unknown.', 'auth.type', $auth_type)); } $public_key = idx($meta, 'auth.key'); if (!strlen($public_key)) { throw new Exception( pht( 'Unable to verify request signature, no "%s" present in '. 'request protocol information.', 'auth.key')); } $signature = idx($meta, 'auth.signature'); if (!strlen($signature)) { throw new Exception( pht( 'Unable to verify request signature, no "%s" present '. 'in request protocol information.', 'auth.signature')); } $prefix = self::SIGNATURE_CONSIGN_1; if (strncmp($signature, $prefix, strlen($prefix)) !== 0) { throw new Exception( pht( 'Unable to verify request signature, signature format is not '. 'known.')); } $signature = substr($signature, strlen($prefix)); $input = self::encodeRequestDataForSignature( $method, $params, $meta); $signature = base64_decode($signature); $trap = new PhutilErrorTrap(); $result = @openssl_verify( $input, $signature, $openssl_public_key); $err = $trap->getErrorsAsString(); $trap->destroy(); if ($result === 1) { // Signature is good. return true; } else if ($result === 0) { // Signature is bad. throw new Exception( pht( 'Request signature verification failed: signature is not correct.')); } else { // Some kind of error. if (strlen($err)) { throw new Exception( pht( 'OpenSSL encountered an error verifying the request signature: %s', $err)); } else { throw new Exception( pht( 'OpenSSL encountered an unknown error verifying the request: %s', $err)); } } } private static function encodeRequestDataForSignature( $method, array $params, array $meta) { unset($meta['auth.signature']); $structure = array( 'method' => $method, 'protocol' => $meta, 'parameters' => $params, ); return self::encodeRawDataForSignature($structure); } public static function encodeRawDataForSignature($data) { $out = array(); if (is_array($data)) { if (!$data || (array_keys($data) == range(0, count($data) - 1))) { $out[] = 'A'; $out[] = count($data); $out[] = ':'; foreach ($data as $value) { $out[] = self::encodeRawDataForSignature($value); } } else { ksort($data); $out[] = 'O'; $out[] = count($data); $out[] = ':'; foreach ($data as $key => $value) { $out[] = self::encodeRawDataForSignature($key); $out[] = self::encodeRawDataForSignature($value); } } } else if (is_string($data)) { $out[] = 'S'; $out[] = strlen($data); $out[] = ':'; $out[] = $data; } else if (is_int($data)) { $out[] = 'I'; $out[] = strlen((string)$data); $out[] = ':'; $out[] = (string)$data; } else if (is_null($data)) { $out[] = 'N'; $out[] = ':'; } else if ($data === true) { $out[] = 'B1:'; } else if ($data === false) { $out[] = 'B0:'; } else { throw new Exception( pht( 'Unexpected data type in request data: %s.', gettype($data))); } return implode('', $out); } } diff --git a/src/conduit/ConduitFuture.php b/src/conduit/ConduitFuture.php index 51be5fc..f6c192b 100644 --- a/src/conduit/ConduitFuture.php +++ b/src/conduit/ConduitFuture.php @@ -1,72 +1,76 @@ client = $client; $this->conduitMethod = $method; return $this; } - public function beginProfile($data) { - $profiler = PhutilServiceProfiler::getInstance(); - $this->profilerCallID = $profiler->beginServiceCall( - array( - 'type' => 'conduit', - 'method' => $this->conduitMethod, - 'size' => strlen(http_build_query($data, '', '&')), - )); - return $this; + public function isReady() { + if ($this->profilerCallID === null) { + $profiler = PhutilServiceProfiler::getInstance(); + + $this->profilerCallID = $profiler->beginServiceCall( + array( + 'type' => 'conduit', + 'method' => $this->conduitMethod, + 'size' => $this->getProxiedFuture()->getHTTPRequestByteLength(), + )); + } + + return parent::isReady(); } protected function didReceiveResult($result) { if ($this->profilerCallID !== null) { $profiler = PhutilServiceProfiler::getInstance(); $profiler->endServiceCall( $this->profilerCallID, array()); } list($status, $body, $headers) = $result; if ($status->isError()) { throw $status; } $raw = $body; $shield = 'for(;;);'; if (!strncmp($raw, $shield, strlen($shield))) { $raw = substr($raw, strlen($shield)); } $data = null; try { $data = phutil_json_decode($raw); } catch (PhutilJSONParserException $ex) { throw new PhutilProxyException( pht( 'Host returned HTTP/200, but invalid JSON data in response to '. 'a Conduit method call.'), $ex); } if ($data['error_code']) { throw new ConduitClientException( $data['error_code'], $data['error_info']); } $result = $data['result']; $result = $this->client->didReceiveResponse( $this->conduitMethod, $result); return $result; } } diff --git a/src/console/PhutilConsoleMetrics.php b/src/console/PhutilConsoleMetrics.php new file mode 100644 index 0000000..6cd30ed --- /dev/null +++ b/src/console/PhutilConsoleMetrics.php @@ -0,0 +1,65 @@ +width = false; + + return $this; + } + + public function getTerminalWidth() { + if ($this->width === false) { + $this->width = $this->computeTerminalWidth(); + } + + return $this->width; + } + + private function computeTerminalWidth() { + if (phutil_is_windows()) { + // TODO: Figure out how to do this on Windows. + return null; + } + + $tmp = new TempFile(); + + // NOTE: We can't just execute this because it won't be connected to a TTY + // if we do. + $err = id(new PhutilExecPassthru('tput cols > %s', $tmp)) + ->resolve(); + $stdout = Filesystem::readFile($tmp); + unset($tmp); + + if ($err) { + return null; + } + + $width = (int)trim($stdout); + if ($width > 0) { + return $width; + } + + return null; + } +} diff --git a/src/console/format.php b/src/console/format.php index 68bc9df..a4fa98d 100644 --- a/src/console/format.php +++ b/src/console/format.php @@ -1,238 +1,209 @@ = $min && $selection <= $max) { return $selection; } } } while (true); } function phutil_console_prompt($prompt, $history = '') { echo "\n\n"; $prompt = phutil_console_wrap($prompt.' ', 4); try { phutil_console_require_tty(); } catch (PhutilConsoleStdinNotInteractiveException $ex) { // Throw after echoing the prompt so the user has some idea what happened. echo $prompt; throw $ex; } // `escapeshellarg` makes double quotes in the command below disappear on // Windows, which breaks prompts when using history. See T6348 $use_history = !phutil_is_windows(); if ($history == '') { $use_history = false; } else { // Test if bash is available by seeing if it can run `true`. list($err) = exec_manual('bash -c %s', 'true'); if ($err) { $use_history = false; } } if (!$use_history) { echo $prompt; $response = fgets(STDIN); } else { // There's around 0% chance that readline() is available directly in PHP, // so we're using bash/read/history instead. $command = csprintf( 'bash -c %s', csprintf( 'history -r %s 2>/dev/null; '. 'read -e -p %s; '. 'echo "$REPLY"; '. 'history -s "$REPLY" 2>/dev/null; '. 'history -w %s 2>/dev/null', $history, $prompt, $history)); // execx() doesn't work with input, phutil_passthru() doesn't return output. $response = shell_exec($command); } return rtrim($response, "\r\n"); } /** * Soft wrap text for display on a console, respecting UTF8 character boundaries * and ANSI color escape sequences. * * @param string Text to wrap. * @param int Optional indent level. * @param bool True to also indent the first line. * @return string Wrapped text. */ function phutil_console_wrap($text, $indent = 0, $with_prefix = true) { $lines = array(); $width = (78 - $indent); $esc = chr(27); $break_pos = null; $len_after_break = 0; $line_len = 0; $line = array(); $lines = array(); $vector = phutil_utf8v($text); $vector_len = count($vector); for ($ii = 0; $ii < $vector_len; $ii++) { $chr = $vector[$ii]; // If this is an ANSI escape sequence for a color code, just consume it // without counting it toward the character limit. This prevents lines // with bold/color on them from wrapping too early. if ($chr == $esc) { for ($ii; $ii < $vector_len; $ii++) { $line[] = $vector[$ii]; if ($vector[$ii] == 'm') { break; } } continue; } $line[] = $chr; ++$line_len; ++$len_after_break; if ($line_len > $width) { if ($break_pos !== null) { $slice = array_slice($line, 0, $break_pos); while (count($slice) && end($slice) == ' ') { array_pop($slice); } $slice[] = "\n"; $lines[] = $slice; $line = array_slice($line, $break_pos); $line_len = $len_after_break; $len_after_break = 0; $break_pos = null; } } if ($chr == ' ') { $break_pos = count($line); $len_after_break = 0; } if ($chr == "\n") { $lines[] = $line; $line = array(); $len_after_break = 0; $line_len = 0; $break_pos = null; } } if ($line) { if ($line) { $lines[] = $line; } } $pre = null; if ($indent) { $pre = str_repeat(' ', $indent); } foreach ($lines as $idx => $line) { if ($idx == 0 && !$with_prefix) { $prefix = null; } else { $prefix = $pre; } $lines[$idx] = $prefix.implode('', $line); } return implode('', $lines); } function phutil_console_require_tty() { if (function_exists('posix_isatty') && !posix_isatty(STDIN)) { throw new PhutilConsoleStdinNotInteractiveException(); } } /** * Determine the width of the terminal, if possible. Returns `null` on failure. * * @return int|null Terminal width in characters, or null on failure. */ function phutil_console_get_terminal_width() { - static $width; - - if ($width === null) { - if (phutil_is_windows()) { - // TODO: Figure out how to get this working in Windows. - return null; - } - - $tmp = new TempFile(); - - // NOTE: We can't just execute this because it won't be connected to a TTY - // if we do. - $err = phutil_passthru('tput cols > %s', $tmp); - - if ($err) { - return null; - } - - try { - $cols = Filesystem::readFile($tmp); - } catch (FilesystemException $ex) { - return null; - } - - $width = (int)$cols; - if (!$width) { - $width = null; - } - } - - return $width; + return PhutilConsoleMetrics::getDefaultConsole() + ->getTerminalWidth(); } diff --git a/src/console/view/PhutilConsoleError.php b/src/console/view/PhutilConsoleError.php new file mode 100644 index 0000000..7daa899 --- /dev/null +++ b/src/console/view/PhutilConsoleError.php @@ -0,0 +1,10 @@ +kind = $kind; + $this->message = $message; + } + + protected function drawView() { + $color = $this->getLogLineColor(); + + return tsprintf( + "** %s ** %s\n", + $this->kind, + $this->message); + } + +} diff --git a/src/console/view/PhutilConsoleSkip.php b/src/console/view/PhutilConsoleSkip.php new file mode 100644 index 0000000..b259313 --- /dev/null +++ b/src/console/view/PhutilConsoleSkip.php @@ -0,0 +1,10 @@ +didGetWINCHSignal(); + } + +} diff --git a/src/future/exec/PhutilSignalRouter.php b/src/future/exec/PhutilSignalRouter.php index 6053c04..a398178 100644 --- a/src/future/exec/PhutilSignalRouter.php +++ b/src/future/exec/PhutilSignalRouter.php @@ -1,85 +1,86 @@ } public static function initialize() { if (!self::$router) { $router = new self(); // If pcntl_signal() does not exist (particularly, on Windows), just // don't install signal handlers. if (function_exists('pcntl_signal')) { pcntl_signal(SIGHUP, array($router, 'routeSignal')); pcntl_signal(SIGTERM, array($router, 'routeSignal')); + pcntl_signal(SIGWINCH, array($router, 'routeSignal')); } self::$router = $router; } return self::getRouter(); } public static function getRouter() { if (!self::$router) { throw new Exception(pht('Signal router has not been initialized!')); } return self::$router; } public function installHandler($key, PhutilSignalHandler $handler) { if (isset($this->handlers[$key])) { throw new Exception( pht( 'Signal handler with key "%s" is already installed.', $key)); } $this->handlers[$key] = $handler; return $this; } public function getHandler($key) { return idx($this->handlers, $key); } public function routeSignal($signo) { $exceptions = array(); $handlers = $this->handlers; foreach ($handlers as $key => $handler) { try { if ($handler->canHandleSignal($this, $signo)) { $handler->handleSignal($this, $signo); } } catch (Exception $ex) { $exceptions[] = $ex; } } if ($exceptions) { throw new PhutilAggregateException( pht( 'Signal handlers raised exceptions while handling "%s".', phutil_get_signal_name($signo)), $exceptions); } switch ($signo) { case SIGTERM: // Normally, PHP doesn't invoke destructors when exiting in response to // a signal. This forces it to do so, so we have a fighting chance of // releasing any locks, leases or resources on our way out. exit(128 + $signo); } } } diff --git a/src/future/http/BaseHTTPFuture.php b/src/future/http/BaseHTTPFuture.php index 2604039..9662d1b 100644 --- a/src/future/http/BaseHTTPFuture.php +++ b/src/future/http/BaseHTTPFuture.php @@ -1,415 +1,427 @@ resolve(); * * This is an abstract base class which defines the API that HTTP futures * conform to. Concrete implementations are available in @{class:HTTPFuture} * and @{class:HTTPSFuture}. All futures return a tuple * when resolved; status is an object of class @{class:HTTPFutureResponseStatus} * and may represent any of a wide variety of errors in the transport layer, * a support library, or the actual HTTP exchange. * * @task create Creating a New Request * @task config Configuring the Request * @task resolve Resolving the Request * @task internal Internals */ abstract class BaseHTTPFuture extends Future { private $method = 'GET'; private $timeout = 300.0; private $headers = array(); private $uri; private $data; private $expect; /* -( Creating a New Request )--------------------------------------------- */ /** * Build a new future which will make an HTTP request to a given URI, with * some optional data payload. Since this class is abstract you can't actually * instantiate it; instead, build a new @{class:HTTPFuture} or * @{class:HTTPSFuture}. * * @param string Fully-qualified URI to send a request to. * @param mixed String or array to include in the request. Strings will be * transmitted raw; arrays will be encoded and sent as * 'application/x-www-form-urlencoded'. * @task create */ final public function __construct($uri, $data = array()) { $this->setURI((string)$uri); $this->setData($data); } /* -( Configuring the Request )-------------------------------------------- */ /** * Set a timeout for the service call. If the request hasn't resolved yet, * the future will resolve with a status that indicates the request timed * out. You can determine if a status is a timeout status by calling * isTimeout() on the status object. * * @param float Maximum timeout, in seconds. * @return this * @task config */ public function setTimeout($timeout) { $this->timeout = $timeout; return $this; } /** * Get the currently configured timeout. * * @return float Maximum number of seconds the request will execute for. * @task config */ public function getTimeout() { return $this->timeout; } /** * Select the HTTP method (e.g., "GET", "POST", "PUT") to use for the request. * By default, requests use "GET". * * @param string HTTP method name. * @return this * @task config */ final public function setMethod($method) { static $supported_methods = array( 'GET' => true, 'POST' => true, 'PUT' => true, 'DELETE' => true, ); if (empty($supported_methods[$method])) { throw new Exception( pht( "The HTTP method '%s' is not supported. Supported HTTP methods ". "are: %s.", $method, implode(', ', array_keys($supported_methods)))); } $this->method = $method; return $this; } /** * Get the HTTP method the request will use. * * @return string HTTP method name, like "GET". * @task config */ final public function getMethod() { return $this->method; } /** * Set the URI to send the request to. Note that this is also a constructor * parameter. * * @param string URI to send the request to. * @return this * @task config */ public function setURI($uri) { $this->uri = (string)$uri; return $this; } /** * Get the fully-qualified URI the request will be made to. * * @return string URI the request will be sent to. * @task config */ public function getURI() { return $this->uri; } /** * Provide data to send along with the request. Note that this is also a * constructor parameter; it may be more convenient to provide it there. Data * must be a string (in which case it will be sent raw) or an array (in which * case it will be encoded and sent as 'application/x-www-form-urlencoded'). * * @param mixed Data to send with the request. * @return this * @task config */ public function setData($data) { if (!is_string($data) && !is_array($data)) { throw new Exception(pht('Data parameter must be an array or string.')); } $this->data = $data; return $this; } /** * Get the data which will be sent with the request. * * @return mixed Data which will be sent. * @task config */ public function getData() { return $this->data; } /** * Add an HTTP header to the request. The same header name can be specified * more than once, which will cause multiple headers to be sent. * * @param string Header name, like "Accept-Language". * @param string Header value, like "en-us". * @return this * @task config */ public function addHeader($name, $value) { $this->headers[] = array($name, $value); return $this; } /** * Get headers which will be sent with the request. Optionally, you can * provide a filter, which will return only headers with that name. For * example: * * $all_headers = $future->getHeaders(); * $just_user_agent = $future->getHeaders('User-Agent'); * * In either case, an array with all (or all matching) headers is returned. * * @param string|null Optional filter, which selects only headers with that * name if provided. * @return array List of all (or all matching) headers. * @task config */ public function getHeaders($filter = null) { $filter = strtolower($filter); $result = array(); foreach ($this->headers as $header) { list($name, $value) = $header; if (!$filter || ($filter == strtolower($name))) { $result[] = $header; } } return $result; } /** * Set the status codes that are expected in the response. * If set, isError on the status object will return true for status codes * that are not in the input array. Otherwise, isError will be true for any * HTTP status code outside the 2xx range (notwithstanding other errors such * as connection or transport issues). * * @param array|null List of expected HTTP status codes. * * @return this * @task config */ public function setExpectStatus($status_codes) { $this->expect = $status_codes; return $this; } /** * Return list of expected status codes, or null if not set. * * @return array|null List of expected status codes. */ public function getExpectStatus() { return $this->expect; } /** * Add a HTTP basic authentication header to the request. * * @param string Username to authenticate with. * @param PhutilOpaqueEnvelope Password to authenticate with. * @return this * @task config */ public function setHTTPBasicAuthCredentials( $username, PhutilOpaqueEnvelope $password) { $password_plaintext = $password->openEnvelope(); $credentials = base64_encode($username.':'.$password_plaintext); return $this->addHeader('Authorization', 'Basic '.$credentials); } + public function getHTTPRequestByteLength() { + // NOTE: This isn't very accurate, but it's only used by the "--trace" + // call profiler to help pick out huge requests. + $data = $this->getData(); + + if (is_scalar($data)) { + return strlen($data); + } + + return strlen(http_build_query($data, '', '&')); + } + /* -( Resolving the Request )---------------------------------------------- */ /** * Exception-oriented @{method:resolve}. Throws if the status indicates an * error occurred. * * @return tuple HTTP request result tuple. * @task resolve */ final public function resolvex() { $result = $this->resolve(); list($status, $body, $headers) = $result; if ($status->isError()) { throw $status; } return array($body, $headers); } /* -( Internals )---------------------------------------------------------- */ /** * Parse a raw HTTP response into a tuple. * * @param string Raw HTTP response. * @return tuple Valid resolution tuple. * @task internal */ protected function parseRawHTTPResponse($raw_response) { $rex_base = "@^(?P.*?)\r?\n\r?\n(?P.*)$@s"; $rex_head = "@^HTTP/\S+ (?P\d+) (?P.*?)". "(?:\r?\n(?P.*))?$@s"; // We need to parse one or more header blocks in case we got any // "HTTP/1.X 100 Continue" nonsense back as part of the response. This // happens with HTTPS requests, at the least. $response = $raw_response; while (true) { $matches = null; if (!preg_match($rex_base, $response, $matches)) { return $this->buildMalformedResult($raw_response); } $head = $matches['head']; $body = $matches['body']; if (!preg_match($rex_head, $head, $matches)) { return $this->buildMalformedResult($raw_response); } $response_code = (int)$matches['code']; $response_status = strtolower($matches['status']); if ($response_code == 100) { // This is HTTP/1.X 100 Continue, so this whole chunk is moot. $response = $body; } else if (($response_code == 200) && ($response_status == 'connection established')) { // When tunneling through an HTTPS proxy, we get an initial header // block like "HTTP/1.X 200 Connection established", then newlines, // then the normal response. Drop this chunk. $response = $body; } else { $headers = $this->parseHeaders(idx($matches, 'headers')); break; } } $status = new HTTPFutureHTTPResponseStatus( $response_code, $body, $headers, $this->expect); return array($status, $body, $headers); } /** * Parse an HTTP header block. * * @param string Raw HTTP headers. * @return list List of HTTP header tuples. * @task internal */ protected function parseHeaders($head_raw) { $rex_header = '@^(?P.*?):\s*(?P.*)$@'; $headers = array(); if (!$head_raw) { return $headers; } $headers_raw = preg_split("/\r?\n/", $head_raw); foreach ($headers_raw as $header) { $m = null; if (preg_match($rex_header, $header, $m)) { $headers[] = array($m['name'], $m['value']); } else { $headers[] = array($header, null); } } return $headers; } /** * Find value of the first header with given name. * * @param list List of headers from `resolve()`. * @param string Case insensitive header name. * @return string Value of the header or null if not found. * @task resolve */ public static function getHeader(array $headers, $search) { assert_instances_of($headers, 'array'); foreach ($headers as $header) { list($name, $value) = $header; if (strcasecmp($name, $search) == 0) { return $value; } } return null; } /** * Build a result tuple indicating a parse error resulting from a malformed * HTTP response. * * @return tuple Valid resolution tuple. * @task internal */ protected function buildMalformedResult($raw_response) { $body = null; $headers = array(); $status = new HTTPFutureParseResponseStatus( HTTPFutureParseResponseStatus::ERROR_MALFORMED_RESPONSE, $raw_response); return array($status, $body, $headers); } } diff --git a/src/markup/engine/__tests__/remarkup/link-with-angle-link-anchor.txt b/src/markup/engine/__tests__/remarkup/link-with-angle-link-anchor.txt new file mode 100644 index 0000000..d823de6 --- /dev/null +++ b/src/markup/engine/__tests__/remarkup/link-with-angle-link-anchor.txt @@ -0,0 +1,5 @@ + +~~~~~~~~~~ +

<http://x.y#http://x.y#>

+~~~~~~~~~~ + diff --git a/src/markup/engine/__tests__/remarkup/link-with-link-anchor.txt b/src/markup/engine/__tests__/remarkup/link-with-link-anchor.txt new file mode 100644 index 0000000..e8f6d65 --- /dev/null +++ b/src/markup/engine/__tests__/remarkup/link-with-link-anchor.txt @@ -0,0 +1,5 @@ +http://x.y#http://x.y# +~~~~~~~~~~ +

http://x.y#http://x.y#

+~~~~~~~~~~ +http://x.y#http://x.y# diff --git a/src/markup/engine/__tests__/remarkup/table-with-long-header.txt b/src/markup/engine/__tests__/remarkup/table-with-long-header.txt new file mode 100644 index 0000000..84b5cb8 --- /dev/null +++ b/src/markup/engine/__tests__/remarkup/table-with-long-header.txt @@ -0,0 +1,8 @@ +|x| +||-- +~~~~~~~~~~ +
+ +
x
+~~~~~~~~~~ +| x | diff --git a/src/markup/engine/remarkup/blockrule/PhutilRemarkupSimpleTableBlockRule.php b/src/markup/engine/remarkup/blockrule/PhutilRemarkupSimpleTableBlockRule.php index 58ad3d5..72aae08 100644 --- a/src/markup/engine/remarkup/blockrule/PhutilRemarkupSimpleTableBlockRule.php +++ b/src/markup/engine/remarkup/blockrule/PhutilRemarkupSimpleTableBlockRule.php @@ -1,89 +1,96 @@ cells // instead of cells. // If it has other types of cells, it's always a content row. // If it has only empty cells, it's an empty row. if (strlen($cell)) { if (preg_match('/^--+\z/', $cell)) { $any_header = true; } else { $any_content = true; } } $cells[] = array('type' => 'td', 'content' => $this->applyRules($cell)); } $is_header = ($any_header && !$any_content); if (!$is_header) { $rows[] = array('type' => 'tr', 'content' => $cells); } else if ($rows) { // Mark previous row with headings. foreach ($cells as $i => $cell) { if ($cell['content']) { - $rows[last_key($rows)]['content'][$i]['type'] = 'th'; + $last_key = last_key($rows); + if (!isset($rows[$last_key]['content'][$i])) { + // If this row has more cells than the previous row, there may + // not be a cell above this one to turn into a . + continue; + } + + $rows[$last_key]['content'][$i]['type'] = 'th'; } } } } if (!$rows) { return $this->applyRules($text); } return $this->renderRemarkupTable($rows); } } diff --git a/src/markup/engine/remarkup/markuprule/PhutilRemarkupHyperlinkRule.php b/src/markup/engine/remarkup/markuprule/PhutilRemarkupHyperlinkRule.php index 6147dba..c887b38 100644 --- a/src/markup/engine/remarkup/markuprule/PhutilRemarkupHyperlinkRule.php +++ b/src/markup/engine/remarkup/markuprule/PhutilRemarkupHyperlinkRule.php @@ -1,108 +1,121 @@ " around them get linked exactly, without // the "<>". Angle brackets are basically special and mean "this is a URL // with weird characters". This is assumed to be reasonable because they // don't appear in normal text or normal URLs. $text = preg_replace_callback( '@<(\w{3,}://[^\s'.PhutilRemarkupBlockStorage::MAGIC_BYTE.']+?)>@', array($this, 'markupHyperlink'), $text); // Anything else we match "ungreedily", which means we'll look for // stuff that's probably puncutation or otherwise not part of the URL and // not link it. This lets someone write "QuicK! Go to // http://www.example.com/!". We also apply some paren balancing rules. // NOTE: We're explicitly avoiding capturing stored blocks, so text like // `http://www.example.com/[[x | y]]` doesn't get aggressively captured. $text = preg_replace_callback( '@(\w{3,}://[^\s'.PhutilRemarkupBlockStorage::MAGIC_BYTE.']+)@', array($this, 'markupHyperlinkUngreedy'), $text); return $text; } protected function markupHyperlink(array $matches) { + try { + $uri = new PhutilURI($matches[1]); + } catch (Exception $ex) { + return $matches[0]; + } + + $protocol = $uri->getProtocol(); + $protocols = $this->getEngine()->getConfig( 'uri.allowed-protocols', array()); - $protocol = id(new PhutilURI($matches[1]))->getProtocol(); if (!idx($protocols, $protocol)) { // If this URI doesn't use a whitelisted protocol, don't link it. This // is primarily intended to prevent javascript:// silliness. return $this->getEngine()->storeText($matches[1]); } return $this->storeRenderedHyperlink($matches[1]); } protected function storeRenderedHyperlink($link) { return $this->getEngine()->storeText($this->renderHyperlink($link)); } protected function renderHyperlink($link) { $engine = $this->getEngine(); if ($engine->isTextMode()) { return $link; } if ($engine->getState('toc')) { return $link; } $same_window = $engine->getConfig('uri.same-window', false); if ($same_window) { $target = null; } else { $target = '_blank'; } return phutil_tag( 'a', array( 'href' => $link, 'class' => 'remarkup-link', 'target' => $target, ), $link); } protected function markupHyperlinkUngreedy($matches) { $match = $matches[1]; $tail = null; $trailing = null; if (preg_match('/[;,.:!?]+$/', $match, $trailing)) { $tail = $trailing[0]; $match = substr($match, 0, -strlen($tail)); } // If there's a closing paren at the end but no balancing open paren in // the URL, don't link the close paren. This is an attempt to gracefully // handle the two common paren cases, Wikipedia links and English language // parentheticals, e.g.: // // http://en.wikipedia.org/wiki/Noun_(disambiguation) // (see also http://www.example.com) // // We could apply a craftier heuristic here which tries to actually balance // the parens, but this is probably sufficient. if (preg_match('/\\)$/', $match) && !preg_match('/\\(/', $match)) { $tail = ')'.$tail; $match = substr($match, 0, -1); } + try { + $uri = new PhutilURI($match); + } catch (Exception $ex) { + return $matches[0]; + } + return hsprintf('%s%s', $this->markupHyperlink(array(null, $match)), $tail); } } diff --git a/src/moduleutils/PhutilBootloader.php b/src/moduleutils/PhutilBootloader.php index 54ae00a..f802493 100644 --- a/src/moduleutils/PhutilBootloader.php +++ b/src/moduleutils/PhutilBootloader.php @@ -1,291 +1,310 @@ classTree; } public function registerInMemoryLibrary($name, $map) { $this->registeredLibraries[$name] = "memory:$name"; $this->inMemoryMaps[$name] = $map; $this->getLibraryMap($name); } public function registerLibrary($name, $path) { if (basename($path) != '__phutil_library_init__.php') { throw new PhutilBootloaderException( 'Only directories with a __phutil_library_init__.php file may be '. 'registered as libphutil libraries.'); } $path = dirname($path); // Detect attempts to load the same library multiple times from different // locations. This might mean you're doing something silly like trying to // include two different versions of something, or it might mean you're // doing something subtle like running a different version of 'arc' on a // working copy of Arcanist. if (isset($this->registeredLibraries[$name])) { $old_path = $this->registeredLibraries[$name]; if ($old_path != $path) { throw new PhutilLibraryConflictException($name, $old_path, $path); } } $this->registeredLibraries[$name] = $path; // For libphutil v2 libraries, load all functions when we load the library. if (!class_exists('PhutilSymbolLoader', false)) { $root = $this->getLibraryRoot('phutil'); $this->executeInclude($root.'/symbols/PhutilSymbolLoader.php'); } $loader = new PhutilSymbolLoader(); $loader ->setLibrary($name) ->setType('function'); try { $loader->selectAndLoadSymbols(); } catch (PhutilBootloaderException $ex) { // Ignore this, it happens if a global function's file is removed or // similar. Worst case is that we fatal when calling the function, which // is no worse than fataling here. } catch (PhutilMissingSymbolException $ex) { // Ignore this, it happens if a global function is removed. Everything // else loaded so proceed forward: worst case is a fatal when we // hit a function call to a function which no longer exists, which is // no worse than fataling here. } if (empty($_SERVER['PHUTIL_DISABLE_RUNTIME_EXTENSIONS'])) { $extdir = $path.DIRECTORY_SEPARATOR.'extensions'; if (Filesystem::pathExists($extdir)) { $extensions = id(new FileFinder($extdir)) ->withSuffix('php') ->withType('f') ->withFollowSymlinks(true) ->setForceMode('php') ->find(); foreach ($extensions as $extension) { $this->loadExtension( $name, $path, $extdir.DIRECTORY_SEPARATOR.$extension); } } } return $this; } public function registerLibraryMap(array $map) { $this->libraryMaps[$this->currentLibrary] = $map; return $this; } public function getLibraryMap($name) { if (isset($this->extendedMaps[$name])) { return $this->extendedMaps[$name]; } if (empty($this->libraryMaps[$name])) { $root = $this->getLibraryRoot($name); $this->currentLibrary = $name; if (isset($this->inMemoryMaps[$name])) { $this->libraryMaps[$name] = $this->inMemoryMaps[$name]; } else { $okay = include $root.'/__phutil_library_map__.php'; if (!$okay) { throw new PhutilBootloaderException( "Include of '{$root}/__phutil_library_map__.php' failed!"); } } $map = $this->libraryMaps[$name]; $version = isset($map['__library_version__']) ? $map['__library_version__'] : 1; switch ($version) { case 1: throw new Exception( 'libphutil v1 libraries are no longer supported.'); case 2: // NOTE: In version 2 of the library format, all parents (both // classes and interfaces) are stored in the 'xmap'. The value is // either a string for a single parent (the common case) or an array // for multiple parents. foreach ($map['xmap'] as $child => $parents) { foreach ((array)$parents as $parent) { $this->classTree[$parent][] = $child; } } break; default: throw new Exception("Unsupported library version '{$version}'!"); } } $map = $this->libraryMaps[$name]; // If there's an extension map for this library, merge the maps. if (isset($this->extensionMaps[$name])) { $emap = $this->extensionMaps[$name]; foreach (array('function', 'class', 'xmap') as $dict_key) { if (!isset($emap[$dict_key])) { continue; } $map[$dict_key] += $emap[$dict_key]; } } $this->extendedMaps[$name] = $map; return $map; } public function getLibraryMapWithoutExtensions($name) { // This just does all the checks to make sure the library is valid, then // we throw away the result. $this->getLibraryMap($name); return $this->libraryMaps[$name]; } public function getLibraryRoot($name) { if (empty($this->registeredLibraries[$name])) { throw new PhutilBootloaderException( "The phutil library '{$name}' has not been loaded!"); } return $this->registeredLibraries[$name]; } public function getAllLibraries() { return array_keys($this->registeredLibraries); } public function loadLibrary($path) { $root = null; if (!empty($_SERVER['PHUTIL_LIBRARY_ROOT'])) { if ($path[0] != '/') { $root = $_SERVER['PHUTIL_LIBRARY_ROOT']; } } - $okay = $this->executeInclude($root.$path.'/__phutil_library_init__.php'); - if (!$okay) { - throw new PhutilBootloaderException( - "Include of '{$path}/__phutil_library_init__.php' failed!"); - } + + $this->executeInclude($root.$path.'/__phutil_library_init__.php'); } public function loadLibrarySource($library, $source) { $path = $this->getLibraryRoot($library).'/'.$source; - $okay = $this->executeInclude($path); - if (!$okay) { - throw new PhutilBootloaderException("Include of '{$path}' failed!"); - } + $this->executeInclude($path); } private function executeInclude($path) { - // Suppress warning spew if the file does not exist; we'll throw an - // exception instead. We still emit error text in the case of syntax errors. - $old = error_reporting(E_ALL & ~E_WARNING); + // Include the source using `include_once`, but convert any warnings or + // errors into exceptions. + + // Some messages, including "Declaration of X should be compatible with Y", + // do not cause `include_once` to return an error code. Use + // error_get_last() to make sure we're catching everything in every PHP + // version. + + // (Also, the severity of some messages changed between versions of PHP.) + + // Note that we may enter this method after some earlier, unrelated error. + // In this case, error_get_last() will return information for that error. + // In PHP7 and later we could use error_clear_last() to clear that error, + // but the function does not exist in earlier versions of PHP. Instead, + // check if the value has changed. + + // See also T12190. + + $old_last = error_get_last(); + + $old = error_reporting(0); $okay = include_once $path; error_reporting($old); - return $okay; + if (!$okay) { + throw new Exception("Source file \"{$path}\" failed to load."); + } + + $new_last = error_get_last(); + if ($new_last !== null) { + if ($new_last !== $old_last) { + $message = $new_last['message']; + throw new Exception( + "Error while loading file \"{$path}\": {$message}"); + } + } } private function loadExtension($library, $root, $path) { $old_functions = get_defined_functions(); $old_functions = array_fill_keys($old_functions['user'], true); $old_classes = array_fill_keys(get_declared_classes(), true); $old_interfaces = array_fill_keys(get_declared_interfaces(), true); - $ok = $this->executeInclude($path); - if (!$ok) { - throw new PhutilBootloaderException( - "Include of extension file '{$path}' failed!"); - } + $this->executeInclude($path); $new_functions = get_defined_functions(); $new_functions = array_fill_keys($new_functions['user'], true); $new_classes = array_fill_keys(get_declared_classes(), true); $new_interfaces = array_fill_keys(get_declared_interfaces(), true); $add_functions = array_diff_key($new_functions, $old_functions); $add_classes = array_diff_key($new_classes, $old_classes); $add_interfaces = array_diff_key($new_interfaces, $old_interfaces); // NOTE: We can't trust the path we loaded to be the location of these // symbols, because it might have loaded other paths. foreach ($add_functions as $func => $ignored) { $rfunc = new ReflectionFunction($func); $fpath = Filesystem::resolvePath($rfunc->getFileName(), $root); $this->extensionMaps[$library]['function'][$func] = $fpath; } foreach ($add_classes + $add_interfaces as $class => $ignored) { $rclass = new ReflectionClass($class); $cpath = Filesystem::resolvePath($rclass->getFileName(), $root); $this->extensionMaps[$library]['class'][$class] = $cpath; $xmap = $rclass->getInterfaceNames(); $parent = $rclass->getParentClass(); if ($parent) { $xmap[] = $parent->getName(); } if ($xmap) { foreach ($xmap as $parent_class) { $this->classTree[$parent_class][] = $class; } if (count($xmap) == 1) { $xmap = head($xmap); } $this->extensionMaps[$library]['xmap'][$class] = $xmap; } } // Clear the extended library cache (should one exist) so we know that // we need to rebuild it. unset($this->extendedMaps[$library]); } } diff --git a/src/parser/xhpast/__tests__/data/return-type.php.test b/src/parser/xhpast/__tests__/data/return-type.php.test index 4ee8b4d..25f331a 100644 --- a/src/parser/xhpast/__tests__/data/return-type.php.test +++ b/src/parser/xhpast/__tests__/data/return-type.php.test @@ -1,1386 +1,2234 @@ write($data); return $future; } /** * Returns the path to the XHPAST binary. * * @return string */ public static function getPath() { if (phutil_is_windows()) { return dirname(__FILE__).'\\xhpast.exe'; } return dirname(__FILE__).'/xhpast'; } /** * Returns the XHPAST version. * * @return string */ public static function getVersion() { if (self::$version === null) { $bin = self::getPath(); if (Filesystem::pathExists($bin)) { list($err, $stdout) = exec_manual('%s --version', $bin); if (!$err) { self::$version = trim($stdout); } } } return self::$version; } /** * Checks if XHPAST is built and up-to-date. * * @return bool */ public static function isAvailable() { return self::getVersion() == self::EXPECTED_VERSION; } } diff --git a/src/parser/xhpast/parser_nodes.php b/src/parser/xhpast/parser_nodes.php index b785b27..6418235 100644 --- a/src/parser/xhpast/parser_nodes.php +++ b/src/parser/xhpast/parser_nodes.php @@ -1,125 +1,126 @@ 'n_PROGRAM', 9001 => 'n_SYMBOL_NAME', 9002 => 'n_HALT_COMPILER', 9003 => 'n_NAMESPACE', 9004 => 'n_STATEMENT', 9005 => 'n_EMPTY', 9006 => 'n_STATEMENT_LIST', 9007 => 'n_OPEN_TAG', 9008 => 'n_CLOSE_TAG', 9009 => 'n_USE_LIST', 9010 => 'n_USE', 9011 => 'n_CONSTANT_DECLARATION_LIST', 9012 => 'n_CONSTANT_DECLARATION', 9013 => 'n_STRING', 9014 => 'n_LABEL', 9015 => 'n_CONDITION_LIST', 9016 => 'n_CONTROL_CONDITION', 9017 => 'n_IF', 9018 => 'n_ELSEIF', 9019 => 'n_ELSE', 9020 => 'n_WHILE', 9021 => 'n_DO_WHILE', 9022 => 'n_FOR', 9023 => 'n_FOR_EXPRESSION', 9024 => 'n_SWITCH', 9025 => 'n_BREAK', 9026 => 'n_CONTINUE', 9027 => 'n_RETURN', 9028 => 'n_GLOBAL_DECLARATION_LIST', 9029 => 'n_GLOBAL_DECLARATION', 9030 => 'n_STATIC_DECLARATION_LIST', 9031 => 'n_STATIC_DECLARATION', 9032 => 'n_ECHO_LIST', 9033 => 'n_ECHO', 9034 => 'n_INLINE_HTML', 9035 => 'n_UNSET_LIST', 9036 => 'n_UNSET', 9037 => 'n_FOREACH', 9038 => 'n_FOREACH_EXPRESSION', 9039 => 'n_THROW', 9040 => 'n_GOTO', 9041 => 'n_TRY', 9042 => 'n_CATCH_LIST', 9043 => 'n_CATCH', 9044 => 'n_DECLARE', 9045 => 'n_DECLARE_DECLARATION_LIST', 9046 => 'n_DECLARE_DECLARATION', 9047 => 'n_VARIABLE', 9048 => 'n_REFERENCE', 9049 => 'n_VARIABLE_REFERENCE', 9050 => 'n_FUNCTION_DECLARATION', 9051 => 'n_CLASS_DECLARATION', 9052 => 'n_CLASS_ATTRIBUTES', 9053 => 'n_EXTENDS', 9054 => 'n_EXTENDS_LIST', 9055 => 'n_IMPLEMENTS_LIST', 9056 => 'n_INTERFACE_DECLARATION', 9057 => 'n_CASE', 9058 => 'n_DEFAULT', 9059 => 'n_DECLARATION_PARAMETER_LIST', 9060 => 'n_DECLARATION_PARAMETER', 9061 => 'n_TYPE_NAME', 9062 => 'n_VARIABLE_VARIABLE', 9063 => 'n_CLASS_MEMBER_DECLARATION_LIST', 9064 => 'n_CLASS_MEMBER_DECLARATION', 9065 => 'n_CLASS_CONSTANT_DECLARATION_LIST', 9066 => 'n_CLASS_CONSTANT_DECLARATION', 9067 => 'n_METHOD_DECLARATION', 9068 => 'n_METHOD_MODIFIER_LIST', 9069 => 'n_FUNCTION_MODIFIER_LIST', 9070 => 'n_CLASS_MEMBER_MODIFIER_LIST', 9071 => 'n_EXPRESSION_LIST', 9072 => 'n_LIST', 9073 => 'n_ASSIGNMENT', 9074 => 'n_NEW', 9075 => 'n_UNARY_PREFIX_EXPRESSION', 9076 => 'n_UNARY_POSTFIX_EXPRESSION', 9077 => 'n_BINARY_EXPRESSION', 9078 => 'n_TERNARY_EXPRESSION', 9079 => 'n_CAST_EXPRESSION', 9080 => 'n_CAST', 9081 => 'n_OPERATOR', 9082 => 'n_ARRAY_LITERAL', 9083 => 'n_EXIT_EXPRESSION', 9084 => 'n_BACKTICKS_EXPRESSION', 9085 => 'n_LEXICAL_VARIABLE_LIST', 9086 => 'n_NUMERIC_SCALAR', 9087 => 'n_STRING_SCALAR', 9088 => 'n_MAGIC_SCALAR', 9089 => 'n_CLASS_STATIC_ACCESS', 9090 => 'n_CLASS_NAME', 9091 => 'n_MAGIC_CLASS_KEYWORD', 9092 => 'n_OBJECT_PROPERTY_ACCESS', 9093 => 'n_ARRAY_VALUE_LIST', 9094 => 'n_ARRAY_VALUE', 9095 => 'n_CALL_PARAMETER_LIST', 9096 => 'n_VARIABLE_EXPRESSION', 9097 => 'n_INCLUDE_FILE', 9098 => 'n_HEREDOC', 9099 => 'n_FUNCTION_CALL', 9100 => 'n_INDEX_ACCESS', 9101 => 'n_ASSIGNMENT_LIST', 9102 => 'n_METHOD_CALL', 9103 => 'n_CONCATENATION_LIST', 9104 => 'n_PARENTHETICAL_EXPRESSION', 9105 => 'n_TRAIT_USE', 9106 => 'n_TRAIT_USE_LIST', 9107 => 'n_TRAIT_ADAPTATION_LIST', 9108 => 'n_TRAIT_INSTEADOF', 9109 => 'n_TRAIT_REFERENCE_LIST', 9110 => 'n_TRAIT_METHOD_REFERENCE', 9111 => 'n_TRAIT_AS', 9112 => 'n_YIELD', 9113 => 'n_FINALLY', 9114 => 'n_UNPACK', + 9115 => 'n_DECLARATION_RETURN', ); } diff --git a/src/search/PhutilSearchQueryCompiler.php b/src/search/PhutilSearchQueryCompiler.php index 930db22..eb5ee86 100644 --- a/src/search/PhutilSearchQueryCompiler.php +++ b/src/search/PhutilSearchQueryCompiler.php @@ -1,362 +1,374 @@ <()~*:""&|'; private $query; private $stemmer; private $enableFunctions = false; const OPERATOR_NOT = 'not'; const OPERATOR_AND = 'and'; const OPERATOR_SUBSTRING = 'sub'; const OPERATOR_EXACT = 'exact'; public function setOperators($operators) { $this->operators = $operators; return $this; } public function getOperators() { return $this->operators; } public function setStemmer(PhutilSearchStemmer $stemmer) { $this->stemmer = $stemmer; return $this; } public function getStemmer() { return $this->stemmer; } public function setEnableFunctions($enable_functions) { $this->enableFunctions = $enable_functions; return $this; } public function getEnableFunctions() { return $this->enableFunctions; } public function compileQuery(array $tokens) { assert_instances_of($tokens, 'PhutilSearchQueryToken'); $result = array(); foreach ($tokens as $token) { $result[] = $this->renderToken($token); } return $this->compileRenderedTokens($result); } public function compileLiteralQuery(array $tokens) { assert_instances_of($tokens, 'PhutilSearchQueryToken'); $result = array(); foreach ($tokens as $token) { if (!$token->isQuoted()) { continue; } $result[] = $this->renderToken($token); } return $this->compileRenderedTokens($result); } public function compileStemmedQuery(array $tokens) { assert_instances_of($tokens, 'PhutilSearchQueryToken'); $result = array(); foreach ($tokens as $token) { if ($token->isQuoted()) { continue; } $result[] = $this->renderToken($token, $this->getStemmer()); } return $this->compileRenderedTokens($result); } private function compileRenderedTokens(array $list) { if (!$list) { return null; } $list = array_unique($list); return implode(' ', $list); } public function newTokens($query) { $results = $this->tokenizeQuery($query); $tokens = array(); foreach ($results as $result) { $tokens[] = PhutilSearchQueryToken::newFromDictionary($result); } return $tokens; } private function tokenizeQuery($query) { $maximum_bytes = 1024; $query_bytes = strlen($query); if ($query_bytes > $maximum_bytes) { throw new PhutilSearchQueryCompilerSyntaxException( pht( 'Query is too long (%s bytes, maximum is %s bytes).', new PhutilNumber($query_bytes), new PhutilNumber($maximum_bytes))); } $query = phutil_utf8v($query); $length = count($query); $enable_functions = $this->getEnableFunctions(); $mode = 'scan'; $current_operator = array(); $current_token = array(); $current_function = null; $is_quoted = false; $tokens = array(); if ($enable_functions) { $operator_characters = '[~=+-]'; } else { $operator_characters = '[+-]'; } for ($ii = 0; $ii < $length; $ii++) { $character = $query[$ii]; if ($mode == 'scan') { if (preg_match('/^\s\z/u', $character)) { continue; } $mode = 'function'; } if ($mode == 'function') { $mode = 'operator'; if ($enable_functions) { $found = false; for ($jj = $ii; $jj < $length; $jj++) { if (preg_match('/^[a-zA-Z]\z/u', $query[$jj])) { continue; } if ($query[$jj] == ':') { $found = $jj; } break; } if ($found !== false) { $function = array_slice($query, $ii, ($jj - $ii)); $current_function = implode('', $function); if (!strlen($current_function)) { $current_function = null; } $ii = $jj; continue; } } } if ($mode == 'operator') { if (preg_match('/^\s\z/u', $character)) { continue; } if (preg_match('/^'.$operator_characters.'\z/', $character)) { $current_operator[] = $character; continue; } $mode = 'quote'; } if ($mode == 'quote') { if (preg_match('/^"\z/', $character)) { $is_quoted = true; $mode = 'token'; continue; } $mode = 'token'; } if ($mode == 'token') { $capture = false; $was_quoted = $is_quoted; if ($is_quoted) { if (preg_match('/^"\z/', $character)) { $capture = true; $mode = 'scan'; $is_quoted = false; } } else { if (preg_match('/^\s\z/u', $character)) { $capture = true; $mode = 'scan'; } if (preg_match('/^"\z/', $character)) { $capture = true; $mode = 'token'; $is_quoted = true; } } if ($capture) { $token = array( 'operator' => $current_operator, 'quoted' => $was_quoted, 'value' => $current_token, ); if ($enable_functions) { $token['function'] = $current_function; } $tokens[] = $token; $current_operator = array(); $current_token = array(); $current_function = null; continue; } else { $current_token[] = $character; } } } if ($is_quoted) { throw new PhutilSearchQueryCompilerSyntaxException( pht( 'Query contains unmatched double quotes.')); } if ($mode == 'operator') { throw new PhutilSearchQueryCompilerSyntaxException( pht( 'Query contains operator ("%s") with no search term.', implode('', $current_operator))); } $token = array( 'operator' => $current_operator, 'quoted' => false, 'value' => $current_token, ); if ($enable_functions) { $token['function'] = $current_function; } $tokens[] = $token; $results = array(); foreach ($tokens as $token) { $value = implode('', $token['value']); $operator_string = implode('', $token['operator']); if (!strlen($value)) { continue; } + $is_quoted = $token['quoted']; + switch ($operator_string) { case '-': $operator = self::OPERATOR_NOT; break; case '~': $operator = self::OPERATOR_SUBSTRING; break; case '=': $operator = self::OPERATOR_EXACT; break; - case '': case '+': $operator = self::OPERATOR_AND; break; + case '': + // See T12995. If this query term contains Chinese, Japanese or + // Korean characters, treat the term as a substring term by default. + // These languages do not separate words with spaces, so the term + // search mode is normally useless. + if ($enable_functions && !$is_quoted && phutil_utf8_is_cjk($value)) { + $operator = self::OPERATOR_SUBSTRING; + } else { + $operator = self::OPERATOR_AND; + } + break; default: throw new PhutilSearchQueryCompilerSyntaxException( pht( 'Query has an invalid sequence of operators ("%s").', $operator_string)); } $result = array( 'operator' => $operator, - 'quoted' => $token['quoted'], + 'quoted' => $is_quoted, 'value' => $value, ); if ($enable_functions) { $result['function'] = $token['function']; } $results[] = $result; } return $results; } private function renderToken( PhutilSearchQueryToken $token, PhutilSearchStemmer $stemmer = null) { $value = $token->getValue(); if ($stemmer) { $value = $stemmer->stemToken($value); } $value = $this->quoteToken($value); $operator = $token->getOperator(); $prefix = $this->getOperatorPrefix($operator); $value = $prefix.$value; return $value; } private function getOperatorPrefix($operator) { $operators = $this->operators; switch ($operator) { case self::OPERATOR_AND: $prefix = $operators[0]; break; case self::OPERATOR_NOT: $prefix = $operators[2]; break; default: throw new PhutilSearchQueryCompilerSyntaxException( pht( 'Unsupported operator prefix "%s".', $operator)); } if ($prefix == ' ') { $prefix = null; } return $prefix; } private function quoteToken($value) { $operators = $this->operators; $open_quote = $this->operators[10]; $close_quote = $this->operators[11]; return $open_quote.$value.$close_quote; } } diff --git a/src/search/PhutilSearchStemmer.php b/src/search/PhutilSearchStemmer.php index c5998ca..c4a8604 100644 --- a/src/search/PhutilSearchStemmer.php +++ b/src/search/PhutilSearchStemmer.php @@ -1,70 +1,74 @@ normalizeToken($token); return $this->applyStemmer($token); } public function stemCorpus($corpus) { + $corpus = $this->normalizeCorpus($corpus); $tokens = preg_split('/[^a-zA-Z0-9\x7F-\xFF._]+/', $corpus); $words = array(); foreach ($tokens as $key => $token) { $token = trim($token, '._'); if (strlen($token) < 3) { continue; } - $normal_word = $this->normalizeToken($token); - $words[$normal_word] = $normal_word; + $words[$token] = $token; } $stems = array(); - foreach ($words as $normal_word) { - $stems[] = $this->applyStemmer($normal_word); + foreach ($words as $word) { + $stems[] = $this->applyStemmer($word); } return implode(' ', $stems); } private function normalizeToken($token) { return phutil_utf8_strtolower($token); } + private function normalizeCorpus($corpus) { + return phutil_utf8_strtolower($corpus); + } + /** * @phutil-external-symbol class Porter */ private function applyStemmer($normalized_token) { // If the token has internal punctuation, handle it literally. This // deals with things like domain names, Conduit API methods, and other // sorts of informal tokens. if (preg_match('/[._]/', $normalized_token)) { return $normalized_token; } static $loaded; if ($loaded === null) { $root = dirname(phutil_get_library_root('phutil')); require_once $root.'/externals/porter-stemmer/src/Porter.php'; $loaded = true; } $stem = Porter::stem($normalized_token); // If the stem is too short, it won't be a candidate for indexing. These // tokens are also likely to be acronyms (like "DNS") rather than real // English words. if (strlen($stem) < 3) { return $normalized_token; } return $stem; } } diff --git a/src/search/__tests__/PhutilSearchQueryCompilerTestCase.php b/src/search/__tests__/PhutilSearchQueryCompilerTestCase.php index dc6c9d1..0dba0c1 100644 --- a/src/search/__tests__/PhutilSearchQueryCompilerTestCase.php +++ b/src/search/__tests__/PhutilSearchQueryCompilerTestCase.php @@ -1,206 +1,221 @@ null, 'cat dog' => '+"cat" +"dog"', 'cat -dog' => '+"cat" -"dog"', 'cat-dog' => '+"cat-dog"', // If there are spaces after an operator, the operator applies to the // next search term. 'cat - dog' => '+"cat" -"dog"', // Double quotes serve as delimiters even if there is no whitespace // between terms. '"cat"dog' => '+"cat" +"dog"', // This query is too long. str_repeat('x', 2048) => false, // Multiple operators are not permitted. '++cat' => false, '+-cat' => false, '--cat' => false, // Stray operators are not permitted. '+' => false, 'cat +' => false, // Double quotes must be paired. '"' => false, 'cat "' => false, '"cat' => false, 'A"' => false, 'A"B"' => '+"A" +"B"', ); $this->assertCompileQueries($tests); // Test that we compile queries correctly if the operators have been // swapped to use "AND" by default. $operator_tests = array( 'cat dog' => '"cat" "dog"', 'cat -dog' => '"cat" -"dog"', ); $this->assertCompileQueries($operator_tests, ' |-><()~*:""&\''); // Test that we compile queries correctly if the quote operators have // been swapped to differ. $quote_tests = array( 'cat dog' => '+[cat] +[dog]', 'cat -dog' => '+[cat] -[dog]', ); $this->assertCompileQueries($quote_tests, '+ -><()~*:[]&|'); } public function testCompileQueriesWithStemming() { $stemming_tests = array( 'cat dog' => array( null, '+"cat" +"dog"', ), 'cats dogs' => array( null, '+"cat" +"dog"', ), 'cats "dogs"' => array( '+"dogs"', '+"cat"', ), '"blessed blade" of the windseeker' => array( '+"blessed blade"', '+"of" +"the" +"windseek"', ), 'mailing users for mentions on tasks' => array( null, '+"mail" +"user" +"for" +"mention" +"on" +"task"', ), ); $stemmer = new PhutilSearchStemmer(); $this->assertCompileQueries($stemming_tests, null, $stemmer); } public function testCompileQueriesWithFunctions() { $op_and = PhutilSearchQueryCompiler::OPERATOR_AND; $op_sub = PhutilSearchQueryCompiler::OPERATOR_SUBSTRING; $op_exact = PhutilSearchQueryCompiler::OPERATOR_EXACT; + $mao = "\xE7\x8C\xAB"; + $function_tests = array( 'cat' => array( array(null, $op_and, 'cat'), ), ':cat' => array( array(null, $op_and, 'cat'), ), 'title:cat' => array( array('title', $op_and, 'cat'), ), 'title:cat:dog' => array( array('title', $op_and, 'cat:dog'), ), 'title:~cat' => array( array('title', $op_sub, 'cat'), ), 'cat title:="Meow Meow"' => array( array(null, $op_and, 'cat'), array('title', $op_exact, 'Meow Meow'), ), 'title:cat title:dog' => array( array('title', $op_and, 'cat'), array('title', $op_and, 'dog'), ), '~"core and seven years ag"' => array( array(null, $op_sub, 'core and seven years ag'), ), + $mao => array( + array(null, $op_sub, $mao), + ), + '+'.$mao => array( + array(null, $op_and, $mao), + ), + '~'.$mao => array( + array(null, $op_sub, $mao), + ), + '"'.$mao.'"' => array( + array(null, $op_and, $mao), + ), +>>>>>>> upstream/stable ); $this->assertCompileFunctionQueries($function_tests); } private function assertCompileQueries( array $tests, $operators = null, PhutilSearchStemmer $stemmer = null) { foreach ($tests as $input => $expect) { $caught = null; $query = null; $literal_query = null; $stemmed_query = null; try { $compiler = new PhutilSearchQueryCompiler(); if ($operators !== null) { $compiler->setOperators($operators); } if ($stemmer !== null) { $compiler->setStemmer($stemmer); } $tokens = $compiler->newTokens($input); if ($stemmer) { $literal_query = $compiler->compileLiteralQuery($tokens); $stemmed_query = $compiler->compileStemmedQuery($tokens); } else { $query = $compiler->compileQuery($tokens); } } catch (PhutilSearchQueryCompilerSyntaxException $ex) { $caught = $ex; } if ($caught !== null) { $query = false; $literal_query = false; $stemmed_query = false; } if (!$stemmer) { $this->assertEqual( $expect, $query, pht('Compilation of query: %s', $input)); } else { $this->assertEqual( $expect, ($literal_query === false) ? false : array($literal_query, $stemmed_query), pht('Stemmed compilation of query: %s', $input)); } } } private function assertCompileFunctionQueries(array $tests) { foreach ($tests as $input => $expect) { $compiler = id(new PhutilSearchQueryCompiler()) ->setEnableFunctions(true); $tokens = $compiler->newTokens($input); $result = array(); foreach ($tokens as $token) { $result[] = array( $token->getFunction(), $token->getOperator(), $token->getValue(), ); } $this->assertEqual( $expect, $result, pht('Function compilation of query: %s', $input)); } } } diff --git a/src/utils/__tests__/PhutilUTF8TestCase.php b/src/utils/__tests__/PhutilUTF8TestCase.php index 8622ba9..37206ad 100644 --- a/src/utils/__tests__/PhutilUTF8TestCase.php +++ b/src/utils/__tests__/PhutilUTF8TestCase.php @@ -1,726 +1,742 @@ assertEqual($input, phutil_utf8ize($input)); } public function testUTF8izeUTF8Ignored() { $input = "\xc3\x9c \xc3\xbc \xe6\x9d\xb1!"; $this->assertEqual($input, phutil_utf8ize($input)); } public function testUTF8izeLongStringNosegfault() { // For some reason my laptop is segfaulting on long inputs inside // preg_match(). Forestall this craziness in the common case, at least. phutil_utf8ize(str_repeat('x', 1024 * 1024)); $this->assertTrue(true); } public function testUTF8izeInvalidUTF8Fixed() { $input = "\xc3 this has \xe6\x9d some invalid utf8 \xe6"; $expect = "\xEF\xBF\xBD this has \xEF\xBF\xBD\xEF\xBF\xBD some invalid utf8 ". "\xEF\xBF\xBD"; $result = phutil_utf8ize($input); $this->assertEqual($expect, $result); } public function testUTF8izeOwlIsCuteAndFerocious() { // This was once a ferocious owl when we used to use "?" as the replacement // character instead of U+FFFD, but now he is sort of not as cute or // ferocious. $input = "M(o\xEE\xFF\xFFo)M"; $expect = "M(o\xEF\xBF\xBD\xEF\xBF\xBD\xEF\xBF\xBDo)M"; $result = phutil_utf8ize($input); $this->assertEqual($expect, $result); } public function testOverlongFormFiltering() { $bad = "\xEF\xBF\xBD"; $map = array( 'quack' => 'quack', // This is U+1000, a valid character. "\xE1\x80\x80" => "\xE1\x80\x80", // This is a 2-byte encoding of U+0000. "\xC0\x80" => "{$bad}{$bad}", // This is a 3-byte encoding of U+0020. "\xE0\x80\xA0" => "{$bad}{$bad}{$bad}", "A \xE0\x83\x83" => "A {$bad}{$bad}{$bad}", ); foreach ($map as $input => $expect) { $actual = phutil_utf8ize($input); $this->assertEqual( $expect, $actual, pht('Overlong form canonicalization of: %s', $input)); } } public function testSurrogateFiltering() { $bad = "\xEF\xBF\xBD"; $map = array( "A \xED\xA9\x98" => "A {$bad}{$bad}{$bad}", ); foreach ($map as $input => $expect) { $actual = phutil_utf8ize($input); $this->assertEqual( $expect, $actual, pht('Surrogate filtering: %s', $input)); } } public function testUTF8CodepointEncoding() { $map = array( 0x20 => ' ', 0x7E => '~', 0xE9 => "\xC3\xA9", 0x2603 => "\xE2\x98\x83", 0x1F417 => "\xF0\x9F\x90\x97", ); foreach ($map as $input => $expect) { $actual = phutil_utf8_encode_codepoint($input); $this->assertEqual( $expect, $actual, pht('UTF8 codepoint encoding of "%s".', $input)); } } public function testUTF8len() { $strings = array( '' => 0, 'x' => 1, "\xEF\xBF\xBD" => 1, "x\xe6\x9d\xb1y" => 3, 'xyz' => 3, 'quack' => 5, ); foreach ($strings as $str => $expect) { $this->assertEqual($expect, phutil_utf8_strlen($str), 'Length of '.$str); } } public function testUTF8v() { $strings = array( '' => array(), 'x' => array('x'), 'quack' => array('q', 'u', 'a', 'c', 'k'), "x\xe6\x9d\xb1y" => array('x', "\xe6\x9d\xb1", 'y'), // This is a combining character. "x\xCD\xA0y" => array('x', "\xCD\xA0", 'y'), ); foreach ($strings as $str => $expect) { $this->assertEqual($expect, phutil_utf8v($str), 'Vector of '.$str); } } public function testUTF8vCodepoints() { $strings = array( '' => array(), 'x' => array(0x78), 'quack' => array(0x71, 0x75, 0x61, 0x63, 0x6B), "x\xe6\x9d\xb1y" => array(0x78, 0x6771, 0x79), "\xC2\xBB" => array(0x00BB), "\xE2\x98\x83" => array(0x2603), "\xEF\xBF\xBF" => array(0xFFFF), "\xF0\x9F\x92\xA9" => array(0x1F4A9), // This is a combining character. "x\xCD\xA0y" => array(0x78, 0x0360, 0x79), ); foreach ($strings as $str => $expect) { $this->assertEqual( $expect, phutil_utf8v_codepoints($str), pht('Codepoint Vector of %s', $str)); } } public function testUTF8ConsoleStrlen() { $strings = array( '' => 0, "\0" => 0, 'x' => 1, // Double-width chinese character. "\xe6\x9d\xb1" => 2, // Combining character. "x\xCD\xA0y" => 2, // Combining plus double-width. "\xe6\x9d\xb1\xCD\xA0y" => 3, // Colors and formatting. "\x1B[1mx\x1B[m" => 1, "\x1B[1m\x1B[31mx\x1B[m" => 1, ); foreach ($strings as $str => $expect) { $this->assertEqual( $expect, phutil_utf8_console_strlen($str), pht('Console Length of %s', $str)); } } public function testUTF8shorten() { $inputs = array( array('1erp derp derp', 9, '', '1erp derp'), array('2erp derp derp', 12, '...', '2erp derp...'), array('derpxderpxderp', 12, '...', 'derpxderp...'), array("derp\xE2\x99\x83derpderp", 12, '...', "derp\xE2\x99\x83derp..."), array('', 12, '...', ''), array('derp', 12, '...', 'derp'), array('11111', 5, '2222', '11111'), array('111111', 5, '2222', '12222'), array('D1rp. Derp derp.', 7, '...', 'D1rp.'), // "D2rp." is a better shortening of this, but it's dramatically more // complicated to implement with the newer byte/glyph/character // shortening code. array('D2rp. Derp derp.', 5, '...', 'D2...'), array('D3rp. Derp derp.', 4, '...', 'D...'), array('D4rp. Derp derp.', 14, '...', 'D4rp. Derp...'), array('D5rpderp, derp derp', 16, '...', 'D5rpderp...'), array('D6rpderp, derp derp', 17, '...', 'D6rpderp, derp...'), // Strings with combining characters. array("Gr\xCD\xA0mpyCatSmiles", 8, '...', "Gr\xCD\xA0mpy..."), array("X\xCD\xA0\xCD\xA0\xCD\xA0Y", 1, '', "X\xCD\xA0\xCD\xA0\xCD\xA0"), // This behavior is maybe a little bad, but it seems mostly reasonable, // at least for latin languages. array( 'Derp, supercalafragalisticexpialadoshus', 30, '...', 'Derp...', ), // If a string has only word-break characters in it, we should just cut // it, not produce only the terminal. array('((((((((((', 8, '...', '(((((...'), // Terminal is longer than requested input. array('derp', 3, 'quack', 'quack'), ); foreach ($inputs as $input) { list($string, $length, $terminal, $expect) = $input; $result = id(new PhutilUTF8StringTruncator()) ->setMaximumGlyphs($length) ->setTerminator($terminal) ->truncateString($string); $this->assertEqual($expect, $result, pht('Shortening of %s', $string)); } } public function testUTF8StringTruncator() { $cases = array( array( "o\xCD\xA0o\xCD\xA0o\xCD\xA0o\xCD\xA0o\xCD\xA0", 6, "o\xCD\xA0!", 6, "o\xCD\xA0o\xCD\xA0!", 6, "o\xCD\xA0o\xCD\xA0o\xCD\xA0o\xCD\xA0o\xCD\xA0", ), array( "X\xCD\xA0\xCD\xA0\xCD\xA0Y", 6, '!', 6, "X\xCD\xA0\xCD\xA0\xCD\xA0Y", 6, "X\xCD\xA0\xCD\xA0\xCD\xA0Y", ), array( "X\xCD\xA0\xCD\xA0\xCD\xA0YZ", 6, '!', 5, "X\xCD\xA0\xCD\xA0\xCD\xA0!", 2, "X\xCD\xA0\xCD\xA0\xCD\xA0!", ), array( "\xE2\x98\x83\xE2\x98\x83\xE2\x98\x83\xE2\x98\x83", 4, "\xE2\x98\x83!", 3, "\xE2\x98\x83\xE2\x98\x83!", 3, "\xE2\x98\x83\xE2\x98\x83!", ), ); foreach ($cases as $case) { list($input, $b_len, $b_out, $p_len, $p_out, $g_len, $g_out) = $case; $result = id(new PhutilUTF8StringTruncator()) ->setMaximumBytes($b_len) ->setTerminator('!') ->truncateString($input); $this->assertEqual($b_out, $result, pht('byte-short of %s', $input)); $result = id(new PhutilUTF8StringTruncator()) ->setMaximumCodepoints($p_len) ->setTerminator('!') ->truncateString($input); $this->assertEqual($p_out, $result, pht('codepoint-short of %s', $input)); $result = id(new PhutilUTF8StringTruncator()) ->setMaximumGlyphs($g_len) ->setTerminator('!') ->truncateString($input); $this->assertEqual($g_out, $result, pht('glyph-short of %s', $input)); } } public function testUTF8LargeTruncation() { // This is testing that our performance is reasonable when truncating a // large input into a small output. Runtime should be on the order of the // output size, not the input size. $whale = "\xF0\x9F\x90\xB3"; $input = str_repeat($whale, 1024 * 1024); $result = id(new PhutilUTF8StringTruncator()) ->setMaximumBytes(16) ->setTerminator('!') ->truncateString($input); $this->assertEqual( str_repeat($whale, 3).'!', $result, pht('Large truncation.')); } public function testUTF8Wrap() { $inputs = array( array( 'aaaaaaa', 3, array( 'aaa', 'aaa', 'a', ), ), array( 'aaaaaaa', 3, array( 'aaa', 'aaa', 'a', ), ), array( 'aa&aaaa', 3, array( 'aa&', 'aaa', 'a', ), ), array( "aa\xe6\x9d\xb1aaaa", 3, array( "aa\xe6\x9d\xb1", 'aaa', 'a', ), ), array( '', 80, array( ), ), array( 'a', 80, array( 'a', ), ), ); foreach ($inputs as $input) { list($string, $width, $expect) = $input; $this->assertEqual( $expect, phutil_utf8_hard_wrap_html($string, $width), pht("Wrapping of '%s'.", $string)); } } public function testUTF8NonHTMLWrap() { $inputs = array( array( 'aaaaaaa', 3, array( 'aaa', 'aaa', 'a', ), ), array( 'abracadabra!', 4, array( 'abra', 'cada', 'bra!', ), ), array( '', 10, array( ), ), array( 'a', 20, array( 'a', ), ), array( "aa\xe6\x9d\xb1aaaa", 3, array( "aa\xe6\x9d\xb1", 'aaa', 'a', ), ), array( "mmm\nmmm\nmmmm", 3, array( 'mmm', 'mmm', 'mmm', 'm', ), ), ); foreach ($inputs as $input) { list($string, $width, $expect) = $input; $this->assertEqual( $expect, phutil_utf8_hard_wrap($string, $width), pht("Wrapping of '%s'", $string)); } } public function testUTF8ConvertParams() { $caught = null; try { phutil_utf8_convert('', 'utf8', ''); } catch (Exception $ex) { $caught = $ex; } $this->assertTrue((bool)$caught, pht('Requires source encoding.')); $caught = null; try { phutil_utf8_convert('', '', 'utf8'); } catch (Exception $ex) { $caught = $ex; } $this->assertTrue((bool)$caught, pht('Requires target encoding.')); } public function testUTF8Convert() { if (!function_exists('mb_convert_encoding')) { $this->assertSkipped(pht('Requires %s extension.', 'mbstring')); } // "[ae]gis se[n]or [(c)] 1970 [+/-] 1 [degree]" $input = "\xE6gis SE\xD1OR \xA9 1970 \xB11\xB0"; $expect = "\xC3\xA6gis SE\xC3\x91OR \xC2\xA9 1970 \xC2\xB11\xC2\xB0"; $output = phutil_utf8_convert($input, 'UTF-8', 'ISO-8859-1'); $this->assertEqual($expect, $output, pht('Conversion from ISO-8859-1.')); $caught = null; try { phutil_utf8_convert('xyz', 'moon language', 'UTF-8'); } catch (Exception $ex) { $caught = $ex; } $this->assertTrue((bool)$caught, pht('Conversion with bogus encoding.')); } public function testUTF8ucwords() { $tests = array( '' => '', 'x' => 'X', 'X' => 'X', 'five short graybles' => 'Five Short Graybles', 'xXxSNiPeRKiLLeRxXx' => 'XXxSNiPeRKiLLeRxXx', ); foreach ($tests as $input => $expect) { $this->assertEqual( $expect, phutil_utf8_ucwords($input), 'phutil_utf8_ucwords("'.$input.'")'); } } public function testUTF8strtolower() { $tests = array( '' => '', 'a' => 'a', 'A' => 'a', '!' => '!', 'OMG!~ LOLolol ROFLwaffle11~' => 'omg!~ lololol roflwaffle11~', "\xE2\x98\x83" => "\xE2\x98\x83", ); foreach ($tests as $input => $expect) { $this->assertEqual( $expect, phutil_utf8_strtolower($input), 'phutil_utf8_strtolower("'.$input.'")'); } } public function testUTF8strtoupper() { $tests = array( '' => '', 'a' => 'A', 'A' => 'A', '!' => '!', 'Cats have 9 lives.' => 'CATS HAVE 9 LIVES.', "\xE2\x98\x83" => "\xE2\x98\x83", ); foreach ($tests as $input => $expect) { $this->assertEqual( $expect, phutil_utf8_strtoupper($input), 'phutil_utf8_strtoupper("'.$input.'")'); } } public function testUTF8IsCombiningCharacter() { $character = "\xCD\xA0"; $this->assertEqual( true, phutil_utf8_is_combining_character($character)); $character = 'a'; $this->assertEqual( false, phutil_utf8_is_combining_character($character)); } public function testUTF8vCombined() { // Empty string. $string = ''; $this->assertEqual(array(), phutil_utf8v_combined($string)); // Single character. $string = 'x'; $this->assertEqual(array('x'), phutil_utf8v_combined($string)); // No combining characters. $string = 'cat'; $this->assertEqual(array('c', 'a', 't'), phutil_utf8v_combined($string)); // String with a combining character in the middle. $string = "ca\xCD\xA0t"; $this->assertEqual( array('c', "a\xCD\xA0", 't'), phutil_utf8v_combined($string)); // String starting with a combined character. $string = "c\xCD\xA0at"; $this->assertEqual( array("c\xCD\xA0", 'a', 't'), phutil_utf8v_combined($string)); // String with trailing combining character. $string = "cat\xCD\xA0"; $this->assertEqual( array('c', 'a', "t\xCD\xA0"), phutil_utf8v_combined($string)); // String with muliple combined characters. $string = "c\xCD\xA0a\xCD\xA0t\xCD\xA0"; $this->assertEqual( array("c\xCD\xA0", "a\xCD\xA0", "t\xCD\xA0"), phutil_utf8v_combined($string)); // String with multiple combining characters. $string = "ca\xCD\xA0\xCD\xA0t"; $this->assertEqual( array('c', "a\xCD\xA0\xCD\xA0", 't'), phutil_utf8v_combined($string)); // String beginning with a combining character. $string = "\xCD\xA0\xCD\xA0c"; $this->assertEqual( array(" \xCD\xA0\xCD\xA0", 'c'), phutil_utf8v_combined($string)); } public function testUTF8BMPSegfaults() { // This test case fails by segfaulting, or passes by not segfaulting. See // the function implementation for details. $input = str_repeat("\xEF\xBF\xBF", 1024 * 32); phutil_is_utf8_with_only_bmp_characters($input); $this->assertTrue(true); } + public function testCJK() { + $map = array( + '' => false, + 'a' => false, + '.' => false, + "\xE2\x98\x83" => false, + "\xE5\xA0\xB1" => true, + ); + + foreach ($map as $input => $expect) { + $actual = phutil_utf8_is_cjk($input); + + $this->assertEqual($expect, $actual, pht('CJK: "%s"', $input)); + } + } + public function testUTF8BMP() { $tests = array( '' => array( true, true, pht('empty string'), ), 'a' => array( true, true, 'a', ), "a\xCD\xA0\xCD\xA0" => array( true, true, pht('%s with combining', 'a'), ), "\xE2\x98\x83" => array( true, true, pht('snowman'), ), // This is the last character in BMP, U+FFFF. "\xEF\xBF\xBF" => array( true, true, 'U+FFFF', ), // This isn't valid. "\xEF\xBF\xC0" => array( false, false, pht('Invalid, byte range.'), ), // This is an invalid nonminimal representation. "\xF0\x81\x80\x80" => array( false, false, pht('Nonminimal 4-byte character.'), ), // This is the first character above BMP, U+10000. "\xF0\x90\x80\x80" => array( true, false, 'U+10000', ), "\xF0\x9D\x84\x9E" => array( true, false, 'gclef', ), "musical \xF0\x9D\x84\x9E g-clef" => array( true, false, pht('gclef text'), ), "\xF0\x9D\x84" => array( false, false, pht('Invalid, truncated.'), ), "\xE0\x80\x80" => array( false, false, pht('Nonminimal 3-byte character.'), ), // Partial BMP characters. "\xCD" => array( false, false, pht('Partial 2-byte character.'), ), "\xE0\xA0" => array( false, false, pht('Partial BMP 0xE0 character.'), ), "\xE2\x98" => array( false, false, pht('Partial BMP cahracter.'), ), ); foreach ($tests as $input => $test) { list($expect_utf8, $expect_bmp, $test_name) = $test; // Depending on what's installed on the system, this may use an // extension. $this->assertEqual( $expect_utf8, phutil_is_utf8($input), pht('is_utf(%s)', $test_name)); // Also test this against the pure PHP implementation, explicitly. $this->assertEqual( $expect_utf8, phutil_is_utf8_slowly($input), pht('is_utf_slowly(%s)', $test_name)); $this->assertEqual( $expect_bmp, phutil_is_utf8_with_only_bmp_characters($input), pht('is_utf_bmp(%s)', $test_name)); } } } diff --git a/src/utils/utf8.php b/src/utils/utf8.php index d50ed01..142ee56 100644 --- a/src/utils/utf8.php +++ b/src/utils/utf8.php @@ -1,841 +1,899 @@ = 0xD800 && $codepoint <= 0xDFFF) { $result[] = str_repeat($replacement, strlen($match)); $offset += strlen($matches[0]); continue; } } $result[] = $match; } else { // Unicode replacement character, U+FFFD. $result[] = $replacement; } $offset += strlen($matches[0]); } return implode('', $result); } /** * Determine if a string is valid UTF-8, with only basic multilingual plane * characters. This is particularly important because MySQL's `utf8` column * types silently truncate strings which contain characters outside of this * set. * * @param string String to test for being valid UTF-8 with only characters in * the basic multilingual plane. * @return bool True if the string is valid UTF-8 with only BMP characters. */ function phutil_is_utf8_with_only_bmp_characters($string) { return phutil_is_utf8_slowly($string, $only_bmp = true); } /** * Determine if a string is valid UTF-8. * * @param string Some string which may or may not be valid UTF-8. * @return bool True if the string is valid UTF-8. */ function phutil_is_utf8($string) { if (function_exists('mb_check_encoding')) { // If mbstring is available, this is significantly faster than using PHP. return mb_check_encoding($string, 'UTF-8'); } return phutil_is_utf8_slowly($string); } /** * Determine if a string is valid UTF-8, slowly. * * This works on any system, but has very poor performance. * * You should call @{function:phutil_is_utf8} instead of this function, as * that function can use more performant mechanisms if they are available on * the system. * * @param string Some string which may or may not be valid UTF-8. * @param bool True to require all characters be part of the basic * multilingual plane (no more than 3-bytes long). * @return bool True if the string is valid UTF-8. */ function phutil_is_utf8_slowly($string, $only_bmp = false) { // First, check the common case of normal ASCII strings. We're fine if // the string contains no bytes larger than 127. if (preg_match('/^[\x01-\x7F]+\z/', $string)) { return true; } // NOTE: In the past, we used a large regular expression in the form of // '(x|y|z)+' to match UTF8 strings. However, PCRE can segfaults on patterns // like this at relatively small input sizes, at least on some systems // (observed on OSX and Windows). This is apparently because the internal // implementation is recursive and it blows the stack. // See for some discussion. Since the // input limit is extremely low (less than 50KB on my system), do this check // very very slowly in PHP instead. See also T5316. $len = strlen($string); for ($ii = 0; $ii < $len; $ii++) { $chr = ord($string[$ii]); if ($chr >= 0x01 && $chr <= 0x7F) { continue; } else if ($chr >= 0xC2 && $chr <= 0xDF) { ++$ii; if ($ii >= $len) { return false; } $chr = ord($string[$ii]); if ($chr >= 0x80 && $chr <= 0xBF) { continue; } return false; } else if ($chr > 0xE0 && $chr <= 0xEF) { ++$ii; if ($ii >= $len) { return false; } $chr = ord($string[$ii]); if ($chr >= 0x80 && $chr <= 0xBF) { ++$ii; if ($ii >= $len) { return false; } $chr = ord($string[$ii]); if ($chr >= 0x80 && $chr <= 0xBF) { continue; } } return false; } else if ($chr == 0xE0) { ++$ii; if ($ii >= $len) { return false; } $chr = ord($string[$ii]); // NOTE: This range starts at 0xA0, not 0x80. The values 0x80-0xA0 are // "valid", but not minimal representations, and MySQL rejects them. We're // special casing this part of the range. if ($chr >= 0xA0 && $chr <= 0xBF) { ++$ii; if ($ii >= $len) { return false; } $chr = ord($string[$ii]); if ($chr >= 0x80 && $chr <= 0xBF) { continue; } } return false; } else if (!$only_bmp) { if ($chr > 0xF0 && $chr <= 0xF4) { ++$ii; if ($ii >= $len) { return false; } $chr = ord($string[$ii]); if ($chr >= 0x80 && $chr <= 0xBF) { ++$ii; if ($ii >= $len) { return false; } $chr = ord($string[$ii]); if ($chr >= 0x80 && $chr <= 0xBF) { ++$ii; if ($ii >= $len) { return false; } $chr = ord($string[$ii]); if ($chr >= 0x80 && $chr <= 0xBF) { continue; } } } } else if ($chr == 0xF0) { ++$ii; if ($ii >= $len) { return false; } $chr = ord($string[$ii]); // NOTE: As above, this range starts at 0x90, not 0x80. The values // 0x80-0x90 are not minimal representations. if ($chr >= 0x90 && $chr <= 0xBF) { ++$ii; if ($ii >= $len) { return false; } $chr = ord($string[$ii]); if ($chr >= 0x80 && $chr <= 0xBF) { ++$ii; if ($ii >= $len) { return false; } $chr = ord($string[$ii]); if ($chr >= 0x80 && $chr <= 0xBF) { continue; } } } } } return false; } return true; } /** * Find the character length of a UTF-8 string. * * @param string A valid utf-8 string. * @return int The character length of the string. */ function phutil_utf8_strlen($string) { if (function_exists('utf8_decode')) { return strlen(utf8_decode($string)); } return count(phutil_utf8v($string)); } /** * Find the console display length of a UTF-8 string. This may differ from the * character length of the string if it contains double-width characters, like * many Chinese characters. * * This method is based on a C implementation here, which is based on the IEEE * standards. The source has more discussion and addresses more considerations * than this implementation does. * * http://www.cl.cam.ac.uk/~mgk25/ucs/wcwidth.c * * NOTE: We currently assume width 1 for East-Asian ambiguous characters. * * NOTE: This function is VERY slow. * * @param string A valid UTF-8 string. * @return int The console display length of the string. */ function phutil_utf8_console_strlen($string) { // Formatting and colors don't contribute any width in the console. $string = preg_replace("/\x1B\[\d*m/", '', $string); // In the common case of an ASCII string, just return the string length. if (preg_match('/^[\x01-\x7F]*\z/', $string)) { return strlen($string); } $len = 0; // NOTE: To deal with combining characters, we're splitting the string into // glyphs first (characters with combiners) and then counting just the width // of the first character in each glyph. $display_glyphs = phutil_utf8v_combined($string); foreach ($display_glyphs as $display_glyph) { $glyph_codepoints = phutil_utf8v_codepoints($display_glyph); foreach ($glyph_codepoints as $c) { if ($c == 0) { break; } $len += 1 + ($c >= 0x1100 && ($c <= 0x115F || /* Hangul Jamo init. consonants */ $c == 0x2329 || $c == 0x232A || ($c >= 0x2E80 && $c <= 0xA4CF && $c != 0x303F) || /* CJK ... Yi */ ($c >= 0xAC00 && $c <= 0xD7A3) || /* Hangul Syllables */ ($c >= 0xF900 && $c <= 0xFAFF) || /* CJK Compatibility Ideographs */ ($c >= 0xFE10 && $c <= 0xFE19) || /* Vertical forms */ ($c >= 0xFE30 && $c <= 0xFE6F) || /* CJK Compatibility Forms */ ($c >= 0xFF00 && $c <= 0xFF60) || /* Fullwidth Forms */ ($c >= 0xFFE0 && $c <= 0xFFE6) || ($c >= 0x20000 && $c <= 0x2FFFD) || ($c >= 0x30000 && $c <= 0x3FFFD))); break; } } return $len; } +/** + * Test if a string contains Chinese, Japanese, or Korean characters. + * + * Most languages use spaces to separate words, but these languages do not. + * + * @param string String to examine, in UTF8. + * @return bool True if the string contains Chinese, Japanese, or Korean + * characters. + */ +function phutil_utf8_is_cjk($string) { + $codepoints = phutil_utf8v_codepoints($string); + + foreach ($codepoints as $codepoint) { + // CJK Unified Ideographs + if ($codepoint >= 0x4E00 && $codepoint <= 0x9FFF) { + return true; + } + + // CJK Unified Ideographs Extension A + if ($codepoint >= 0x3400 && $codepoint <= 0x4DBF) { + return true; + } + + // CJK Unified Ideographs Extension B + if ($codepoint >= 0x20000 && $codepoint <= 0x2A6DF) { + return true; + } + + // CJK Unified Ideographs Extension C + if ($codepoint >= 0x2A700 && $codepoint <= 0x2B73F) { + return true; + } + + // CJK Unified Ideographs Extension D + if ($codepoint >= 0x2B740 && $codepoint <= 0x2B81F) { + return true; + } + + // CJK Unified Ideographs Extension E + if ($codepoint >= 0x2B820 && $codepoint <= 0x2CEAF) { + return true; + } + + // CJK Unified Ideographs Extension F + if ($codepoint >= 0x2CEB0 && $codepoint <= 0x2EBEF) { + return true; + } + + // CJK Compatibility Ideographs + if ($codepoint >= 0xF900 && $codepoint <= 0xFAFF) { + return true; + } + } + + return false; +} + + /** * Split a UTF-8 string into an array of characters. Combining characters are * also split. * * @param string A valid utf-8 string. * @param int|null Stop processing after examining this many bytes. * @return list A list of characters in the string. */ function phutil_utf8v($string, $byte_limit = null) { $res = array(); $len = strlen($string); $ii = 0; while ($ii < $len) { $byte = $string[$ii]; if ($byte <= "\x7F") { $res[] = $byte; $ii += 1; if ($byte_limit && ($ii >= $byte_limit)) { break; } continue; } else if ($byte < "\xC0") { throw new Exception( pht('Invalid UTF-8 string passed to %s.', __FUNCTION__)); } else if ($byte <= "\xDF") { $seq_len = 2; } else if ($byte <= "\xEF") { $seq_len = 3; } else if ($byte <= "\xF7") { $seq_len = 4; } else if ($byte <= "\xFB") { $seq_len = 5; } else if ($byte <= "\xFD") { $seq_len = 6; } else { throw new Exception( pht('Invalid UTF-8 string passed to %s.', __FUNCTION__)); } if ($ii + $seq_len > $len) { throw new Exception( pht('Invalid UTF-8 string passed to %s.', __FUNCTION__)); } for ($jj = 1; $jj < $seq_len; ++$jj) { if ($string[$ii + $jj] >= "\xC0") { throw new Exception( pht('Invalid UTF-8 string passed to %s.', __FUNCTION__)); } } $res[] = substr($string, $ii, $seq_len); $ii += $seq_len; if ($byte_limit && ($ii >= $byte_limit)) { break; } } return $res; } /** * Split a UTF-8 string into an array of codepoints (as integers). * * @param string A valid UTF-8 string. * @return list A list of codepoints, as integers. */ function phutil_utf8v_codepoints($string) { $str_v = phutil_utf8v($string); foreach ($str_v as $key => $char) { $c = ord($char[0]); $v = 0; if (($c & 0x80) == 0) { $v = $c; } else if (($c & 0xE0) == 0xC0) { $v = (($c & 0x1F) << 6) + ((ord($char[1]) & 0x3F)); } else if (($c & 0xF0) == 0xE0) { $v = (($c & 0x0F) << 12) + ((ord($char[1]) & 0x3F) << 6) + ((ord($char[2]) & 0x3F)); } else if (($c & 0xF8) == 0xF0) { $v = (($c & 0x07) << 18) + ((ord($char[1]) & 0x3F) << 12) + ((ord($char[2]) & 0x3F) << 6) + ((ord($char[3]) & 0x3F)); } else if (($c & 0xFC) == 0xF8) { $v = (($c & 0x03) << 24) + ((ord($char[1]) & 0x3F) << 18) + ((ord($char[2]) & 0x3F) << 12) + ((ord($char[3]) & 0x3F) << 6) + ((ord($char[4]) & 0x3F)); } else if (($c & 0xFE) == 0xFC) { $v = (($c & 0x01) << 30) + ((ord($char[1]) & 0x3F) << 24) + ((ord($char[2]) & 0x3F) << 18) + ((ord($char[3]) & 0x3F) << 12) + ((ord($char[4]) & 0x3F) << 6) + ((ord($char[5]) & 0x3F)); } $str_v[$key] = $v; } return $str_v; } /** * Convert a Unicode codepoint into a UTF8-encoded string. * * @param int Unicode codepoint. * @return string UTF8 encoding. */ function phutil_utf8_encode_codepoint($codepoint) { if ($codepoint < 0x80) { $r = chr($codepoint); } else if ($codepoint < 0x800) { $r = chr(0xC0 | (($codepoint >> 6) & 0x1F)). chr(0x80 | (($codepoint) & 0x3F)); } else if ($codepoint < 0x10000) { $r = chr(0xE0 | (($codepoint >> 12) & 0x0F)). chr(0x80 | (($codepoint >> 6) & 0x3F)). chr(0x80 | (($codepoint) & 0x3F)); } else if ($codepoint < 0x110000) { $r = chr(0xF0 | (($codepoint >> 18) & 0x07)). chr(0x80 | (($codepoint >> 12) & 0x3F)). chr(0x80 | (($codepoint >> 6) & 0x3F)). chr(0x80 | (($codepoint) & 0x3F)); } else { throw new Exception( pht( 'Encoding UTF8 codepoint "%s" is not supported.', $codepoint)); } return $r; } /** * Hard-wrap a block of UTF-8 text with embedded HTML tags and entities. * * @param string An HTML string with tags and entities. * @return list List of hard-wrapped lines. */ function phutil_utf8_hard_wrap_html($string, $width) { $break_here = array(); // Convert the UTF-8 string into a list of UTF-8 characters. $vector = phutil_utf8v($string); $len = count($vector); $char_pos = 0; for ($ii = 0; $ii < $len; ++$ii) { // An ampersand indicates an HTML entity; consume the whole thing (until // ";") but treat it all as one character. if ($vector[$ii] == '&') { do { ++$ii; } while ($vector[$ii] != ';'); ++$char_pos; // An "<" indicates an HTML tag, consume the whole thing but don't treat // it as a character. } else if ($vector[$ii] == '<') { do { ++$ii; } while ($vector[$ii] != '>'); } else { ++$char_pos; } // Keep track of where we need to break the string later. if ($char_pos == $width) { $break_here[$ii] = true; $char_pos = 0; } } $result = array(); $string = ''; foreach ($vector as $ii => $char) { $string .= $char; if (isset($break_here[$ii])) { $result[] = $string; $string = ''; } } if (strlen($string)) { $result[] = $string; } return $result; } /** * Hard-wrap a block of UTF-8 text with no embedded HTML tags and entities. * * @param string A non HTML string * @param int Width of the hard-wrapped lines * @return list List of hard-wrapped lines. */ function phutil_utf8_hard_wrap($string, $width) { $result = array(); $lines = phutil_split_lines($string, $retain_endings = false); foreach ($lines as $line) { // Convert the UTF-8 string into a list of UTF-8 characters. $vector = phutil_utf8v($line); $len = count($vector); $buffer = ''; for ($ii = 1; $ii <= $len; ++$ii) { $buffer .= $vector[$ii - 1]; if (($ii % $width) === 0) { $result[] = $buffer; $buffer = ''; } } if (strlen($buffer)) { $result[] = $buffer; } } return $result; } /** * Convert a string from one encoding (like ISO-8859-1) to another encoding * (like UTF-8). * * This is primarily a thin wrapper around `mb_convert_encoding()` which checks * you have the extension installed, since we try to require the extension * only if you actually need it (i.e., you want to work with encodings other * than UTF-8). * * NOTE: This function assumes that the input is in the given source encoding. * If it is not, it may not output in the specified target encoding. If you * need to perform a hard conversion to UTF-8, use this function in conjunction * with @{function:phutil_utf8ize}. We can detect failures caused by invalid * encoding names, but `mb_convert_encoding()` fails silently if the * encoding name identifies a real encoding but the string is not actually * encoded with that encoding. * * @param string String to re-encode. * @param string Target encoding name, like "UTF-8". * @param string Source encoding name, like "ISO-8859-1". * @return string Input string, with converted character encoding. * * @phutil-external-symbol function mb_convert_encoding */ function phutil_utf8_convert($string, $to_encoding, $from_encoding) { if (!$from_encoding) { throw new InvalidArgumentException( pht( 'Attempting to convert a string encoding, but no source encoding '. 'was provided. Explicitly provide the source encoding.')); } if (!$to_encoding) { throw new InvalidArgumentException( pht( 'Attempting to convert a string encoding, but no target encoding '. 'was provided. Explicitly provide the target encoding.')); } // Normalize encoding names so we can no-op the very common case of UTF8 // to UTF8 (or any other conversion where both encodings are identical). $to_upper = strtoupper(str_replace('-', '', $to_encoding)); $from_upper = strtoupper(str_replace('-', '', $from_encoding)); if ($from_upper == $to_upper) { return $string; } if (!function_exists('mb_convert_encoding')) { throw new Exception( pht( "Attempting to convert a string encoding from '%s' to '%s', ". "but the '%s' PHP extension is not available. Install %s to ". "work with encodings other than UTF-8.", $from_encoding, $to_encoding, 'mbstring', 'mbstring')); } $result = @mb_convert_encoding($string, $to_encoding, $from_encoding); if ($result === false) { $message = error_get_last(); if ($message) { $message = idx($message, 'message', pht('Unknown error.')); } throw new Exception( pht( "String conversion from encoding '%s' to encoding '%s' failed: %s", $from_encoding, $to_encoding, $message)); } return $result; } /** * Convert a string to title case in a UTF8-aware way. This function doesn't * necessarily do a great job, but the builtin implementation of `ucwords()` can * completely destroy inputs, so it just has to be better than that. Similar to * @{function:ucwords}. * * @param string UTF-8 input string. * @return string Input, in some semblance of title case. */ function phutil_utf8_ucwords($str) { // NOTE: mb_convert_case() discards uppercase letters in words when converting // to title case. For example, it will convert "AAA" into "Aaa", which is // undesirable. $v = phutil_utf8v($str); $result = ''; $last = null; $ord_a = ord('a'); $ord_z = ord('z'); foreach ($v as $c) { $convert = false; if ($last === null || $last === ' ') { $o = ord($c[0]); if ($o >= $ord_a && $o <= $ord_z) { $convert = true; } } if ($convert) { $result .= phutil_utf8_strtoupper($c); } else { $result .= $c; } $last = $c; } return $result; } /** * Convert a string to lower case in a UTF8-aware way. Similar to * @{function:strtolower}. * * @param string UTF-8 input string. * @return string Input, in some semblance of lower case. * * @phutil-external-symbol function mb_convert_case */ function phutil_utf8_strtolower($str) { if (function_exists('mb_convert_case')) { return mb_convert_case($str, MB_CASE_LOWER, 'UTF-8'); } static $map; if ($map === null) { $map = array_combine( range('A', 'Z'), range('a', 'z')); } return phutil_utf8_strtr($str, $map); } /** * Convert a string to upper case in a UTF8-aware way. Similar to * @{function:strtoupper}. * * @param string UTF-8 input string. * @return string Input, in some semblance of upper case. * * @phutil-external-symbol function mb_convert_case */ function phutil_utf8_strtoupper($str) { if (function_exists('mb_convert_case')) { return mb_convert_case($str, MB_CASE_UPPER, 'UTF-8'); } static $map; if ($map === null) { $map = array_combine( range('a', 'z'), range('A', 'Z')); } return phutil_utf8_strtr($str, $map); } /** * Replace characters in a string in a UTF-aware way. Similar to * @{function:strtr}. * * @param string UTF-8 input string. * @param map Map of characters to replace. * @return string Input with translated characters. */ function phutil_utf8_strtr($str, array $map) { $v = phutil_utf8v($str); $result = ''; foreach ($v as $c) { if (isset($map[$c])) { $result .= $map[$c]; } else { $result .= $c; } } return $result; } /** * Determine if a given unicode character is a combining character or not. * * @param string A single unicode character. * @return boolean True or false. */ function phutil_utf8_is_combining_character($character) { $components = phutil_utf8v_codepoints($character); // Combining Diacritical Marks (0300 - 036F). // Combining Diacritical Marks Supplement (1DC0 - 1DFF). // Combining Diacritical Marks for Symbols (20D0 - 20FF). // Combining Half Marks (FE20 - FE2F). foreach ($components as $codepoint) { if ($codepoint >= 0x0300 && $codepoint <= 0x036F || $codepoint >= 0x1DC0 && $codepoint <= 0x1DFF || $codepoint >= 0x20D0 && $codepoint <= 0x20FF || $codepoint >= 0xFE20 && $codepoint <= 0xFE2F) { return true; } } return false; } /** * Split a UTF-8 string into an array of characters. Combining characters * are not split. * * @param string A valid utf-8 string. * @return list A list of characters in the string. */ function phutil_utf8v_combined($string) { $components = phutil_utf8v($string); return phutil_utf8v_combine_characters($components); } /** * Merge combining characters in a UTF-8 string. * * This is a low-level method which can allow other operations to do less work. * If you have a string, call @{method:phutil_utf8v_combined} instead. * * @param list List of UTF-8 characters. * @return list List of UTF-8 strings with combining characters merged. */ function phutil_utf8v_combine_characters(array $characters) { if (!$characters) { return array(); } // If the first character in the string is a combining character, // start with a space. if (phutil_utf8_is_combining_character($characters[0])) { $buf = ' '; } else { $buf = null; } $parts = array(); foreach ($characters as $character) { if (!isset($character[1])) { // This an optimization: there are no one-byte combining characters, // so we can just pass these through unmodified. $is_combining = false; } else { $is_combining = phutil_utf8_is_combining_character($character); } if ($is_combining) { $buf .= $character; } else { if ($buf !== null) { $parts[] = $buf; } $buf = $character; } } $parts[] = $buf; return $parts; } diff --git a/support/xhpast/generate_nodes.php b/support/xhpast/generate_nodes.php index 11724d2..ec7c642 100755 --- a/support/xhpast/generate_nodes.php +++ b/support/xhpast/generate_nodes.php @@ -1,162 +1,163 @@ #!/usr/bin/env php $value) { $hpp .= "#define {$node} {$value}\n"; } Filesystem::writeFile( Filesystem::resolvePath('node_names.hpp', dirname(__FILE__)), $hpp); echo pht('Wrote C++ definition.')."\n"; $at = '@'; $php = << $value) { $php .= " {$value} => '{$node}',\n"; } $php .= <<(xhpastget_extra(yyscanner)) #undef yylineno #define yylineno yyextra->first_lineno #define push_state(s) xhp_new_push_state(s, (struct yyguts_t*) yyscanner) #define pop_state() xhp_new_pop_state((struct yyguts_t*) yyscanner) #define set_state(s) xhp_set_state(s, (struct yyguts_t*) yyscanner) #define NNEW(t) \ (new xhpast::Node(t)) #define NTYPE(n, type) \ ((n)->setType(type)) #define NMORE(n, end) \ ((n)->expandRange(end)) #define NSPAN(n, type, end) \ (NMORE(NTYPE((n), type), end)) #define NEXPAND(l, n, r) \ ((n)->expandRange(l)->expandRange(r)) using namespace std; static void yyerror(void* yyscanner, void* _, const char* error) { if (yyextra->terminated) { return; } yyextra->terminated = true; yyextra->error = error; } %} %expect 5 // 2: PHP's if/else grammar // 7: expr '[' dim_offset ']' -- shift will default to first grammar %name-prefix "xhpast" %pure-parser %parse-param { void* yyscanner } %parse-param { xhpast::Node** root } %lex-param { void* yyscanner } %error-verbose %precedence T_INCLUDE T_INCLUDE_ONCE %token T_EVAL %precedence T_REQUIRE T_REQUIRE_ONCE %token ',' %left T_LOGICAL_OR %left T_LOGICAL_XOR %left T_LOGICAL_AND %precedence T_PRINT %precedence '=' T_PLUS_EQUAL T_MINUS_EQUAL T_MUL_EQUAL T_DIV_EQUAL T_CONCAT_EQUAL T_MOD_EQUAL T_AND_EQUAL T_OR_EQUAL T_XOR_EQUAL T_SL_EQUAL T_SR_EQUAL %left '?' ':' %right T_COALESCE %left T_BOOLEAN_OR %left T_BOOLEAN_AND %left '|' %left '^' %left '&' %nonassoc T_IS_EQUAL T_IS_NOT_EQUAL T_IS_IDENTICAL T_IS_NOT_IDENTICAL T_SPACESHIP %nonassoc '<' T_IS_SMALLER_OR_EQUAL '>' T_IS_GREATER_OR_EQUAL %left T_SL T_SR %left '+' '-' '.' %left '*' '/' '%' %precedence '!' %precedence T_INSTANCEOF %precedence '~' T_INC %token T_DEC %precedence T_INT_CAST T_DOUBLE_CAST T_STRING_CAST %token T_UNICODE_CAST %token T_BINARY_CAST %precedence T_ARRAY_CAST T_OBJECT_CAST T_BOOL_CAST T_UNSET_CAST '@' %token '[' %token T_NEW %precedence T_CLONE %token T_EXIT %token T_IF %token T_ELSEIF %token T_ELSE %token T_ENDIF %token T_LNUMBER %token T_DNUMBER %token T_STRING %token T_STRING_VARNAME /* unused in XHP: `foo` in `"$foo"` */ %token T_VARIABLE %token T_NUM_STRING /* unused in XHP: `0` in `"$foo[0]"` */ %token T_INLINE_HTML %token T_CHARACTER /* unused in vanilla PHP */ %token T_BAD_CHARACTER /* unused in vanilla PHP */ %token T_ENCAPSED_AND_WHITESPACE /* unused in XHP: ` ` in `" "` */ %token T_CONSTANT_ENCAPSED_STRING /* overloaded in XHP; replaces '"' encaps_list '"' */ %token T_BACKTICKS_EXPR /* new in XHP; replaces '`' backticks_expr '`' */ %token T_ECHO %token T_DO %token T_WHILE %token T_ENDWHILE %token T_FOR %token T_ENDFOR %token T_FOREACH %token T_ENDFOREACH %token T_DECLARE %token T_ENDDECLARE %token T_AS %token T_SWITCH %token T_ENDSWITCH %token T_CASE %token T_DEFAULT %token T_BREAK %token T_CONTINUE %token T_GOTO %token T_FUNCTION %token T_CONST %token T_RETURN %token T_TRY %token T_CATCH %token T_THROW %token T_USE %token T_GLOBAL %token T_STATIC %token T_ABSTRACT %token T_FINAL %token T_PRIVATE %token T_PROTECTED %token T_PUBLIC %token T_VAR %token T_UNSET %token T_ISSET %token T_EMPTY %token T_HALT_COMPILER %token T_CLASS %token T_INTERFACE %token T_EXTENDS %token T_IMPLEMENTS %token T_OBJECT_OPERATOR %token T_DOUBLE_ARROW %token T_LIST %token T_ARRAY %token T_CLASS_C %token T_METHOD_C %token T_FUNC_C %token T_LINE %token T_FILE %token T_COMMENT %token T_DOC_COMMENT %token T_OPEN_TAG %token T_OPEN_TAG_WITH_ECHO %token T_OPEN_TAG_FAKE %token T_CLOSE_TAG %token T_WHITESPACE %token T_START_HEREDOC /* unused in XHP; replaced with T_HEREDOC */ %token T_END_HEREDOC /* unused in XHP; replaced with T_HEREDOC */ %token T_HEREDOC /* new in XHP; replaces start_heredoc encaps_list T_END_HEREDOC */ %token T_DOLLAR_OPEN_CURLY_BRACES /* unused in XHP: `${` in `"${foo}"` */ %token T_CURLY_OPEN /* unused in XHP: `{$` in `"{$foo}"` */ %token T_PAAMAYIM_NEKUDOTAYIM %token T_BINARY_DOUBLE /* unsused in XHP: `b"` in `b"foo"` */ %token T_BINARY_HEREDOC /* unsused in XHP: `b<<<` in `b<<appendChild($1); } ; top_statement_list: top_statement_list top_statement { $$ = $1->appendChild($2); } | %empty { $$ = NNEW(n_STATEMENT_LIST); } ; namespace_name: T_STRING { $$ = NTYPE($1, n_SYMBOL_NAME); } | namespace_name T_NS_SEPARATOR T_STRING { $$ = NMORE($1, $3); } ; top_statement: statement | function_declaration_statement | class_declaration_statement | T_HALT_COMPILER '(' ')' ';' { $1 = NSPAN($1, n_HALT_COMPILER, $3); $$ = NNEW(n_STATEMENT)->appendChild($1); NMORE($$, $4); } | T_NAMESPACE namespace_name ';' { NSPAN($1, n_NAMESPACE, $2); $1->appendChild($2); $1->appendChild(NNEW(n_EMPTY)); $$ = NNEW(n_STATEMENT)->appendChild($1); NMORE($$, $3); } | T_NAMESPACE namespace_name '{' top_statement_list '}' { NSPAN($1, n_NAMESPACE, $5); $1->appendChild($2); $1->appendChild(NEXPAND($3, $4, $5)); $$ = NNEW(n_STATEMENT)->appendChild($1); } | T_NAMESPACE '{' top_statement_list '}' { NSPAN($1, n_NAMESPACE, $4); $1->appendChild(NNEW(n_EMPTY)); NMORE($3, $4); NMORE($3, $2); $1->appendChild($3); $$ = NNEW(n_STATEMENT)->appendChild($1); } | T_USE use_declarations ';' { NMORE($2, $1); $$ = NNEW(n_STATEMENT)->appendChild($2); NMORE($$, $3); } | constant_declaration ';' { $$ = NNEW(n_STATEMENT)->appendChild($1); NMORE($$, $2); } ; use_declarations: use_declarations ',' use_declaration { $$ = $1->appendChild($3); } | use_declaration { $$ = NNEW(n_USE_LIST); $$->appendChild($1); } ; use_declaration: namespace_name { $$ = NNEW(n_USE); $$->appendChild($1); $$->appendChild(NNEW(n_EMPTY)); } | namespace_name T_AS T_STRING { $$ = NNEW(n_USE); $$->appendChild($1); NTYPE($3, n_STRING); $$->appendChild($3); } | T_NS_SEPARATOR namespace_name { $$ = NNEW(n_USE); NMORE($2, $1); $$->appendChild($2); $$->appendChild(NNEW(n_EMPTY)); } | T_NS_SEPARATOR namespace_name T_AS T_STRING { $$ = NNEW(n_USE); NMORE($2, $1); $$->appendChild($2); NTYPE($4, n_STRING); $$->appendChild($4); } ; constant_declaration: constant_declaration ',' T_STRING '=' static_scalar { NMORE($$, $5); $$->appendChild( NNEW(n_CONSTANT_DECLARATION) ->appendChild(NTYPE($3, n_STRING)) ->appendChild($5)); } | T_CONST T_STRING '=' static_scalar { NSPAN($$, n_CONSTANT_DECLARATION_LIST, $4); $$->appendChild( NNEW(n_CONSTANT_DECLARATION) ->appendChild(NTYPE($2, n_STRING)) ->appendChild($4)); } ; inner_statement_list: inner_statement_list inner_statement { $$ = $1->appendChild($2); } | %empty { $$ = NNEW(n_STATEMENT_LIST); } ; inner_statement: statement | function_declaration_statement | class_declaration_statement | T_HALT_COMPILER '(' ')' ';' { $1 = NSPAN($1, n_HALT_COMPILER, $3); $$ = NNEW(n_STATEMENT)->appendChild($1); NMORE($$, $4); } ; statement: unticked_statement | T_STRING ':' { NTYPE($1, n_STRING); $$ = NNEW(n_LABEL); $$->appendChild($1); NMORE($$, $2); } | T_OPEN_TAG { $$ = NTYPE($1, n_OPEN_TAG); } | T_OPEN_TAG_WITH_ECHO { $$ = NTYPE($1, n_OPEN_TAG); } | T_CLOSE_TAG { $$ = NTYPE($1, n_CLOSE_TAG); } ; unticked_statement: '{' inner_statement_list '}' { $$ = NEXPAND($1, $2, $3); } | T_IF '(' expr ')' statement elseif_list else_single { $$ = NNEW(n_CONDITION_LIST); $1 = NTYPE($1, n_IF); $1->appendChild(NSPAN($2, n_CONTROL_CONDITION, $4)->appendChild($3)); $1->appendChild($5); $$->appendChild($1); $$->appendChildren($6); // Hacks: merge a list of if (x) { } else if (y) { } into a single condition // list instead of a condition tree. if ($7->type == n_EMPTY) { // Ignore. } else if ($7->type == n_ELSE) { xhpast::Node *stype = $7->firstChild()->firstChild(); if (stype && stype->type == n_CONDITION_LIST) { NTYPE(stype->firstChild(), n_ELSEIF); stype->firstChild()->l_tok = $7->l_tok; $$->appendChildren(stype); } else { $$->appendChild($7); } } else { $$->appendChild($7); } $$ = NNEW(n_STATEMENT)->appendChild($$); } | T_IF '(' expr ')' ':' inner_statement_list new_elseif_list new_else_single T_ENDIF ';' { $$ = NNEW(n_CONDITION_LIST); NTYPE($1, n_IF); $1->appendChild(NSPAN($2, n_CONTROL_CONDITION, $4)->appendChild($3)); $1->appendChild($6); $$->appendChild($1); $$->appendChildren($7); $$->appendChild($8); NMORE($$, $9); $$ = NNEW(n_STATEMENT)->appendChild($$); NMORE($$, $10); } | T_WHILE '(' expr ')' while_statement { NTYPE($1, n_WHILE); $1->appendChild(NSPAN($2, n_CONTROL_CONDITION, $4)->appendChild($3)); $1->appendChild($5); $$ = NNEW(n_STATEMENT)->appendChild($1); } | T_DO statement T_WHILE '(' expr ')' ';' { NTYPE($1, n_DO_WHILE); $1->appendChild($2); $1->appendChild(NSPAN($4, n_CONTROL_CONDITION, $6)->appendChild($5)); $$ = NNEW(n_STATEMENT)->appendChild($1); NMORE($$, $7); } | T_FOR '(' for_expr ';' for_expr ';' for_expr ')' for_statement { NTYPE($1, n_FOR); NSPAN($2, n_FOR_EXPRESSION, $8) ->appendChild($3) ->appendChild($5) ->appendChild($7); $1->appendChild($2); $1->appendChild($9); $$ = NNEW(n_STATEMENT)->appendChild($1); } | T_SWITCH '(' expr ')' switch_case_list { NTYPE($1, n_SWITCH); $1->appendChild(NSPAN($2, n_CONTROL_CONDITION, $4)->appendChild($3)); $1->appendChild($5); $$ = NNEW(n_STATEMENT)->appendChild($1); } | T_BREAK ';' { NTYPE($1, n_BREAK); $1->appendChild(NNEW(n_EMPTY)); $$ = NNEW(n_STATEMENT)->appendChild($1); NMORE($$, $2); } | T_BREAK expr ';' { NTYPE($1, n_BREAK); $1->appendChild($2); $$ = NNEW(n_STATEMENT)->appendChild($1); NMORE($$, $3); } | T_CONTINUE ';' { NTYPE($1, n_CONTINUE); $1->appendChild(NNEW(n_EMPTY)); $$ = NNEW(n_STATEMENT)->appendChild($1); NMORE($$, $2); } | T_CONTINUE expr ';' { NTYPE($1, n_CONTINUE); $1->appendChild($2); $$ = NNEW(n_STATEMENT)->appendChild($1); NMORE($$, $3); } | T_RETURN ';' { NTYPE($1, n_RETURN); $1->appendChild(NNEW(n_EMPTY)); $$ = NNEW(n_STATEMENT)->appendChild($1); NMORE($$, $2); } | T_RETURN expr_without_variable ';' { NTYPE($1, n_RETURN); $1->appendChild($2); $$ = NNEW(n_STATEMENT)->appendChild($1); NMORE($$, $3); } | T_RETURN variable ';' { NTYPE($1, n_RETURN); $1->appendChild($2); $$ = NNEW(n_STATEMENT)->appendChild($1); NMORE($$, $3); } | T_GLOBAL global_var_list ';' { NMORE($2, $1); $$ = NNEW(n_STATEMENT)->appendChild($2); NMORE($$, $3); } | T_STATIC static_var_list ';' { NMORE($2, $1); $$ = NNEW(n_STATEMENT)->appendChild($2); NMORE($$, $3); } | T_ECHO echo_expr_list ';' { NMORE($2, $1); $$ = NNEW(n_STATEMENT)->appendChild($2); NMORE($$, $3); } | T_INLINE_HTML { NTYPE($1, n_INLINE_HTML); $$ = $1; } | expr ';' { $$ = NNEW(n_STATEMENT)->appendChild($1); NMORE($$, $2); } | yield_expr ';' { $$ = NNEW(n_STATEMENT)->appendChild($1); NMORE($$, $2); } | T_UNSET '(' unset_variables ')' ';' { NMORE($3, $4); NMORE($3, $1); $$ = NNEW(n_STATEMENT)->appendChild($3); NMORE($$, $5); } | T_FOREACH '(' variable T_AS foreach_variable foreach_optional_arg ')' foreach_statement { NTYPE($1, n_FOREACH); NSPAN($2, n_FOREACH_EXPRESSION, $7); $2->appendChild($3); if ($6->type == n_EMPTY) { $2->appendChild($6); $2->appendChild($5); } else { $2->appendChild($5); $2->appendChild($6); } $1->appendChild($2); $1->appendChild($8); $$ = NNEW(n_STATEMENT)->appendChild($1); } | T_FOREACH '(' expr_without_variable T_AS variable foreach_optional_arg ')' foreach_statement { NTYPE($1, n_FOREACH); NSPAN($2, n_FOREACH_EXPRESSION, $7); $2->appendChild($3); if ($6->type == n_EMPTY) { $2->appendChild($6); $2->appendChild($5); } else { $2->appendChild($5); $2->appendChild($6); } $1->appendChild($2); $1->appendChild($8); $$ = NNEW(n_STATEMENT)->appendChild($1); } | T_DECLARE '(' declare_list ')' declare_statement { NTYPE($1, n_DECLARE); $1->appendChild($3); $1->appendChild($5); $$ = NNEW(n_STATEMENT)->appendChild($1); } | ';' /* empty statement */ { $$ = NNEW(n_STATEMENT)->appendChild(NNEW(n_EMPTY)); NMORE($$, $1); } | T_TRY '{' inner_statement_list '}' catch_list finally_statement { NTYPE($1, n_TRY); $1->appendChild(NEXPAND($2, $3, $4)); $1->appendChild($5); $1->appendChild($6); $$ = NNEW(n_STATEMENT)->appendChild($1); } | T_TRY '{' inner_statement_list '}' non_empty_finally_statement { NTYPE($1, n_TRY); $1->appendChild(NEXPAND($2, $3, $4)); $1->appendChild(NNEW(n_CATCH_LIST)); $1->appendChild($5); $$ = NNEW(n_STATEMENT)->appendChild($1); } | T_THROW expr ';' { NTYPE($1, n_THROW); $1->appendChild($2); $$ = NNEW(n_STATEMENT)->appendChild($1); NMORE($$, $3); } | T_GOTO T_STRING ';' { NTYPE($1, n_GOTO); NTYPE($2, n_STRING); $1->appendChild($2); $$ = NNEW(n_STATEMENT)->appendChild($1); NMORE($$, $3); } ; catch_list: catch_list catch { $1->appendChild($2); $$ = $1; } | catch { $$ = NNEW(n_CATCH_LIST); $$->appendChild($1); } catch: T_CATCH '(' fully_qualified_class_name T_VARIABLE ')' '{' inner_statement_list '}' { NTYPE($1, n_CATCH); $1->appendChild($3); $1->appendChild(NTYPE($4, n_VARIABLE)); $1->appendChild(NEXPAND($6, $7, $8)); NMORE($1, $8); $$ = $1; } ; finally_statement: %empty { $$ = NNEW(n_EMPTY); } | non_empty_finally_statement ; non_empty_finally_statement: T_FINALLY '{' inner_statement_list '}' { NTYPE($1, n_FINALLY); $1->appendChild($3); NMORE($1, $4); $$ = $1; } ; unset_variables: unset_variable { $$ = NNEW(n_UNSET_LIST); $$->appendChild($1); } | unset_variables ',' unset_variable { $1->appendChild($3); $$ = $1; } ; unset_variable: variable ; function_declaration_statement: unticked_function_declaration_statement ; class_declaration_statement: unticked_class_declaration_statement ; is_reference: %empty { $$ = NNEW(n_EMPTY); } | '&' { $$ = NTYPE($1, n_REFERENCE); } ; unticked_function_declaration_statement: function is_reference T_STRING '(' parameter_list ')' return_type '{' inner_statement_list '}' { NSPAN($1, n_FUNCTION_DECLARATION, $9); $1->appendChild(NNEW(n_EMPTY)); $1->appendChild($2); $1->appendChild(NTYPE($3, n_STRING)); $1->appendChild(NEXPAND($4, $5, $6)); $1->appendChild(NNEW(n_EMPTY)); $1->appendChild($7); $1->appendChild(NEXPAND($8, $9, $10)); $$ = NNEW(n_STATEMENT)->appendChild($1); } ; unticked_class_declaration_statement: class_entry_type T_STRING extends_from implements_list '{' class_statement_list '}' { $$ = NNEW(n_CLASS_DECLARATION); $$->appendChild($1); $$->appendChild(NTYPE($2, n_CLASS_NAME)); $$->appendChild($3); $$->appendChild($4); $$->appendChild(NEXPAND($5, $6, $7)); NMORE($$, $7); $$ = NNEW(n_STATEMENT)->appendChild($$); } | interface_entry T_STRING interface_extends_list '{' class_statement_list '}' { $$ = NNEW(n_INTERFACE_DECLARATION); $$->appendChild(NNEW(n_CLASS_ATTRIBUTES)); NMORE($$, $1); $$->appendChild(NTYPE($2, n_CLASS_NAME)); $$->appendChild($3); $$->appendChild(NNEW(n_EMPTY)); $$->appendChild(NEXPAND($4, $5, $6)); NMORE($$, $6); $$ = NNEW(n_STATEMENT)->appendChild($$); } ; class_entry_type: T_CLASS { NTYPE($1, n_CLASS_ATTRIBUTES); $$ = $1; } | T_ABSTRACT T_CLASS { NTYPE($2, n_CLASS_ATTRIBUTES); NMORE($2, $1); $2->appendChild(NTYPE($1, n_STRING)); $$ = $2; } | T_FINAL T_CLASS { NTYPE($2, n_CLASS_ATTRIBUTES); NMORE($2, $1); $2->appendChild(NTYPE($1, n_STRING)); $$ = $2; } | T_TRAIT { $$ = NNEW(n_CLASS_ATTRIBUTES); $$->appendChild(NTYPE($1, n_STRING)); } ; extends_from: %empty { $$ = NNEW(n_EMPTY); } | T_EXTENDS fully_qualified_class_name { $$ = NTYPE($1, n_EXTENDS_LIST)->appendChild($2); } ; interface_entry: T_INTERFACE ; interface_extends_list: %empty { $$ = NNEW(n_EMPTY); } | T_EXTENDS interface_list { NTYPE($1, n_EXTENDS_LIST); $1->appendChildren($2); $$ = $1; } ; implements_list: %empty { $$ = NNEW(n_EMPTY); } | T_IMPLEMENTS interface_list { NTYPE($1, n_IMPLEMENTS_LIST); $1->appendChildren($2); $$ = $1; } ; interface_list: fully_qualified_class_name { $$ = NNEW(n_IMPLEMENTS_LIST)->appendChild($1); } | interface_list ',' fully_qualified_class_name { $$ = $1->appendChild($3); } ; foreach_optional_arg: %empty { $$ = NNEW(n_EMPTY); } | T_DOUBLE_ARROW foreach_variable { $$ = $2; } ; foreach_variable: variable | '&' variable { NTYPE($1, n_VARIABLE_REFERENCE); $1->appendChild($2); $$ = $1; } ; for_statement: statement | ':' inner_statement_list T_ENDFOR ';' { NMORE($2, $1); NMORE($2, $4); $$ = $2; } ; foreach_statement: statement | ':' inner_statement_list T_ENDFOREACH ';' { NMORE($2, $1); NMORE($2, $4); $$ = $2; } ; declare_statement: statement | ':' inner_statement_list T_ENDDECLARE ';' { NMORE($2, $1); NMORE($2, $4); $$ = $2; } ; declare_list: T_STRING '=' static_scalar { $$ = NNEW(n_DECLARE_DECLARATION); $$->appendChild(NTYPE($1, n_STRING)); $$->appendChild($3); $$ = NNEW(n_DECLARE_DECLARATION_LIST)->appendChild($$); } | declare_list ',' T_STRING '=' static_scalar { $$ = NNEW(n_DECLARE_DECLARATION); $$->appendChild(NTYPE($3, n_STRING)); $$->appendChild($5); $1->appendChild($$); $$ = $1; } ; switch_case_list: '{' case_list '}' { $$ = NEXPAND($1, $2, $3); } | '{' ';' case_list '}' { // ...why does this rule exist? NTYPE($2, n_STATEMENT); $1->appendChild(NNEW(n_EMPTY)); $$ = NNEW(n_STATEMENT_LIST)->appendChild($2); $$->appendChildren($3); NEXPAND($1, $$, $4); } | ':' case_list T_ENDSWITCH ';' { NMORE($2, $4); NMORE($2, $1); $$ = $2; } | ':' ';' case_list T_ENDSWITCH ';' { NTYPE($2, n_STATEMENT); $1->appendChild(NNEW(n_EMPTY)); $$ = NNEW(n_STATEMENT_LIST)->appendChild($2); $$->appendChildren($3); NMORE($$, $5); NMORE($$, $1); } ; case_list: %empty { $$ = NNEW(n_STATEMENT_LIST); } | case_list T_CASE expr case_separator inner_statement_list { NTYPE($2, n_CASE); $2->appendChild($3); $2->appendChild($5); $1->appendChild($2); $$ = $1; } | case_list T_DEFAULT case_separator inner_statement_list { NTYPE($2, n_DEFAULT); $2->appendChild($4); $1->appendChild($2); $$ = $1; } ; case_separator: ':' | ';' ; while_statement: statement | ':' inner_statement_list T_ENDWHILE ';' { NMORE($2, $4); NMORE($2, $1); $$ = $2; } ; elseif_list: %empty { $$ = NNEW(n_CONDITION_LIST); } | elseif_list T_ELSEIF '(' expr ')' statement { NTYPE($2, n_ELSEIF); $2->appendChild(NSPAN($3, n_CONTROL_CONDITION, $5)->appendChild($4)); $2->appendChild($6); $$ = $1->appendChild($2); } ; new_elseif_list: %empty { $$ = NNEW(n_CONDITION_LIST); } | new_elseif_list T_ELSEIF '(' expr ')' ':' inner_statement_list { NTYPE($2, n_ELSEIF); $2->appendChild($4); $2->appendChild($7); $$ = $1->appendChild($2); } ; else_single: %empty { $$ = NNEW(n_EMPTY); } | T_ELSE statement { NTYPE($1, n_ELSE); $1->appendChild($2); $$ = $1; } ; new_else_single: %empty { $$ = NNEW(n_EMPTY); } | T_ELSE ':' inner_statement_list { NTYPE($1, n_ELSE); $1->appendChild($3); $$ = $1; } ; parameter_list: non_empty_parameter_list | %empty { $$ = NNEW(n_DECLARATION_PARAMETER_LIST); } ; non_empty_parameter_list: optional_type parameter { $$ = NNEW(n_DECLARATION_PARAMETER); $$->appendChild($1); $$->appendChild($2); $$->appendChild(NNEW(n_EMPTY)); $$ = NNEW(n_DECLARATION_PARAMETER_LIST)->appendChild($$); } | optional_type '&' parameter { $$ = NNEW(n_DECLARATION_PARAMETER); $$->appendChild($1); $$->appendChild(NTYPE($2, n_VARIABLE_REFERENCE)); $2->appendChild($3); $$->appendChild(NNEW(n_EMPTY)); $$ = NNEW(n_DECLARATION_PARAMETER_LIST)->appendChild($$); } | optional_type '&' parameter '=' static_scalar { $$ = NNEW(n_DECLARATION_PARAMETER); $$->appendChild($1); $$->appendChild(NTYPE($2, n_VARIABLE_REFERENCE)); $2->appendChild($3); $$->appendChild($5); $$ = NNEW(n_DECLARATION_PARAMETER_LIST)->appendChild($$); } | optional_type parameter '=' static_scalar { $$ = NNEW(n_DECLARATION_PARAMETER); $$->appendChild($1); $$->appendChild($2); $$->appendChild($4); $$ = NNEW(n_DECLARATION_PARAMETER_LIST)->appendChild($$); } | non_empty_parameter_list ',' optional_type parameter { $$ = NNEW(n_DECLARATION_PARAMETER); $$->appendChild($3); $$->appendChild($4); $$->appendChild(NNEW(n_EMPTY)); $$ = $1->appendChild($$); } | non_empty_parameter_list ',' optional_type '&' parameter { $$ = NNEW(n_DECLARATION_PARAMETER); $$->appendChild($3); $$->appendChild(NTYPE($4, n_VARIABLE_REFERENCE)); $4->appendChild($5); $$->appendChild(NNEW(n_EMPTY)); $$ = $1->appendChild($$); } | non_empty_parameter_list ',' optional_type '&' parameter '=' static_scalar { $$ = NNEW(n_DECLARATION_PARAMETER); $$->appendChild($3); $$->appendChild(NTYPE($4, n_VARIABLE_REFERENCE)); $4->appendChild($5); $$->appendChild($7); $$ = $1->appendChild($$); } | non_empty_parameter_list ',' optional_type parameter '=' static_scalar { $$ = NNEW(n_DECLARATION_PARAMETER); $$->appendChild($3); $$->appendChild($4); $$->appendChild($6); $$ = $1->appendChild($$); } ; parameter: T_ELLIPSIS T_VARIABLE { $$ = NTYPE($1, n_UNPACK); $$->appendChild(NTYPE($2, n_VARIABLE)); } | T_VARIABLE { $$ = NTYPE($1, n_VARIABLE); } ; optional_type: %empty { $$ = NNEW(n_EMPTY); } | type ; type: fully_qualified_class_name { $$ = $1; } | T_ARRAY { $$ = NTYPE($1, n_TYPE_NAME); } | T_CALLABLE { $$ = NTYPE($1, n_TYPE_NAME); } ; return_type: %empty { $$ = NNEW(n_EMPTY); } +| ':' '?' type { + $$ = NNEW(n_DECLARATION_RETURN); + $$->appendChild($2); + $$->appendChild($3); + } | ':' type { - $$ = $2; + $$ = NNEW(n_DECLARATION_RETURN); + $$->appendChild(NNEW(n_EMPTY)); + $$->appendChild($2); } ; function_call_parameter_list: non_empty_function_call_parameter_list | %empty { $$ = NNEW(n_CALL_PARAMETER_LIST); } ; non_empty_function_call_parameter_list: argument { $$ = NNEW(n_CALL_PARAMETER_LIST)->appendChild($1); } | non_empty_function_call_parameter_list ',' argument { $$ = $1->appendChild($3); } ; argument: expr | T_ELLIPSIS expr { $$ = NNEW(n_UNPACK)->appendChild($1); } | '&' w_variable { NTYPE($1, n_VARIABLE_REFERENCE); $$ = $1->appendChild($2); } ; global_var_list: global_var_list ',' global_var { $1->appendChild($3); $$ = $1; } | global_var { $$ = NNEW(n_GLOBAL_DECLARATION_LIST); $$->appendChild($1); } ; global_var: T_VARIABLE { $$ = NTYPE($1, n_VARIABLE); } | '$' r_variable { $$ = NTYPE($1, n_VARIABLE_VARIABLE); $$->appendChild($2); } | '$' '{' expr '}' { $$ = NTYPE($1, n_VARIABLE_VARIABLE); $$->appendChild($3); } ; static_var_list: static_var_list ',' T_VARIABLE { NTYPE($3, n_VARIABLE); $$ = NNEW(n_STATIC_DECLARATION); $$->appendChild($3); $$->appendChild(NNEW(n_EMPTY)); $$ = $1->appendChild($$); } | static_var_list ',' T_VARIABLE '=' static_scalar { NTYPE($3, n_VARIABLE); $$ = NNEW(n_STATIC_DECLARATION); $$->appendChild($3); $$->appendChild($5); $$ = $1->appendChild($$); } | T_VARIABLE { NTYPE($1, n_VARIABLE); $$ = NNEW(n_STATIC_DECLARATION); $$->appendChild($1); $$->appendChild(NNEW(n_EMPTY)); $$ = NNEW(n_STATIC_DECLARATION_LIST)->appendChild($$); } | T_VARIABLE '=' static_scalar { NTYPE($1, n_VARIABLE); $$ = NNEW(n_STATIC_DECLARATION); $$->appendChild($1); $$->appendChild($3); $$ = NNEW(n_STATIC_DECLARATION_LIST)->appendChild($$); } ; class_statement_list: class_statement_list class_statement { $$ = $1->appendChild($2); } | %empty { $$ = NNEW(n_STATEMENT_LIST); } ; class_statement: variable_modifiers class_variable_declaration ';' { $$ = NNEW(n_CLASS_MEMBER_DECLARATION_LIST); $$->appendChild($1); $$->appendChildren($2); $$ = NNEW(n_STATEMENT)->appendChild($$); NMORE($$, $3); } | class_constant_declaration ';' { $$ = NNEW(n_STATEMENT)->appendChild($1); NMORE($$, $2); } | trait_use_statement { $$ = $1; } | method_modifiers function { /* empty */ } is_reference T_STRING '(' parameter_list ')' return_type method_body { $$ = NNEW(n_METHOD_DECLARATION); NMORE($$, $2); $$->appendChild($1); $$->appendChild($4); $$->appendChild(NTYPE($5, n_STRING)); $$->appendChild(NEXPAND($6, $7, $8)); $$->appendChild(NNEW(n_EMPTY)); $$->appendChild($9); $$->appendChild($10); $$ = NNEW(n_STATEMENT)->appendChild($$); } ; trait_use_statement: T_USE trait_list trait_adaptations { $$ = NTYPE($1, n_TRAIT_USE); $$->appendChildren($2); $$->appendChild($3); } ; trait_list: fully_qualified_class_name { $$ = NNEW(n_TRAIT_USE_LIST)->appendChild($1); } | trait_list ',' fully_qualified_class_name { $$ = $1->appendChild($3); } ; trait_adaptations: ';' { $$ = NNEW(n_EMPTY); } | '{' trait_adaptation_list '}' { $$ = NEXPAND($1, $2, $3); } ; trait_adaptation_list: %empty { $$ = NNEW(n_TRAIT_ADAPTATION_LIST); } | non_empty_trait_adaptation_list { $$ = $1; } ; non_empty_trait_adaptation_list: trait_adaptation_statement { $$ = NNEW(n_TRAIT_ADAPTATION_LIST); $$->appendChild($1); } | non_empty_trait_adaptation_list trait_adaptation_statement { $1->appendChild($2); $$ = $1; } ; trait_adaptation_statement: trait_precedence ';' { $$ = NMORE($1, $2); } | trait_alias ';' { $$ = NMORE($1, $2); } ; trait_precedence: trait_method_reference_fully_qualified T_INSTEADOF trait_reference_list { $$ = NNEW(n_TRAIT_INSTEADOF); $$->appendChild($1); $$->appendChild($3); } ; trait_reference_list: fully_qualified_class_name { $$ = NNEW(n_TRAIT_REFERENCE_LIST); $$->appendChild($1); } | trait_reference_list ',' fully_qualified_class_name { $1->appendChild($3); $$ = $1; } ; trait_method_reference: T_STRING { $$ = NNEW(n_TRAIT_METHOD_REFERENCE); $$->appendChild(NTYPE($1, n_STRING)); } | trait_method_reference_fully_qualified { $$ = $1; } ; trait_method_reference_fully_qualified: fully_qualified_class_name T_PAAMAYIM_NEKUDOTAYIM T_STRING { NTYPE($2, n_TRAIT_METHOD_REFERENCE); NEXPAND($1, $2, NTYPE($3, n_STRING)); $$ = $2; } ; trait_alias: trait_method_reference T_AS trait_modifiers T_STRING { $$ = NNEW(n_TRAIT_AS); $$->appendChild($1); $$->appendChild($3); $$->appendChild(NTYPE($4, n_STRING)); } | trait_method_reference T_AS member_modifier { $$ = NNEW(n_TRAIT_AS); $$->appendChild($1); $$->appendChild($3); $$->appendChild(NNEW(n_EMPTY)); } ; trait_modifiers: %empty { $$ = NNEW(n_EMPTY); } | member_modifier { $$ = NNEW(n_METHOD_MODIFIER_LIST); $$->appendChild(NTYPE($1, n_STRING)); } ; method_body: ';' /* abstract method */ { $$ = NNEW(n_EMPTY); } | '{' inner_statement_list '}' { $$ = NEXPAND($1, $2, $3); } ; variable_modifiers: non_empty_member_modifiers | T_VAR { $$ = NNEW(n_CLASS_MEMBER_MODIFIER_LIST); $$->appendChild(NTYPE($1, n_STRING)); } ; method_modifiers: %empty { $$ = NNEW(n_METHOD_MODIFIER_LIST); } | non_empty_member_modifiers { NTYPE($1, n_METHOD_MODIFIER_LIST); $$ = $1; } ; non_empty_member_modifiers: member_modifier { $$ = NNEW(n_CLASS_MEMBER_MODIFIER_LIST); $$->appendChild(NTYPE($1, n_STRING)); } | non_empty_member_modifiers member_modifier { $$ = $1->appendChild(NTYPE($2, n_STRING)); } ; member_modifier: T_PUBLIC | T_PROTECTED | T_PRIVATE | T_STATIC | T_ABSTRACT | T_FINAL ; class_variable_declaration: class_variable_declaration ',' T_VARIABLE { $$ = NNEW(n_CLASS_MEMBER_DECLARATION); $$->appendChild(NTYPE($3, n_VARIABLE)); $$->appendChild(NNEW(n_EMPTY)); $$ = $1->appendChild($$); } | class_variable_declaration ',' T_VARIABLE '=' static_scalar { $$ = NNEW(n_CLASS_MEMBER_DECLARATION); $$->appendChild(NTYPE($3, n_VARIABLE)); $$->appendChild($5); $$ = $1->appendChild($$); } | T_VARIABLE { $$ = NNEW(n_CLASS_MEMBER_DECLARATION); $$->appendChild(NTYPE($1, n_VARIABLE)); $$->appendChild(NNEW(n_EMPTY)); $$ = NNEW(n_CLASS_MEMBER_DECLARATION_LIST)->appendChild($$); } | T_VARIABLE '=' static_scalar { $$ = NNEW(n_CLASS_MEMBER_DECLARATION); $$->appendChild(NTYPE($1, n_VARIABLE)); $$->appendChild($3); $$ = NNEW(n_CLASS_MEMBER_DECLARATION_LIST)->appendChild($$); } ; class_constant_declaration: class_constant_declaration ',' T_STRING '=' static_scalar { $$ = NNEW(n_CLASS_CONSTANT_DECLARATION); $$->appendChild(NTYPE($3, n_STRING)); $$->appendChild($5); $1->appendChild($$); $$ = $1; } | T_CONST T_STRING '=' static_scalar { NTYPE($1, n_CLASS_CONSTANT_DECLARATION_LIST); $$ = NNEW(n_CLASS_CONSTANT_DECLARATION); $$->appendChild(NTYPE($2, n_STRING)); $$->appendChild($4); $1->appendChild($$); $$ = $1; } ; echo_expr_list: echo_expr_list ',' expr { $1->appendChild($3); } | expr { $$ = NNEW(n_ECHO_LIST); $$->appendChild($1); } ; for_expr: %empty { $$ = NNEW(n_EMPTY); } | non_empty_for_expr ; non_empty_for_expr: non_empty_for_expr ',' expr { $1->appendChild($3); } | expr { $$ = NNEW(n_EXPRESSION_LIST); $$->appendChild($1); } ; expr_without_variable: T_LIST '(' assignment_list ')' '=' expr { NTYPE($1, n_LIST); $1->appendChild(NEXPAND($2, $3, $4)); $$ = NNEW(n_BINARY_EXPRESSION); $$->appendChild($1); $$->appendChild(NTYPE($5, n_OPERATOR)); $$->appendChild($6); } | variable '=' expr { $$ = NNEW(n_BINARY_EXPRESSION); $$->appendChild($1); $$->appendChild(NTYPE($2, n_OPERATOR)); $$->appendChild($3); } | variable '=' '&' variable { $$ = NNEW(n_BINARY_EXPRESSION); $$->appendChild($1); $$->appendChild(NTYPE($2, n_OPERATOR)); NTYPE($3, n_VARIABLE_REFERENCE); $3->appendChild($4); $$->appendChild($3); } | variable '=' '&' T_NEW class_name_reference ctor_arguments { $$ = NNEW(n_BINARY_EXPRESSION); $$->appendChild($1); $$->appendChild(NTYPE($2, n_OPERATOR)); NTYPE($4, n_NEW); $4->appendChild($5); $4->appendChild($6); NTYPE($3, n_VARIABLE_REFERENCE); $3->appendChild($4); $$->appendChild($3); } | T_CLONE expr { $$ = NNEW(n_UNARY_PREFIX_EXPRESSION); $$->appendChild(NTYPE($1, n_OPERATOR)); $$->appendChild($2); } | variable T_PLUS_EQUAL expr { $$ = NNEW(n_BINARY_EXPRESSION); $$->appendChild($1); $$->appendChild(NTYPE($2, n_OPERATOR)); $$->appendChild($3); } | variable T_MINUS_EQUAL expr { $$ = NNEW(n_BINARY_EXPRESSION); $$->appendChild($1); $$->appendChild(NTYPE($2, n_OPERATOR)); $$->appendChild($3); } | variable T_MUL_EQUAL expr { $$ = NNEW(n_BINARY_EXPRESSION); $$->appendChild($1); $$->appendChild(NTYPE($2, n_OPERATOR)); $$->appendChild($3); } | variable T_DIV_EQUAL expr { $$ = NNEW(n_BINARY_EXPRESSION); $$->appendChild($1); $$->appendChild(NTYPE($2, n_OPERATOR)); $$->appendChild($3); } | variable T_CONCAT_EQUAL expr { $$ = NNEW(n_BINARY_EXPRESSION); $$->appendChild($1); $$->appendChild(NTYPE($2, n_OPERATOR)); $$->appendChild($3); } | variable T_MOD_EQUAL expr { $$ = NNEW(n_BINARY_EXPRESSION); $$->appendChild($1); $$->appendChild(NTYPE($2, n_OPERATOR)); $$->appendChild($3); } | variable T_AND_EQUAL expr { $$ = NNEW(n_BINARY_EXPRESSION); $$->appendChild($1); $$->appendChild(NTYPE($2, n_OPERATOR)); $$->appendChild($3); } | variable T_OR_EQUAL expr { $$ = NNEW(n_BINARY_EXPRESSION); $$->appendChild($1); $$->appendChild(NTYPE($2, n_OPERATOR)); $$->appendChild($3); } | variable T_XOR_EQUAL expr { $$ = NNEW(n_BINARY_EXPRESSION); $$->appendChild($1); $$->appendChild(NTYPE($2, n_OPERATOR)); $$->appendChild($3); } | variable T_SL_EQUAL expr { $$ = NNEW(n_BINARY_EXPRESSION); $$->appendChild($1); $$->appendChild(NTYPE($2, n_OPERATOR)); $$->appendChild($3); } | variable T_SR_EQUAL expr { $$ = NNEW(n_BINARY_EXPRESSION); $$->appendChild($1); $$->appendChild(NTYPE($2, n_OPERATOR)); $$->appendChild($3); } | rw_variable T_INC { $$ = NNEW(n_UNARY_POSTFIX_EXPRESSION); $$->appendChild($1); $$->appendChild(NTYPE($2, n_OPERATOR)); } | T_INC rw_variable { $$ = NNEW(n_UNARY_PREFIX_EXPRESSION); $$->appendChild(NTYPE($1, n_OPERATOR)); $$->appendChild($2); } | rw_variable T_DEC { $$ = NNEW(n_UNARY_POSTFIX_EXPRESSION); $$->appendChild($1); $$->appendChild(NTYPE($2, n_OPERATOR)); } | T_DEC rw_variable { $$ = NNEW(n_UNARY_PREFIX_EXPRESSION); $$->appendChild(NTYPE($1, n_OPERATOR)); $$->appendChild($2); } | expr T_BOOLEAN_OR expr { $$ = NNEW(n_BINARY_EXPRESSION); $$->appendChild($1); $$->appendChild(NTYPE($2, n_OPERATOR)); $$->appendChild($3); } | expr T_BOOLEAN_AND expr { $$ = NNEW(n_BINARY_EXPRESSION); $$->appendChild($1); $$->appendChild(NTYPE($2, n_OPERATOR)); $$->appendChild($3); } | expr T_LOGICAL_OR expr { $$ = NNEW(n_BINARY_EXPRESSION); $$->appendChild($1); $$->appendChild(NTYPE($2, n_OPERATOR)); $$->appendChild($3); } | expr T_LOGICAL_AND expr { $$ = NNEW(n_BINARY_EXPRESSION); $$->appendChild($1); $$->appendChild(NTYPE($2, n_OPERATOR)); $$->appendChild($3); } | expr T_LOGICAL_XOR expr { $$ = NNEW(n_BINARY_EXPRESSION); $$->appendChild($1); $$->appendChild(NTYPE($2, n_OPERATOR)); $$->appendChild($3); } | expr '|' expr { $$ = NNEW(n_BINARY_EXPRESSION); $$->appendChild($1); $$->appendChild(NTYPE($2, n_OPERATOR)); $$->appendChild($3); } | expr '&' expr { $$ = NNEW(n_BINARY_EXPRESSION); $$->appendChild($1); $$->appendChild(NTYPE($2, n_OPERATOR)); $$->appendChild($3); } | expr '^' expr { $$ = NNEW(n_BINARY_EXPRESSION); $$->appendChild($1); $$->appendChild(NTYPE($2, n_OPERATOR)); $$->appendChild($3); } | expr '.' expr { /* The concatenation operator generates n_CONCATENATION_LIST instead of n_BINARY_EXPRESSION because we tend to run into stack depth issues in a lot of real-world cases otherwise (e.g., in PHP and JSON decoders). */ if ($1->type == n_CONCATENATION_LIST && $3->type == n_CONCATENATION_LIST) { $1->appendChild(NTYPE($2, n_OPERATOR)); $1->appendChildren($3); $$ = $1; } else if ($1->type == n_CONCATENATION_LIST) { $1->appendChild(NTYPE($2, n_OPERATOR)); $1->appendChild($3); $$ = $1; } else if ($3->type == n_CONCATENATION_LIST) { $$ = NNEW(n_CONCATENATION_LIST); $$->appendChild($1); $$->appendChild(NTYPE($2, n_OPERATOR)); $$->appendChildren($3); } else { $$ = NNEW(n_CONCATENATION_LIST); $$->appendChild($1); $$->appendChild(NTYPE($2, n_OPERATOR)); $$->appendChild($3); } } | expr '+' expr { $$ = NNEW(n_BINARY_EXPRESSION); $$->appendChild($1); $$->appendChild(NTYPE($2, n_OPERATOR)); $$->appendChild($3); } | expr '-' expr { $$ = NNEW(n_BINARY_EXPRESSION); $$->appendChild($1); $$->appendChild(NTYPE($2, n_OPERATOR)); $$->appendChild($3); } | expr '*' expr { $$ = NNEW(n_BINARY_EXPRESSION); $$->appendChild($1); $$->appendChild(NTYPE($2, n_OPERATOR)); $$->appendChild($3); } | expr '/' expr { $$ = NNEW(n_BINARY_EXPRESSION); $$->appendChild($1); $$->appendChild(NTYPE($2, n_OPERATOR)); $$->appendChild($3); } | expr '%' expr { $$ = NNEW(n_BINARY_EXPRESSION); $$->appendChild($1); $$->appendChild(NTYPE($2, n_OPERATOR)); $$->appendChild($3); } | expr T_SL expr { $$ = NNEW(n_BINARY_EXPRESSION); $$->appendChild($1); $$->appendChild(NTYPE($2, n_OPERATOR)); $$->appendChild($3); } | expr T_SR expr { $$ = NNEW(n_BINARY_EXPRESSION); $$->appendChild($1); $$->appendChild(NTYPE($2, n_OPERATOR)); $$->appendChild($3); } | '+' expr %prec T_INC { $$ = NNEW(n_UNARY_PREFIX_EXPRESSION); $$->appendChild(NTYPE($1, n_OPERATOR)); $$->appendChild($2); } | '-' expr %prec T_INC { $$ = NNEW(n_UNARY_PREFIX_EXPRESSION); $$->appendChild(NTYPE($1, n_OPERATOR)); $$->appendChild($2); } | '!' expr { $$ = NNEW(n_UNARY_PREFIX_EXPRESSION); $$->appendChild(NTYPE($1, n_OPERATOR)); $$->appendChild($2); } | '~' expr { $$ = NNEW(n_UNARY_PREFIX_EXPRESSION); $$->appendChild(NTYPE($1, n_OPERATOR)); $$->appendChild($2); } | expr T_IS_IDENTICAL expr { $$ = NNEW(n_BINARY_EXPRESSION); $$->appendChild($1); $$->appendChild(NTYPE($2, n_OPERATOR)); $$->appendChild($3); } | expr T_IS_NOT_IDENTICAL expr { $$ = NNEW(n_BINARY_EXPRESSION); $$->appendChild($1); $$->appendChild(NTYPE($2, n_OPERATOR)); $$->appendChild($3); } | expr T_IS_EQUAL expr { $$ = NNEW(n_BINARY_EXPRESSION); $$->appendChild($1); $$->appendChild(NTYPE($2, n_OPERATOR)); $$->appendChild($3); } | expr T_IS_NOT_EQUAL expr { $$ = NNEW(n_BINARY_EXPRESSION); $$->appendChild($1); $$->appendChild(NTYPE($2, n_OPERATOR)); $$->appendChild($3); } | expr '<' expr { $$ = NNEW(n_BINARY_EXPRESSION); $$->appendChild($1); $$->appendChild(NTYPE($2, n_OPERATOR)); $$->appendChild($3); } | expr T_IS_SMALLER_OR_EQUAL expr { $$ = NNEW(n_BINARY_EXPRESSION); $$->appendChild($1); $$->appendChild(NTYPE($2, n_OPERATOR)); $$->appendChild($3); } | expr '>' expr { $$ = NNEW(n_BINARY_EXPRESSION); $$->appendChild($1); $$->appendChild(NTYPE($2, n_OPERATOR)); $$->appendChild($3); } | expr T_IS_GREATER_OR_EQUAL expr { $$ = NNEW(n_BINARY_EXPRESSION); $$->appendChild($1); $$->appendChild(NTYPE($2, n_OPERATOR)); $$->appendChild($3); } | expr T_SPACESHIP expr { $$ = NNEW(n_BINARY_EXPRESSION); $$->appendChild($1); $$->appendChild(NTYPE($2, n_OPERATOR)); $$->appendChild($3); } | expr T_INSTANCEOF class_name_reference { $$ = NNEW(n_BINARY_EXPRESSION); $$->appendChild($1); $$->appendChild(NTYPE($2, n_OPERATOR)); $$->appendChild($3); } | parenthesis_expr | new_expr | expr '?' expr ':' expr { $$ = NNEW(n_TERNARY_EXPRESSION); $$->appendChild($1); $$->appendChild(NTYPE($2, n_OPERATOR)); $$->appendChild($3); $$->appendChild(NTYPE($4, n_OPERATOR)); $$->appendChild($5); } | expr '?' ':' expr { $$ = NNEW(n_TERNARY_EXPRESSION); $$->appendChild($1); $$->appendChild(NTYPE($2, n_OPERATOR)); $$->appendChild(NNEW(n_EMPTY)); $$->appendChild(NTYPE($3, n_OPERATOR)); $$->appendChild($4); } | expr T_COALESCE expr { $$ = NNEW(n_BINARY_EXPRESSION); $$->appendChild($1); $$->appendChild(NTYPE($2, n_OPERATOR)); $$->appendChild($3); } | internal_functions_in_yacc | T_INT_CAST expr { $$ = NNEW(n_CAST_EXPRESSION); $$->appendChild(NTYPE($1, n_CAST)); $$->appendChild($2); } | T_DOUBLE_CAST expr { $$ = NNEW(n_CAST_EXPRESSION); $$->appendChild(NTYPE($1, n_CAST)); $$->appendChild($2); } | T_STRING_CAST expr { $$ = NNEW(n_CAST_EXPRESSION); $$->appendChild(NTYPE($1, n_CAST)); $$->appendChild($2); } | T_ARRAY_CAST expr { $$ = NNEW(n_CAST_EXPRESSION); $$->appendChild(NTYPE($1, n_CAST)); $$->appendChild($2); } | T_OBJECT_CAST expr { $$ = NNEW(n_CAST_EXPRESSION); $$->appendChild(NTYPE($1, n_CAST)); $$->appendChild($2); } | T_BOOL_CAST expr { $$ = NNEW(n_CAST_EXPRESSION); $$->appendChild(NTYPE($1, n_CAST)); $$->appendChild($2); } | T_UNSET_CAST expr { $$ = NNEW(n_CAST_EXPRESSION); $$->appendChild(NTYPE($1, n_CAST)); $$->appendChild($2); } | T_EXIT exit_expr { $$ = NNEW(n_UNARY_PREFIX_EXPRESSION); $$->appendChild(NTYPE($1, n_OPERATOR)); $$->appendChild($2); } | '@' expr { $$ = NNEW(n_UNARY_PREFIX_EXPRESSION); $$->appendChild(NTYPE($1, n_OPERATOR)); $$->appendChild($2); } | T_BACKTICKS_EXPR { NTYPE($1, n_BACKTICKS_EXPRESSION); $$ = $1; } | scalar | combined_scalar_offset | combined_scalar | T_PRINT expr { $$ = NNEW(n_UNARY_PREFIX_EXPRESSION); $$->appendChild(NTYPE($1, n_OPERATOR)); $$->appendChild($2); } | T_YIELD { NTYPE($1, n_YIELD); $1->appendChild(NNEW(n_EMPTY)); $1->appendChild(NNEW(n_EMPTY)); $$ = $1; } | function is_reference '(' parameter_list ')' lexical_vars return_type '{' inner_statement_list '}' { NSPAN($1, n_FUNCTION_DECLARATION, $9); $1->appendChild(NNEW(n_EMPTY)); $1->appendChild($2); $1->appendChild(NNEW(n_EMPTY)); $1->appendChild(NEXPAND($3, $4, $5)); $1->appendChild($6); $1->appendChild($7); $1->appendChild(NEXPAND($8, $9, $10)); $$ = $1; } | T_STATIC function is_reference '(' parameter_list ')' lexical_vars return_type '{' inner_statement_list '}' { NSPAN($2, n_FUNCTION_DECLARATION, $10); NMORE($2, $1); $$ = NNEW(n_FUNCTION_MODIFIER_LIST); $$->appendChild(NTYPE($1, n_STRING)); $2->appendChild($1); $2->appendChild(NNEW(n_EMPTY)); $2->appendChild($3); $2->appendChild(NNEW(n_EMPTY)); $2->appendChild(NEXPAND($4, $5, $6)); $2->appendChild($7); $2->appendChild($8); $2->appendChild(NEXPAND($9, $10, $11)); $$ = $2; } ; yield_expr: T_YIELD expr_without_variable { NTYPE($1, n_YIELD); $2->appendChild(NNEW(n_EMPTY)); $1->appendChild($2); $$ = $1; } | T_YIELD variable { NTYPE($1, n_YIELD); $2->appendChild(NNEW(n_EMPTY)); $1->appendChild($2); $$ = $1; } | T_YIELD expr T_DOUBLE_ARROW expr_without_variable { NTYPE($1, n_YIELD); $1->appendChild($2); $1->appendChild($4); $$ = $1; } | T_YIELD expr T_DOUBLE_ARROW variable { NTYPE($1, n_YIELD); $1->appendChild($2); $1->appendChild($4); $$ = $1; } ; function: T_FUNCTION ; lexical_vars: %empty { $$ = NNEW(n_EMPTY); } | T_USE '(' lexical_var_list ')' { NTYPE($1, n_LEXICAL_VARIABLE_LIST); $1->appendChildren($3); $$ = $1; } ; lexical_var_list: lexical_var_list ',' T_VARIABLE { $$ = $1->appendChild(NTYPE($3, n_VARIABLE)); } | lexical_var_list ',' '&' T_VARIABLE { NTYPE($3, n_VARIABLE_REFERENCE); $3->appendChild(NTYPE($4, n_VARIABLE)); $$ = $1->appendChild($3); } | T_VARIABLE { $$ = NNEW(n_LEXICAL_VARIABLE_LIST); $$->appendChild(NTYPE($1, n_VARIABLE)); } | '&' T_VARIABLE { NTYPE($1, n_VARIABLE_REFERENCE); $1->appendChild(NTYPE($2, n_VARIABLE)); $$ = NNEW(n_LEXICAL_VARIABLE_LIST); $$->appendChild($1); } ; function_call: namespace_name '(' function_call_parameter_list ')' { $$ = NNEW(n_FUNCTION_CALL); $$->appendChild($1); $$->appendChild(NEXPAND($2, $3, $4)); } | T_NAMESPACE T_NS_SEPARATOR namespace_name '(' function_call_parameter_list ')' { NMORE($3, $1); $$ = NNEW(n_FUNCTION_CALL); $$->appendChild($3); $$->appendChild(NEXPAND($4, $5, $6)); } | T_NS_SEPARATOR namespace_name '(' function_call_parameter_list ')' { NMORE($2, $1); $$ = NNEW(n_FUNCTION_CALL); $$->appendChild($2); $$->appendChild(NEXPAND($3, $4, $5)); } | class_name T_PAAMAYIM_NEKUDOTAYIM T_STRING '(' function_call_parameter_list ')' { $$ = NNEW(n_CLASS_STATIC_ACCESS); $$->appendChild($1); $$->appendChild(NTYPE($3, n_STRING)); $$ = NNEW(n_FUNCTION_CALL)->appendChild($$); $$->appendChild(NEXPAND($4, $5, $6)); } | variable_class_name T_PAAMAYIM_NEKUDOTAYIM T_STRING '(' function_call_parameter_list ')' { $$ = NNEW(n_CLASS_STATIC_ACCESS); $$->appendChild($1); $$->appendChild(NTYPE($3, n_STRING)); $$ = NNEW(n_FUNCTION_CALL)->appendChild($$); $$->appendChild(NEXPAND($4, $5, $6)); } | variable_class_name T_PAAMAYIM_NEKUDOTAYIM variable_without_objects '(' function_call_parameter_list ')' { $$ = NNEW(n_CLASS_STATIC_ACCESS); $$->appendChild($1); $$->appendChild(NTYPE($3, n_STRING)); $$ = NNEW(n_FUNCTION_CALL)->appendChild($$); $$->appendChild(NEXPAND($4, $5, $6)); } | class_name T_PAAMAYIM_NEKUDOTAYIM variable_without_objects '(' function_call_parameter_list ')' { $$ = NNEW(n_CLASS_STATIC_ACCESS); $$->appendChild($1); $$->appendChild(NTYPE($3, n_STRING)); $$ = NNEW(n_FUNCTION_CALL)->appendChild($$); $$->appendChild(NEXPAND($4, $5, $6)); } | variable_without_objects '(' function_call_parameter_list ')' { $$ = NNEW(n_FUNCTION_CALL); $$->appendChild($1); $$->appendChild(NEXPAND($2, $3, $4)); } ; class_name: T_STATIC { $$ = NTYPE($1, n_CLASS_NAME); } | namespace_name { $$ = NTYPE($1, n_CLASS_NAME); } | T_NAMESPACE T_NS_SEPARATOR namespace_name { NMORE($3, $1); $$ = NTYPE($3, n_CLASS_NAME); } | T_NS_SEPARATOR namespace_name { NMORE($2, $1); $$ = NTYPE($2, n_CLASS_NAME); } ; fully_qualified_class_name: namespace_name { $$ = NTYPE($1, n_CLASS_NAME); } | T_NAMESPACE T_NS_SEPARATOR namespace_name { NMORE($3, $1); $$ = NTYPE($3, n_CLASS_NAME); } | T_NS_SEPARATOR namespace_name { NMORE($2, $1); $$ = NTYPE($2, n_CLASS_NAME); } ; class_name_reference: class_name | dynamic_class_name_reference ; dynamic_class_name_reference: base_variable T_OBJECT_OPERATOR object_property dynamic_class_name_variable_properties { $$ = NNEW(n_OBJECT_PROPERTY_ACCESS); $$->appendChild($1); $$->appendChild($3); for (xhpast::node_list_t::iterator ii = $4->children.begin(); ii != $4->children.end(); ++ii) { $$ = NNEW(n_OBJECT_PROPERTY_ACCESS)->appendChild($$); $$->appendChild(*ii); } } | base_variable ; dynamic_class_name_variable_properties: dynamic_class_name_variable_properties dynamic_class_name_variable_property { $$ = $1->appendChild($2); } | %empty { $$ = NNEW(n_EMPTY); } ; dynamic_class_name_variable_property: T_OBJECT_OPERATOR object_property { $$ = $2; } ; exit_expr: %empty { $$ = NNEW(n_EMPTY); } | '(' ')' { NSPAN($1, n_EMPTY, $2); $$ = $1; } | '(' expr ')' { NSPAN($1, n_PARENTHETICAL_EXPRESSION, $3); $1->appendChild($2); $$ = $1; } ; ctor_arguments: %empty { $$ = NNEW(n_EMPTY); } | '(' function_call_parameter_list ')' { $$ = NEXPAND($1, $2, $3); } ; common_scalar: T_LNUMBER { $$ = NTYPE($1, n_NUMERIC_SCALAR); } | T_DNUMBER { $$ = NTYPE($1, n_NUMERIC_SCALAR); } | T_CONSTANT_ENCAPSED_STRING { $$ = NTYPE($1, n_STRING_SCALAR); } | T_LINE { $$ = NTYPE($1, n_MAGIC_SCALAR); } | T_FILE { $$ = NTYPE($1, n_MAGIC_SCALAR); } | T_DIR { $$ = NTYPE($1, n_MAGIC_SCALAR); } | T_CLASS_C { $$ = NTYPE($1, n_MAGIC_SCALAR); } | T_METHOD_C { $$ = NTYPE($1, n_MAGIC_SCALAR); } | T_TRAIT_C { $$ = NTYPE($1, n_MAGIC_SCALAR); } | T_FUNC_C { $$ = NTYPE($1, n_MAGIC_SCALAR); } | T_NS_C { $$ = NTYPE($1, n_MAGIC_SCALAR); } | T_HEREDOC { $$ = NTYPE($1, n_HEREDOC); } ; static_scalar: /* compile-time evaluated scalars */ common_scalar | namespace_name | T_NAMESPACE T_NS_SEPARATOR namespace_name { NMORE($3, $1); $$ = $3; } | T_NS_SEPARATOR namespace_name { NMORE($2, $1); $$ = $2; } | '+' static_scalar { $$ = NNEW(n_UNARY_PREFIX_EXPRESSION); $$->appendChild(NTYPE($1, n_OPERATOR)); $$->appendChild($2); } | '-' static_scalar { $$ = NNEW(n_UNARY_PREFIX_EXPRESSION); $$->appendChild(NTYPE($1, n_OPERATOR)); $$->appendChild($2); } | T_ARRAY '(' static_array_pair_list ')' { NTYPE($1, n_ARRAY_LITERAL); $1->appendChild(NEXPAND($2, $3, $4)); $$ = $1; } | '[' static_array_pair_list ']' { NTYPE($1, n_ARRAY_LITERAL); $1->appendChild(NEXPAND($1, $2, $3)); $$ = $1; } | static_class_constant ; static_class_constant: class_name T_PAAMAYIM_NEKUDOTAYIM T_STRING { $$ = NNEW(n_CLASS_STATIC_ACCESS); $$->appendChild($1); $$->appendChild(NTYPE($3, n_STRING)); } ; scalar: T_STRING_VARNAME | class_constant | namespace_name | T_NAMESPACE T_NS_SEPARATOR namespace_name { $$ = NMORE($3, $1); } | T_NS_SEPARATOR namespace_name { $$ = NMORE($2, $1); } | common_scalar ; static_array_pair_list: %empty { $$ = NNEW(n_ARRAY_VALUE_LIST); } | non_empty_static_array_pair_list possible_comma { $$ = NMORE($1, $2); } ; possible_comma: %empty { $$ = NNEW(n_EMPTY); } | ',' ; non_empty_static_array_pair_list: non_empty_static_array_pair_list ',' static_scalar T_DOUBLE_ARROW static_scalar { $$ = NNEW(n_ARRAY_VALUE); $$->appendChild($3); $$->appendChild($5); $$ = $1->appendChild($$); } | non_empty_static_array_pair_list ',' static_scalar { $$ = NNEW(n_ARRAY_VALUE); $$->appendChild(NNEW(n_EMPTY)); $$->appendChild($3); $$ = $1->appendChild($$); } | static_scalar T_DOUBLE_ARROW static_scalar { $$ = NNEW(n_ARRAY_VALUE); $$->appendChild($1); $$->appendChild($3); $$ = NNEW(n_ARRAY_VALUE_LIST)->appendChild($$); } | static_scalar { $$ = NNEW(n_ARRAY_VALUE); $$->appendChild(NNEW(n_EMPTY)); $$->appendChild($1); $$ = NNEW(n_ARRAY_VALUE_LIST)->appendChild($$); } ; expr: r_variable | expr_without_variable ; r_variable: variable ; w_variable: variable ; rw_variable: variable ; variable: base_variable_with_function_calls T_OBJECT_OPERATOR object_property method_or_not variable_properties { $$ = NNEW(n_OBJECT_PROPERTY_ACCESS); $$->appendChild($1); $$->appendChild($3); if ($4->type != n_EMPTY) { $$ = NNEW(n_METHOD_CALL)->appendChild($$); $$->appendChild($4); } for (xhpast::node_list_t::iterator ii = $5->children.begin(); ii != $5->children.end(); ++ii) { if ((*ii)->type == n_CALL_PARAMETER_LIST) { $$ = NNEW(n_METHOD_CALL)->appendChild($$); $$->appendChild((*ii)); } else { $$ = NNEW(n_OBJECT_PROPERTY_ACCESS)->appendChild($$); $$->appendChild((*ii)); } } } | base_variable_with_function_calls ; variable_properties: variable_properties variable_property { $$ = $1->appendChildren($2); } | %empty { $$ = NNEW(n_EMPTY); } ; variable_property: T_OBJECT_OPERATOR object_property method_or_not { $$ = NNEW(n_EMPTY); $$->appendChild($2); if ($3->type != n_EMPTY) { $$->appendChild($3); } } ; array_method_dereference: array_method_dereference '[' dim_offset ']' { $$ = NNEW(n_INDEX_ACCESS); $$->appendChild($1); $$->appendChild($3); NMORE($$, $4); } | method '[' dim_offset ']' { $$ = NNEW(n_INDEX_ACCESS); $$->appendChild($1); $$->appendChild($3); NMORE($$, $4); } ; method: '(' function_call_parameter_list ')' { $$ = NEXPAND($1, $2, $3); } ; method_or_not: method | array_method_dereference | %empty { $$ = NNEW(n_EMPTY); } ; variable_without_objects: reference_variable | simple_indirect_reference reference_variable { xhpast::Node *last = $1; NMORE($1, $2); while (last->firstChild() && last->firstChild()->type == n_VARIABLE_VARIABLE) { NMORE(last, $2); last = last->firstChild(); } last->appendChild($2); $$ = $1; } ; static_member: class_name T_PAAMAYIM_NEKUDOTAYIM variable_without_objects { $$ = NNEW(n_CLASS_STATIC_ACCESS); $$->appendChild($1); $$->appendChild($3); } | variable_class_name T_PAAMAYIM_NEKUDOTAYIM variable_without_objects { $$ = NNEW(n_CLASS_STATIC_ACCESS); $$->appendChild($1); $$->appendChild($3); } ; variable_class_name: reference_variable ; array_function_dereference: array_function_dereference '[' dim_offset ']' { $$ = NNEW(n_INDEX_ACCESS); $$->appendChild($1); $$->appendChild($3); NMORE($$, $4); } | function_call '[' dim_offset ']' { $$ = NNEW(n_INDEX_ACCESS); $$->appendChild($1); $$->appendChild($3); NMORE($$, $4); } ; base_variable_with_function_calls: base_variable | array_function_dereference | function_call ; base_variable: reference_variable | '(' new_expr ')' { $$ = NEXPAND($1, $2, $3); } | simple_indirect_reference reference_variable { xhpast::Node *last = $1; NMORE($1, $2); while (last->firstChild() && last->firstChild()->type == n_VARIABLE_VARIABLE) { NMORE(last, $2); last = last->firstChild(); } last->appendChild($2); $$ = $1; } | static_member ; reference_variable: reference_variable '[' dim_offset ']' { $$ = NNEW(n_INDEX_ACCESS); $$->appendChild($1); $$->appendChild($3); NMORE($$, $4); } | reference_variable '{' expr '}' { $$ = NNEW(n_INDEX_ACCESS); $$->appendChild($1); $$->appendChild($3); NMORE($$, $4); } | compound_variable ; compound_variable: T_VARIABLE { NTYPE($1, n_VARIABLE); } | '$' '{' expr '}' { NSPAN($1, n_VARIABLE_EXPRESSION, $4); $1->appendChild($3); $$ = $1; } ; dim_offset: %empty { $$ = NNEW(n_EMPTY); } | expr { $$ = $1; } ; object_property: object_dim_list | variable_without_objects ; object_dim_list: object_dim_list '[' dim_offset ']' { $$ = NNEW(n_INDEX_ACCESS); $$->appendChild($1); $$->appendChild($3); NMORE($$, $4); } | object_dim_list '{' expr '}' { $$ = NNEW(n_INDEX_ACCESS); $$->appendChild($1); $$->appendChild($3); NMORE($$, $4); } | variable_name ; variable_name: T_STRING { NTYPE($1, n_STRING); $$ = $1; } | '{' expr '}' { $$ = NEXPAND($1, $2, $3); } ; simple_indirect_reference: '$' { $$ = NTYPE($1, n_VARIABLE_VARIABLE); } | simple_indirect_reference '$' { $2 = NTYPE($2, n_VARIABLE_VARIABLE); xhpast::Node *last = $1; while (last->firstChild() && last->firstChild()->type == n_VARIABLE_VARIABLE) { last = last->firstChild(); } last->appendChild($2); $$ = $1; } ; assignment_list: assignment_list ',' assignment_list_element { $$ = $1->appendChild($3); } | assignment_list_element { $$ = NNEW(n_ASSIGNMENT_LIST); $$->appendChild($1); } ; assignment_list_element: variable | T_LIST '(' assignment_list ')' { $$ = NNEW(n_LIST); $$->appendChild(NEXPAND($2, $3, $4)); } | %empty { $$ = NNEW(n_EMPTY); } ; array_pair_list: %empty { $$ = NNEW(n_ARRAY_VALUE_LIST); } | non_empty_array_pair_list possible_comma { $$ = NMORE($1, $2); } ; non_empty_array_pair_list: non_empty_array_pair_list ',' expr T_DOUBLE_ARROW expr { $$ = NNEW(n_ARRAY_VALUE); $$->appendChild($3); $$->appendChild($5); $$ = $1->appendChild($$); } | non_empty_array_pair_list ',' expr { $$ = NNEW(n_ARRAY_VALUE); $$->appendChild(NNEW(n_EMPTY)); $$->appendChild($3); $$ = $1->appendChild($$); } | expr T_DOUBLE_ARROW expr { $$ = NNEW(n_ARRAY_VALUE); $$->appendChild($1); $$->appendChild($3); $$ = NNEW(n_ARRAY_VALUE_LIST)->appendChild($$); } | expr { $$ = NNEW(n_ARRAY_VALUE); $$->appendChild(NNEW(n_EMPTY)); $$->appendChild($1); $$ = NNEW(n_ARRAY_VALUE_LIST)->appendChild($$); } | non_empty_array_pair_list ',' expr T_DOUBLE_ARROW '&' w_variable { $$ = NNEW(n_ARRAY_VALUE); $$->appendChild($3); $$->appendChild(NTYPE($5, n_VARIABLE_REFERENCE)->appendChild($6)); $$ = $1->appendChild($$); } | non_empty_array_pair_list ',' '&' w_variable { $$ = NNEW(n_ARRAY_VALUE); $$->appendChild(NNEW(n_EMPTY)); $$->appendChild(NTYPE($3, n_VARIABLE_REFERENCE)->appendChild($4)); $$ = $1->appendChild($$); } | expr T_DOUBLE_ARROW '&' w_variable { $$ = NNEW(n_ARRAY_VALUE); $$->appendChild($1); $$->appendChild(NTYPE($3, n_VARIABLE_REFERENCE)->appendChild($4)); $$ = NNEW(n_ARRAY_VALUE_LIST)->appendChild($$); } | '&' w_variable { $$ = NNEW(n_ARRAY_VALUE); $$->appendChild(NNEW(n_EMPTY)); $$->appendChild(NTYPE($1, n_VARIABLE_REFERENCE)->appendChild($2)); $$ = NNEW(n_ARRAY_VALUE_LIST)->appendChild($$); } ; internal_functions_in_yacc: T_ISSET '(' isset_variables ')' { NTYPE($1, n_SYMBOL_NAME); NSPAN($2, n_CALL_PARAMETER_LIST, $4); $2->appendChildren($3); $$ = NNEW(n_FUNCTION_CALL); $$->appendChild($1); $$->appendChild($2); } | T_EMPTY '(' variable ')' { NTYPE($1, n_SYMBOL_NAME); NSPAN($2, n_CALL_PARAMETER_LIST, $4); $2->appendChild($3); $$ = NNEW(n_FUNCTION_CALL); $$->appendChild($1); $$->appendChild($2); } | T_INCLUDE expr { $$ = NTYPE($1, n_INCLUDE_FILE)->appendChild($2); } | T_INCLUDE_ONCE expr { $$ = NTYPE($1, n_INCLUDE_FILE)->appendChild($2); } | T_EVAL '(' expr ')' { NTYPE($1, n_SYMBOL_NAME); NSPAN($2, n_CALL_PARAMETER_LIST, $4); $2->appendChild($3); $$ = NNEW(n_FUNCTION_CALL); $$->appendChild($1); $$->appendChild($2); } | T_REQUIRE expr { $$ = NTYPE($1, n_INCLUDE_FILE)->appendChild($2); } | T_REQUIRE_ONCE expr { $$ = NTYPE($1, n_INCLUDE_FILE)->appendChild($2); } ; isset_variables: variable { $$ = NNEW(n_EMPTY); $$->appendChild($1); } | isset_variables ',' variable { $$ = $1->appendChild($3); } ; parenthesis_expr: '(' expr ')' { NSPAN($1, n_PARENTHETICAL_EXPRESSION, $3); $1->appendChild($2); $$ = $1; } | '(' yield_expr ')' { $$ = NEXPAND($1, $2, $3); } ; combined_scalar_offset: combined_scalar '[' dim_offset ']' { $$ = NNEW(n_INDEX_ACCESS); $$->appendChild($1); $$->appendChild($3); NMORE($$, $4); } | combined_scalar_offset '[' dim_offset ']' { $$ = NNEW(n_INDEX_ACCESS); $$->appendChild($1); $$->appendChild($3); NMORE($$, $4); } | T_CONSTANT_ENCAPSED_STRING '[' dim_offset ']' { $$ = NNEW(n_INDEX_ACCESS); $$->appendChild(NTYPE($1, n_STRING_SCALAR)); $$->appendChild($3); NMORE($$, $4); } | class_constant '[' dim_offset ']' { $$ = NNEW(n_INDEX_ACCESS); $$->appendChild($1); $$->appendChild($3); NMORE($$, $4); } | T_STRING '[' dim_offset ']' { $$ = NNEW(n_INDEX_ACCESS); $$->appendChild(NTYPE($1, n_STRING)); $$->appendChild($3); NMORE($$, $4); } ; combined_scalar: T_ARRAY '(' array_pair_list ')' { NTYPE($1, n_ARRAY_LITERAL); $1->appendChild(NEXPAND($2, $3, $4)); $$ = $1; } | '[' array_pair_list ']' { NTYPE($1, n_ARRAY_LITERAL); $1->appendChild(NEXPAND($1, $2, $3)); $$ = $1; } ; new_expr: T_NEW class_name_reference ctor_arguments { NTYPE($1, n_NEW); $1->appendChild($2); $1->appendChild($3); $$ = $1; } ; class_constant: class_name T_PAAMAYIM_NEKUDOTAYIM T_STRING { $$ = NNEW(n_CLASS_STATIC_ACCESS); $$->appendChild($1); $$->appendChild(NTYPE($3, n_STRING)); } | variable_class_name T_PAAMAYIM_NEKUDOTAYIM T_STRING { $$ = NNEW(n_CLASS_STATIC_ACCESS); $$->appendChild($1); $$->appendChild(NTYPE($3, n_STRING)); } ; %% const char* yytokname(int tok) { if (tok < 255) { return NULL; } return yytname[YYTRANSLATE(tok)]; } diff --git a/support/xhpast/parser.yacc.cpp b/support/xhpast/parser.yacc.cpp index ac24bcb..6d985bb 100644 --- a/support/xhpast/parser.yacc.cpp +++ b/support/xhpast/parser.yacc.cpp @@ -1,7576 +1,7578 @@ /* A Bison parser, made by GNU Bison 3.0.4. */ /* Bison implementation for Yacc-like parsers in C Copyright (C) 1984, 1989-1990, 2000-2015 Free Software Foundation, Inc. This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version. This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. You should have received a copy of the GNU General Public License along with this program. If not, see . */ /* As a special exception, you may create a larger work that contains part or all of the Bison parser skeleton and distribute that work under terms of your choice, so long as that work isn't itself a parser generator using the skeleton or a modified version thereof as a parser skeleton. Alternatively, if you modify or redistribute the parser skeleton itself, you may (at your option) remove this special exception, which will cause the skeleton and the resulting Bison output files to be licensed under the GNU General Public License without this special exception. This special exception was added by the Free Software Foundation in version 2.2 of Bison. */ /* C LALR(1) parser skeleton written by Richard Stallman, by simplifying the original so-called "semantic" parser. */ /* All symbols defined below should begin with yy or YY, to avoid infringing on user name space. This should be done even for local variables, as they might otherwise be expanded by user macros. There are some unavoidable exceptions within include files to define necessary library symbols; they are noted "INFRINGES ON USER NAME SPACE" below. */ /* Identify Bison output. */ #define YYBISON 1 /* Bison version. */ #define YYBISON_VERSION "3.0.4" /* Skeleton name. */ #define YYSKELETON_NAME "yacc.c" /* Pure parsers. */ #define YYPURE 1 /* Push parsers. */ #define YYPUSH 0 /* Pull parsers. */ #define YYPULL 1 /* Substitute the variable and function names. */ #define yyparse xhpastparse #define yylex xhpastlex #define yyerror xhpasterror #define yydebug xhpastdebug #define yynerrs xhpastnerrs /* Copy the first part of user declarations. */ #line 1 "parser.y" /* yacc.c:339 */ /* * If you modify this grammar, please update the version number in * ./xhpast.cpp and libphutil/src/parser/xhpast/bin/xhpast_parse.php */ #include "ast.hpp" #include "node_names.hpp" // PHP's if/else rules use right reduction rather than left reduction which // means while parsing nested if/else's the stack grows until it the last // statement is read. This is annoying, particularly because of a quirk in // bison. // http://www.gnu.org/software/bison/manual/html_node/Memory-Management.html // Apparently if you compile a bison parser with g++ it can no longer grow // the stack. The work around is to just make your initial stack ridiculously // large. Unfortunately that increases memory usage while parsing which is // dumb. Anyway, putting a TODO here to fix PHP's if/else grammar. #define YYINITDEPTH 500 #line 21 "parser.y" /* yacc.c:339 */ #undef yyextra #define yyextra static_cast(xhpastget_extra(yyscanner)) #undef yylineno #define yylineno yyextra->first_lineno #define push_state(s) xhp_new_push_state(s, (struct yyguts_t*) yyscanner) #define pop_state() xhp_new_pop_state((struct yyguts_t*) yyscanner) #define set_state(s) xhp_set_state(s, (struct yyguts_t*) yyscanner) #define NNEW(t) \ (new xhpast::Node(t)) #define NTYPE(n, type) \ ((n)->setType(type)) #define NMORE(n, end) \ ((n)->expandRange(end)) #define NSPAN(n, type, end) \ (NMORE(NTYPE((n), type), end)) #define NEXPAND(l, n, r) \ ((n)->expandRange(l)->expandRange(r)) using namespace std; static void yyerror(void* yyscanner, void* _, const char* error) { if (yyextra->terminated) { return; } yyextra->terminated = true; yyextra->error = error; } #line 127 "parser.yacc.cpp" /* yacc.c:339 */ # ifndef YY_NULLPTR # if defined __cplusplus && 201103L <= __cplusplus # define YY_NULLPTR nullptr # else # define YY_NULLPTR 0 # endif # endif /* Enabling verbose error messages. */ #ifdef YYERROR_VERBOSE # undef YYERROR_VERBOSE # define YYERROR_VERBOSE 1 #else # define YYERROR_VERBOSE 1 #endif /* In a future release of Bison, this section will be replaced by #include "parser.yacc.hpp". */ #ifndef YY_XHPAST_PARSER_YACC_HPP_INCLUDED # define YY_XHPAST_PARSER_YACC_HPP_INCLUDED /* Debug traces. */ #ifndef YYDEBUG # define YYDEBUG 0 #endif #if YYDEBUG extern int xhpastdebug; #endif /* Token type. */ #ifndef YYTOKENTYPE # define YYTOKENTYPE enum yytokentype { T_INCLUDE = 258, T_INCLUDE_ONCE = 259, T_EVAL = 260, T_REQUIRE = 261, T_REQUIRE_ONCE = 262, T_LOGICAL_OR = 263, T_LOGICAL_XOR = 264, T_LOGICAL_AND = 265, T_PRINT = 266, T_PLUS_EQUAL = 267, T_MINUS_EQUAL = 268, T_MUL_EQUAL = 269, T_DIV_EQUAL = 270, T_CONCAT_EQUAL = 271, T_MOD_EQUAL = 272, T_AND_EQUAL = 273, T_OR_EQUAL = 274, T_XOR_EQUAL = 275, T_SL_EQUAL = 276, T_SR_EQUAL = 277, T_COALESCE = 278, T_BOOLEAN_OR = 279, T_BOOLEAN_AND = 280, T_IS_EQUAL = 281, T_IS_NOT_EQUAL = 282, T_IS_IDENTICAL = 283, T_IS_NOT_IDENTICAL = 284, T_SPACESHIP = 285, T_IS_SMALLER_OR_EQUAL = 286, T_IS_GREATER_OR_EQUAL = 287, T_SL = 288, T_SR = 289, T_INSTANCEOF = 290, T_INC = 291, T_DEC = 292, T_INT_CAST = 293, T_DOUBLE_CAST = 294, T_STRING_CAST = 295, T_UNICODE_CAST = 296, T_BINARY_CAST = 297, T_ARRAY_CAST = 298, T_OBJECT_CAST = 299, T_BOOL_CAST = 300, T_UNSET_CAST = 301, T_NEW = 302, T_CLONE = 303, T_EXIT = 304, T_IF = 305, T_ELSEIF = 306, T_ELSE = 307, T_ENDIF = 308, T_LNUMBER = 309, T_DNUMBER = 310, T_STRING = 311, T_STRING_VARNAME = 312, T_VARIABLE = 313, T_NUM_STRING = 314, T_INLINE_HTML = 315, T_CHARACTER = 316, T_BAD_CHARACTER = 317, T_ENCAPSED_AND_WHITESPACE = 318, T_CONSTANT_ENCAPSED_STRING = 319, T_BACKTICKS_EXPR = 320, T_ECHO = 321, T_DO = 322, T_WHILE = 323, T_ENDWHILE = 324, T_FOR = 325, T_ENDFOR = 326, T_FOREACH = 327, T_ENDFOREACH = 328, T_DECLARE = 329, T_ENDDECLARE = 330, T_AS = 331, T_SWITCH = 332, T_ENDSWITCH = 333, T_CASE = 334, T_DEFAULT = 335, T_BREAK = 336, T_CONTINUE = 337, T_GOTO = 338, T_FUNCTION = 339, T_CONST = 340, T_RETURN = 341, T_TRY = 342, T_CATCH = 343, T_THROW = 344, T_USE = 345, T_GLOBAL = 346, T_STATIC = 347, T_ABSTRACT = 348, T_FINAL = 349, T_PRIVATE = 350, T_PROTECTED = 351, T_PUBLIC = 352, T_VAR = 353, T_UNSET = 354, T_ISSET = 355, T_EMPTY = 356, T_HALT_COMPILER = 357, T_CLASS = 358, T_INTERFACE = 359, T_EXTENDS = 360, T_IMPLEMENTS = 361, T_OBJECT_OPERATOR = 362, T_DOUBLE_ARROW = 363, T_LIST = 364, T_ARRAY = 365, T_CLASS_C = 366, T_METHOD_C = 367, T_FUNC_C = 368, T_LINE = 369, T_FILE = 370, T_COMMENT = 371, T_DOC_COMMENT = 372, T_OPEN_TAG = 373, T_OPEN_TAG_WITH_ECHO = 374, T_OPEN_TAG_FAKE = 375, T_CLOSE_TAG = 376, T_WHITESPACE = 377, T_START_HEREDOC = 378, T_END_HEREDOC = 379, T_HEREDOC = 380, T_DOLLAR_OPEN_CURLY_BRACES = 381, T_CURLY_OPEN = 382, T_PAAMAYIM_NEKUDOTAYIM = 383, T_BINARY_DOUBLE = 384, T_BINARY_HEREDOC = 385, T_NAMESPACE = 386, T_NS_C = 387, T_DIR = 388, T_NS_SEPARATOR = 389, T_INSTEADOF = 390, T_CALLABLE = 391, T_TRAIT = 392, T_TRAIT_C = 393, T_YIELD = 394, T_FINALLY = 395, T_ELLIPSIS = 396 }; #endif /* Value type. */ #if ! defined YYSTYPE && ! defined YYSTYPE_IS_DECLARED typedef int YYSTYPE; # define YYSTYPE_IS_TRIVIAL 1 # define YYSTYPE_IS_DECLARED 1 #endif int xhpastparse (void* yyscanner, xhpast::Node** root); #endif /* !YY_XHPAST_PARSER_YACC_HPP_INCLUDED */ /* Copy the second part of user declarations. */ #line 319 "parser.yacc.cpp" /* yacc.c:358 */ #ifdef short # undef short #endif #ifdef YYTYPE_UINT8 typedef YYTYPE_UINT8 yytype_uint8; #else typedef unsigned char yytype_uint8; #endif #ifdef YYTYPE_INT8 typedef YYTYPE_INT8 yytype_int8; #else typedef signed char yytype_int8; #endif #ifdef YYTYPE_UINT16 typedef YYTYPE_UINT16 yytype_uint16; #else typedef unsigned short int yytype_uint16; #endif #ifdef YYTYPE_INT16 typedef YYTYPE_INT16 yytype_int16; #else typedef short int yytype_int16; #endif #ifndef YYSIZE_T # ifdef __SIZE_TYPE__ # define YYSIZE_T __SIZE_TYPE__ # elif defined size_t # define YYSIZE_T size_t # elif ! defined YYSIZE_T # include /* INFRINGES ON USER NAME SPACE */ # define YYSIZE_T size_t # else # define YYSIZE_T unsigned int # endif #endif #define YYSIZE_MAXIMUM ((YYSIZE_T) -1) #ifndef YY_ # if defined YYENABLE_NLS && YYENABLE_NLS # if ENABLE_NLS # include /* INFRINGES ON USER NAME SPACE */ # define YY_(Msgid) dgettext ("bison-runtime", Msgid) # endif # endif # ifndef YY_ # define YY_(Msgid) Msgid # endif #endif #ifndef YY_ATTRIBUTE # if (defined __GNUC__ \ && (2 < __GNUC__ || (__GNUC__ == 2 && 96 <= __GNUC_MINOR__))) \ || defined __SUNPRO_C && 0x5110 <= __SUNPRO_C # define YY_ATTRIBUTE(Spec) __attribute__(Spec) # else # define YY_ATTRIBUTE(Spec) /* empty */ # endif #endif #ifndef YY_ATTRIBUTE_PURE # define YY_ATTRIBUTE_PURE YY_ATTRIBUTE ((__pure__)) #endif #ifndef YY_ATTRIBUTE_UNUSED # define YY_ATTRIBUTE_UNUSED YY_ATTRIBUTE ((__unused__)) #endif #if !defined _Noreturn \ && (!defined __STDC_VERSION__ || __STDC_VERSION__ < 201112) # if defined _MSC_VER && 1200 <= _MSC_VER # define _Noreturn __declspec (noreturn) # else # define _Noreturn YY_ATTRIBUTE ((__noreturn__)) # endif #endif /* Suppress unused-variable warnings by "using" E. */ #if ! defined lint || defined __GNUC__ # define YYUSE(E) ((void) (E)) #else # define YYUSE(E) /* empty */ #endif #if defined __GNUC__ && 407 <= __GNUC__ * 100 + __GNUC_MINOR__ /* Suppress an incorrect diagnostic about yylval being uninitialized. */ # define YY_IGNORE_MAYBE_UNINITIALIZED_BEGIN \ _Pragma ("GCC diagnostic push") \ _Pragma ("GCC diagnostic ignored \"-Wuninitialized\"")\ _Pragma ("GCC diagnostic ignored \"-Wmaybe-uninitialized\"") # define YY_IGNORE_MAYBE_UNINITIALIZED_END \ _Pragma ("GCC diagnostic pop") #else # define YY_INITIAL_VALUE(Value) Value #endif #ifndef YY_IGNORE_MAYBE_UNINITIALIZED_BEGIN # define YY_IGNORE_MAYBE_UNINITIALIZED_BEGIN # define YY_IGNORE_MAYBE_UNINITIALIZED_END #endif #ifndef YY_INITIAL_VALUE # define YY_INITIAL_VALUE(Value) /* Nothing. */ #endif #if ! defined yyoverflow || YYERROR_VERBOSE /* The parser invokes alloca or malloc; define the necessary symbols. */ # ifdef YYSTACK_USE_ALLOCA # if YYSTACK_USE_ALLOCA # ifdef __GNUC__ # define YYSTACK_ALLOC __builtin_alloca # elif defined __BUILTIN_VA_ARG_INCR # include /* INFRINGES ON USER NAME SPACE */ # elif defined _AIX # define YYSTACK_ALLOC __alloca # elif defined _MSC_VER # include /* INFRINGES ON USER NAME SPACE */ # define alloca _alloca # else # define YYSTACK_ALLOC alloca # if ! defined _ALLOCA_H && ! defined EXIT_SUCCESS # include /* INFRINGES ON USER NAME SPACE */ /* Use EXIT_SUCCESS as a witness for stdlib.h. */ # ifndef EXIT_SUCCESS # define EXIT_SUCCESS 0 # endif # endif # endif # endif # endif # ifdef YYSTACK_ALLOC /* Pacify GCC's 'empty if-body' warning. */ # define YYSTACK_FREE(Ptr) do { /* empty */; } while (0) # ifndef YYSTACK_ALLOC_MAXIMUM /* The OS might guarantee only one guard page at the bottom of the stack, and a page size can be as small as 4096 bytes. So we cannot safely invoke alloca (N) if N exceeds 4096. Use a slightly smaller number to allow for a few compiler-allocated temporary stack slots. */ # define YYSTACK_ALLOC_MAXIMUM 4032 /* reasonable circa 2006 */ # endif # else # define YYSTACK_ALLOC YYMALLOC # define YYSTACK_FREE YYFREE # ifndef YYSTACK_ALLOC_MAXIMUM # define YYSTACK_ALLOC_MAXIMUM YYSIZE_MAXIMUM # endif # if (defined __cplusplus && ! defined EXIT_SUCCESS \ && ! ((defined YYMALLOC || defined malloc) \ && (defined YYFREE || defined free))) # include /* INFRINGES ON USER NAME SPACE */ # ifndef EXIT_SUCCESS # define EXIT_SUCCESS 0 # endif # endif # ifndef YYMALLOC # define YYMALLOC malloc # if ! defined malloc && ! defined EXIT_SUCCESS void *malloc (YYSIZE_T); /* INFRINGES ON USER NAME SPACE */ # endif # endif # ifndef YYFREE # define YYFREE free # if ! defined free && ! defined EXIT_SUCCESS void free (void *); /* INFRINGES ON USER NAME SPACE */ # endif # endif # endif #endif /* ! defined yyoverflow || YYERROR_VERBOSE */ #if (! defined yyoverflow \ && (! defined __cplusplus \ || (defined YYSTYPE_IS_TRIVIAL && YYSTYPE_IS_TRIVIAL))) /* A type that is properly aligned for any stack member. */ union yyalloc { yytype_int16 yyss_alloc; YYSTYPE yyvs_alloc; }; /* The size of the maximum gap between one aligned stack and the next. */ # define YYSTACK_GAP_MAXIMUM (sizeof (union yyalloc) - 1) /* The size of an array large to enough to hold all stacks, each with N elements. */ # define YYSTACK_BYTES(N) \ ((N) * (sizeof (yytype_int16) + sizeof (YYSTYPE)) \ + YYSTACK_GAP_MAXIMUM) # define YYCOPY_NEEDED 1 /* Relocate STACK from its old location to the new one. The local variables YYSIZE and YYSTACKSIZE give the old and new number of elements in the stack, and YYPTR gives the new location of the stack. Advance YYPTR to a properly aligned location for the next stack. */ # define YYSTACK_RELOCATE(Stack_alloc, Stack) \ do \ { \ YYSIZE_T yynewbytes; \ YYCOPY (&yyptr->Stack_alloc, Stack, yysize); \ Stack = &yyptr->Stack_alloc; \ yynewbytes = yystacksize * sizeof (*Stack) + YYSTACK_GAP_MAXIMUM; \ yyptr += yynewbytes / sizeof (*yyptr); \ } \ while (0) #endif #if defined YYCOPY_NEEDED && YYCOPY_NEEDED /* Copy COUNT objects from SRC to DST. The source and destination do not overlap. */ # ifndef YYCOPY # if defined __GNUC__ && 1 < __GNUC__ # define YYCOPY(Dst, Src, Count) \ __builtin_memcpy (Dst, Src, (Count) * sizeof (*(Src))) # else # define YYCOPY(Dst, Src, Count) \ do \ { \ YYSIZE_T yyi; \ for (yyi = 0; yyi < (Count); yyi++) \ (Dst)[yyi] = (Src)[yyi]; \ } \ while (0) # endif # endif #endif /* !YYCOPY_NEEDED */ /* YYFINAL -- State number of the termination state. */ #define YYFINAL 3 /* YYLAST -- Last index in YYTABLE. */ -#define YYLAST 7553 +#define YYLAST 7500 /* YYNTOKENS -- Number of terminals. */ #define YYNTOKENS 168 /* YYNNTS -- Number of nonterminals. */ #define YYNNTS 135 /* YYNRULES -- Number of rules. */ -#define YYNRULES 441 +#define YYNRULES 442 /* YYNSTATES -- Number of states. */ -#define YYNSTATES 906 +#define YYNSTATES 908 /* YYTRANSLATE[YYX] -- Symbol number corresponding to YYX as returned by yylex, with out-of-bounds checking. */ #define YYUNDEFTOK 2 #define YYMAXUTOK 396 #define YYTRANSLATE(YYX) \ ((unsigned int) (YYX) <= YYMAXUTOK ? yytranslate[YYX] : YYUNDEFTOK) /* YYTRANSLATE[TOKEN-NUM] -- Symbol number corresponding to TOKEN-NUM as returned by yylex, without out-of-bounds checking. */ static const yytype_uint8 yytranslate[] = { 0, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 50, 2, 2, 166, 49, 32, 2, 161, 162, 47, 44, 8, 45, 46, 48, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 26, 163, 38, 13, 40, 25, 64, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 65, 2, 167, 31, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 164, 30, 165, 52, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 1, 2, 3, 4, 5, 6, 7, 9, 10, 11, 12, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 27, 28, 29, 33, 34, 35, 36, 37, 39, 41, 42, 43, 51, 53, 54, 55, 56, 57, 58, 59, 60, 61, 62, 63, 66, 67, 68, 69, 70, 71, 72, 73, 74, 75, 76, 77, 78, 79, 80, 81, 82, 83, 84, 85, 86, 87, 88, 89, 90, 91, 92, 93, 94, 95, 96, 97, 98, 99, 100, 101, 102, 103, 104, 105, 106, 107, 108, 109, 110, 111, 112, 113, 114, 115, 116, 117, 118, 119, 120, 121, 122, 123, 124, 125, 126, 127, 128, 129, 130, 131, 132, 133, 134, 135, 136, 137, 138, 139, 140, 141, 142, 143, 144, 145, 146, 147, 148, 149, 150, 151, 152, 153, 154, 155, 156, 157, 158, 159, 160 }; #if YYDEBUG /* YYRLINE[YYN] -- Source line where rule number YYN was defined. */ static const yytype_uint16 yyrline[] = { 0, 210, 210, 216, 219, 225, 228, 234, 235, 236, 237, 242, 249, 255, 263, 268, 275, 278, 285, 290, 296, 302, 312, 319, 329, 332, 338, 339, 340, 341, 349, 350, 356, 359, 362, 368, 371, 401, 420, 427, 435, 448, 455, 462, 469, 476, 483, 490, 497, 504, 509, 514, 519, 523, 527, 531, 537, 555, 572, 578, 582, 591, 600, 608, 619, 623, 629, 641, 644, 648, 657, 661, 668, 672, 676, 680, 683, 689, 705, 717, 732, 736, 743, 750, 757, 760, 766, 770, 773, 781, 784, 792, 795, 801, 804, 810, 811, 819, 820, 828, 829, 837, 838, 846, 852, 863, 866, 876, 881, 893, 896, 904, 914, 915, 919, 920, 928, 931, 941, 944, 954, 957, 965, 968, 976, 977, 983, 991, 1000, 1009, 1017, 1025, 1034, 1044, 1056, 1060, 1066, 1069, 1073, 1076, - 1079, 1085, 1088, 1094, 1095, 1101, 1104, 1110, 1111, 1114, - 1121, 1125, 1132, 1135, 1139, 1146, 1154, 1162, 1170, 1181, - 1184, 1190, 1198, 1202, 1205, 1205, 1223, 1231, 1234, 1240, - 1243, 1249, 1252, 1258, 1262, 1269, 1272, 1278, 1286, 1290, - 1297, 1301, 1307, 1315, 1321, 1330, 1333, 1341, 1344, 1350, - 1351, 1358, 1361, 1368, 1372, 1378, 1379, 1380, 1381, 1382, - 1383, 1387, 1394, 1401, 1408, 1418, 1427, 1439, 1442, 1449, - 1452, 1457, 1460, 1467, 1475, 1481, 1491, 1505, 1510, 1516, - 1522, 1528, 1534, 1540, 1546, 1552, 1558, 1564, 1570, 1576, - 1581, 1586, 1591, 1596, 1602, 1608, 1614, 1620, 1626, 1632, - 1638, 1644, 1670, 1676, 1682, 1688, 1694, 1700, 1706, 1712, - 1717, 1722, 1727, 1732, 1738, 1744, 1750, 1756, 1762, 1768, - 1774, 1780, 1786, 1792, 1793, 1794, 1802, 1810, 1816, 1817, - 1822, 1827, 1832, 1837, 1842, 1847, 1852, 1857, 1862, 1866, - 1867, 1868, 1869, 1874, 1880, 1895, 1919, 1925, 1931, 1937, - 1946, 1950, 1953, 1961, 1964, 1969, 1973, 1982, 1987, 1994, - 2000, 2009, 2018, 2027, 2036, 2044, 2047, 2050, 2054, 2061, - 2064, 2068, 2075, 2076, 2080, 2095, 2099, 2102, 2108, 2114, - 2117, 2121, 2129, 2132, 2138, 2141, 2144, 2147, 2150, 2153, - 2156, 2159, 2162, 2165, 2168, 2171, 2177, 2178, 2179, 2183, - 2187, 2192, 2197, 2202, 2207, 2211, 2219, 2220, 2221, 2222, - 2225, 2228, 2232, 2235, 2241, 2244, 2248, 2259, 2266, 2273, - 2283, 2284, 2288, 2292, 2296, 2300, 2326, 2330, 2333, 2339, - 2349, 2355, 2364, 2370, 2371, 2372, 2378, 2379, 2394, 2399, - 2407, 2411, 2417, 2426, 2427, 2428, 2432, 2433, 2436, 2448, - 2452, 2458, 2464, 2468, 2471, 2479, 2482, 2488, 2489, 2493, - 2499, 2505, 2509, 2513, 2519, 2522, 2537, 2540, 2547, 2548, - 2552, 2558, 2561, 2567, 2574, 2581, 2588, 2595, 2602, 2609, - 2616, 2626, 2636, 2646, 2649, 2652, 2662, 2665, 2671, 2675, - 2681, 2686, 2692, 2698, 2704, 2710, 2716, 2725, 2730, 2738, - 2747, 2752 + 1079, 1085, 1088, 1093, 1101, 1102, 1108, 1111, 1117, 1118, + 1121, 1128, 1132, 1139, 1142, 1146, 1153, 1161, 1169, 1177, + 1188, 1191, 1197, 1205, 1209, 1212, 1212, 1230, 1238, 1241, + 1247, 1250, 1256, 1259, 1265, 1269, 1276, 1279, 1285, 1293, + 1297, 1304, 1308, 1314, 1322, 1328, 1337, 1340, 1348, 1351, + 1357, 1358, 1365, 1368, 1375, 1379, 1385, 1386, 1387, 1388, + 1389, 1390, 1394, 1401, 1408, 1415, 1425, 1434, 1446, 1449, + 1456, 1459, 1464, 1467, 1474, 1482, 1488, 1498, 1512, 1517, + 1523, 1529, 1535, 1541, 1547, 1553, 1559, 1565, 1571, 1577, + 1583, 1588, 1593, 1598, 1603, 1609, 1615, 1621, 1627, 1633, + 1639, 1645, 1651, 1677, 1683, 1689, 1695, 1701, 1707, 1713, + 1719, 1724, 1729, 1734, 1739, 1745, 1751, 1757, 1763, 1769, + 1775, 1781, 1787, 1793, 1799, 1800, 1801, 1809, 1817, 1823, + 1824, 1829, 1834, 1839, 1844, 1849, 1854, 1859, 1864, 1869, + 1873, 1874, 1875, 1876, 1881, 1887, 1902, 1926, 1932, 1938, + 1944, 1953, 1957, 1960, 1968, 1971, 1976, 1980, 1989, 1994, + 2001, 2007, 2016, 2025, 2034, 2043, 2051, 2054, 2057, 2061, + 2068, 2071, 2075, 2082, 2083, 2087, 2102, 2106, 2109, 2115, + 2121, 2124, 2128, 2136, 2139, 2145, 2148, 2151, 2154, 2157, + 2160, 2163, 2166, 2169, 2172, 2175, 2178, 2184, 2185, 2186, + 2190, 2194, 2199, 2204, 2209, 2214, 2218, 2226, 2227, 2228, + 2229, 2232, 2235, 2239, 2242, 2248, 2251, 2255, 2266, 2273, + 2280, 2290, 2291, 2295, 2299, 2303, 2307, 2333, 2337, 2340, + 2346, 2356, 2362, 2371, 2377, 2378, 2379, 2385, 2386, 2401, + 2406, 2414, 2418, 2424, 2433, 2434, 2435, 2439, 2440, 2443, + 2455, 2459, 2465, 2471, 2475, 2478, 2486, 2489, 2495, 2496, + 2500, 2506, 2512, 2516, 2520, 2526, 2529, 2544, 2547, 2554, + 2555, 2559, 2565, 2568, 2574, 2581, 2588, 2595, 2602, 2609, + 2616, 2623, 2633, 2643, 2653, 2656, 2659, 2669, 2672, 2678, + 2682, 2688, 2693, 2699, 2705, 2711, 2717, 2723, 2732, 2737, + 2745, 2754, 2759 }; #endif #if YYDEBUG || YYERROR_VERBOSE || 1 /* YYTNAME[SYMBOL-NUM] -- String name of the symbol SYMBOL-NUM. First, the terminals, then, starting at YYNTOKENS, nonterminals. */ static const char *const yytname[] = { "$end", "error", "$undefined", "T_INCLUDE", "T_INCLUDE_ONCE", "T_EVAL", "T_REQUIRE", "T_REQUIRE_ONCE", "','", "T_LOGICAL_OR", "T_LOGICAL_XOR", "T_LOGICAL_AND", "T_PRINT", "'='", "T_PLUS_EQUAL", "T_MINUS_EQUAL", "T_MUL_EQUAL", "T_DIV_EQUAL", "T_CONCAT_EQUAL", "T_MOD_EQUAL", "T_AND_EQUAL", "T_OR_EQUAL", "T_XOR_EQUAL", "T_SL_EQUAL", "T_SR_EQUAL", "'?'", "':'", "T_COALESCE", "T_BOOLEAN_OR", "T_BOOLEAN_AND", "'|'", "'^'", "'&'", "T_IS_EQUAL", "T_IS_NOT_EQUAL", "T_IS_IDENTICAL", "T_IS_NOT_IDENTICAL", "T_SPACESHIP", "'<'", "T_IS_SMALLER_OR_EQUAL", "'>'", "T_IS_GREATER_OR_EQUAL", "T_SL", "T_SR", "'+'", "'-'", "'.'", "'*'", "'/'", "'%'", "'!'", "T_INSTANCEOF", "'~'", "T_INC", "T_DEC", "T_INT_CAST", "T_DOUBLE_CAST", "T_STRING_CAST", "T_UNICODE_CAST", "T_BINARY_CAST", "T_ARRAY_CAST", "T_OBJECT_CAST", "T_BOOL_CAST", "T_UNSET_CAST", "'@'", "'['", "T_NEW", "T_CLONE", "T_EXIT", "T_IF", "T_ELSEIF", "T_ELSE", "T_ENDIF", "T_LNUMBER", "T_DNUMBER", "T_STRING", "T_STRING_VARNAME", "T_VARIABLE", "T_NUM_STRING", "T_INLINE_HTML", "T_CHARACTER", "T_BAD_CHARACTER", "T_ENCAPSED_AND_WHITESPACE", "T_CONSTANT_ENCAPSED_STRING", "T_BACKTICKS_EXPR", "T_ECHO", "T_DO", "T_WHILE", "T_ENDWHILE", "T_FOR", "T_ENDFOR", "T_FOREACH", "T_ENDFOREACH", "T_DECLARE", "T_ENDDECLARE", "T_AS", "T_SWITCH", "T_ENDSWITCH", "T_CASE", "T_DEFAULT", "T_BREAK", "T_CONTINUE", "T_GOTO", "T_FUNCTION", "T_CONST", "T_RETURN", "T_TRY", "T_CATCH", "T_THROW", "T_USE", "T_GLOBAL", "T_STATIC", "T_ABSTRACT", "T_FINAL", "T_PRIVATE", "T_PROTECTED", "T_PUBLIC", "T_VAR", "T_UNSET", "T_ISSET", "T_EMPTY", "T_HALT_COMPILER", "T_CLASS", "T_INTERFACE", "T_EXTENDS", "T_IMPLEMENTS", "T_OBJECT_OPERATOR", "T_DOUBLE_ARROW", "T_LIST", "T_ARRAY", "T_CLASS_C", "T_METHOD_C", "T_FUNC_C", "T_LINE", "T_FILE", "T_COMMENT", "T_DOC_COMMENT", "T_OPEN_TAG", "T_OPEN_TAG_WITH_ECHO", "T_OPEN_TAG_FAKE", "T_CLOSE_TAG", "T_WHITESPACE", "T_START_HEREDOC", "T_END_HEREDOC", "T_HEREDOC", "T_DOLLAR_OPEN_CURLY_BRACES", "T_CURLY_OPEN", "T_PAAMAYIM_NEKUDOTAYIM", "T_BINARY_DOUBLE", "T_BINARY_HEREDOC", "T_NAMESPACE", "T_NS_C", "T_DIR", "T_NS_SEPARATOR", "T_INSTEADOF", "T_CALLABLE", "T_TRAIT", "T_TRAIT_C", "T_YIELD", "T_FINALLY", "T_ELLIPSIS", "'('", "')'", "';'", "'{'", "'}'", "'$'", "']'", "$accept", "start", "top_statement_list", "namespace_name", "top_statement", "use_declarations", "use_declaration", "constant_declaration", "inner_statement_list", "inner_statement", "statement", "unticked_statement", "catch_list", "catch", "finally_statement", "non_empty_finally_statement", "unset_variables", "unset_variable", "function_declaration_statement", "class_declaration_statement", "is_reference", "unticked_function_declaration_statement", "unticked_class_declaration_statement", "class_entry_type", "extends_from", "interface_entry", "interface_extends_list", "implements_list", "interface_list", "foreach_optional_arg", "foreach_variable", "for_statement", "foreach_statement", "declare_statement", "declare_list", "switch_case_list", "case_list", "case_separator", "while_statement", "elseif_list", "new_elseif_list", "else_single", "new_else_single", "parameter_list", "non_empty_parameter_list", "parameter", "optional_type", "type", "return_type", "function_call_parameter_list", "non_empty_function_call_parameter_list", "argument", "global_var_list", "global_var", "static_var_list", "class_statement_list", "class_statement", "$@1", "trait_use_statement", "trait_list", "trait_adaptations", "trait_adaptation_list", "non_empty_trait_adaptation_list", "trait_adaptation_statement", "trait_precedence", "trait_reference_list", "trait_method_reference", "trait_method_reference_fully_qualified", "trait_alias", "trait_modifiers", "method_body", "variable_modifiers", "method_modifiers", "non_empty_member_modifiers", "member_modifier", "class_variable_declaration", "class_constant_declaration", "echo_expr_list", "for_expr", "non_empty_for_expr", "expr_without_variable", "yield_expr", "function", "lexical_vars", "lexical_var_list", "function_call", "class_name", "fully_qualified_class_name", "class_name_reference", "dynamic_class_name_reference", "dynamic_class_name_variable_properties", "dynamic_class_name_variable_property", "exit_expr", "ctor_arguments", "common_scalar", "static_scalar", "static_class_constant", "scalar", "static_array_pair_list", "possible_comma", "non_empty_static_array_pair_list", "expr", "r_variable", "w_variable", "rw_variable", "variable", "variable_properties", "variable_property", "array_method_dereference", "method", "method_or_not", "variable_without_objects", "static_member", "variable_class_name", "array_function_dereference", "base_variable_with_function_calls", "base_variable", "reference_variable", "compound_variable", "dim_offset", "object_property", "object_dim_list", "variable_name", "simple_indirect_reference", "assignment_list", "assignment_list_element", "array_pair_list", "non_empty_array_pair_list", "internal_functions_in_yacc", "isset_variables", "parenthesis_expr", "combined_scalar_offset", "combined_scalar", "new_expr", "class_constant", YY_NULLPTR }; #endif # ifdef YYPRINT /* YYTOKNUM[NUM] -- (External) token number corresponding to the (internal) symbol number NUM (which must be that of a token). */ static const yytype_uint16 yytoknum[] = { 0, 256, 257, 258, 259, 260, 261, 262, 44, 263, 264, 265, 266, 61, 267, 268, 269, 270, 271, 272, 273, 274, 275, 276, 277, 63, 58, 278, 279, 280, 124, 94, 38, 281, 282, 283, 284, 285, 60, 286, 62, 287, 288, 289, 43, 45, 46, 42, 47, 37, 33, 290, 126, 291, 292, 293, 294, 295, 296, 297, 298, 299, 300, 301, 64, 91, 302, 303, 304, 305, 306, 307, 308, 309, 310, 311, 312, 313, 314, 315, 316, 317, 318, 319, 320, 321, 322, 323, 324, 325, 326, 327, 328, 329, 330, 331, 332, 333, 334, 335, 336, 337, 338, 339, 340, 341, 342, 343, 344, 345, 346, 347, 348, 349, 350, 351, 352, 353, 354, 355, 356, 357, 358, 359, 360, 361, 362, 363, 364, 365, 366, 367, 368, 369, 370, 371, 372, 373, 374, 375, 376, 377, 378, 379, 380, 381, 382, 383, 384, 385, 386, 387, 388, 389, 390, 391, 392, 393, 394, 395, 396, 40, 41, 59, 123, 125, 36, 93 }; # endif -#define YYPACT_NINF -690 +#define YYPACT_NINF -694 #define yypact_value_is_default(Yystate) \ - (!!((Yystate) == (-690))) + (!!((Yystate) == (-694))) -#define YYTABLE_NINF -381 +#define YYTABLE_NINF -382 #define yytable_value_is_error(Yytable_value) \ - (!!((Yytable_value) == (-381))) + (!!((Yytable_value) == (-382))) /* YYPACT[STATE-NUM] -- Index in YYTABLE of the portion describing STATE-NUM. */ static const yytype_int16 yypact[] = { - -690, 76, 1810, -690, 5980, 5980, -106, 5980, 5980, 5980, - 5980, 5980, 5980, 5980, 173, 173, 5980, 5980, 5980, 5980, - 5980, 5980, 5980, 5980, 4650, 387, 5980, -104, -81, -690, - -690, 62, -690, -690, -690, 93, -690, 5980, 4508, -39, - -32, 61, 79, 81, 4783, 4916, 99, -690, 128, 5049, - 48, 5980, -8, 51, -6, 123, 140, 98, 110, 114, - 132, -690, -690, 143, 147, -690, -690, -690, -690, -690, - -690, -690, -690, -690, 0, -690, -690, 214, -690, -690, - 5980, 6113, -690, -690, 154, -60, -690, 21, -690, -690, - -690, -690, -690, -690, 256, 260, -690, 187, 325, 300, - 222, -690, -690, 6536, -690, 45, 1218, 224, -690, 253, - 344, 287, -690, 55, -690, 137, -690, -690, 349, 351, - -690, 355, 356, 320, 274, -690, 325, 7328, 7328, 5980, - 7328, 7328, 7434, -690, -690, 377, -690, -690, -690, 277, - 214, 378, 103, 306, -690, -690, 307, -690, -690, -690, - -690, -690, -690, -690, -690, -690, 173, 7126, 276, 449, - 308, 214, 313, 316, 318, -690, 321, 334, -22, 137, - -690, 5182, -690, 5980, -690, 5980, 5980, 22, 7328, 380, - 5980, 5980, 5980, 408, 5980, -690, 6579, -690, 6622, 322, - 471, -690, 332, 7328, 761, -690, 6673, 214, -45, 23, - -690, -690, 238, 24, -690, 475, 25, 325, -690, -690, - 173, 173, 173, 335, 172, 4650, 214, -690, -74, -47, - 199, 7169, 213, 342, 6716, 347, 1952, 5980, 421, 1262, - 431, -690, 393, 395, -690, -690, -31, 5980, 6, 5980, - 5980, 5980, 5315, 5980, 5980, 5980, 5980, 5980, 5980, 5980, - 5980, 5980, 5980, 5980, 5980, 5980, 5980, 5980, 5980, 5980, - 5980, 5980, 5980, 5980, 5980, 5980, 387, -690, -690, -690, - 5448, 5980, 5980, 5980, 5980, 5980, 5980, 5980, 5980, 5980, - 5980, 5980, 1262, 42, 5980, 49, 5980, 5980, 154, -9, - 5980, 5980, 5980, 359, 6759, 214, 107, 347, 57, 73, - -690, -690, 5581, -690, 5714, -690, 214, 313, 144, 1262, - -690, 144, 49, -17, -690, 6810, 6854, 7328, 369, 374, - 5980, -690, 361, 6897, 363, 534, 7328, 448, 1082, 531, - 14, 6946, -690, -690, -690, 898, -690, -690, 2094, -690, - -37, 474, -8, -690, 5980, -690, -690, 51, -690, 898, - 469, -690, 389, 18, -690, -690, -690, 29, 390, 388, - 394, -690, 33, -690, 398, 91, 1498, -690, -690, 1262, - 5980, -690, -690, -690, 396, -690, -690, -690, -690, -690, - 6258, -690, 173, 5980, 406, 561, -690, 7328, 557, 40, - 446, 40, 413, 425, 297, 415, 426, 427, -17, 137, - 7370, 7409, 7434, 5980, 7272, 7459, 1659, 7481, 7502, 4703, - 1405, 1478, 1478, 1478, 1478, 1478, 1073, 1073, 1073, 1073, - 679, 679, 294, 294, 294, 377, 377, 377, -690, -7, - 7434, 7434, 7434, 7434, 7434, 7434, 7434, 7434, 7434, 7434, - 7434, 7434, 429, 428, 432, 430, -690, 5980, -690, 433, - -4, -690, 435, 6301, 437, 438, 442, -690, 120, 426, - 428, 173, 7328, 173, 7227, 313, -690, 436, -690, -690, - -690, 3798, -690, -690, 7328, 5980, 3940, 5980, 5980, 173, - 242, 898, 524, 4082, 36, 898, 898, 898, -690, 439, - 457, 214, -87, 464, -690, -690, -690, -54, 537, -690, - -690, 6344, -690, -690, 601, 297, 173, 453, 173, -690, - -690, -690, 172, 172, 605, -690, 1262, -690, 1668, 460, - 211, 418, 461, -690, -690, 7328, -690, 1262, 898, 472, - 214, 313, -690, 40, 462, 619, -690, -690, 297, -690, - -690, 467, 622, 8, -690, -690, -690, 1262, 1262, -17, - 7459, 5980, 387, -690, -690, 1262, 1262, -690, 6397, 1262, - 567, 573, -690, 5980, 5980, -690, -690, -690, -690, -690, - -690, -690, 5847, -690, 513, -690, -690, 6990, -690, -690, - -690, 482, 7328, 520, 173, 520, -690, -690, 636, -690, - -690, -690, 487, 488, -690, -690, -690, 527, 490, 652, - 898, 214, 149, 596, 514, 510, -54, -690, -690, -690, - -690, 898, 515, -690, -690, -690, 34, -690, 5980, 516, - -690, -690, 518, -690, -690, 214, 313, 619, -690, 40, - 450, 523, 577, 296, -53, -690, 599, 669, 535, 536, - 7459, 318, 539, 542, -690, 543, 5980, 5980, 580, 532, - 6440, 173, 7328, 49, -690, 3656, 32, 544, 2236, 5980, - 242, 549, -690, 550, 898, 2378, -690, 257, -690, 13, - 898, -690, 898, -690, 553, 174, -690, 40, -690, -690, - -690, -690, -690, 577, -690, 7434, -690, -690, 313, 579, - -690, 641, 40, -690, -690, -690, -690, -690, -690, -690, - -690, -690, -690, 642, 320, 399, -690, 26, 692, 559, - 692, 41, 708, -690, 898, -690, -690, -690, -690, -690, - -690, 562, 565, 49, -690, -690, -690, -690, -690, 310, - 572, 4508, -690, -690, 574, 576, -690, 4224, 4224, -690, - 578, 299, 582, 5980, 2, 159, -690, -690, 608, -690, - 659, 2520, 692, -690, 726, 19, -690, 730, 31, -690, - -690, 673, -690, 296, 586, 59, 587, -53, 739, 898, - -690, -690, -690, 433, 598, 731, 689, 5980, -690, -690, - 4366, -690, -690, -690, -690, -690, 600, -690, 6485, -690, - -690, -690, -690, 898, 604, -690, 609, 898, 40, -690, - 179, -690, 898, 685, -690, 325, 773, -690, -690, 710, - -690, 37, -690, 777, 898, -690, -690, 5980, -690, 628, - 7033, -690, -690, -690, 2662, -690, -690, 3656, -690, 630, - -690, -690, -690, 709, 640, 179, -690, 643, 713, 656, - 648, 665, -690, 800, 742, 898, 2804, -690, 64, -690, - 2946, 898, -690, 7082, 3656, -690, 4508, 3088, 655, 3656, - -690, 3230, -690, -690, -690, 687, 40, -690, 744, 898, - 660, -690, -690, 746, -690, -690, -690, 801, -690, 666, - -690, 3372, -690, 756, 757, 825, -690, -690, -690, 297, - -690, -690, -690, -690, -690, 40, 672, 3656, -690, 692, - 230, -690, -690, -690, 3514, -690 + -694, 81, 1776, -694, 5946, 5946, -75, 5946, 5946, 5946, + 5946, 5946, 5946, 5946, 395, 395, 5946, 5946, 5946, 5946, + 5946, 5946, 5946, 5946, 4616, 466, 5946, -73, -71, -694, + -694, 65, -694, -694, -694, 49, -694, 5946, 4474, -68, + -59, -45, -35, -18, 4749, 4882, 129, -694, 147, 5015, + -11, 5946, -13, -19, -4, 110, 113, 88, 92, 112, + 116, -694, -694, 124, 137, -694, -694, -694, -694, -694, + -694, -694, -694, -694, 153, -694, -694, 208, -694, -694, + 5946, 6079, -694, -694, 141, -50, -694, 11, -694, -694, + -694, -694, -694, -694, 245, 253, -694, 176, 313, 284, + 222, -694, -694, 6451, -694, 227, 1240, 191, -694, 224, + 316, 257, -694, 80, -694, -6, -694, -694, 320, 323, + -694, 325, 333, 297, 249, -694, 313, 7252, 7252, 5946, + 7252, 7252, 7358, -694, -694, 357, -694, -694, -694, 251, + 208, 343, 64, 267, -694, -694, 273, -694, -694, -694, + -694, -694, -694, -694, -694, -694, 395, 7047, 255, 415, + 272, 208, 274, 281, 269, -694, 285, 311, -22, -6, + -694, 5148, -694, 5946, -694, 5946, 5946, 13, 7252, 351, + 5946, 5946, 5946, 382, 5946, -694, 6502, -694, 6545, 296, + 447, -694, 298, 7252, 1217, -694, 6588, 208, -30, 19, + -694, -694, 212, 20, -694, 449, 21, 313, -694, -694, + 395, 395, 395, 326, 402, 4616, 208, -694, -57, 98, + 131, 7090, 148, 328, 6639, 334, 1918, 5946, 398, 1272, + 422, -694, 378, 380, -694, -694, -33, 5946, -39, 5946, + 5946, 5946, 5281, 5946, 5946, 5946, 5946, 5946, 5946, 5946, + 5946, 5946, 5946, 5946, 5946, 5946, 5946, 5946, 5946, 5946, + 5946, 5946, 5946, 5946, 5946, 5946, 466, -694, -694, -694, + 5414, 5946, 5946, 5946, 5946, 5946, 5946, 5946, 5946, 5946, + 5946, 5946, 1272, -7, 5946, 57, 5946, 5946, 141, -9, + 5946, 5946, 5946, 344, 6682, 208, 73, 334, 12, 23, + -694, -694, 5547, -694, 5680, -694, 208, 274, 47, 1272, + -694, 47, 57, -16, -694, 6725, 6775, 7252, 345, 347, + 5946, -694, 350, 6818, 352, 519, 7252, 440, 758, 523, + 29, 6861, -694, -694, -694, 895, -694, -694, 2060, -694, + -12, 462, -13, -694, 5946, -694, -694, -19, -694, 895, + 465, -694, 385, 31, -694, -694, -694, 32, 387, 388, + 389, -694, 33, -694, 396, 109, 1492, -694, -694, 1272, + 5946, -694, -694, -694, 399, -694, -694, -694, -694, -694, + 1062, -694, 395, 5946, 397, 549, -694, 7252, 551, 185, + 442, 185, 401, 408, 241, 403, 411, 412, -16, -6, + 7294, 7333, 7358, 5946, 7194, 7383, 7406, 7428, 7449, 4669, + 1472, 1626, 1626, 1626, 1626, 1626, 970, 970, 970, 970, + 649, 649, 306, 306, 306, 357, 357, 357, -694, 165, + 7358, 7358, 7358, 7358, 7358, 7358, 7358, 7358, 7358, 7358, + 7358, 7358, 414, 413, 417, 416, -694, 5946, -694, 419, + -10, -694, 418, 6224, 421, 423, 424, -694, 105, 411, + 413, 395, 7252, 395, 7151, 274, -694, 427, -694, -694, + -694, 3764, -694, -694, 7252, 5946, 3906, 5946, 5946, 395, + 197, 895, 506, 4048, 22, 895, 895, 895, -694, 425, + 439, 208, -38, 450, -694, -694, -694, 78, 524, -694, + -694, 6267, -694, -694, 589, 241, 395, 441, 395, -694, + -694, -694, 402, 402, 590, -694, 1272, -694, 1634, 443, + 170, 431, 445, -694, -694, 7252, -694, 1272, 895, 464, + 208, 274, -694, 185, 454, 613, -694, -694, 241, -694, + -694, 461, 617, 28, -694, -694, -694, 1272, 1272, -16, + 7383, 5946, 466, -694, -694, 1272, 1272, -694, 6310, 1272, + 564, 566, -694, 5946, 5946, -694, -694, -694, -694, -694, + -694, -694, 5813, -694, 509, -694, -694, 6911, -694, -694, + -694, 474, 7252, 511, 395, 511, -694, -694, 628, -694, + -694, -694, 479, 480, -694, -694, -694, 518, 482, 639, + 895, 208, -3, 575, 490, 488, 78, -694, -694, -694, + -694, 895, 495, -694, -694, -694, 37, -694, 5946, 496, + -694, -694, 497, -694, -694, 208, 274, 613, -694, 185, + 626, 499, 553, 276, -14, -694, 587, 656, 508, 512, + 7383, 269, 513, 514, -694, 516, 5946, 5946, 545, 515, + 6363, 395, 7252, 57, -694, 3622, 271, 510, 2202, 5946, + 197, 521, -694, 526, 895, 2344, -694, 314, -694, 14, + 895, -694, 895, -694, 537, 122, -694, 185, -694, -694, + -694, -694, -694, 553, -694, 7358, -694, -694, 274, 723, + -694, 606, 185, -694, -694, -694, -694, -694, -694, -694, + -694, -694, -694, 624, 297, 498, -694, 24, 678, 544, + 678, 43, 693, -694, 895, -694, -694, -694, -694, -694, + -694, 540, 541, 57, -694, -694, -694, -694, -694, 289, + 554, 4474, -694, -694, 556, 550, -694, 4190, 4190, -694, + 557, 337, 559, 5946, 35, 149, -694, -694, 596, -694, + 637, 2486, 678, -694, 703, 17, -694, 712, 27, -694, + -694, 651, -694, 83, 563, 42, 565, -14, 715, 895, + -694, -694, -694, 419, 570, 706, 662, 5946, -694, -694, + 4332, -694, -694, -694, -694, -694, 581, -694, 6408, -694, + -694, -694, -694, 895, 583, -694, 582, 895, 185, -694, + 193, -694, 895, 671, -694, 313, 737, 276, -694, -694, + 674, -694, 38, -694, 739, 895, -694, -694, 5946, -694, + 592, 6954, -694, -694, -694, 2628, -694, -694, 3622, -694, + 595, -694, -694, -694, 661, 597, 193, -694, 598, 665, + 609, 602, 619, -694, 754, 694, 895, -694, 2770, -694, + 45, -694, 2912, 895, -694, 6997, 3622, -694, 4474, 3054, + 620, 3622, -694, 3196, -694, -694, -694, 353, 185, -694, + 709, 895, 629, -694, -694, 708, -694, -694, -694, 768, + -694, 635, -694, 3338, -694, 724, 725, 793, -694, -694, + -694, 241, -694, -694, -694, -694, -694, 185, 644, 3622, + -694, 678, 203, -694, -694, -694, 3480, -694 }; /* YYDEFACT[STATE-NUM] -- Default reduction number in state STATE-NUM. Performed when YYTABLE does not specify something else to do. Zero means the default is an error. */ static const yytype_uint16 yydefact[] = { 4, 0, 2, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, - 0, 0, 0, 0, 411, 0, 0, 319, 0, 324, - 325, 5, 346, 393, 52, 326, 278, 0, 0, 0, - 0, 0, 0, 0, 0, 0, 0, 290, 0, 0, - 0, 0, 0, 0, 305, 0, 0, 0, 0, 0, - 0, 80, 86, 0, 0, 330, 331, 333, 327, 328, - 32, 33, 34, 335, 0, 334, 329, 0, 83, 332, - 283, 0, 59, 25, 404, 348, 3, 0, 7, 30, - 8, 9, 73, 74, 0, 0, 361, 0, 75, 385, - 0, 351, 279, 0, 360, 0, 362, 0, 389, 0, - 384, 366, 383, 386, 392, 0, 268, 263, 280, 281, - 264, 347, 5, 305, 0, 283, 75, 423, 424, 0, - 426, 427, 282, 249, 250, 251, 252, 5, 305, 0, - 0, 0, 306, 0, 230, 364, 0, 232, 269, 270, - 271, 272, 273, 274, 275, 277, 0, 416, 0, 354, - 0, 0, 306, 312, 322, 313, 0, 315, 386, 0, - 217, 0, 276, 0, 31, 395, 395, 0, 208, 0, - 0, 209, 0, 0, 0, 42, 0, 44, 0, 0, - 0, 46, 361, 0, 362, 25, 0, 0, 18, 0, - 17, 152, 0, 0, 151, 157, 0, 75, 81, 82, - 0, 0, 0, 0, 410, 411, 0, 4, 0, 350, - 361, 0, 362, 0, 0, 264, 0, 0, 0, 144, - 0, 15, 84, 87, 54, 76, 0, 395, 0, 0, + 0, 0, 0, 0, 412, 0, 0, 320, 0, 325, + 326, 5, 347, 394, 52, 327, 279, 0, 0, 0, + 0, 0, 0, 0, 0, 0, 0, 291, 0, 0, + 0, 0, 0, 0, 306, 0, 0, 0, 0, 0, + 0, 80, 86, 0, 0, 331, 332, 334, 328, 329, + 32, 33, 34, 336, 0, 335, 330, 0, 83, 333, + 284, 0, 59, 25, 405, 349, 3, 0, 7, 30, + 8, 9, 73, 74, 0, 0, 362, 0, 75, 386, + 0, 352, 280, 0, 361, 0, 363, 0, 390, 0, + 385, 367, 384, 387, 393, 0, 269, 264, 281, 282, + 265, 348, 5, 306, 0, 284, 75, 424, 425, 0, + 427, 428, 283, 250, 251, 252, 253, 5, 306, 0, + 0, 0, 307, 0, 231, 365, 0, 233, 270, 271, + 272, 273, 274, 275, 276, 278, 0, 417, 0, 355, + 0, 0, 307, 313, 323, 314, 0, 316, 387, 0, + 218, 0, 277, 0, 31, 396, 396, 0, 209, 0, + 0, 210, 0, 0, 0, 42, 0, 44, 0, 0, + 0, 46, 362, 0, 363, 25, 0, 0, 18, 0, + 17, 153, 0, 0, 152, 158, 0, 75, 81, 82, + 0, 0, 0, 0, 411, 412, 0, 4, 0, 351, + 362, 0, 363, 0, 0, 265, 0, 0, 0, 145, + 0, 15, 84, 87, 54, 76, 0, 396, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, - 0, 0, 0, 0, 0, 0, 0, 53, 229, 231, + 0, 0, 0, 0, 0, 0, 0, 53, 230, 232, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, - 0, 0, 144, 0, 395, 0, 395, 0, 405, 388, - 395, 395, 395, 0, 0, 0, 308, 0, 0, 0, - 420, 363, 0, 438, 355, 412, 0, 308, 0, 144, - 439, 0, 0, 388, 320, 0, 0, 396, 0, 0, - 0, 51, 0, 0, 0, 210, 212, 361, 362, 0, + 0, 0, 145, 0, 396, 0, 396, 0, 406, 389, + 396, 396, 396, 0, 0, 0, 309, 0, 0, 0, + 421, 364, 0, 439, 356, 413, 0, 309, 0, 145, + 440, 0, 0, 389, 321, 0, 0, 397, 0, 0, + 0, 51, 0, 0, 0, 211, 213, 362, 363, 0, 0, 0, 43, 45, 63, 0, 47, 48, 0, 62, - 20, 0, 0, 14, 0, 153, 362, 0, 49, 0, - 0, 50, 0, 0, 70, 72, 428, 0, 0, 0, - 0, 408, 0, 407, 0, 349, 0, 11, 4, 144, - 0, 431, 430, 387, 0, 35, 24, 26, 27, 28, - 0, 6, 0, 0, 0, 143, 145, 147, 0, 0, - 89, 0, 0, 0, 136, 0, 440, 378, 376, 0, - 235, 237, 236, 0, 0, 267, 233, 234, 238, 240, - 239, 255, 256, 253, 254, 261, 257, 258, 259, 260, - 247, 248, 242, 243, 241, 244, 245, 246, 262, 0, - 214, 218, 219, 220, 221, 222, 223, 224, 225, 226, - 227, 228, 0, 441, 379, 0, 402, 0, 398, 375, - 397, 401, 0, 0, 0, 0, 0, 425, 307, 0, - 0, 0, 415, 0, 414, 307, 378, 0, 379, 317, - 321, 0, 436, 434, 207, 0, 0, 209, 0, 0, - 0, 0, 0, 0, 0, 0, 0, 352, 326, 0, - 0, 0, 337, 0, 336, 23, 344, 0, 0, 19, - 16, 0, 150, 158, 155, 136, 0, 0, 0, 421, - 422, 10, 410, 410, 0, 437, 144, 13, 0, 0, - 361, 362, 0, 394, 149, 148, 297, 0, 0, 0, - 0, 309, 85, 0, 0, 88, 91, 160, 136, 139, - 140, 0, 124, 0, 137, 138, 382, 144, 144, 377, - 266, 0, 0, 215, 304, 144, 144, 381, 0, 144, - 374, 373, 368, 395, 0, 390, 391, 433, 432, 435, - 419, 418, 0, 323, 314, 25, 116, 0, 25, 114, - 38, 0, 211, 93, 0, 93, 95, 103, 0, 25, - 101, 58, 109, 109, 41, 340, 341, 359, 0, 354, - 352, 0, 339, 0, 0, 0, 67, 65, 61, 21, - 154, 0, 0, 71, 55, 429, 0, 406, 0, 0, - 12, 299, 0, 146, 22, 0, 311, 90, 160, 0, - 191, 0, 291, 136, 0, 135, 0, 126, 0, 0, - 265, 322, 0, 0, 403, 0, 395, 395, 365, 0, - 0, 0, 413, 0, 316, 118, 120, 0, 0, 209, + 20, 0, 0, 14, 0, 154, 363, 0, 49, 0, + 0, 50, 0, 0, 70, 72, 429, 0, 0, 0, + 0, 409, 0, 408, 0, 350, 0, 11, 4, 145, + 0, 432, 431, 388, 0, 35, 24, 26, 27, 28, + 0, 6, 0, 0, 0, 144, 146, 148, 0, 0, + 89, 0, 0, 0, 136, 0, 441, 379, 377, 0, + 236, 238, 237, 0, 0, 268, 234, 235, 239, 241, + 240, 256, 257, 254, 255, 262, 258, 259, 260, 261, + 248, 249, 243, 244, 242, 245, 246, 247, 263, 0, + 215, 219, 220, 221, 222, 223, 224, 225, 226, 227, + 228, 229, 0, 442, 380, 0, 403, 0, 399, 376, + 398, 402, 0, 0, 0, 0, 0, 426, 308, 0, + 0, 0, 416, 0, 415, 308, 379, 0, 380, 318, + 322, 0, 437, 435, 208, 0, 0, 210, 0, 0, + 0, 0, 0, 0, 0, 0, 0, 353, 327, 0, + 0, 0, 338, 0, 337, 23, 345, 0, 0, 19, + 16, 0, 151, 159, 156, 136, 0, 0, 0, 422, + 423, 10, 411, 411, 0, 438, 145, 13, 0, 0, + 362, 363, 0, 395, 150, 149, 298, 0, 0, 0, + 0, 310, 85, 0, 0, 88, 91, 161, 136, 139, + 140, 0, 124, 0, 137, 138, 383, 145, 145, 378, + 267, 0, 0, 216, 305, 145, 145, 382, 0, 145, + 375, 374, 369, 396, 0, 391, 392, 434, 433, 436, + 420, 419, 0, 324, 315, 25, 116, 0, 25, 114, + 38, 0, 212, 93, 0, 93, 95, 103, 0, 25, + 101, 58, 109, 109, 41, 341, 342, 360, 0, 355, + 353, 0, 340, 0, 0, 0, 67, 65, 61, 21, + 155, 0, 0, 71, 55, 430, 0, 407, 0, 0, + 12, 300, 0, 147, 22, 0, 312, 90, 161, 0, + 192, 0, 292, 136, 0, 135, 0, 126, 0, 0, + 266, 323, 0, 0, 404, 0, 396, 396, 366, 0, + 0, 0, 414, 0, 317, 118, 120, 0, 0, 210, 0, 0, 96, 0, 0, 0, 109, 0, 109, 0, - 0, 343, 355, 353, 0, 338, 345, 0, 25, 64, - 60, 68, 156, 291, 409, 213, 298, 29, 310, 191, - 92, 0, 0, 198, 199, 200, 197, 196, 195, 190, - 79, 159, 163, 0, 0, 189, 193, 0, 141, 0, - 141, 0, 127, 134, 0, 300, 303, 216, 301, 302, - 372, 0, 0, 0, 367, 399, 400, 417, 318, 122, + 0, 344, 356, 354, 0, 339, 346, 0, 25, 64, + 60, 68, 157, 292, 410, 214, 299, 29, 311, 192, + 92, 0, 0, 199, 200, 201, 198, 197, 196, 191, + 79, 160, 164, 0, 0, 190, 194, 0, 141, 0, + 141, 0, 127, 134, 0, 301, 304, 217, 302, 303, + 373, 0, 0, 0, 368, 400, 401, 418, 319, 122, 0, 0, 36, 39, 0, 0, 94, 0, 0, 104, - 0, 0, 0, 0, 0, 0, 105, 358, 357, 342, - 0, 0, 141, 78, 0, 0, 167, 203, 0, 164, - 194, 0, 162, 0, 0, 0, 0, 0, 130, 0, - 129, 370, 371, 375, 0, 0, 0, 0, 121, 115, + 0, 0, 0, 0, 0, 0, 105, 359, 358, 343, + 0, 0, 141, 78, 0, 0, 168, 204, 0, 165, + 195, 0, 163, 0, 0, 0, 0, 0, 130, 0, + 129, 371, 372, 376, 0, 0, 0, 0, 121, 115, 0, 25, 99, 57, 56, 102, 0, 107, 0, 112, - 113, 25, 106, 0, 0, 69, 0, 0, 0, 169, - 171, 166, 0, 0, 161, 75, 0, 142, 25, 0, - 295, 0, 25, 131, 0, 128, 369, 0, 25, 0, - 0, 25, 97, 40, 0, 108, 25, 111, 356, 0, - 25, 206, 168, 5, 0, 172, 173, 0, 0, 181, - 0, 0, 204, 201, 0, 0, 0, 296, 0, 292, - 0, 0, 133, 0, 123, 37, 0, 0, 0, 110, - 25, 0, 170, 174, 175, 185, 0, 176, 0, 0, - 0, 205, 77, 0, 293, 284, 132, 0, 117, 0, - 100, 0, 285, 0, 184, 177, 178, 182, 202, 136, - 294, 25, 98, 66, 183, 0, 0, 119, 179, 141, - 0, 187, 25, 165, 0, 188 + 113, 25, 106, 0, 0, 69, 0, 0, 0, 170, + 172, 167, 0, 0, 162, 75, 0, 0, 143, 25, + 0, 296, 0, 25, 131, 0, 128, 370, 0, 25, + 0, 0, 25, 97, 40, 0, 108, 25, 111, 357, + 0, 25, 207, 169, 5, 0, 173, 174, 0, 0, + 182, 0, 0, 205, 202, 0, 0, 142, 0, 297, + 0, 293, 0, 0, 133, 0, 123, 37, 0, 0, + 0, 110, 25, 0, 171, 175, 176, 186, 0, 177, + 0, 0, 0, 206, 77, 0, 294, 285, 132, 0, + 117, 0, 100, 0, 286, 0, 185, 178, 179, 183, + 203, 136, 295, 25, 98, 66, 184, 0, 0, 119, + 180, 141, 0, 188, 25, 166, 0, 189 }; /* YYPGOTO[NTERM-NUM]. */ static const yytype_int16 yypgoto[] = { - -690, -690, -202, -5, -690, -690, 493, -690, -160, -690, - 16, -690, -690, 231, -690, 232, -690, 330, 12, 17, - -125, -690, -690, -690, -690, -690, -690, -690, 309, 254, - 181, -690, 105, -690, -690, -690, -352, 63, -690, -690, - -690, -690, -690, -502, -690, -588, 212, 84, -689, -196, - -690, 323, -690, 502, -690, 225, -690, -690, -690, -690, - -690, -690, -690, 27, -690, -690, -690, -690, -690, -690, - -690, -690, -690, -690, -688, -690, -690, -690, -461, -690, - -42, 775, -2, 171, -690, -690, 156, -222, -258, -690, - -690, -690, -690, 217, -324, -80, -690, -690, 263, 261, - -690, 910, 663, -369, 397, 95, -690, -690, -690, -690, - 94, -234, -690, 558, -690, -690, -23, -20, -690, -153, - -306, -690, -690, -13, 354, 358, 653, -690, -690, -690, - -690, -690, -690, 139, -690 + -694, -694, -195, -5, -694, -694, 467, -694, -183, -694, + 16, -694, -694, 201, -694, 202, -694, 312, 2, 6, + -125, -694, -694, -694, -694, -694, -694, -694, 288, 232, + 162, -694, 86, -694, -694, -694, -341, 40, -694, -694, + -694, -694, -694, -494, -694, -610, 192, -678, -693, -252, + -694, 302, -694, 483, -694, 214, -694, -694, -694, -694, + -694, -694, -694, 7, -694, -694, -694, -694, -694, -694, + -694, -694, -694, -694, -690, -694, -694, -694, -463, -694, + -46, 752, -2, 161, -694, -694, 205, -358, -250, -694, + -694, -694, -694, 204, -271, -231, -694, -694, 247, 250, + -694, 904, 650, -369, 360, 307, -694, -694, -694, -694, + 82, -232, -694, 789, -694, -694, -23, -20, -694, -153, + -305, -694, -694, 1, 339, 349, 643, -694, -694, -694, + -694, -694, -694, -31, -694 }; /* YYDEFGOTO[NTERM-NUM]. */ static const yytype_int16 yydefgoto[] = { -1, 1, 2, 85, 86, 199, 200, 87, 226, 376, 377, 89, 606, 607, 680, 608, 353, 354, 378, 379, 236, 92, 93, 94, 390, 95, 392, 534, 535, 661, - 585, 823, 783, 591, 330, 594, 667, 791, 580, 656, + 585, 824, 783, 591, 330, 594, 667, 791, 580, 656, 729, 732, 776, 541, 542, 637, 543, 544, 764, 384, 385, 386, 203, 204, 206, 630, 701, 805, 702, 755, - 801, 834, 835, 836, 837, 885, 838, 839, 840, 883, - 903, 703, 704, 705, 706, 758, 707, 177, 324, 325, - 96, 97, 126, 710, 811, 99, 100, 545, 164, 165, + 801, 835, 836, 837, 838, 887, 839, 840, 841, 885, + 905, 703, 704, 705, 706, 758, 707, 177, 324, 325, + 96, 97, 126, 710, 812, 99, 100, 545, 164, 165, 574, 654, 172, 310, 101, 597, 496, 102, 598, 305, 599, 103, 104, 300, 105, 106, 648, 724, 560, 561, 562, 107, 108, 109, 110, 111, 112, 113, 114, 318, 449, 450, 451, 115, 362, 363, 158, 159, 116, 357, 117, 118, 119, 120, 121 }; /* YYTABLE[YYPACT[STATE-NUM]] -- What to do in state STATE-NUM. If positive, shift that token. If negative, reduce the rule whose number is the opposite. If YYTABLE_NINF, syntax error. */ static const yytype_int16 yytable[] = { - 98, 293, 167, 612, 397, 168, 469, 192, 428, 142, - 142, 494, 169, 524, 90, 366, 581, 760, 88, 91, - 162, 766, 482, 319, 635, 494, 506, 798, 789, 230, - 320, 342, 347, 350, 761, 338, 631, 508, 220, 803, - 634, 513, 513, 286, 393, 848, 712, 198, 286, 444, - 341, 448, 207, 604, 179, 129, 286, 171, 498, 552, - -306, 563, 592, 796, 397, 444, 228, 137, 137, 218, - 33, 205, 219, 767, 466, 137, 3, 468, 448, 228, - 173, 396, 352, 33, 395, 635, 442, -306, 174, 367, - 368, 809, 570, 228, 571, 289, 873, 47, 268, 269, - -308, 229, 730, 731, 138, 605, 228, 636, 228, 145, - 145, 743, 744, 467, 369, 137, 228, 443, 635, 33, - 286, 207, 180, 768, 446, -380, 33, 175, 201, 181, - 394, 445, 459, 452, 33, 296, 810, 454, 455, 456, - 327, 874, 287, 139, 194, 197, 140, 287, 460, 313, - 33, 142, -377, 216, 141, 287, 307, 494, 176, 84, - 564, 494, 494, 494, 217, 790, 518, 532, 636, 536, - 143, 143, 84, 519, 189, 222, 483, 884, 746, 813, - 507, 163, 799, 800, 231, 321, 343, 348, 351, 762, - 529, 509, 340, 530, 804, 514, 684, 142, 735, 849, - 593, 636, -380, 190, 494, 142, 142, 142, 84, 142, - 900, 365, 195, 447, 33, 84, -376, 202, 398, 287, - 225, 33, 182, 84, 98, 399, 270, 271, 272, 273, - 274, 275, 276, 277, 278, 279, 280, 281, -307, 84, - 183, 669, 184, 167, 228, 208, 168, 137, 137, 33, - 33, 301, 516, 169, 833, 495, 228, 743, 744, 210, - 228, 162, 209, 398, 229, 398, -364, -364, 369, 503, - 399, 211, 399, 228, 584, 212, 494, 328, 398, 398, - 297, 516, 727, 138, 138, 399, 399, 494, 398, 137, - 458, 398, 398, 213, 641, 399, -308, 346, 399, 399, - 360, 465, 228, 288, 214, 355, 356, 358, 215, 361, - 84, 536, 143, 137, 741, 33, 745, 137, 227, 33, - 619, -307, 139, 139, 792, 140, 140, 228, 520, 529, - 492, 232, 530, 141, 141, 233, 98, 198, 84, 84, - 494, 263, 264, 265, 492, 266, 494, 728, 494, 138, - 234, 638, 639, 138, 742, 743, 744, 235, 143, 642, - 643, -286, -286, 645, 98, 237, 143, 143, 143, 238, - 143, 137, 137, -288, -288, -287, -287, 142, 90, 549, - 774, 775, 88, 91, 531, 282, 531, 896, 139, 531, - 494, 140, 139, 901, 902, 140, 786, 743, 744, 141, - 283, 587, 344, 141, 84, 595, 596, 690, 84, 284, - 649, 144, 147, 285, 290, 655, 291, 773, 658, 448, - 292, 175, 163, 47, 142, 539, 539, 216, 266, 665, - 295, 270, 271, 272, 273, 274, 275, 276, 277, 278, - 279, 280, 281, 303, 25, 494, 529, 529, 624, 530, - 530, 540, 540, 298, 299, 750, 142, 304, 142, -125, - 312, 306, 137, 308, 33, 521, 228, 322, 311, 494, - 756, -364, -364, 494, 142, 142, 492, 301, 494, 309, - 492, 492, 492, 329, 335, 334, 602, 576, 349, 448, - 494, 493, 579, 721, 722, 336, 381, 359, 138, 590, - 531, 142, -192, 142, 371, 493, 388, 142, 142, 373, - 693, 694, 695, 696, 697, 698, 98, 389, 751, 391, - 394, 494, 475, 492, 553, 626, 477, 494, 531, 167, - 90, 682, 168, 531, 88, 91, 472, 160, 143, 169, - 161, 473, 478, 479, 481, 494, 504, 162, 141, 499, - 505, 511, 510, 84, 691, 512, 301, 522, 301, 692, - 515, 693, 694, 695, 696, 697, 698, 699, 526, 527, - 528, 533, 146, 146, 583, 586, 832, 537, 841, 142, - -289, -289, 546, 166, 739, 143, 538, 547, 548, 555, - 747, 554, 748, 556, 559, 492, 675, 557, 573, 588, - 600, 355, 565, 615, 567, 568, 492, 361, 361, 569, - 601, 603, 609, 841, 611, 700, 614, 143, 618, 143, - 688, 824, 621, 622, 531, 625, 628, 629, 531, 632, - 633, 827, 646, 398, 770, 143, 143, 493, 647, 653, - 399, 493, 493, 493, 886, 659, 142, 660, 846, 664, - 666, 668, 850, 98, 670, 142, 98, 671, 854, 492, - 672, 857, 143, 98, 143, 492, 859, 492, 143, 143, - 861, 676, 531, 898, 678, 677, 713, 683, 686, 662, - 844, 687, 714, 691, 493, 708, 709, 531, 692, 815, - 693, 694, 695, 696, 697, 698, 699, 715, 716, 725, - 881, 718, 759, 398, 719, 720, 723, 733, 163, 492, - 399, 737, 738, 828, 146, 749, 754, 831, 763, 757, - 765, 769, 842, 260, 261, 262, 263, 264, 265, 771, - 266, 897, 772, 777, 852, 793, 794, 779, 780, 797, - 143, 785, 904, 802, 753, 787, 301, 778, 806, 98, - 808, 812, 814, 782, 782, 586, 493, 818, 531, 817, - 146, 819, 843, 825, 492, 871, 829, 493, 146, 146, - 146, 876, 146, 830, 270, 271, 272, 273, 274, 275, - 276, 277, 278, 279, 280, 281, 845, 847, 492, 888, - 851, 855, 492, 531, 860, 531, 822, 492, 693, 694, - 695, 696, 697, 698, -180, 862, 864, 143, 865, 492, - 866, 867, 868, 869, -364, -364, 143, 870, 880, 887, - 493, 889, 98, 890, 166, 98, 493, 891, 493, 892, - 531, 894, -186, 895, 899, 500, 613, 679, 681, 663, - 492, 736, 627, 784, 98, 711, 492, 807, 98, 502, - 623, 826, 98, 689, 752, 98, 223, 98, 717, 98, - 673, 531, 863, 674, 492, 345, 616, 816, 364, 0, - 493, 617, 878, 0, 0, 0, 0, 0, 0, 98, - 0, 0, 0, 0, 531, 0, 0, 0, 0, 0, - 531, 0, 0, 0, 0, 98, 0, 0, 0, 0, - 0, 0, 98, 0, 0, 0, 0, 0, 0, 0, - 0, 0, 0, 0, 127, 128, 0, 130, 131, 132, - 133, 134, 135, 136, 337, 493, 148, 149, 150, 151, - 152, 153, 154, 155, 157, 0, 170, 0, 0, 0, - 146, 0, 485, 486, 0, 0, 0, 178, 0, 493, - 0, 0, 0, 493, 186, 188, 0, 0, 493, 193, - 0, 196, 0, 487, 0, 0, 0, 0, 0, 0, - 493, 29, 30, 137, 0, 0, 0, 0, 0, 0, - 0, 488, 0, 0, 0, 0, 0, 146, 0, 0, - 221, 224, 0, 0, 0, 0, 0, 0, 0, 0, - 0, 493, 0, 0, 0, 0, 0, 493, 0, 138, - 0, 0, 0, 0, 0, 0, 0, 0, 0, 146, - 0, 146, 0, 0, 0, 493, 0, 489, 65, 66, - 67, 68, 69, 0, 0, 0, 0, 146, 146, 294, - 0, 0, 73, 0, 0, 0, 0, 0, 490, 75, - 76, 491, 0, 0, 0, 79, 0, 0, 0, 0, - 0, 0, 0, 0, 146, 0, 146, 0, 0, 0, - 146, 146, 0, 0, 0, 0, 0, 0, 0, 0, - 0, 315, 0, 316, 0, 317, 317, 0, 0, 0, - 323, 326, 193, 0, 331, 270, 271, 272, 273, 274, - 275, 276, 277, 278, 279, 280, 281, 0, 0, 0, - 166, -381, -381, -381, -381, 258, 259, 260, 261, 262, - 263, 264, 265, 0, 266, 157, 0, 0, 0, 0, - 0, 0, 0, 0, 0, -364, -364, 380, 0, 387, - 0, 0, 146, 0, 0, 0, 0, 317, 0, 400, - 401, 402, 404, 405, 406, 407, 408, 409, 410, 411, - 412, 413, 414, 415, 416, 417, 418, 419, 420, 421, - 422, 423, 424, 425, 426, 427, 0, 480, 0, 0, - 430, 431, 432, 433, 434, 435, 436, 437, 438, 439, - 440, 441, 387, 0, 317, 0, 317, 453, 0, 0, - 317, 317, 317, 0, 0, 0, 0, 0, 0, 146, - 0, 0, 462, 0, 464, 0, 0, 0, 146, 387, + 98, 293, 167, 192, 90, 168, 397, 469, 91, 142, + 142, 612, 338, 524, 581, 760, 428, 766, 88, 230, + 162, 320, 366, 319, 712, 798, 169, 342, 347, 350, + 442, 532, 761, 536, 220, 803, 396, 482, 33, 506, + 508, 513, 393, 286, 631, 513, 850, 198, 592, 286, + 225, 444, 207, 448, 179, 563, 286, 467, 201, 796, + 634, 789, 137, 635, 494, 341, 397, 444, 443, 218, + 33, 33, 219, 205, 810, 767, 466, 875, 494, 468, + 448, 3, 352, 498, 395, 808, 129, 459, 171, 33, + 173, 174, 570, 180, 571, 289, 228, -307, 460, 47, + 33, 768, 181, 228, 495, 635, 367, 368, 807, -307, + 297, 229, 743, 744, 176, 228, 182, 519, 503, 811, + 635, 207, 876, 228, 33, -381, 183, 84, 394, 847, + 175, 445, 446, 452, 33, 296, 327, 454, 455, 456, + 197, 228, 287, 184, -309, 286, 636, 202, 287, 313, + 228, 142, -378, 195, 564, 287, 307, 814, 137, 84, + 288, 270, 271, 272, 273, 274, 275, 276, 277, 278, + 279, 280, 281, 518, 231, 536, 321, 886, 84, 746, + 799, 800, 343, 348, 351, 604, 593, 762, 636, 84, + 804, 483, 340, 507, 509, 514, 735, 142, 790, 684, + 851, -365, -365, 636, 189, 142, 142, 142, 902, 142, + 494, 365, 539, 84, 494, 494, 494, 228, 398, 143, + 143, 447, 190, 84, 98, 229, 228, -381, 137, 584, + 163, 552, 208, 529, 369, 209, 530, 605, 540, 399, + 137, -377, 33, 167, 287, -309, 168, 743, 744, 210, + 587, 228, 669, 211, 595, 596, -308, 494, 228, 369, + 137, 162, 228, 398, 619, 398, 516, 169, 834, -308, + 516, 690, 137, 212, 33, 228, 138, 213, 398, 398, + 268, 269, 727, 137, 399, 214, 399, 137, 398, 33, + 458, 398, 398, -287, -287, 638, 639, 624, 215, 399, + 399, 465, 641, 642, 643, 227, 216, 645, 138, 399, + -288, -288, 399, 399, 792, 139, 137, 217, 140, 750, + 232, 145, 145, 138, 520, 741, 141, 745, 233, 494, + 492, 84, -289, -289, 756, 529, 98, 198, 530, 234, + 494, 730, 731, 529, 492, 235, 530, 139, 728, 237, + 140, 137, 282, 263, 264, 265, 194, 266, 141, 774, + 775, 143, 139, 84, 98, 140, 903, 904, 90, 238, + 539, 283, 91, 141, 144, 147, 344, 142, 84, 549, + 682, 284, 88, 285, 531, 290, 531, 222, 291, 531, + 292, 529, 655, 494, 530, 658, 540, 898, 175, 494, + 47, 494, 216, -125, 295, 539, 665, 143, 266, 25, + 649, 742, 743, 744, 298, 143, 143, 143, 773, 143, + 299, 448, 303, 304, 142, 306, 529, 228, 308, 530, + 309, 540, 311, 739, 786, 743, 744, 312, 322, 747, + 833, 748, 842, 494, 270, 271, 272, 273, 274, 275, + 276, 277, 278, 279, 280, 281, 142, 329, 142, 334, + 335, 336, 349, 301, 693, 694, 695, 696, 697, 698, + 137, 163, 33, 381, 142, 142, 492, 137, 842, 33, + 492, 492, 492, 770, -365, -365, 602, 576, 359, 328, + 371, 448, 579, 721, 722, 751, 373, 388, 494, 590, + 531, 142, 389, 142, 391, 394, 138, 142, 142, 346, + 888, 475, 472, 138, 473, 477, 98, 355, 356, 358, + 90, 361, 494, 492, 91, 626, 494, 478, 531, 167, + 360, 494, 168, 531, 88, 479, 481, 499, 816, 900, + 493, 137, 504, 33, 494, 139, 505, 162, 140, 510, + 512, 511, 139, 169, 493, 140, 141, 527, 515, 526, + 522, 84, 829, 141, 528, 537, 832, 533, 84, 538, + 546, 843, 547, 548, 555, 494, 554, 138, 556, 142, + 559, 588, 494, 557, 854, 565, 600, 143, 567, 573, + 568, 569, 601, -290, -290, 492, 675, 603, 825, 609, + 494, -193, 611, 618, 614, 621, 492, 622, 828, 693, + 694, 695, 696, 697, 698, 873, 160, 625, 628, 161, + 688, 629, 878, 632, 531, 633, 848, 141, 531, 646, + 852, 647, 84, 398, 143, 653, 856, 659, 660, 859, + 890, 664, 666, 668, 861, 670, 142, 672, 863, 671, + 676, 677, 678, 98, 399, 142, 98, 683, 686, 492, + 687, 708, 709, 98, 713, 492, 143, 492, 143, 714, + 715, 723, 531, 733, 716, 718, 719, 521, 720, 883, + 845, 754, 725, 737, 143, 143, 493, 531, 738, 301, + 493, 493, 493, 260, 261, 262, 263, 264, 265, 749, + 266, 757, 759, 398, 763, 765, 769, 771, 772, 492, + 899, 143, 780, 143, 794, 777, 797, 143, 143, 779, + 785, 906, 787, 793, 399, 802, 806, 809, 815, 813, + 691, 818, 819, 493, 820, 692, 553, 693, 694, 695, + 696, 697, 698, 699, 826, 830, 831, 778, 844, 98, + 846, 849, 853, 782, 782, 857, -181, 163, 531, 862, + 867, 866, 864, 868, 492, 869, 870, 871, 301, 872, + 301, 270, 271, 272, 273, 274, 275, 276, 277, 278, + 279, 280, 281, 882, 889, 892, 583, 586, 492, 143, + 891, 700, 492, 531, 893, 531, 823, 492, 894, 896, + -187, 897, 531, 146, 146, 493, 901, 679, 681, 500, + 492, -365, -365, 355, 166, 615, 493, 663, 613, 361, + 361, 627, 736, 98, 784, 711, 98, 691, 827, 623, + 502, 531, 692, 223, 693, 694, 695, 696, 697, 698, + 699, 492, 689, 865, 752, 717, 98, 674, 492, 673, + 98, 616, 345, 480, 98, 817, 143, 98, 364, 98, + 0, 98, 617, 531, 0, 143, 492, 0, 0, 493, + 0, 0, 0, 0, 880, 493, 0, 493, 0, 0, + 0, 98, 0, 0, 0, 0, 531, 0, 753, 0, + 0, 662, 531, 0, 0, 0, 0, 98, 0, 0, + 0, 0, 0, 0, 98, 0, 0, 0, 127, 128, + 0, 130, 131, 132, 133, 134, 135, 136, 0, 493, + 148, 149, 150, 151, 152, 153, 154, 155, 157, 0, + 170, 0, 0, 0, 0, 0, 0, 0, 0, 485, + 486, 178, 0, 0, 0, 146, 0, 0, 186, 188, + 0, 0, 0, 193, 0, 196, 0, 0, 301, 0, + 487, 0, 0, 0, 0, 0, 0, 586, 29, 30, + 137, 0, 0, 0, 493, 0, 0, 0, 488, 0, + 0, 0, 0, 0, 221, 224, 0, 0, 0, 0, + 0, 146, 0, 0, 0, 0, 0, 0, 493, 146, + 146, 146, 493, 146, 0, 0, 138, 493, -382, -382, + -382, -382, 258, 259, 260, 261, 262, 263, 264, 265, + 493, 266, 0, 0, 489, 65, 66, 67, 68, 69, + 0, 0, 0, 294, 0, 0, 0, 0, 0, 73, + 0, 0, 0, 0, 0, 490, 75, 76, 491, 0, + 0, 493, 79, 0, 0, 166, 0, 0, 493, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, - 474, 270, 271, 272, 273, 274, 275, 276, 277, 278, - 279, 280, 281, 0, 0, 0, 0, 0, 0, 0, - 0, 0, 0, 0, 501, 0, 0, 0, 0, 0, - 0, 0, 0, 0, 0, 4, 5, 6, 7, 8, - 0, -364, -364, 0, 9, 0, 0, 0, 0, 387, - 193, 0, 0, 0, 0, 0, 0, 0, 0, 0, - 0, 0, 0, 525, 382, 0, 0, 0, 0, 0, + 0, 239, 240, 241, 0, 315, 493, 316, 0, 317, + 317, 0, 0, 0, 323, 326, 193, 242, 331, 243, + 244, 245, 246, 247, 248, 249, 250, 251, 252, 253, + 254, 255, 256, 257, 258, 259, 260, 261, 262, 263, + 264, 265, 0, 266, 0, 0, 0, 0, 0, 157, + 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, + 0, 380, 0, 387, 0, 0, 0, 0, 0, 0, + 0, 317, 0, 400, 401, 402, 404, 405, 406, 407, + 408, 409, 410, 411, 412, 413, 414, 415, 416, 417, + 418, 419, 420, 421, 422, 423, 424, 425, 426, 427, + 0, 146, 0, 0, 430, 431, 432, 433, 434, 435, + 436, 437, 438, 439, 440, 441, 387, 0, 317, 0, + 317, 453, 0, 0, 317, 317, 317, 0, 0, 0, + 0, 0, 0, 0, 0, 0, 462, 0, 464, 0, + 0, 0, 0, 387, 0, 0, 0, 0, 146, 0, + 0, 0, 0, 0, 474, 0, 0, 523, 0, 0, + 270, 271, 272, 273, 274, 275, 276, 277, 278, 279, + 280, 281, 0, 0, 0, 0, 0, 0, 501, 0, + 146, 0, 146, 270, 271, 272, 273, 274, 275, 276, + 277, 278, 279, 280, 281, 0, 0, 0, 146, 146, + -365, -365, 0, 387, 193, 4, 5, 6, 7, 8, + 0, 0, 0, 0, 9, 0, 0, 525, 0, 0, + 0, 0, 0, -365, -365, 146, 0, 146, 0, 0, + 0, 146, 146, 0, 382, 0, 0, 550, 0, 0, 0, 0, 0, 0, 0, 0, 10, 11, 0, 0, - 0, 0, 12, 550, 13, 14, 15, 16, 17, 18, + 0, 0, 12, 0, 13, 14, 15, 16, 17, 18, 0, 0, 19, 20, 21, 22, 23, 24, 25, 26, - 27, 0, 0, 0, 0, 29, 30, 122, 32, 33, - 0, 0, 0, 0, 0, 35, 36, 0, 0, 0, - 0, 0, 0, 0, 0, 0, 0, 558, 0, 0, - 0, 0, 0, 0, 0, 47, 0, 0, 0, 0, - 0, 0, 0, 123, 0, 0, 0, 0, 0, 0, - 0, 58, 59, 0, 0, 577, 0, 326, 582, 0, + 27, 166, 0, 0, 0, 29, 30, 122, 32, 33, + 0, 558, 0, 0, 0, 35, 36, 0, 0, 0, + 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, + 0, 0, 0, 146, 0, 47, 0, 0, 0, 577, + 337, 326, 582, 123, 0, 0, 0, 0, 0, 0, + 0, 58, 59, 0, 0, 0, 0, 0, 0, 0, 63, 64, 65, 66, 67, 68, 69, 0, 0, 0, 0, 0, 0, 0, 0, 0, 73, 0, 0, 0, - 0, 0, 124, 75, 76, 77, 0, 0, 0, 79, - 125, 0, 383, 81, 0, 0, 387, 0, 84, 0, - 0, 0, 0, 0, 0, 0, 0, 387, 249, 250, - 251, 252, 253, 254, 255, 256, 257, 258, 259, 260, - 261, 262, 263, 264, 265, 0, 266, 387, 387, 0, - 0, 640, 0, 0, 0, 387, 387, 0, 0, 387, - 0, 0, 0, 317, 650, 0, 0, 0, 0, 0, - 0, 0, 652, 0, 0, 0, 0, 0, 0, 0, + 387, 0, 124, 75, 76, 77, 0, 0, 0, 79, + 125, 387, 383, 81, 0, 0, 0, 0, 84, 0, + 146, 0, 0, 0, 0, 0, 0, 0, 0, 146, + 0, 387, 387, 0, 0, 640, 0, 0, 0, 387, + 387, 0, 0, 387, 0, 0, 0, 317, 650, 0, + 0, 0, 0, 0, 0, 0, 652, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, - 0, 4, 5, 6, 7, 8, 0, 0, 0, 0, - 9, -381, -381, -381, -381, -381, 254, 255, 256, 257, - 258, 259, 260, 261, 262, 263, 264, 265, 685, 266, + 0, 0, 0, 0, 0, 4, 5, 6, 7, 8, + 0, 0, 0, 0, 9, 249, 250, 251, 252, 253, + 254, 255, 256, 257, 258, 259, 260, 261, 262, 263, + 264, 265, 685, 266, 0, 0, 0, 0, 0, 0, + 0, 0, 0, 0, 0, 0, 10, 11, 0, 0, + 0, 0, 12, 0, 13, 14, 15, 16, 17, 18, + 317, 317, 19, 20, 21, 22, 23, 24, 25, 26, + 27, 28, 0, 326, 0, 29, 30, 31, 32, 33, + 0, 34, 0, 0, 0, 35, 36, 37, 38, 39, + 0, 40, 0, 41, 0, 42, 0, 0, 43, 0, + 0, 0, 44, 45, 46, 47, 48, 49, 50, 0, + 51, 52, 53, 54, 55, 56, 0, 0, 0, 0, + 57, 58, 59, 60, 61, 62, 0, 0, 0, 0, + 63, 64, 65, 66, 67, 68, 69, 0, 0, 70, + 71, 0, 72, 0, 0, 0, 73, 4, 5, 6, + 7, 8, 74, 75, 76, 77, 9, 788, 78, 79, + 80, 0, 0, 81, 0, 82, 83, 517, 84, -382, + -382, -382, -382, -382, 254, 255, 256, 257, 258, 259, + 260, 261, 262, 263, 264, 265, 0, 266, 10, 11, + 0, 821, 0, 0, 12, 0, 13, 14, 15, 16, + 17, 18, 0, 0, 19, 20, 21, 22, 23, 24, + 25, 26, 27, 28, 0, 0, 0, 29, 30, 31, + 32, 33, 0, 34, 0, 0, 0, 35, 36, 37, + 38, 39, 855, 40, 0, 41, 0, 42, 0, 0, + 43, 0, 0, 0, 44, 45, 46, 47, 48, 49, + 50, 0, 51, 52, 53, 54, 55, 56, 0, 0, + 0, 0, 57, 58, 59, 60, 61, 62, 0, 0, + 0, 0, 63, 64, 65, 66, 67, 68, 69, 0, + 0, 70, 71, 0, 72, 0, 0, 0, 73, 4, + 5, 6, 7, 8, 74, 75, 76, 77, 9, 0, + 78, 79, 80, 0, 0, 81, 0, 82, 83, 620, + 84, 0, 0, 0, 0, 0, 0, 0, 0, 0, + 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, + 10, 11, 0, 0, 0, 0, 12, 0, 13, 14, + 15, 16, 17, 18, 0, 0, 19, 20, 21, 22, + 23, 24, 25, 26, 27, 28, 0, 0, 0, 29, + 30, 31, 32, 33, 0, 34, 0, 0, 0, 35, + 36, 37, 38, 39, 0, 40, 0, 41, 0, 42, + 0, 0, 43, 0, 0, 0, 44, 45, 46, 47, + 48, 49, 50, 0, 51, 52, 53, 54, 55, 56, + 0, 0, 0, 0, 57, 58, 59, 60, 61, 62, + 0, 0, 0, 0, 63, 64, 65, 66, 67, 68, + 69, 0, 0, 70, 71, 0, 72, 0, 0, 0, + 73, 4, 5, 6, 7, 8, 74, 75, 76, 77, + 9, 0, 78, 79, 80, 0, 0, 81, 0, 82, + 83, 0, 84, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 10, 11, 0, 0, 0, 0, 12, 0, - 13, 14, 15, 16, 17, 18, 317, 317, 19, 20, - 21, 22, 23, 24, 25, 26, 27, 28, 0, 326, - 0, 29, 30, 31, 32, 33, 0, 34, 0, 0, - 0, 35, 36, 37, 38, 39, 0, 40, 0, 41, - 0, 42, 0, 0, 43, 0, 0, 0, 44, 45, - 46, 47, 48, 49, 50, 0, 51, 52, 53, 54, - 55, 56, 0, 0, 0, 0, 57, 58, 59, 60, - 61, 62, 0, 0, 0, 0, 63, 64, 65, 66, - 67, 68, 69, 0, 0, 70, 71, 0, 72, 0, - 0, 0, 73, 0, 0, 0, 0, 0, 74, 75, - 76, 77, 0, 788, 78, 79, 80, 0, 0, 81, - 0, 82, 83, 517, 84, 0, 0, 0, 0, 0, - 0, 4, 5, 6, 7, 8, 0, 0, 0, 0, - 9, 0, 0, 0, 0, 0, 0, 820, 245, 246, - 247, 248, 249, 250, 251, 252, 253, 254, 255, 256, - 257, 258, 259, 260, 261, 262, 263, 264, 265, 0, - 266, 0, 10, 11, 0, 0, 0, 0, 12, 0, - 13, 14, 15, 16, 17, 18, 0, 853, 19, 20, + 13, 14, 15, 16, 17, 18, 0, 0, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 0, 0, 0, 29, 30, 31, 32, 33, 0, 34, 0, 0, 0, 35, 36, 37, 38, 39, 0, 40, 0, 41, 0, 42, 0, 0, 43, 0, 0, 0, 44, 45, - 46, 47, 48, 49, 50, 0, 51, 52, 53, 54, - 55, 56, 0, 0, 0, 0, 57, 58, 59, 60, + 46, 47, 0, 49, 50, 0, 51, 0, 53, 54, + 55, 56, 0, 0, 0, 0, 57, 58, 59, 374, 61, 62, 0, 0, 0, 0, 63, 64, 65, 66, 67, 68, 69, 0, 0, 70, 71, 0, 72, 0, - 0, 0, 73, 4, 5, 6, 7, 8, 74, 75, + 0, 0, 73, 4, 5, 6, 7, 8, 124, 75, 76, 77, 9, 0, 78, 79, 80, 0, 0, 81, - 0, 82, 83, 620, 84, 0, 0, 0, 0, 0, + 0, 82, 83, 375, 84, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 10, 11, 0, 0, 0, 0, 12, 0, 13, 14, 15, 16, 17, 18, 0, 0, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 0, 0, 0, 29, 30, 31, 32, 33, 0, 34, 0, 0, 0, 35, 36, 37, 38, 39, 0, 40, 0, 41, 0, 42, 0, 0, 43, 0, 0, 0, - 44, 45, 46, 47, 48, 49, 50, 0, 51, 52, + 44, 45, 46, 47, 0, 49, 50, 0, 51, 0, 53, 54, 55, 56, 0, 0, 0, 0, 57, 58, - 59, 60, 61, 62, 0, 0, 0, 0, 63, 64, + 59, 374, 61, 62, 0, 0, 0, 0, 63, 64, 65, 66, 67, 68, 69, 0, 0, 70, 71, 0, 72, 0, 0, 0, 73, 4, 5, 6, 7, 8, - 74, 75, 76, 77, 9, 0, 78, 79, 80, 0, - 0, 81, 0, 82, 83, 0, 84, 0, 0, 0, + 124, 75, 76, 77, 9, 0, 78, 79, 80, 0, + 0, 81, 0, 82, 83, 497, 84, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 10, 11, 0, 0, 0, 0, 12, 0, 13, 14, 15, 16, 17, 18, 0, 0, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 0, 0, 0, 29, 30, 31, 32, 33, 0, 34, 0, 0, 0, 35, 36, 37, 38, 39, - 0, 40, 0, 41, 0, 42, 0, 0, 43, 0, + 734, 40, 0, 41, 0, 42, 0, 0, 43, 0, 0, 0, 44, 45, 46, 47, 0, 49, 50, 0, 51, 0, 53, 54, 55, 56, 0, 0, 0, 0, 57, 58, 59, 374, 61, 62, 0, 0, 0, 0, 63, 64, 65, 66, 67, 68, 69, 0, 0, 70, 71, 0, 72, 0, 0, 0, 73, 4, 5, 6, 7, 8, 124, 75, 76, 77, 9, 0, 78, 79, - 80, 0, 0, 81, 0, 82, 83, 375, 84, 0, + 80, 0, 0, 81, 0, 82, 83, 0, 84, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 10, 11, 0, 0, 0, 0, 12, 0, 13, 14, 15, 16, 17, 18, 0, 0, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 0, 0, 0, 29, 30, 31, 32, 33, 0, 34, 0, 0, 0, 35, 36, 37, - 38, 39, 0, 40, 0, 41, 0, 42, 0, 0, + 38, 39, 0, 40, 0, 41, 0, 42, 740, 0, 43, 0, 0, 0, 44, 45, 46, 47, 0, 49, 50, 0, 51, 0, 53, 54, 55, 56, 0, 0, 0, 0, 57, 58, 59, 374, 61, 62, 0, 0, 0, 0, 63, 64, 65, 66, 67, 68, 69, 0, 0, 70, 71, 0, 72, 0, 0, 0, 73, 4, 5, 6, 7, 8, 124, 75, 76, 77, 9, 0, - 78, 79, 80, 0, 0, 81, 0, 82, 83, 497, + 78, 79, 80, 0, 0, 81, 0, 82, 83, 0, 84, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 10, 11, 0, 0, 0, 0, 12, 0, 13, 14, 15, 16, 17, 18, 0, 0, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 0, 0, 0, 29, 30, 31, 32, 33, 0, 34, 0, 0, 0, 35, - 36, 37, 38, 39, 734, 40, 0, 41, 0, 42, + 36, 37, 38, 39, 0, 40, 0, 41, 0, 42, 0, 0, 43, 0, 0, 0, 44, 45, 46, 47, 0, 49, 50, 0, 51, 0, 53, 54, 55, 56, 0, 0, 0, 0, 57, 58, 59, 374, 61, 62, 0, 0, 0, 0, 63, 64, 65, 66, 67, 68, 69, 0, 0, 70, 71, 0, 72, 0, 0, 0, 73, 4, 5, 6, 7, 8, 124, 75, 76, 77, 9, 0, 78, 79, 80, 0, 0, 81, 0, 82, - 83, 0, 84, 0, 0, 0, 0, 0, 0, 0, + 83, 795, 84, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 10, 11, 0, 0, 0, 0, 12, 0, 13, 14, 15, 16, 17, 18, 0, 0, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 0, 0, 0, 29, 30, 31, 32, 33, 0, 34, 0, 0, 0, 35, 36, 37, 38, 39, 0, 40, 0, 41, - 0, 42, 740, 0, 43, 0, 0, 0, 44, 45, + 860, 42, 0, 0, 43, 0, 0, 0, 44, 45, 46, 47, 0, 49, 50, 0, 51, 0, 53, 54, 55, 56, 0, 0, 0, 0, 57, 58, 59, 374, 61, 62, 0, 0, 0, 0, 63, 64, 65, 66, 67, 68, 69, 0, 0, 70, 71, 0, 72, 0, 0, 0, 73, 4, 5, 6, 7, 8, 124, 75, 76, 77, 9, 0, 78, 79, 80, 0, 0, 81, 0, 82, 83, 0, 84, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 10, 11, 0, 0, 0, 0, 12, 0, 13, 14, 15, 16, 17, 18, 0, 0, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 0, 0, 0, 29, 30, 31, 32, 33, 0, 34, 0, 0, 0, 35, 36, 37, 38, 39, 0, 40, 0, 41, 0, 42, 0, 0, 43, 0, 0, 0, 44, 45, 46, 47, 0, 49, 50, 0, 51, 0, 53, 54, 55, 56, 0, 0, 0, 0, 57, 58, 59, 374, 61, 62, 0, 0, 0, 0, 63, 64, 65, 66, 67, 68, 69, 0, 0, 70, 71, 0, 72, 0, 0, 0, 73, 4, 5, 6, 7, 8, 124, 75, 76, 77, 9, 0, 78, 79, 80, 0, - 0, 81, 0, 82, 83, 795, 84, 0, 0, 0, + 0, 81, 0, 82, 83, 874, 84, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 10, 11, 0, 0, 0, 0, 12, 0, 13, 14, 15, 16, 17, 18, 0, 0, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 0, 0, 0, 29, 30, 31, 32, 33, 0, 34, 0, 0, 0, 35, 36, 37, 38, 39, - 0, 40, 0, 41, 858, 42, 0, 0, 43, 0, + 0, 40, 0, 41, 0, 42, 0, 0, 43, 0, 0, 0, 44, 45, 46, 47, 0, 49, 50, 0, 51, 0, 53, 54, 55, 56, 0, 0, 0, 0, 57, 58, 59, 374, 61, 62, 0, 0, 0, 0, 63, 64, 65, 66, 67, 68, 69, 0, 0, 70, 71, 0, 72, 0, 0, 0, 73, 4, 5, 6, 7, 8, 124, 75, 76, 77, 9, 0, 78, 79, - 80, 0, 0, 81, 0, 82, 83, 0, 84, 0, + 80, 0, 0, 81, 0, 82, 83, 877, 84, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 10, 11, 0, 0, 0, 0, 12, 0, 13, 14, 15, 16, 17, 18, 0, 0, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 0, 0, 0, 29, 30, 31, 32, 33, 0, 34, 0, 0, 0, 35, 36, 37, - 38, 39, 0, 40, 0, 41, 0, 42, 0, 0, + 38, 39, 0, 40, 881, 41, 0, 42, 0, 0, 43, 0, 0, 0, 44, 45, 46, 47, 0, 49, 50, 0, 51, 0, 53, 54, 55, 56, 0, 0, 0, 0, 57, 58, 59, 374, 61, 62, 0, 0, 0, 0, 63, 64, 65, 66, 67, 68, 69, 0, 0, 70, 71, 0, 72, 0, 0, 0, 73, 4, 5, 6, 7, 8, 124, 75, 76, 77, 9, 0, - 78, 79, 80, 0, 0, 81, 0, 82, 83, 872, + 78, 79, 80, 0, 0, 81, 0, 82, 83, 0, 84, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 10, 11, 0, 0, 0, 0, 12, 0, 13, 14, 15, 16, 17, 18, 0, 0, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 0, 0, 0, 29, 30, 31, 32, 33, 0, 34, 0, 0, 0, 35, 36, 37, 38, 39, 0, 40, 0, 41, 0, 42, 0, 0, 43, 0, 0, 0, 44, 45, 46, 47, 0, 49, 50, 0, 51, 0, 53, 54, 55, 56, 0, 0, 0, 0, 57, 58, 59, 374, 61, 62, 0, 0, 0, 0, 63, 64, 65, 66, 67, 68, 69, 0, 0, 70, 71, 0, 72, 0, 0, 0, 73, 4, 5, 6, 7, 8, 124, 75, 76, 77, 9, 0, 78, 79, 80, 0, 0, 81, 0, 82, - 83, 875, 84, 0, 0, 0, 0, 0, 0, 0, + 83, 884, 84, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 10, 11, 0, 0, 0, 0, 12, 0, 13, 14, 15, 16, 17, 18, 0, 0, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 0, 0, 0, 29, 30, 31, 32, 33, 0, 34, 0, 0, - 0, 35, 36, 37, 38, 39, 0, 40, 879, 41, + 0, 35, 36, 37, 38, 39, 0, 40, 0, 41, 0, 42, 0, 0, 43, 0, 0, 0, 44, 45, 46, 47, 0, 49, 50, 0, 51, 0, 53, 54, 55, 56, 0, 0, 0, 0, 57, 58, 59, 374, 61, 62, 0, 0, 0, 0, 63, 64, 65, 66, 67, 68, 69, 0, 0, 70, 71, 0, 72, 0, 0, 0, 73, 4, 5, 6, 7, 8, 124, 75, 76, 77, 9, 0, 78, 79, 80, 0, 0, 81, - 0, 82, 83, 0, 84, 0, 0, 0, 0, 0, + 0, 82, 83, 895, 84, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 10, 11, 0, 0, 0, 0, 12, 0, 13, 14, 15, 16, 17, 18, 0, 0, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 0, 0, 0, 29, 30, 31, 32, 33, 0, 34, 0, 0, 0, 35, 36, 37, 38, 39, 0, 40, 0, 41, 0, 42, 0, 0, 43, 0, 0, 0, 44, 45, 46, 47, 0, 49, 50, 0, 51, 0, 53, 54, 55, 56, 0, 0, 0, 0, 57, 58, 59, 374, 61, 62, 0, 0, 0, 0, 63, 64, 65, 66, 67, 68, 69, 0, 0, 70, 71, 0, 72, 0, 0, 0, 73, 4, 5, 6, 7, 8, 124, 75, 76, 77, 9, 0, 78, 79, 80, 0, - 0, 81, 0, 82, 83, 882, 84, 0, 0, 0, + 0, 81, 0, 82, 83, 907, 84, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 10, 11, 0, 0, 0, 0, 12, 0, 13, 14, 15, 16, 17, 18, 0, 0, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 0, 0, 0, 29, 30, 31, 32, 33, 0, 34, 0, 0, 0, 35, 36, 37, 38, 39, 0, 40, 0, 41, 0, 42, 0, 0, 43, 0, 0, 0, 44, 45, 46, 47, 0, 49, 50, 0, 51, 0, 53, 54, 55, 56, 0, 0, 0, 0, 57, 58, 59, 374, 61, 62, 0, 0, 0, 0, 63, 64, 65, 66, 67, 68, 69, 0, 0, 70, 71, 0, 72, 0, 0, 0, 73, 4, 5, 6, 7, 8, 124, 75, 76, 77, 9, 0, 78, 79, - 80, 0, 0, 81, 0, 82, 83, 893, 84, 0, - 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, + 80, 0, 0, 81, 0, 82, 83, 0, 84, 0, + 575, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 10, 11, 0, 0, 0, 0, 12, 0, 13, 14, 15, 16, 17, 18, 0, 0, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 0, 0, 0, 29, 30, 31, 32, 33, 0, 34, 0, 0, 0, 35, 36, 37, 38, 39, 0, 40, 0, 41, 0, 42, 0, 0, 43, 0, 0, 0, 44, 45, 46, 47, 0, 49, - 50, 0, 51, 0, 53, 54, 55, 56, 0, 0, - 0, 0, 57, 58, 59, 374, 61, 62, 0, 0, + 50, 0, 51, 0, 53, 54, 0, 0, 0, 0, + 0, 0, 57, 58, 59, 0, 0, 0, 0, 0, 0, 0, 63, 64, 65, 66, 67, 68, 69, 0, 0, 70, 71, 0, 72, 0, 0, 0, 73, 4, 5, 6, 7, 8, 124, 75, 76, 77, 9, 0, - 78, 79, 80, 0, 0, 81, 0, 82, 83, 905, - 84, 0, 0, 0, 0, 0, 0, 0, 0, 0, + 0, 79, 80, 0, 0, 81, 0, 82, 83, 0, + 84, 0, 578, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 10, 11, 0, 0, 0, 0, 12, 0, 13, 14, 15, 16, 17, 18, 0, 0, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 0, 0, 0, 29, 30, 31, 32, 33, 0, 34, 0, 0, 0, 35, 36, 37, 38, 39, 0, 40, 0, 41, 0, 42, 0, 0, 43, 0, 0, 0, 44, 45, 46, 47, - 0, 49, 50, 0, 51, 0, 53, 54, 55, 56, - 0, 0, 0, 0, 57, 58, 59, 374, 61, 62, + 0, 49, 50, 0, 51, 0, 53, 54, 0, 0, + 0, 0, 0, 0, 57, 58, 59, 0, 0, 0, 0, 0, 0, 0, 63, 64, 65, 66, 67, 68, 69, 0, 0, 70, 71, 0, 72, 0, 0, 0, 73, 4, 5, 6, 7, 8, 124, 75, 76, 77, - 9, 0, 78, 79, 80, 0, 0, 81, 0, 82, - 83, 0, 84, 0, 575, 0, 0, 0, 0, 0, + 9, 0, 0, 79, 80, 0, 0, 81, 0, 82, + 83, 0, 84, 0, 589, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 10, 11, 0, 0, 0, 0, 12, 0, 13, 14, 15, 16, 17, 18, 0, 0, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 0, 0, 0, 29, 30, 31, 32, 33, 0, 34, 0, 0, 0, 35, 36, 37, 38, 39, 0, 40, 0, 41, 0, 42, 0, 0, 43, 0, 0, 0, 44, 45, 46, 47, 0, 49, 50, 0, 51, 0, 53, 54, 0, 0, 0, 0, 0, 0, 57, 58, 59, 0, 0, 0, 0, 0, 0, 0, 63, 64, 65, 66, 67, 68, 69, 0, 0, 70, 71, 0, 72, 0, 0, 0, 73, 4, 5, 6, 7, 8, 124, 75, 76, 77, 9, 0, 0, 79, 80, 0, 0, 81, - 0, 82, 83, 0, 84, 0, 578, 0, 0, 0, + 0, 82, 83, 0, 84, 0, 781, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 10, 11, 0, 0, 0, 0, 12, 0, 13, 14, 15, 16, 17, 18, 0, 0, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 0, 0, 0, 29, 30, 31, 32, 33, 0, 34, 0, 0, 0, 35, 36, 37, 38, 39, 0, 40, 0, 41, 0, 42, 0, 0, 43, 0, 0, 0, 44, 45, 46, 47, 0, 49, 50, 0, 51, 0, 53, 54, 0, 0, 0, 0, 0, 0, 57, 58, 59, 0, 0, 0, 0, 0, 0, 0, 63, 64, 65, 66, 67, 68, 69, 0, 0, 70, 71, 0, 72, 0, 0, 0, 73, 4, 5, 6, 7, 8, 124, 75, 76, 77, 9, 0, 0, 79, 80, 0, - 0, 81, 0, 82, 83, 0, 84, 0, 589, 0, + 0, 81, 0, 82, 83, 0, 84, 0, 822, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 10, 11, 0, 0, 0, 0, 12, 0, 13, 14, 15, 16, 17, 18, 0, 0, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 0, 0, 0, 29, 30, 31, 32, 33, 0, 34, 0, 0, 0, 35, 36, 37, 38, 39, 0, 40, 0, 41, 0, 42, 0, 0, 43, 0, 0, 0, 44, 45, 46, 47, 0, 49, 50, 0, 51, 0, 53, 54, 0, 0, 0, 0, 0, 0, 57, 58, 59, 0, 0, 0, 0, 0, 0, 0, 63, 64, 65, 66, 67, 68, 69, 0, 0, 70, 71, 0, 72, 0, 0, 0, 73, 4, 5, 6, 7, 8, 124, 75, 76, 77, 9, 0, 0, 79, 80, 0, 0, 81, 0, 82, 83, 0, 84, 0, - 781, 0, 0, 0, 0, 0, 0, 0, 0, 0, + 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 10, 11, 0, 0, 0, 0, 12, 0, 13, 14, 15, 16, 17, 18, 0, 0, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 0, 0, 0, 29, 30, 31, 32, 33, 0, 34, 0, 0, 0, 35, 36, 37, 38, 39, 0, 40, 0, 41, 0, 42, 0, 0, 43, 0, 0, 0, 44, 45, 46, 47, 0, 49, 50, 0, 51, 0, 53, 54, 0, 0, 0, 0, 0, 0, 57, 58, 59, 0, 0, 0, 0, 0, 0, 0, 63, 64, 65, 66, 67, 68, 69, 0, 0, 70, 71, 0, 72, 0, 0, 0, 73, 4, 5, 6, 7, 8, 124, 75, 76, 77, 9, 0, 0, 79, 80, 0, 0, 81, 0, 82, 83, 0, - 84, 0, 821, 0, 0, 0, 0, 0, 0, 0, - 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, - 10, 11, 0, 0, 0, 0, 12, 0, 13, 14, - 15, 16, 17, 18, 0, 0, 19, 20, 21, 22, - 23, 24, 25, 26, 27, 28, 0, 0, 0, 29, - 30, 31, 32, 33, 0, 34, 0, 0, 0, 35, - 36, 37, 38, 39, 0, 40, 0, 41, 0, 42, - 0, 0, 43, 0, 0, 0, 44, 45, 46, 47, - 0, 49, 50, 0, 51, 0, 53, 54, 0, 0, - 0, 0, 0, 0, 57, 58, 59, 0, 0, 0, - 0, 0, 0, 0, 63, 64, 65, 66, 67, 68, - 69, 0, 0, 70, 71, 0, 72, 0, 0, 0, - 73, 4, 5, 6, 7, 8, 124, 75, 76, 77, - 9, 0, 0, 79, 80, 0, 0, 81, 0, 82, - 83, 0, 84, 0, 0, 0, 0, 0, 0, 0, - 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, - 0, 0, 10, 11, 0, 0, 0, 0, 12, 0, - 13, 14, 15, 16, 17, 18, 0, 0, 19, 20, - 21, 22, 23, 24, 25, 26, 27, 28, 0, 0, - 0, 29, 30, 31, 32, 33, 0, 34, 0, 0, - 0, 35, 36, 37, 38, 39, 0, 40, 0, 41, - 0, 42, 0, 0, 43, 0, 0, 0, 44, 45, - 46, 47, 0, 49, 50, 0, 51, 0, 53, 54, - 0, 0, 0, 0, 0, 0, 57, 58, 59, 0, - 0, 0, 0, 0, 0, 0, 63, 64, 65, 66, - 67, 68, 69, 0, 0, 70, 71, 0, 72, 0, - 0, 0, 73, 4, 5, 6, 7, 8, 124, 75, - 76, 77, 9, 0, 0, 79, 80, 0, 0, 81, - 0, 82, 83, 0, 84, 0, 0, 0, 0, 0, - 0, 0, 156, 0, 0, 0, 0, 0, 0, 0, - 0, 0, 0, 0, 10, 11, 0, 0, 0, 0, - 12, 0, 13, 14, 15, 16, 17, 18, 0, 0, - 19, 20, 21, 22, 23, 24, 25, 26, 27, 0, - 0, 0, 0, 29, 30, 122, 32, 33, 0, 0, - 0, 0, 0, 35, 36, 248, 249, 250, 251, 252, - 253, 254, 255, 256, 257, 258, 259, 260, 261, 262, - 263, 264, 265, 47, 266, 0, 0, 0, 0, 0, - 0, 123, 0, 0, 0, 0, 0, 0, 0, 58, - 59, 0, 0, 0, 0, 0, 0, 0, 63, 64, - 65, 66, 67, 68, 69, 0, 4, 5, 6, 7, - 8, 0, 0, 0, 73, 9, 0, 0, 0, 0, - 124, 75, 76, 77, 0, 0, 0, 79, 125, 0, - 0, 81, 0, 0, 0, 0, 84, 0, 0, 0, - 0, 0, 0, 0, 0, 0, 0, 10, 11, 0, - 0, 0, 0, 12, 0, 13, 14, 15, 16, 17, - 18, 0, 0, 19, 20, 21, 22, 23, 24, 25, - 26, 27, 0, 0, 0, 0, 29, 30, 122, 32, - 33, 0, 0, 0, 0, 0, 35, 36, 0, 0, - 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, - 0, 0, 0, 0, 0, 0, 47, 0, 0, 0, - 0, 0, 0, 0, 123, 0, 0, 0, 0, 0, - 0, 0, 58, 59, 0, 0, 0, 0, 0, 0, - 0, 63, 64, 65, 66, 67, 68, 69, 0, 4, - 5, 6, 7, 8, 0, 0, 0, 73, 9, 0, - 0, 0, 0, 124, 75, 76, 77, 0, 0, 0, - 79, 125, 0, 0, 81, 0, 185, 0, 0, 84, + 84, 0, 0, 0, 0, 0, 0, 0, 156, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 10, 11, 0, 0, 0, 0, 12, 0, 13, 14, 15, 16, 17, 18, 0, 0, 19, 20, 21, 22, 23, 24, 25, 26, 27, 0, 0, 0, 0, 29, 30, 122, 32, 33, 0, 0, 0, 0, 0, 35, - 36, 0, 0, 0, 0, 0, 0, 0, 0, 0, - 0, 0, 0, 0, 0, 0, 0, 0, 0, 47, - 0, 0, 0, 0, 0, 0, 0, 123, 0, 0, + 36, 248, 249, 250, 251, 252, 253, 254, 255, 256, + 257, 258, 259, 260, 261, 262, 263, 264, 265, 47, + 266, 0, 0, 0, 0, 0, 0, 123, 0, 0, 0, 0, 0, 0, 0, 58, 59, 0, 0, 0, 0, 0, 0, 0, 63, 64, 65, 66, 67, 68, 69, 0, 4, 5, 6, 7, 8, 0, 0, 0, 73, 9, 0, 0, 0, 0, 124, 75, 76, 77, - 0, 0, 0, 79, 125, 0, 0, 81, 0, 187, + 0, 0, 0, 79, 125, 0, 0, 81, 0, 0, 0, 0, 84, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 10, 11, 0, 0, 0, 0, 12, 0, 13, 14, 15, 16, 17, 18, 0, 0, 19, 20, 21, 22, 23, 24, 25, 26, 27, 0, 0, 0, 0, 29, 30, 122, 32, 33, 0, 0, 0, 0, 0, 35, 36, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 47, 0, 0, 0, 0, 0, 0, 0, 123, 0, 0, 0, 0, 0, 0, 0, 58, 59, 0, 0, 0, 0, 0, 0, 0, 63, 64, 65, 66, 67, 68, 69, 0, 4, 5, 6, 7, 8, 0, 0, 0, 73, 9, 0, 0, 0, 0, 124, 75, 76, 77, 0, 0, 0, 79, 125, 0, 0, - 81, 0, 191, 0, 0, 84, 0, 0, 0, 0, + 81, 0, 185, 0, 0, 84, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 10, 11, 0, 0, 0, 0, 12, 0, 13, 14, 15, 16, 17, 18, 0, 0, 19, 20, 21, 22, 23, 24, 25, 26, 27, 0, 0, 0, 0, 29, 30, 122, 32, 33, 0, 0, 0, 0, 0, 35, 36, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 47, 0, 0, 0, 0, 0, 0, 0, 123, 0, 0, 0, 0, 0, 0, 0, 58, 59, 0, 0, 0, 0, 0, 0, 0, 63, 64, 65, 66, 67, 68, 69, 0, 4, 5, 6, 7, 8, 0, 0, 0, 73, 9, 0, 0, 0, 0, 124, 75, 76, 77, 0, 0, 0, 79, - 125, 403, 0, 81, 314, 0, 0, 0, 84, 0, + 125, 0, 0, 81, 0, 187, 0, 0, 84, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 10, 11, 0, 0, 0, 0, 12, 0, 13, 14, 15, 16, 17, 18, 0, 0, 19, 20, 21, 22, 23, 24, 25, 26, 27, 0, 0, 0, 0, 29, 30, 122, 32, 33, 0, 0, 0, 0, 0, 35, 36, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 47, 0, 0, 0, 0, 0, 0, 0, 123, 0, 0, 0, 0, 0, 0, 0, 58, 59, 0, 0, 0, 0, 0, 0, 0, 63, 64, 65, 66, 67, 68, 69, 0, 4, 5, 6, 7, 8, 0, 0, 0, 73, 9, 0, 0, 0, 0, 124, 75, 76, 77, 0, - 0, 0, 79, 125, 0, 0, 81, 0, 0, 0, - 429, 84, 0, 0, 0, 0, 0, 0, 0, 0, + 0, 0, 79, 125, 0, 0, 81, 0, 191, 0, + 0, 84, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 10, 11, 0, 0, 0, 0, 12, 0, 13, 14, 15, 16, 17, 18, 0, 0, 19, 20, 21, 22, 23, 24, 25, 26, 27, 0, 0, 0, 0, 29, 30, 122, 32, 33, 0, 0, 0, 0, 0, 35, 36, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 47, 0, 0, 0, 0, 0, 0, 0, 123, 0, 0, 0, 0, 0, 0, 0, 58, 59, 0, 0, 0, 0, 0, 0, 0, 63, 64, 65, 66, 67, 68, 69, 0, 4, 5, 6, 7, 8, 0, 0, 0, 73, 9, 0, 0, 0, 0, 124, 75, - 76, 77, 0, 0, 0, 79, 125, 0, 0, 81, - 0, 0, 0, 461, 84, 0, 0, 0, 0, 0, + 76, 77, 0, 0, 0, 79, 125, 403, 0, 81, + 314, 0, 0, 0, 84, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 10, 11, 0, 0, 0, 0, 12, 0, 13, 14, 15, 16, 17, 18, 0, 0, 19, 20, 21, 22, 23, 24, 25, 26, 27, 0, 0, 0, 0, 29, 30, 122, 32, 33, 0, 0, 0, 0, 0, 35, 36, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 47, 0, 0, 0, 0, 0, 0, 0, 123, 0, 0, 0, 0, 0, 0, 0, 58, 59, 0, 0, 0, 0, 0, 0, 0, 63, 64, 65, 66, 67, 68, 69, 0, 4, 5, 6, 7, 8, 0, 0, 0, 73, 9, 0, 0, 0, 0, 124, 75, 76, 77, 0, 0, 0, 79, 125, - 0, 0, 81, 0, 0, 0, 463, 84, 0, 0, + 0, 0, 81, 0, 0, 0, 429, 84, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 10, 11, 0, 0, 0, 0, 12, 0, 13, 14, 15, 16, 17, 18, 0, 0, 19, 20, 21, 22, 23, 24, 25, 26, 27, 0, 0, 0, 0, 29, 30, 122, 32, 33, 0, 0, 0, 0, 0, 35, 36, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 47, 0, 0, 0, 0, 0, 0, 0, 123, 0, 0, 0, 0, 0, 0, 0, 58, 59, 0, 0, 0, 0, 0, 0, 0, 63, 64, 65, 66, 67, 68, 69, 0, 4, 5, 6, 7, 8, 0, 0, 0, 73, 9, 0, 0, 0, 0, 124, 75, 76, 77, 0, 0, - 0, 79, 125, 0, 0, 81, 0, 0, 0, 651, + 0, 79, 125, 0, 0, 81, 0, 0, 0, 461, 84, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 10, 11, 0, 0, 0, 0, 12, 0, 13, 14, 15, 16, 17, 18, 0, 0, 19, 20, 21, 22, 23, 24, 25, 26, 27, 0, 0, 0, 0, 29, 30, 122, 32, 33, 0, 0, 0, 0, 0, 35, 36, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 47, 0, 0, 0, 0, 0, 0, 0, 123, 0, 0, 0, 0, 0, 0, 0, 58, 59, 0, 0, 0, 0, 0, 0, 0, 63, 64, 65, 66, 67, 68, 69, 0, 4, 5, 6, 7, 8, 0, 0, 0, 73, 9, 0, 0, 0, 0, 124, 75, 76, 77, 0, 0, 0, 79, 125, 0, 0, 81, 0, - 0, 0, 0, 84, 0, 0, 0, 0, 0, 0, + 0, 0, 463, 84, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 10, 11, 0, 0, 0, 0, 12, 0, 13, 14, 15, 16, 17, 18, 0, 0, 19, 20, 21, 22, 23, 24, 25, 26, 27, 0, 0, 0, 0, 29, 30, 122, 32, 33, 0, 0, 0, 0, 0, 35, 36, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 47, 0, 0, 0, 0, 0, 0, 0, 123, 0, 0, 0, 0, 0, 0, 0, 58, 59, 0, 0, 0, 0, 0, 0, 0, 63, 64, 65, 66, 67, 68, 69, 0, 4, 5, 6, 7, 8, 0, 0, 0, 73, 9, 0, 0, 0, 0, 124, 75, 76, 77, 0, 0, 0, 79, 125, 0, - 0, 81, 0, 0, 0, 0, 84, 0, 0, 0, + 0, 81, 0, 0, 0, 651, 84, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 10, 11, 0, 0, 0, 0, 12, 0, 13, 14, 15, 16, 17, 18, 0, 0, 19, 20, 21, 22, 23, 24, 25, 26, 27, 0, 0, 0, 0, 29, 30, 122, 32, 33, 0, 0, 0, 0, 0, 35, 36, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 47, 0, 0, 0, 0, 0, 0, 0, 123, 0, 0, 0, 0, 0, 0, 0, 58, 59, 0, 0, 0, 0, 0, 0, - 0, 63, 64, 65, 66, 67, 68, 69, 0, 0, - 0, 0, 0, 0, 0, 0, 0, 73, 0, 0, - 0, 0, 0, 124, 75, 76, 77, 239, 240, 241, - 79, 80, 0, 0, 81, 0, 0, 0, 0, 84, - 0, 0, 0, 242, 0, 243, 244, 245, 246, 247, - 248, 249, 250, 251, 252, 253, 254, 255, 256, 257, - 258, 259, 260, 261, 262, 263, 264, 265, 0, 266, - 239, 240, 241, 0, 0, 0, 0, 0, 0, 0, - 0, 0, 0, 0, 0, 0, 242, 0, 243, 244, - 245, 246, 247, 248, 249, 250, 251, 252, 253, 254, - 255, 256, 257, 258, 259, 260, 261, 262, 263, 264, - 265, 0, 266, 239, 240, 241, 0, 0, 0, 0, - 0, 0, 0, 0, 0, 0, 0, 0, 0, 242, + 0, 63, 64, 65, 66, 67, 68, 69, 0, 4, + 5, 6, 7, 8, 0, 0, 0, 73, 9, 0, + 0, 0, 0, 124, 75, 76, 77, 0, 0, 0, + 79, 125, 0, 0, 81, 0, 0, 0, 0, 84, + 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, + 10, 11, 0, 0, 0, 0, 12, 0, 13, 14, + 15, 16, 17, 18, 0, 0, 19, 20, 21, 22, + 23, 24, 25, 26, 27, 0, 0, 0, 0, 29, + 30, 122, 32, 33, 0, 0, 0, 0, 0, 35, + 36, 0, 0, 0, 0, 0, 0, 0, 0, 0, + 0, 0, 0, 0, 0, 0, 0, 0, 0, 47, + 0, 0, 0, 0, 0, 0, 0, 123, 0, 0, + 0, 0, 0, 0, 0, 58, 59, 0, 0, 0, + 0, 0, 0, 0, 63, 64, 65, 66, 67, 68, + 69, 0, 4, 5, 6, 7, 8, 0, 0, 0, + 73, 9, 0, 0, 0, 0, 124, 75, 76, 77, + 0, 0, 0, 79, 125, 0, 0, 81, 0, 0, + 0, 0, 84, 0, 0, 0, 0, 0, 0, 0, + 0, 0, 0, 10, 11, 0, 0, 0, 0, 12, + 0, 13, 14, 15, 16, 17, 18, 0, 0, 19, + 20, 21, 22, 23, 24, 25, 26, 27, 0, 0, + 0, 0, 29, 30, 122, 32, 33, 0, 0, 0, + 0, 0, 35, 36, 0, 0, 0, 0, 0, 0, + 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, + 0, 0, 47, 0, 0, 0, 0, 0, 0, 0, + 123, 0, 0, 0, 0, 0, 0, 0, 58, 59, + 0, 0, 0, 0, 0, 0, 0, 63, 64, 65, + 66, 67, 68, 69, 0, 0, 0, 0, 0, 0, + 0, 0, 0, 73, 0, 0, 0, 0, 0, 124, + 75, 76, 77, 239, 240, 241, 79, 80, 0, 0, + 81, 0, 0, 0, 0, 84, 0, 0, 0, 242, 0, 243, 244, 245, 246, 247, 248, 249, 250, 251, 252, 253, 254, 255, 256, 257, 258, 259, 260, 261, - 262, 263, 264, 265, 0, 266, 0, 0, 0, 0, - 0, 0, 0, 0, 0, 0, 239, 240, 241, 0, + 262, 263, 264, 265, 0, 266, 239, 240, 241, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, - 0, 0, 242, 523, 243, 244, 245, 246, 247, 248, + 0, 0, 242, 0, 243, 244, 245, 246, 247, 248, 249, 250, 251, 252, 253, 254, 255, 256, 257, 258, 259, 260, 261, 262, 263, 264, 265, 0, 266, 239, 240, 241, 0, 0, 0, 0, 0, 0, 0, 0, - 0, 0, 0, 0, 0, 242, 566, 243, 244, 245, + 0, 0, 0, 0, 0, 242, 0, 243, 244, 245, 246, 247, 248, 249, 250, 251, 252, 253, 254, 255, 256, 257, 258, 259, 260, 261, 262, 263, 264, 265, - 0, 266, 0, 0, 239, 240, 241, 0, 0, 0, - 0, 0, 0, 0, 0, 0, 0, 0, 0, 610, - 242, 789, 243, 244, 245, 246, 247, 248, 249, 250, + 0, 266, 0, 0, 0, 0, 0, 0, 0, 0, + 0, 0, 239, 240, 241, 0, 0, 0, 0, 0, + 0, 0, 0, 0, 0, 0, 0, 0, 242, 566, + 243, 244, 245, 246, 247, 248, 249, 250, 251, 252, + 253, 254, 255, 256, 257, 258, 259, 260, 261, 262, + 263, 264, 265, 0, 266, 0, 0, 239, 240, 241, + 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, + 0, 0, 610, 242, 789, 243, 244, 245, 246, 247, + 248, 249, 250, 251, 252, 253, 254, 255, 256, 257, + 258, 259, 260, 261, 262, 263, 264, 265, 0, 266, + 239, 240, 241, 0, 0, 0, 0, 0, 0, 0, + 0, 0, 0, 0, 0, 644, 242, 0, 243, 244, + 245, 246, 247, 248, 249, 250, 251, 252, 253, 254, + 255, 256, 257, 258, 259, 260, 261, 262, 263, 264, + 265, 0, 266, 0, 0, 0, 0, 0, 0, 0, + 0, 239, 240, 241, 0, 0, 0, 0, 0, 0, + 0, 0, 0, 0, 0, 0, 0, 242, 726, 243, + 244, 245, 246, 247, 248, 249, 250, 251, 252, 253, + 254, 255, 256, 257, 258, 259, 260, 261, 262, 263, + 264, 265, 0, 266, 239, 240, 241, 0, 0, 0, + 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, + 242, 790, 243, 244, 245, 246, 247, 248, 249, 250, 251, 252, 253, 254, 255, 256, 257, 258, 259, 260, - 261, 262, 263, 264, 265, 0, 266, 0, 0, 0, - 0, 0, 0, 0, 0, 239, 240, 241, 0, 0, + 261, 262, 263, 264, 265, 0, 266, 239, 240, 241, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, - 0, 242, 644, 243, 244, 245, 246, 247, 248, 249, - 250, 251, 252, 253, 254, 255, 256, 257, 258, 259, - 260, 261, 262, 263, 264, 265, 0, 266, 239, 240, + 0, 0, 0, 242, 267, 243, 244, 245, 246, 247, + 248, 249, 250, 251, 252, 253, 254, 255, 256, 257, + 258, 259, 260, 261, 262, 263, 264, 265, 0, 266, + 0, 0, 0, 0, 0, 0, 0, 0, 239, 240, 241, 0, 0, 0, 0, 0, 0, 0, 0, 0, - 0, 0, 0, 0, 242, 726, 243, 244, 245, 246, + 0, 0, 0, 0, 242, 332, 243, 244, 245, 246, 247, 248, 249, 250, 251, 252, 253, 254, 255, 256, 257, 258, 259, 260, 261, 262, 263, 264, 265, 0, 266, 239, 240, 241, 0, 0, 0, 0, 0, 0, - 0, 0, 0, 0, 0, 0, 0, 242, 790, 243, + 0, 0, 0, 0, 0, 0, 0, 242, 333, 243, 244, 245, 246, 247, 248, 249, 250, 251, 252, 253, 254, 255, 256, 257, 258, 259, 260, 261, 262, 263, - 264, 265, 0, 266, 0, 0, 0, 0, 0, 0, - 0, 0, 239, 240, 241, 0, 0, 0, 0, 0, - 0, 0, 0, 0, 0, 0, 0, 0, 242, 267, - 243, 244, 245, 246, 247, 248, 249, 250, 251, 252, - 253, 254, 255, 256, 257, 258, 259, 260, 261, 262, - 263, 264, 265, 0, 266, 239, 240, 241, 0, 0, + 264, 265, 0, 266, 239, 240, 241, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, - 0, 242, 332, 243, 244, 245, 246, 247, 248, 249, - 250, 251, 252, 253, 254, 255, 256, 257, 258, 259, - 260, 261, 262, 263, 264, 265, 0, 266, 239, 240, - 241, 0, 0, 0, 0, 0, 0, 0, 0, 0, - 0, 0, 0, 0, 242, 333, 243, 244, 245, 246, - 247, 248, 249, 250, 251, 252, 253, 254, 255, 256, - 257, 258, 259, 260, 261, 262, 263, 264, 265, 0, - 266, 0, 0, 0, 0, 0, 0, 0, 0, 239, - 240, 241, 0, 0, 0, 0, 0, 0, 0, 0, - 0, 0, 0, 0, 0, 242, 339, 243, 244, 245, - 246, 247, 248, 249, 250, 251, 252, 253, 254, 255, - 256, 257, 258, 259, 260, 261, 262, 263, 264, 265, - 0, 266, 0, 239, 240, 241, 0, 0, 0, 0, - 0, 0, 0, 0, 0, 0, 0, 0, 372, 242, - 0, 243, 244, 245, 246, 247, 248, 249, 250, 251, + 242, 339, 243, 244, 245, 246, 247, 248, 249, 250, + 251, 252, 253, 254, 255, 256, 257, 258, 259, 260, + 261, 262, 263, 264, 265, 0, 266, 0, 0, 0, + 0, 0, 0, 0, 239, 240, 241, 0, 0, 0, + 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, + 242, 372, 243, 244, 245, 246, 247, 248, 249, 250, + 251, 252, 253, 254, 255, 256, 257, 258, 259, 260, + 261, 262, 263, 264, 265, 0, 266, 239, 240, 241, + 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, + 0, 0, 0, 242, 457, 243, 244, 245, 246, 247, + 248, 249, 250, 251, 252, 253, 254, 255, 256, 257, + 258, 259, 260, 261, 262, 263, 264, 265, 0, 266, + 239, 240, 241, 0, 0, 0, 0, 0, 0, 0, + 0, 0, 0, 0, 0, 0, 242, 470, 243, 244, + 245, 246, 247, 248, 249, 250, 251, 252, 253, 254, + 255, 256, 257, 258, 259, 260, 261, 262, 263, 264, + 265, 0, 266, 0, 0, 0, 0, 0, 0, 0, + 239, 240, 241, 0, 0, 0, 0, 0, 0, 0, + 0, 0, 0, 0, 0, 0, 242, 471, 243, 244, + 245, 246, 247, 248, 249, 250, 251, 252, 253, 254, + 255, 256, 257, 258, 259, 260, 261, 262, 263, 264, + 265, 0, 266, 239, 240, 241, 0, 0, 0, 0, + 0, 0, 0, 0, 0, 0, 0, 0, 0, 242, + 476, 243, 244, 245, 246, 247, 248, 249, 250, 251, 252, 253, 254, 255, 256, 257, 258, 259, 260, 261, 262, 263, 264, 265, 0, 266, 239, 240, 241, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, - 0, 457, 242, 0, 243, 244, 245, 246, 247, 248, + 0, 0, 242, 484, 243, 244, 245, 246, 247, 248, 249, 250, 251, 252, 253, 254, 255, 256, 257, 258, 259, 260, 261, 262, 263, 264, 265, 0, 266, 0, - 0, 0, 0, 0, 0, 239, 240, 241, 0, 0, + 0, 0, 0, 0, 0, 0, 239, 240, 241, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, - 0, 242, 470, 243, 244, 245, 246, 247, 248, 249, - 250, 251, 252, 253, 254, 255, 256, 257, 258, 259, - 260, 261, 262, 263, 264, 265, 0, 266, 0, 239, + 0, 0, 242, 657, 243, 244, 245, 246, 247, 248, + 249, 250, 251, 252, 253, 254, 255, 256, 257, 258, + 259, 260, 261, 262, 263, 264, 265, 0, 266, 239, 240, 241, 0, 0, 0, 0, 0, 0, 0, 0, - 0, 0, 0, 0, 0, 242, 471, 243, 244, 245, + 0, 0, 0, 0, 0, 242, 858, 243, 244, 245, 246, 247, 248, 249, 250, 251, 252, 253, 254, 255, 256, 257, 258, 259, 260, 261, 262, 263, 264, 265, - 0, 266, 239, 240, 241, 0, 0, 0, 0, 0, - 0, 0, 0, 0, 0, 0, 0, 0, 242, 476, - 243, 244, 245, 246, 247, 248, 249, 250, 251, 252, - 253, 254, 255, 256, 257, 258, 259, 260, 261, 262, - 263, 264, 265, 0, 266, 0, 0, 0, 0, 0, - 0, 239, 240, 241, 0, 0, 0, 0, 0, 0, - 0, 0, 0, 0, 0, 0, 0, 242, 484, 243, - 244, 245, 246, 247, 248, 249, 250, 251, 252, 253, - 254, 255, 256, 257, 258, 259, 260, 261, 262, 263, - 264, 265, 0, 266, 0, 239, 240, 241, 0, 0, + 0, 266, 0, 0, 0, 0, 0, 0, 0, 0, + 0, 0, 0, 0, 0, 0, 0, 0, 0, 879, + 239, 240, 241, 0, 0, 0, 0, 0, 0, 0, + 0, 0, 0, 0, 302, 0, 242, 0, 243, 244, + 245, 246, 247, 248, 249, 250, 251, 252, 253, 254, + 255, 256, 257, 258, 259, 260, 261, 262, 263, 264, + 265, 0, 266, 239, 240, 241, 0, 0, 0, 0, + 0, 0, 0, 0, 0, 0, 0, 370, 0, 242, + 551, 243, 244, 245, 246, 247, 248, 249, 250, 251, + 252, 253, 254, 255, 256, 257, 258, 259, 260, 261, + 262, 263, 264, 265, 0, 266, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, - 0, 242, 657, 243, 244, 245, 246, 247, 248, 249, - 250, 251, 252, 253, 254, 255, 256, 257, 258, 259, - 260, 261, 262, 263, 264, 265, 0, 266, 239, 240, - 241, 0, 0, 0, 0, 0, 0, 0, 0, 0, - 0, 0, 0, 0, 242, 856, 243, 244, 245, 246, - 247, 248, 249, 250, 251, 252, 253, 254, 255, 256, - 257, 258, 259, 260, 261, 262, 263, 264, 265, 0, - 266, 0, 0, 0, 0, 0, 0, 0, 0, 0, - 0, 0, 0, 0, 0, 0, 239, 240, 241, 0, - 0, 0, 0, 0, 877, 0, 0, 0, 0, 0, - 0, 0, 242, 302, 243, 244, 245, 246, 247, 248, - 249, 250, 251, 252, 253, 254, 255, 256, 257, 258, - 259, 260, 261, 262, 263, 264, 265, 0, 266, 0, 0, 239, 240, 241, 0, 0, 0, 0, 0, 0, - 0, 0, 0, 0, 0, 0, 370, 242, 551, 243, + 0, 0, 0, 0, 0, 0, 0, 242, 572, 243, 244, 245, 246, 247, 248, 249, 250, 251, 252, 253, 254, 255, 256, 257, 258, 259, 260, 261, 262, 263, - 264, 265, 0, 266, 0, 0, 0, 0, 0, 0, - 0, 0, 0, 0, 0, 0, 0, 239, 240, 241, - 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, - 0, 0, 0, 242, 572, 243, 244, 245, 246, 247, + 264, 265, 0, 266, 240, 241, 0, 0, 0, 0, + 0, 0, 0, 0, 0, 0, 0, 0, 0, 242, + 0, 243, 244, 245, 246, 247, 248, 249, 250, 251, + 252, 253, 254, 255, 256, 257, 258, 259, 260, 261, + 262, 263, 264, 265, 241, 266, 0, 0, 0, 0, + 0, 0, 0, 0, 0, 0, 0, 0, 242, 0, + 243, 244, 245, 246, 247, 248, 249, 250, 251, 252, + 253, 254, 255, 256, 257, 258, 259, 260, 261, 262, + 263, 264, 265, 242, 266, 243, 244, 245, 246, 247, + 248, 249, 250, 251, 252, 253, 254, 255, 256, 257, + 258, 259, 260, 261, 262, 263, 264, 265, 0, 266, + 243, 244, 245, 246, 247, 248, 249, 250, 251, 252, + 253, 254, 255, 256, 257, 258, 259, 260, 261, 262, + 263, 264, 265, 0, 266, 245, 246, 247, 248, 249, + 250, 251, 252, 253, 254, 255, 256, 257, 258, 259, + 260, 261, 262, 263, 264, 265, 0, 266, 246, 247, 248, 249, 250, 251, 252, 253, 254, 255, 256, 257, 258, 259, 260, 261, 262, 263, 264, 265, 0, 266, - 240, 241, 0, 0, 0, 0, 0, 0, 0, 0, - 0, 0, 0, 0, 0, 242, 0, 243, 244, 245, - 246, 247, 248, 249, 250, 251, 252, 253, 254, 255, - 256, 257, 258, 259, 260, 261, 262, 263, 264, 265, - 241, 266, 0, 0, 0, 0, 0, 0, 0, 0, - 0, 0, 0, 0, 242, 0, 243, 244, 245, 246, - 247, 248, 249, 250, 251, 252, 253, 254, 255, 256, - 257, 258, 259, 260, 261, 262, 263, 264, 265, 242, - 266, 243, 244, 245, 246, 247, 248, 249, 250, 251, - 252, 253, 254, 255, 256, 257, 258, 259, 260, 261, - 262, 263, 264, 265, 0, 266, 243, 244, 245, 246, 247, 248, 249, 250, 251, 252, 253, 254, 255, 256, 257, 258, 259, 260, 261, 262, 263, 264, 265, 0, - 266, 246, 247, 248, 249, 250, 251, 252, 253, 254, - 255, 256, 257, 258, 259, 260, 261, 262, 263, 264, - 265, 0, 266, 247, 248, 249, 250, 251, 252, 253, - 254, 255, 256, 257, 258, 259, 260, 261, 262, 263, - 264, 265, 0, 266 + 266 }; static const yytype_int16 yycheck[] = { - 2, 126, 25, 505, 238, 25, 312, 49, 266, 14, - 15, 335, 25, 382, 2, 217, 477, 705, 2, 2, - 25, 710, 8, 176, 77, 349, 8, 8, 26, 8, - 8, 8, 8, 8, 8, 195, 538, 8, 80, 8, - 32, 8, 8, 65, 75, 8, 634, 52, 65, 283, - 95, 285, 54, 107, 38, 161, 65, 161, 95, 66, - 147, 65, 26, 752, 298, 299, 153, 75, 75, 74, - 77, 77, 77, 32, 308, 75, 0, 311, 312, 153, - 161, 75, 207, 77, 237, 77, 282, 147, 26, 163, - 164, 32, 461, 153, 463, 115, 32, 103, 53, 54, - 147, 161, 70, 71, 111, 159, 153, 160, 153, 14, - 15, 98, 99, 309, 161, 75, 153, 75, 77, 77, - 65, 123, 161, 711, 75, 147, 77, 65, 77, 161, - 161, 284, 75, 286, 77, 140, 77, 290, 291, 292, - 182, 77, 164, 150, 49, 153, 153, 164, 75, 169, - 77, 156, 161, 153, 161, 164, 161, 481, 65, 166, - 164, 485, 486, 487, 164, 163, 368, 389, 160, 391, - 14, 15, 166, 369, 75, 80, 162, 865, 165, 767, - 162, 25, 163, 164, 163, 163, 163, 163, 163, 163, - 150, 162, 197, 153, 163, 162, 162, 202, 659, 162, - 164, 160, 147, 75, 528, 210, 211, 212, 166, 214, - 899, 216, 164, 164, 77, 166, 161, 166, 238, 164, - 81, 77, 161, 166, 226, 238, 13, 14, 15, 16, - 17, 18, 19, 20, 21, 22, 23, 24, 147, 166, - 161, 593, 161, 266, 153, 122, 266, 75, 75, 77, - 77, 156, 161, 266, 75, 335, 153, 98, 99, 161, - 153, 266, 122, 283, 161, 285, 53, 54, 161, 349, - 283, 161, 285, 153, 32, 161, 600, 182, 298, 299, - 141, 161, 651, 111, 111, 298, 299, 611, 308, 75, - 295, 311, 312, 161, 552, 308, 147, 202, 311, 312, - 128, 306, 153, 166, 161, 210, 211, 212, 161, 214, - 166, 533, 156, 75, 666, 77, 668, 75, 164, 77, - 516, 147, 150, 150, 165, 153, 153, 153, 370, 150, - 335, 75, 153, 161, 161, 75, 338, 342, 166, 166, - 664, 47, 48, 49, 349, 51, 670, 653, 672, 111, - 163, 547, 548, 111, 97, 98, 99, 32, 202, 555, - 556, 162, 163, 559, 366, 65, 210, 211, 212, 147, - 214, 75, 75, 162, 163, 162, 163, 382, 366, 399, - 70, 71, 366, 366, 389, 161, 391, 889, 150, 394, - 714, 153, 150, 163, 164, 153, 97, 98, 99, 161, - 147, 481, 164, 161, 166, 485, 486, 629, 166, 65, - 563, 14, 15, 126, 65, 575, 65, 723, 578, 653, - 65, 65, 266, 103, 429, 129, 129, 153, 51, 589, - 153, 13, 14, 15, 16, 17, 18, 19, 20, 21, - 22, 23, 24, 167, 66, 769, 150, 150, 528, 153, - 153, 155, 155, 147, 147, 677, 461, 8, 463, 162, - 126, 153, 75, 147, 77, 370, 153, 87, 147, 793, - 692, 53, 54, 797, 479, 480, 481, 382, 802, 161, - 485, 486, 487, 75, 13, 163, 491, 471, 13, 723, - 814, 335, 476, 646, 647, 163, 75, 162, 111, 483, - 505, 506, 103, 508, 162, 349, 75, 512, 513, 162, - 111, 112, 113, 114, 115, 116, 518, 124, 678, 124, - 161, 845, 161, 528, 429, 530, 163, 851, 533, 552, - 518, 611, 552, 538, 518, 518, 167, 150, 382, 552, - 153, 167, 8, 95, 13, 869, 77, 552, 161, 75, - 161, 163, 162, 166, 104, 161, 461, 161, 463, 109, - 162, 111, 112, 113, 114, 115, 116, 117, 162, 8, - 13, 125, 14, 15, 479, 480, 798, 164, 800, 584, - 162, 163, 167, 25, 664, 429, 161, 161, 161, 161, - 670, 162, 672, 161, 161, 600, 601, 167, 162, 75, - 161, 506, 167, 508, 167, 167, 611, 512, 513, 167, - 153, 147, 75, 835, 13, 165, 163, 461, 13, 463, - 625, 781, 162, 162, 629, 153, 164, 8, 633, 162, - 8, 791, 65, 653, 714, 479, 480, 481, 65, 126, - 653, 485, 486, 487, 866, 163, 651, 127, 808, 13, - 163, 163, 812, 655, 127, 660, 658, 167, 818, 664, - 8, 821, 506, 665, 508, 670, 826, 672, 512, 513, - 830, 75, 677, 895, 164, 161, 77, 162, 162, 584, - 805, 163, 13, 104, 528, 162, 109, 692, 109, 769, - 111, 112, 113, 114, 115, 116, 117, 162, 162, 167, - 860, 162, 704, 723, 162, 162, 126, 163, 552, 714, - 723, 162, 162, 793, 156, 162, 75, 797, 26, 77, - 161, 13, 802, 44, 45, 46, 47, 48, 49, 167, - 51, 891, 167, 161, 814, 127, 77, 163, 162, 13, - 584, 163, 902, 13, 165, 163, 651, 731, 75, 751, - 164, 164, 13, 737, 738, 660, 600, 26, 763, 161, - 202, 72, 77, 163, 769, 845, 162, 611, 210, 211, - 212, 851, 214, 164, 13, 14, 15, 16, 17, 18, - 19, 20, 21, 22, 23, 24, 13, 77, 793, 869, - 13, 163, 797, 798, 164, 800, 780, 802, 111, 112, - 113, 114, 115, 116, 95, 165, 163, 651, 95, 814, - 154, 163, 147, 13, 53, 54, 660, 75, 163, 75, - 664, 161, 824, 77, 266, 827, 670, 26, 672, 163, - 835, 75, 75, 8, 162, 342, 506, 606, 606, 585, - 845, 660, 533, 738, 846, 633, 851, 763, 850, 347, - 527, 788, 854, 628, 683, 857, 81, 859, 641, 861, - 599, 866, 835, 600, 869, 202, 512, 773, 215, -1, - 714, 513, 856, -1, -1, -1, -1, -1, -1, 881, - -1, -1, -1, -1, 889, -1, -1, -1, -1, -1, - 895, -1, -1, -1, -1, 897, -1, -1, -1, -1, - -1, -1, 904, -1, -1, -1, -1, -1, -1, -1, - -1, -1, -1, -1, 4, 5, -1, 7, 8, 9, - 10, 11, 12, 13, 163, 769, 16, 17, 18, 19, - 20, 21, 22, 23, 24, -1, 26, -1, -1, -1, - 382, -1, 44, 45, -1, -1, -1, 37, -1, 793, - -1, -1, -1, 797, 44, 45, -1, -1, 802, 49, - -1, 51, -1, 65, -1, -1, -1, -1, -1, -1, - 814, 73, 74, 75, -1, -1, -1, -1, -1, -1, - -1, 83, -1, -1, -1, -1, -1, 429, -1, -1, - 80, 81, -1, -1, -1, -1, -1, -1, -1, -1, - -1, 845, -1, -1, -1, -1, -1, 851, -1, 111, - -1, -1, -1, -1, -1, -1, -1, -1, -1, 461, - -1, 463, -1, -1, -1, 869, -1, 129, 130, 131, - 132, 133, 134, -1, -1, -1, -1, 479, 480, 129, - -1, -1, 144, -1, -1, -1, -1, -1, 150, 151, - 152, 153, -1, -1, -1, 157, -1, -1, -1, -1, - -1, -1, -1, -1, 506, -1, 508, -1, -1, -1, - 512, 513, -1, -1, -1, -1, -1, -1, -1, -1, - -1, 171, -1, 173, -1, 175, 176, -1, -1, -1, - 180, 181, 182, -1, 184, 13, 14, 15, 16, 17, - 18, 19, 20, 21, 22, 23, 24, -1, -1, -1, - 552, 38, 39, 40, 41, 42, 43, 44, 45, 46, - 47, 48, 49, -1, 51, 215, -1, -1, -1, -1, - -1, -1, -1, -1, -1, 53, 54, 227, -1, 229, - -1, -1, 584, -1, -1, -1, -1, 237, -1, 239, - 240, 241, 242, 243, 244, 245, 246, 247, 248, 249, - 250, 251, 252, 253, 254, 255, 256, 257, 258, 259, - 260, 261, 262, 263, 264, 265, -1, 95, -1, -1, - 270, 271, 272, 273, 274, 275, 276, 277, 278, 279, - 280, 281, 282, -1, 284, -1, 286, 287, -1, -1, - 290, 291, 292, -1, -1, -1, -1, -1, -1, 651, - -1, -1, 302, -1, 304, -1, -1, -1, 660, 309, + 2, 126, 25, 49, 2, 25, 238, 312, 2, 14, + 15, 505, 195, 382, 477, 705, 266, 710, 2, 8, + 25, 8, 217, 176, 634, 8, 25, 8, 8, 8, + 282, 389, 8, 391, 80, 8, 75, 8, 77, 8, + 8, 8, 75, 65, 538, 8, 8, 52, 26, 65, + 81, 283, 54, 285, 38, 65, 65, 309, 77, 752, + 32, 26, 75, 77, 335, 95, 298, 299, 75, 74, + 77, 77, 77, 77, 32, 32, 308, 32, 349, 311, + 312, 0, 207, 95, 237, 763, 161, 75, 161, 77, + 161, 26, 461, 161, 463, 115, 153, 147, 75, 103, + 77, 711, 161, 153, 335, 77, 163, 164, 25, 147, + 141, 161, 98, 99, 65, 153, 161, 369, 349, 77, + 77, 123, 77, 153, 77, 147, 161, 166, 161, 807, + 65, 284, 75, 286, 77, 140, 182, 290, 291, 292, + 153, 153, 164, 161, 147, 65, 160, 166, 164, 169, + 153, 156, 161, 164, 164, 164, 161, 767, 75, 166, + 166, 13, 14, 15, 16, 17, 18, 19, 20, 21, + 22, 23, 24, 368, 163, 533, 163, 867, 166, 165, + 163, 164, 163, 163, 163, 107, 164, 163, 160, 166, + 163, 162, 197, 162, 162, 162, 659, 202, 163, 162, + 162, 53, 54, 160, 75, 210, 211, 212, 901, 214, + 481, 216, 129, 166, 485, 486, 487, 153, 238, 14, + 15, 164, 75, 166, 226, 161, 153, 147, 75, 32, + 25, 66, 122, 150, 161, 122, 153, 159, 155, 238, + 75, 161, 77, 266, 164, 147, 266, 98, 99, 161, + 481, 153, 593, 161, 485, 486, 147, 528, 153, 161, + 75, 266, 153, 283, 516, 285, 161, 266, 75, 147, + 161, 629, 75, 161, 77, 153, 111, 161, 298, 299, + 53, 54, 651, 75, 283, 161, 285, 75, 308, 77, + 295, 311, 312, 162, 163, 547, 548, 528, 161, 298, + 299, 306, 552, 555, 556, 164, 153, 559, 111, 308, + 162, 163, 311, 312, 165, 150, 75, 164, 153, 677, + 75, 14, 15, 111, 370, 666, 161, 668, 75, 600, + 335, 166, 162, 163, 692, 150, 338, 342, 153, 163, + 611, 70, 71, 150, 349, 32, 153, 150, 653, 65, + 153, 75, 161, 47, 48, 49, 49, 51, 161, 70, + 71, 156, 150, 166, 366, 153, 163, 164, 366, 147, + 129, 147, 366, 161, 14, 15, 164, 382, 166, 399, + 611, 65, 366, 126, 389, 65, 391, 80, 65, 394, + 65, 150, 575, 664, 153, 578, 155, 891, 65, 670, + 103, 672, 153, 162, 153, 129, 589, 202, 51, 66, + 563, 97, 98, 99, 147, 210, 211, 212, 723, 214, + 147, 653, 167, 8, 429, 153, 150, 153, 147, 153, + 161, 155, 147, 664, 97, 98, 99, 126, 87, 670, + 798, 672, 800, 714, 13, 14, 15, 16, 17, 18, + 19, 20, 21, 22, 23, 24, 461, 75, 463, 163, + 13, 163, 13, 156, 111, 112, 113, 114, 115, 116, + 75, 266, 77, 75, 479, 480, 481, 75, 836, 77, + 485, 486, 487, 714, 53, 54, 491, 471, 162, 182, + 162, 723, 476, 646, 647, 678, 162, 75, 769, 483, + 505, 506, 124, 508, 124, 161, 111, 512, 513, 202, + 868, 161, 167, 111, 167, 163, 518, 210, 211, 212, + 518, 214, 793, 528, 518, 530, 797, 8, 533, 552, + 128, 802, 552, 538, 518, 95, 13, 75, 769, 897, + 335, 75, 77, 77, 815, 150, 161, 552, 153, 162, + 161, 163, 150, 552, 349, 153, 161, 8, 162, 162, + 161, 166, 793, 161, 13, 164, 797, 125, 166, 161, + 167, 802, 161, 161, 161, 846, 162, 111, 161, 584, + 161, 75, 853, 167, 815, 167, 161, 382, 167, 162, + 167, 167, 153, 162, 163, 600, 601, 147, 781, 75, + 871, 103, 13, 13, 163, 162, 611, 162, 791, 111, + 112, 113, 114, 115, 116, 846, 150, 153, 164, 153, + 625, 8, 853, 162, 629, 8, 809, 161, 633, 65, + 813, 65, 166, 653, 429, 126, 819, 163, 127, 822, + 871, 13, 163, 163, 827, 127, 651, 8, 831, 167, + 75, 161, 164, 655, 653, 660, 658, 162, 162, 664, + 163, 162, 109, 665, 77, 670, 461, 672, 463, 13, + 162, 126, 677, 163, 162, 162, 162, 370, 162, 862, + 805, 75, 167, 162, 479, 480, 481, 692, 162, 382, + 485, 486, 487, 44, 45, 46, 47, 48, 49, 162, + 51, 77, 704, 723, 26, 161, 13, 167, 167, 714, + 893, 506, 162, 508, 77, 161, 13, 512, 513, 163, + 163, 904, 163, 127, 723, 13, 75, 164, 13, 164, + 104, 161, 26, 528, 72, 109, 429, 111, 112, 113, + 114, 115, 116, 117, 163, 162, 164, 731, 77, 751, + 13, 77, 13, 737, 738, 163, 95, 552, 763, 164, + 95, 163, 165, 154, 769, 163, 147, 13, 461, 75, + 463, 13, 14, 15, 16, 17, 18, 19, 20, 21, + 22, 23, 24, 163, 75, 77, 479, 480, 793, 584, + 161, 165, 797, 798, 26, 800, 780, 802, 163, 75, + 75, 8, 807, 14, 15, 600, 162, 606, 606, 342, + 815, 53, 54, 506, 25, 508, 611, 585, 506, 512, + 513, 533, 660, 825, 738, 633, 828, 104, 788, 527, + 347, 836, 109, 81, 111, 112, 113, 114, 115, 116, + 117, 846, 628, 836, 683, 641, 848, 600, 853, 599, + 852, 512, 202, 95, 856, 773, 651, 859, 215, 861, + -1, 863, 513, 868, -1, 660, 871, -1, -1, 664, + -1, -1, -1, -1, 858, 670, -1, 672, -1, -1, + -1, 883, -1, -1, -1, -1, 891, -1, 165, -1, + -1, 584, 897, -1, -1, -1, -1, 899, -1, -1, + -1, -1, -1, -1, 906, -1, -1, -1, 4, 5, + -1, 7, 8, 9, 10, 11, 12, 13, -1, 714, + 16, 17, 18, 19, 20, 21, 22, 23, 24, -1, + 26, -1, -1, -1, -1, -1, -1, -1, -1, 44, + 45, 37, -1, -1, -1, 156, -1, -1, 44, 45, + -1, -1, -1, 49, -1, 51, -1, -1, 651, -1, + 65, -1, -1, -1, -1, -1, -1, 660, 73, 74, + 75, -1, -1, -1, 769, -1, -1, -1, 83, -1, + -1, -1, -1, -1, 80, 81, -1, -1, -1, -1, + -1, 202, -1, -1, -1, -1, -1, -1, 793, 210, + 211, 212, 797, 214, -1, -1, 111, 802, 38, 39, + 40, 41, 42, 43, 44, 45, 46, 47, 48, 49, + 815, 51, -1, -1, 129, 130, 131, 132, 133, 134, + -1, -1, -1, 129, -1, -1, -1, -1, -1, 144, + -1, -1, -1, -1, -1, 150, 151, 152, 153, -1, + -1, 846, 157, -1, -1, 266, -1, -1, 853, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, - 320, 13, 14, 15, 16, 17, 18, 19, 20, 21, - 22, 23, 24, -1, -1, -1, -1, -1, -1, -1, - -1, -1, -1, -1, 344, -1, -1, -1, -1, -1, - -1, -1, -1, -1, -1, 3, 4, 5, 6, 7, - -1, 53, 54, -1, 12, -1, -1, -1, -1, 369, - 370, -1, -1, -1, -1, -1, -1, -1, -1, -1, - -1, -1, -1, 383, 32, -1, -1, -1, -1, -1, + -1, 9, 10, 11, -1, 171, 871, 173, -1, 175, + 176, -1, -1, -1, 180, 181, 182, 25, 184, 27, + 28, 29, 30, 31, 32, 33, 34, 35, 36, 37, + 38, 39, 40, 41, 42, 43, 44, 45, 46, 47, + 48, 49, -1, 51, -1, -1, -1, -1, -1, 215, + -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, + -1, 227, -1, 229, -1, -1, -1, -1, -1, -1, + -1, 237, -1, 239, 240, 241, 242, 243, 244, 245, + 246, 247, 248, 249, 250, 251, 252, 253, 254, 255, + 256, 257, 258, 259, 260, 261, 262, 263, 264, 265, + -1, 382, -1, -1, 270, 271, 272, 273, 274, 275, + 276, 277, 278, 279, 280, 281, 282, -1, 284, -1, + 286, 287, -1, -1, 290, 291, 292, -1, -1, -1, + -1, -1, -1, -1, -1, -1, 302, -1, 304, -1, + -1, -1, -1, 309, -1, -1, -1, -1, 429, -1, + -1, -1, -1, -1, 320, -1, -1, 165, -1, -1, + 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, + 23, 24, -1, -1, -1, -1, -1, -1, 344, -1, + 461, -1, 463, 13, 14, 15, 16, 17, 18, 19, + 20, 21, 22, 23, 24, -1, -1, -1, 479, 480, + 53, 54, -1, 369, 370, 3, 4, 5, 6, 7, + -1, -1, -1, -1, 12, -1, -1, 383, -1, -1, + -1, -1, -1, 53, 54, 506, -1, 508, -1, -1, + -1, 512, 513, -1, 32, -1, -1, 403, -1, -1, -1, -1, -1, -1, -1, -1, 44, 45, -1, -1, - -1, -1, 50, 403, 52, 53, 54, 55, 56, 57, + -1, -1, 50, -1, 52, 53, 54, 55, 56, 57, -1, -1, 60, 61, 62, 63, 64, 65, 66, 67, - 68, -1, -1, -1, -1, 73, 74, 75, 76, 77, - -1, -1, -1, -1, -1, 83, 84, -1, -1, -1, - -1, -1, -1, -1, -1, -1, -1, 447, -1, -1, - -1, -1, -1, -1, -1, 103, -1, -1, -1, -1, - -1, -1, -1, 111, -1, -1, -1, -1, -1, -1, - -1, 119, 120, -1, -1, 475, -1, 477, 478, -1, + 68, 552, -1, -1, -1, 73, 74, 75, 76, 77, + -1, 447, -1, -1, -1, 83, 84, -1, -1, -1, + -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, + -1, -1, -1, 584, -1, 103, -1, -1, -1, 475, + 163, 477, 478, 111, -1, -1, -1, -1, -1, -1, + -1, 119, 120, -1, -1, -1, -1, -1, -1, -1, 128, 129, 130, 131, 132, 133, 134, -1, -1, -1, -1, -1, -1, -1, -1, -1, 144, -1, -1, -1, - -1, -1, 150, 151, 152, 153, -1, -1, -1, 157, - 158, -1, 160, 161, -1, -1, 516, -1, 166, -1, - -1, -1, -1, -1, -1, -1, -1, 527, 33, 34, - 35, 36, 37, 38, 39, 40, 41, 42, 43, 44, - 45, 46, 47, 48, 49, -1, 51, 547, 548, -1, - -1, 551, -1, -1, -1, 555, 556, -1, -1, 559, - -1, -1, -1, 563, 564, -1, -1, -1, -1, -1, - -1, -1, 572, -1, -1, -1, -1, -1, -1, -1, + 516, -1, 150, 151, 152, 153, -1, -1, -1, 157, + 158, 527, 160, 161, -1, -1, -1, -1, 166, -1, + 651, -1, -1, -1, -1, -1, -1, -1, -1, 660, + -1, 547, 548, -1, -1, 551, -1, -1, -1, 555, + 556, -1, -1, 559, -1, -1, -1, 563, 564, -1, + -1, -1, -1, -1, -1, -1, 572, -1, -1, -1, + -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, + -1, -1, -1, -1, -1, 3, 4, 5, 6, 7, + -1, -1, -1, -1, 12, 33, 34, 35, 36, 37, + 38, 39, 40, 41, 42, 43, 44, 45, 46, 47, + 48, 49, 618, 51, -1, -1, -1, -1, -1, -1, + -1, -1, -1, -1, -1, -1, 44, 45, -1, -1, + -1, -1, 50, -1, 52, 53, 54, 55, 56, 57, + 646, 647, 60, 61, 62, 63, 64, 65, 66, 67, + 68, 69, -1, 659, -1, 73, 74, 75, 76, 77, + -1, 79, -1, -1, -1, 83, 84, 85, 86, 87, + -1, 89, -1, 91, -1, 93, -1, -1, 96, -1, + -1, -1, 100, 101, 102, 103, 104, 105, 106, -1, + 108, 109, 110, 111, 112, 113, -1, -1, -1, -1, + 118, 119, 120, 121, 122, 123, -1, -1, -1, -1, + 128, 129, 130, 131, 132, 133, 134, -1, -1, 137, + 138, -1, 140, -1, -1, -1, 144, 3, 4, 5, + 6, 7, 150, 151, 152, 153, 12, 743, 156, 157, + 158, -1, -1, 161, -1, 163, 164, 165, 166, 33, + 34, 35, 36, 37, 38, 39, 40, 41, 42, 43, + 44, 45, 46, 47, 48, 49, -1, 51, 44, 45, + -1, 777, -1, -1, 50, -1, 52, 53, 54, 55, + 56, 57, -1, -1, 60, 61, 62, 63, 64, 65, + 66, 67, 68, 69, -1, -1, -1, 73, 74, 75, + 76, 77, -1, 79, -1, -1, -1, 83, 84, 85, + 86, 87, 818, 89, -1, 91, -1, 93, -1, -1, + 96, -1, -1, -1, 100, 101, 102, 103, 104, 105, + 106, -1, 108, 109, 110, 111, 112, 113, -1, -1, + -1, -1, 118, 119, 120, 121, 122, 123, -1, -1, + -1, -1, 128, 129, 130, 131, 132, 133, 134, -1, + -1, 137, 138, -1, 140, -1, -1, -1, 144, 3, + 4, 5, 6, 7, 150, 151, 152, 153, 12, -1, + 156, 157, 158, -1, -1, 161, -1, 163, 164, 165, + 166, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, - -1, 3, 4, 5, 6, 7, -1, -1, -1, -1, - 12, 33, 34, 35, 36, 37, 38, 39, 40, 41, - 42, 43, 44, 45, 46, 47, 48, 49, 618, 51, + 44, 45, -1, -1, -1, -1, 50, -1, 52, 53, + 54, 55, 56, 57, -1, -1, 60, 61, 62, 63, + 64, 65, 66, 67, 68, 69, -1, -1, -1, 73, + 74, 75, 76, 77, -1, 79, -1, -1, -1, 83, + 84, 85, 86, 87, -1, 89, -1, 91, -1, 93, + -1, -1, 96, -1, -1, -1, 100, 101, 102, 103, + 104, 105, 106, -1, 108, 109, 110, 111, 112, 113, + -1, -1, -1, -1, 118, 119, 120, 121, 122, 123, + -1, -1, -1, -1, 128, 129, 130, 131, 132, 133, + 134, -1, -1, 137, 138, -1, 140, -1, -1, -1, + 144, 3, 4, 5, 6, 7, 150, 151, 152, 153, + 12, -1, 156, 157, 158, -1, -1, 161, -1, 163, + 164, -1, 166, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 44, 45, -1, -1, -1, -1, 50, -1, - 52, 53, 54, 55, 56, 57, 646, 647, 60, 61, - 62, 63, 64, 65, 66, 67, 68, 69, -1, 659, - -1, 73, 74, 75, 76, 77, -1, 79, -1, -1, - -1, 83, 84, 85, 86, 87, -1, 89, -1, 91, - -1, 93, -1, -1, 96, -1, -1, -1, 100, 101, - 102, 103, 104, 105, 106, -1, 108, 109, 110, 111, - 112, 113, -1, -1, -1, -1, 118, 119, 120, 121, - 122, 123, -1, -1, -1, -1, 128, 129, 130, 131, - 132, 133, 134, -1, -1, 137, 138, -1, 140, -1, - -1, -1, 144, -1, -1, -1, -1, -1, 150, 151, - 152, 153, -1, 743, 156, 157, 158, -1, -1, 161, - -1, 163, 164, 165, 166, -1, -1, -1, -1, -1, - -1, 3, 4, 5, 6, 7, -1, -1, -1, -1, - 12, -1, -1, -1, -1, -1, -1, 777, 29, 30, - 31, 32, 33, 34, 35, 36, 37, 38, 39, 40, - 41, 42, 43, 44, 45, 46, 47, 48, 49, -1, - 51, -1, 44, 45, -1, -1, -1, -1, 50, -1, - 52, 53, 54, 55, 56, 57, -1, 817, 60, 61, + 52, 53, 54, 55, 56, 57, -1, -1, 60, 61, 62, 63, 64, 65, 66, 67, 68, 69, -1, -1, -1, 73, 74, 75, 76, 77, -1, 79, -1, -1, -1, 83, 84, 85, 86, 87, -1, 89, -1, 91, -1, 93, -1, -1, 96, -1, -1, -1, 100, 101, - 102, 103, 104, 105, 106, -1, 108, 109, 110, 111, + 102, 103, -1, 105, 106, -1, 108, -1, 110, 111, 112, 113, -1, -1, -1, -1, 118, 119, 120, 121, 122, 123, -1, -1, -1, -1, 128, 129, 130, 131, 132, 133, 134, -1, -1, 137, 138, -1, 140, -1, -1, -1, 144, 3, 4, 5, 6, 7, 150, 151, 152, 153, 12, -1, 156, 157, 158, -1, -1, 161, -1, 163, 164, 165, 166, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 44, 45, -1, -1, -1, -1, 50, -1, 52, 53, 54, 55, 56, 57, -1, -1, 60, 61, 62, 63, 64, 65, 66, 67, 68, 69, -1, -1, -1, 73, 74, 75, 76, 77, -1, 79, -1, -1, -1, 83, 84, 85, 86, 87, -1, 89, -1, 91, -1, 93, -1, -1, 96, -1, -1, -1, - 100, 101, 102, 103, 104, 105, 106, -1, 108, 109, + 100, 101, 102, 103, -1, 105, 106, -1, 108, -1, 110, 111, 112, 113, -1, -1, -1, -1, 118, 119, 120, 121, 122, 123, -1, -1, -1, -1, 128, 129, 130, 131, 132, 133, 134, -1, -1, 137, 138, -1, 140, -1, -1, -1, 144, 3, 4, 5, 6, 7, 150, 151, 152, 153, 12, -1, 156, 157, 158, -1, - -1, 161, -1, 163, 164, -1, 166, -1, -1, -1, + -1, 161, -1, 163, 164, 165, 166, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 44, 45, -1, -1, -1, -1, 50, -1, 52, 53, 54, 55, 56, 57, -1, -1, 60, 61, 62, 63, 64, 65, 66, 67, 68, 69, -1, -1, -1, 73, 74, 75, 76, 77, -1, 79, -1, -1, -1, 83, 84, 85, 86, 87, - -1, 89, -1, 91, -1, 93, -1, -1, 96, -1, + 88, 89, -1, 91, -1, 93, -1, -1, 96, -1, -1, -1, 100, 101, 102, 103, -1, 105, 106, -1, 108, -1, 110, 111, 112, 113, -1, -1, -1, -1, 118, 119, 120, 121, 122, 123, -1, -1, -1, -1, 128, 129, 130, 131, 132, 133, 134, -1, -1, 137, 138, -1, 140, -1, -1, -1, 144, 3, 4, 5, 6, 7, 150, 151, 152, 153, 12, -1, 156, 157, - 158, -1, -1, 161, -1, 163, 164, 165, 166, -1, + 158, -1, -1, 161, -1, 163, 164, -1, 166, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 44, 45, -1, -1, -1, -1, 50, -1, 52, 53, 54, 55, 56, 57, -1, -1, 60, 61, 62, 63, 64, 65, 66, 67, 68, 69, -1, -1, -1, 73, 74, 75, 76, 77, -1, 79, -1, -1, -1, 83, 84, 85, - 86, 87, -1, 89, -1, 91, -1, 93, -1, -1, + 86, 87, -1, 89, -1, 91, -1, 93, 94, -1, 96, -1, -1, -1, 100, 101, 102, 103, -1, 105, 106, -1, 108, -1, 110, 111, 112, 113, -1, -1, -1, -1, 118, 119, 120, 121, 122, 123, -1, -1, -1, -1, 128, 129, 130, 131, 132, 133, 134, -1, -1, 137, 138, -1, 140, -1, -1, -1, 144, 3, 4, 5, 6, 7, 150, 151, 152, 153, 12, -1, - 156, 157, 158, -1, -1, 161, -1, 163, 164, 165, + 156, 157, 158, -1, -1, 161, -1, 163, 164, -1, 166, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 44, 45, -1, -1, -1, -1, 50, -1, 52, 53, 54, 55, 56, 57, -1, -1, 60, 61, 62, 63, 64, 65, 66, 67, 68, 69, -1, -1, -1, 73, 74, 75, 76, 77, -1, 79, -1, -1, -1, 83, - 84, 85, 86, 87, 88, 89, -1, 91, -1, 93, + 84, 85, 86, 87, -1, 89, -1, 91, -1, 93, -1, -1, 96, -1, -1, -1, 100, 101, 102, 103, -1, 105, 106, -1, 108, -1, 110, 111, 112, 113, -1, -1, -1, -1, 118, 119, 120, 121, 122, 123, -1, -1, -1, -1, 128, 129, 130, 131, 132, 133, 134, -1, -1, 137, 138, -1, 140, -1, -1, -1, 144, 3, 4, 5, 6, 7, 150, 151, 152, 153, 12, -1, 156, 157, 158, -1, -1, 161, -1, 163, - 164, -1, 166, -1, -1, -1, -1, -1, -1, -1, + 164, 165, 166, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 44, 45, -1, -1, -1, -1, 50, -1, 52, 53, 54, 55, 56, 57, -1, -1, 60, 61, 62, 63, 64, 65, 66, 67, 68, 69, -1, -1, -1, 73, 74, 75, 76, 77, -1, 79, -1, -1, -1, 83, 84, 85, 86, 87, -1, 89, -1, 91, - -1, 93, 94, -1, 96, -1, -1, -1, 100, 101, + 92, 93, -1, -1, 96, -1, -1, -1, 100, 101, 102, 103, -1, 105, 106, -1, 108, -1, 110, 111, 112, 113, -1, -1, -1, -1, 118, 119, 120, 121, 122, 123, -1, -1, -1, -1, 128, 129, 130, 131, 132, 133, 134, -1, -1, 137, 138, -1, 140, -1, -1, -1, 144, 3, 4, 5, 6, 7, 150, 151, 152, 153, 12, -1, 156, 157, 158, -1, -1, 161, -1, 163, 164, -1, 166, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 44, 45, -1, -1, -1, -1, 50, -1, 52, 53, 54, 55, 56, 57, -1, -1, 60, 61, 62, 63, 64, 65, 66, 67, 68, 69, -1, -1, -1, 73, 74, 75, 76, 77, -1, 79, -1, -1, -1, 83, 84, 85, 86, 87, -1, 89, -1, 91, -1, 93, -1, -1, 96, -1, -1, -1, 100, 101, 102, 103, -1, 105, 106, -1, 108, -1, 110, 111, 112, 113, -1, -1, -1, -1, 118, 119, 120, 121, 122, 123, -1, -1, -1, -1, 128, 129, 130, 131, 132, 133, 134, -1, -1, 137, 138, -1, 140, -1, -1, -1, 144, 3, 4, 5, 6, 7, 150, 151, 152, 153, 12, -1, 156, 157, 158, -1, -1, 161, -1, 163, 164, 165, 166, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 44, 45, -1, -1, -1, -1, 50, -1, 52, 53, 54, 55, 56, 57, -1, -1, 60, 61, 62, 63, 64, 65, 66, 67, 68, 69, -1, -1, -1, 73, 74, 75, 76, 77, -1, 79, -1, -1, -1, 83, 84, 85, 86, 87, - -1, 89, -1, 91, 92, 93, -1, -1, 96, -1, + -1, 89, -1, 91, -1, 93, -1, -1, 96, -1, -1, -1, 100, 101, 102, 103, -1, 105, 106, -1, 108, -1, 110, 111, 112, 113, -1, -1, -1, -1, 118, 119, 120, 121, 122, 123, -1, -1, -1, -1, 128, 129, 130, 131, 132, 133, 134, -1, -1, 137, 138, -1, 140, -1, -1, -1, 144, 3, 4, 5, 6, 7, 150, 151, 152, 153, 12, -1, 156, 157, - 158, -1, -1, 161, -1, 163, 164, -1, 166, -1, + 158, -1, -1, 161, -1, 163, 164, 165, 166, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 44, 45, -1, -1, -1, -1, 50, -1, 52, 53, 54, 55, 56, 57, -1, -1, 60, 61, 62, 63, 64, 65, 66, 67, 68, 69, -1, -1, -1, 73, 74, 75, 76, 77, -1, 79, -1, -1, -1, 83, 84, 85, - 86, 87, -1, 89, -1, 91, -1, 93, -1, -1, + 86, 87, -1, 89, 90, 91, -1, 93, -1, -1, 96, -1, -1, -1, 100, 101, 102, 103, -1, 105, 106, -1, 108, -1, 110, 111, 112, 113, -1, -1, -1, -1, 118, 119, 120, 121, 122, 123, -1, -1, -1, -1, 128, 129, 130, 131, 132, 133, 134, -1, -1, 137, 138, -1, 140, -1, -1, -1, 144, 3, 4, 5, 6, 7, 150, 151, 152, 153, 12, -1, - 156, 157, 158, -1, -1, 161, -1, 163, 164, 165, + 156, 157, 158, -1, -1, 161, -1, 163, 164, -1, 166, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 44, 45, -1, -1, -1, -1, 50, -1, 52, 53, 54, 55, 56, 57, -1, -1, 60, 61, 62, 63, 64, 65, 66, 67, 68, 69, -1, -1, -1, 73, 74, 75, 76, 77, -1, 79, -1, -1, -1, 83, 84, 85, 86, 87, -1, 89, -1, 91, -1, 93, -1, -1, 96, -1, -1, -1, 100, 101, 102, 103, -1, 105, 106, -1, 108, -1, 110, 111, 112, 113, -1, -1, -1, -1, 118, 119, 120, 121, 122, 123, -1, -1, -1, -1, 128, 129, 130, 131, 132, 133, 134, -1, -1, 137, 138, -1, 140, -1, -1, -1, 144, 3, 4, 5, 6, 7, 150, 151, 152, 153, 12, -1, 156, 157, 158, -1, -1, 161, -1, 163, 164, 165, 166, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 44, 45, -1, -1, -1, -1, 50, -1, 52, 53, 54, 55, 56, 57, -1, -1, 60, 61, 62, 63, 64, 65, 66, 67, 68, 69, -1, -1, -1, 73, 74, 75, 76, 77, -1, 79, -1, -1, - -1, 83, 84, 85, 86, 87, -1, 89, 90, 91, + -1, 83, 84, 85, 86, 87, -1, 89, -1, 91, -1, 93, -1, -1, 96, -1, -1, -1, 100, 101, 102, 103, -1, 105, 106, -1, 108, -1, 110, 111, 112, 113, -1, -1, -1, -1, 118, 119, 120, 121, 122, 123, -1, -1, -1, -1, 128, 129, 130, 131, 132, 133, 134, -1, -1, 137, 138, -1, 140, -1, -1, -1, 144, 3, 4, 5, 6, 7, 150, 151, 152, 153, 12, -1, 156, 157, 158, -1, -1, 161, - -1, 163, 164, -1, 166, -1, -1, -1, -1, -1, + -1, 163, 164, 165, 166, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 44, 45, -1, -1, -1, -1, 50, -1, 52, 53, 54, 55, 56, 57, -1, -1, 60, 61, 62, 63, 64, 65, 66, 67, 68, 69, -1, -1, -1, 73, 74, 75, 76, 77, -1, 79, -1, -1, -1, 83, 84, 85, 86, 87, -1, 89, -1, 91, -1, 93, -1, -1, 96, -1, -1, -1, 100, 101, 102, 103, -1, 105, 106, -1, 108, -1, 110, 111, 112, 113, -1, -1, -1, -1, 118, 119, 120, 121, 122, 123, -1, -1, -1, -1, 128, 129, 130, 131, 132, 133, 134, -1, -1, 137, 138, -1, 140, -1, -1, -1, 144, 3, 4, 5, 6, 7, 150, 151, 152, 153, 12, -1, 156, 157, 158, -1, -1, 161, -1, 163, 164, 165, 166, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 44, 45, -1, -1, -1, -1, 50, -1, 52, 53, 54, 55, 56, 57, -1, -1, 60, 61, 62, 63, 64, 65, 66, 67, 68, 69, -1, -1, -1, 73, 74, 75, 76, 77, -1, 79, -1, -1, -1, 83, 84, 85, 86, 87, -1, 89, -1, 91, -1, 93, -1, -1, 96, -1, -1, -1, 100, 101, 102, 103, -1, 105, 106, -1, 108, -1, 110, 111, 112, 113, -1, -1, -1, -1, 118, 119, 120, 121, 122, 123, -1, -1, -1, -1, 128, 129, 130, 131, 132, 133, 134, -1, -1, 137, 138, -1, 140, -1, -1, -1, 144, 3, 4, 5, 6, 7, 150, 151, 152, 153, 12, -1, 156, 157, - 158, -1, -1, 161, -1, 163, 164, 165, 166, -1, - -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, + 158, -1, -1, 161, -1, 163, 164, -1, 166, -1, + 26, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 44, 45, -1, -1, -1, -1, 50, -1, 52, 53, 54, 55, 56, 57, -1, -1, 60, 61, 62, 63, 64, 65, 66, 67, 68, 69, -1, -1, -1, 73, 74, 75, 76, 77, -1, 79, -1, -1, -1, 83, 84, 85, 86, 87, -1, 89, -1, 91, -1, 93, -1, -1, 96, -1, -1, -1, 100, 101, 102, 103, -1, 105, - 106, -1, 108, -1, 110, 111, 112, 113, -1, -1, - -1, -1, 118, 119, 120, 121, 122, 123, -1, -1, + 106, -1, 108, -1, 110, 111, -1, -1, -1, -1, + -1, -1, 118, 119, 120, -1, -1, -1, -1, -1, -1, -1, 128, 129, 130, 131, 132, 133, 134, -1, -1, 137, 138, -1, 140, -1, -1, -1, 144, 3, 4, 5, 6, 7, 150, 151, 152, 153, 12, -1, - 156, 157, 158, -1, -1, 161, -1, 163, 164, 165, - 166, -1, -1, -1, -1, -1, -1, -1, -1, -1, + -1, 157, 158, -1, -1, 161, -1, 163, 164, -1, + 166, -1, 26, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 44, 45, -1, -1, -1, -1, 50, -1, 52, 53, 54, 55, 56, 57, -1, -1, 60, 61, 62, 63, 64, 65, 66, 67, 68, 69, -1, -1, -1, 73, 74, 75, 76, 77, -1, 79, -1, -1, -1, 83, 84, 85, 86, 87, -1, 89, -1, 91, -1, 93, -1, -1, 96, -1, -1, -1, 100, 101, 102, 103, - -1, 105, 106, -1, 108, -1, 110, 111, 112, 113, - -1, -1, -1, -1, 118, 119, 120, 121, 122, 123, + -1, 105, 106, -1, 108, -1, 110, 111, -1, -1, + -1, -1, -1, -1, 118, 119, 120, -1, -1, -1, -1, -1, -1, -1, 128, 129, 130, 131, 132, 133, 134, -1, -1, 137, 138, -1, 140, -1, -1, -1, 144, 3, 4, 5, 6, 7, 150, 151, 152, 153, - 12, -1, 156, 157, 158, -1, -1, 161, -1, 163, + 12, -1, -1, 157, 158, -1, -1, 161, -1, 163, 164, -1, 166, -1, 26, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 44, 45, -1, -1, -1, -1, 50, -1, 52, 53, 54, 55, 56, 57, -1, -1, 60, 61, 62, 63, 64, 65, 66, 67, 68, 69, -1, -1, -1, 73, 74, 75, 76, 77, -1, 79, -1, -1, -1, 83, 84, 85, 86, 87, -1, 89, -1, 91, -1, 93, -1, -1, 96, -1, -1, -1, 100, 101, 102, 103, -1, 105, 106, -1, 108, -1, 110, 111, -1, -1, -1, -1, -1, -1, 118, 119, 120, -1, -1, -1, -1, -1, -1, -1, 128, 129, 130, 131, 132, 133, 134, -1, -1, 137, 138, -1, 140, -1, -1, -1, 144, 3, 4, 5, 6, 7, 150, 151, 152, 153, 12, -1, -1, 157, 158, -1, -1, 161, -1, 163, 164, -1, 166, -1, 26, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 44, 45, -1, -1, -1, -1, 50, -1, 52, 53, 54, 55, 56, 57, -1, -1, 60, 61, 62, 63, 64, 65, 66, 67, 68, 69, -1, -1, -1, 73, 74, 75, 76, 77, -1, 79, -1, -1, -1, 83, 84, 85, 86, 87, -1, 89, -1, 91, -1, 93, -1, -1, 96, -1, -1, -1, 100, 101, 102, 103, -1, 105, 106, -1, 108, -1, 110, 111, -1, -1, -1, -1, -1, -1, 118, 119, 120, -1, -1, -1, -1, -1, -1, -1, 128, 129, 130, 131, 132, 133, 134, -1, -1, 137, 138, -1, 140, -1, -1, -1, 144, 3, 4, 5, 6, 7, 150, 151, 152, 153, 12, -1, -1, 157, 158, -1, -1, 161, -1, 163, 164, -1, 166, -1, 26, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 44, 45, -1, -1, -1, -1, 50, -1, 52, 53, 54, 55, 56, 57, -1, -1, 60, 61, 62, 63, 64, 65, 66, 67, 68, 69, -1, -1, -1, 73, 74, 75, 76, 77, -1, 79, -1, -1, -1, 83, 84, 85, 86, 87, -1, 89, -1, 91, -1, 93, -1, -1, 96, -1, -1, -1, 100, 101, 102, 103, -1, 105, 106, -1, 108, -1, 110, 111, -1, -1, -1, -1, -1, -1, 118, 119, 120, -1, -1, -1, -1, -1, -1, -1, 128, 129, 130, 131, 132, 133, 134, -1, -1, 137, 138, -1, 140, -1, -1, -1, 144, 3, 4, 5, 6, 7, 150, 151, 152, 153, 12, -1, -1, 157, 158, -1, -1, 161, -1, 163, 164, -1, 166, -1, - 26, -1, -1, -1, -1, -1, -1, -1, -1, -1, + -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 44, 45, -1, -1, -1, -1, 50, -1, 52, 53, 54, 55, 56, 57, -1, -1, 60, 61, 62, 63, 64, 65, 66, 67, 68, 69, -1, -1, -1, 73, 74, 75, 76, 77, -1, 79, -1, -1, -1, 83, 84, 85, 86, 87, -1, 89, -1, 91, -1, 93, -1, -1, 96, -1, -1, -1, 100, 101, 102, 103, -1, 105, 106, -1, 108, -1, 110, 111, -1, -1, -1, -1, -1, -1, 118, 119, 120, -1, -1, -1, -1, -1, -1, -1, 128, 129, 130, 131, 132, 133, 134, -1, -1, 137, 138, -1, 140, -1, -1, -1, 144, 3, 4, 5, 6, 7, 150, 151, 152, 153, 12, -1, -1, 157, 158, -1, -1, 161, -1, 163, 164, -1, - 166, -1, 26, -1, -1, -1, -1, -1, -1, -1, - -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, - 44, 45, -1, -1, -1, -1, 50, -1, 52, 53, - 54, 55, 56, 57, -1, -1, 60, 61, 62, 63, - 64, 65, 66, 67, 68, 69, -1, -1, -1, 73, - 74, 75, 76, 77, -1, 79, -1, -1, -1, 83, - 84, 85, 86, 87, -1, 89, -1, 91, -1, 93, - -1, -1, 96, -1, -1, -1, 100, 101, 102, 103, - -1, 105, 106, -1, 108, -1, 110, 111, -1, -1, - -1, -1, -1, -1, 118, 119, 120, -1, -1, -1, - -1, -1, -1, -1, 128, 129, 130, 131, 132, 133, - 134, -1, -1, 137, 138, -1, 140, -1, -1, -1, - 144, 3, 4, 5, 6, 7, 150, 151, 152, 153, - 12, -1, -1, 157, 158, -1, -1, 161, -1, 163, - 164, -1, 166, -1, -1, -1, -1, -1, -1, -1, - -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, - -1, -1, 44, 45, -1, -1, -1, -1, 50, -1, - 52, 53, 54, 55, 56, 57, -1, -1, 60, 61, - 62, 63, 64, 65, 66, 67, 68, 69, -1, -1, - -1, 73, 74, 75, 76, 77, -1, 79, -1, -1, - -1, 83, 84, 85, 86, 87, -1, 89, -1, 91, - -1, 93, -1, -1, 96, -1, -1, -1, 100, 101, - 102, 103, -1, 105, 106, -1, 108, -1, 110, 111, - -1, -1, -1, -1, -1, -1, 118, 119, 120, -1, - -1, -1, -1, -1, -1, -1, 128, 129, 130, 131, - 132, 133, 134, -1, -1, 137, 138, -1, 140, -1, - -1, -1, 144, 3, 4, 5, 6, 7, 150, 151, - 152, 153, 12, -1, -1, 157, 158, -1, -1, 161, - -1, 163, 164, -1, 166, -1, -1, -1, -1, -1, - -1, -1, 32, -1, -1, -1, -1, -1, -1, -1, - -1, -1, -1, -1, 44, 45, -1, -1, -1, -1, - 50, -1, 52, 53, 54, 55, 56, 57, -1, -1, - 60, 61, 62, 63, 64, 65, 66, 67, 68, -1, - -1, -1, -1, 73, 74, 75, 76, 77, -1, -1, - -1, -1, -1, 83, 84, 32, 33, 34, 35, 36, - 37, 38, 39, 40, 41, 42, 43, 44, 45, 46, - 47, 48, 49, 103, 51, -1, -1, -1, -1, -1, - -1, 111, -1, -1, -1, -1, -1, -1, -1, 119, - 120, -1, -1, -1, -1, -1, -1, -1, 128, 129, - 130, 131, 132, 133, 134, -1, 3, 4, 5, 6, - 7, -1, -1, -1, 144, 12, -1, -1, -1, -1, - 150, 151, 152, 153, -1, -1, -1, 157, 158, -1, - -1, 161, -1, -1, -1, -1, 166, -1, -1, -1, - -1, -1, -1, -1, -1, -1, -1, 44, 45, -1, - -1, -1, -1, 50, -1, 52, 53, 54, 55, 56, - 57, -1, -1, 60, 61, 62, 63, 64, 65, 66, - 67, 68, -1, -1, -1, -1, 73, 74, 75, 76, - 77, -1, -1, -1, -1, -1, 83, 84, -1, -1, - -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, - -1, -1, -1, -1, -1, -1, 103, -1, -1, -1, - -1, -1, -1, -1, 111, -1, -1, -1, -1, -1, - -1, -1, 119, 120, -1, -1, -1, -1, -1, -1, - -1, 128, 129, 130, 131, 132, 133, 134, -1, 3, - 4, 5, 6, 7, -1, -1, -1, 144, 12, -1, - -1, -1, -1, 150, 151, 152, 153, -1, -1, -1, - 157, 158, -1, -1, 161, -1, 163, -1, -1, 166, + 166, -1, -1, -1, -1, -1, -1, -1, 32, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 44, 45, -1, -1, -1, -1, 50, -1, 52, 53, 54, 55, 56, 57, -1, -1, 60, 61, 62, 63, 64, 65, 66, 67, 68, -1, -1, -1, -1, 73, 74, 75, 76, 77, -1, -1, -1, -1, -1, 83, - 84, -1, -1, -1, -1, -1, -1, -1, -1, -1, - -1, -1, -1, -1, -1, -1, -1, -1, -1, 103, - -1, -1, -1, -1, -1, -1, -1, 111, -1, -1, + 84, 32, 33, 34, 35, 36, 37, 38, 39, 40, + 41, 42, 43, 44, 45, 46, 47, 48, 49, 103, + 51, -1, -1, -1, -1, -1, -1, 111, -1, -1, -1, -1, -1, -1, -1, 119, 120, -1, -1, -1, -1, -1, -1, -1, 128, 129, 130, 131, 132, 133, 134, -1, 3, 4, 5, 6, 7, -1, -1, -1, 144, 12, -1, -1, -1, -1, 150, 151, 152, 153, - -1, -1, -1, 157, 158, -1, -1, 161, -1, 163, + -1, -1, -1, 157, 158, -1, -1, 161, -1, -1, -1, -1, 166, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 44, 45, -1, -1, -1, -1, 50, -1, 52, 53, 54, 55, 56, 57, -1, -1, 60, 61, 62, 63, 64, 65, 66, 67, 68, -1, -1, -1, -1, 73, 74, 75, 76, 77, -1, -1, -1, -1, -1, 83, 84, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 103, -1, -1, -1, -1, -1, -1, -1, 111, -1, -1, -1, -1, -1, -1, -1, 119, 120, -1, -1, -1, -1, -1, -1, -1, 128, 129, 130, 131, 132, 133, 134, -1, 3, 4, 5, 6, 7, -1, -1, -1, 144, 12, -1, -1, -1, -1, 150, 151, 152, 153, -1, -1, -1, 157, 158, -1, -1, 161, -1, 163, -1, -1, 166, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 44, 45, -1, -1, -1, -1, 50, -1, 52, 53, 54, 55, 56, 57, -1, -1, 60, 61, 62, 63, 64, 65, 66, 67, 68, -1, -1, -1, -1, 73, 74, 75, 76, 77, -1, -1, -1, -1, -1, 83, 84, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 103, -1, -1, -1, -1, -1, -1, -1, 111, -1, -1, -1, -1, -1, -1, -1, 119, 120, -1, -1, -1, -1, -1, -1, -1, 128, 129, 130, 131, 132, 133, 134, -1, 3, 4, 5, 6, 7, -1, -1, -1, 144, 12, -1, -1, -1, -1, 150, 151, 152, 153, -1, -1, -1, 157, - 158, 26, -1, 161, 162, -1, -1, -1, 166, -1, + 158, -1, -1, 161, -1, 163, -1, -1, 166, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 44, 45, -1, -1, -1, -1, 50, -1, 52, 53, 54, 55, 56, 57, -1, -1, 60, 61, 62, 63, 64, 65, 66, 67, 68, -1, -1, -1, -1, 73, 74, 75, 76, 77, -1, -1, -1, -1, -1, 83, 84, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 103, -1, -1, -1, -1, -1, -1, -1, 111, -1, -1, -1, -1, -1, -1, -1, 119, 120, -1, -1, -1, -1, -1, -1, -1, 128, 129, 130, 131, 132, 133, 134, -1, 3, 4, 5, 6, 7, -1, -1, -1, 144, 12, -1, -1, -1, -1, 150, 151, 152, 153, -1, - -1, -1, 157, 158, -1, -1, 161, -1, -1, -1, - 32, 166, -1, -1, -1, -1, -1, -1, -1, -1, + -1, -1, 157, 158, -1, -1, 161, -1, 163, -1, + -1, 166, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 44, 45, -1, -1, -1, -1, 50, -1, 52, 53, 54, 55, 56, 57, -1, -1, 60, 61, 62, 63, 64, 65, 66, 67, 68, -1, -1, -1, -1, 73, 74, 75, 76, 77, -1, -1, -1, -1, -1, 83, 84, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 103, -1, -1, -1, -1, -1, -1, -1, 111, -1, -1, -1, -1, -1, -1, -1, 119, 120, -1, -1, -1, -1, -1, -1, -1, 128, 129, 130, 131, 132, 133, 134, -1, 3, 4, 5, 6, 7, -1, -1, -1, 144, 12, -1, -1, -1, -1, 150, 151, - 152, 153, -1, -1, -1, 157, 158, -1, -1, 161, - -1, -1, -1, 32, 166, -1, -1, -1, -1, -1, + 152, 153, -1, -1, -1, 157, 158, 26, -1, 161, + 162, -1, -1, -1, 166, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 44, 45, -1, -1, -1, -1, 50, -1, 52, 53, 54, 55, 56, 57, -1, -1, 60, 61, 62, 63, 64, 65, 66, 67, 68, -1, -1, -1, -1, 73, 74, 75, 76, 77, -1, -1, -1, -1, -1, 83, 84, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 103, -1, -1, -1, -1, -1, -1, -1, 111, -1, -1, -1, -1, -1, -1, -1, 119, 120, -1, -1, -1, -1, -1, -1, -1, 128, 129, 130, 131, 132, 133, 134, -1, 3, 4, 5, 6, 7, -1, -1, -1, 144, 12, -1, -1, -1, -1, 150, 151, 152, 153, -1, -1, -1, 157, 158, -1, -1, 161, -1, -1, -1, 32, 166, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 44, 45, -1, -1, -1, -1, 50, -1, 52, 53, 54, 55, 56, 57, -1, -1, 60, 61, 62, 63, 64, 65, 66, 67, 68, -1, -1, -1, -1, 73, 74, 75, 76, 77, -1, -1, -1, -1, -1, 83, 84, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 103, -1, -1, -1, -1, -1, -1, -1, 111, -1, -1, -1, -1, -1, -1, -1, 119, 120, -1, -1, -1, -1, -1, -1, -1, 128, 129, 130, 131, 132, 133, 134, -1, 3, 4, 5, 6, 7, -1, -1, -1, 144, 12, -1, -1, -1, -1, 150, 151, 152, 153, -1, -1, -1, 157, 158, -1, -1, 161, -1, -1, -1, 32, 166, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 44, 45, -1, -1, -1, -1, 50, -1, 52, 53, 54, 55, 56, 57, -1, -1, 60, 61, 62, 63, 64, 65, 66, 67, 68, -1, -1, -1, -1, 73, 74, 75, 76, 77, -1, -1, -1, -1, -1, 83, 84, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 103, -1, -1, -1, -1, -1, -1, -1, 111, -1, -1, -1, -1, -1, -1, -1, 119, 120, -1, -1, -1, -1, -1, -1, -1, 128, 129, 130, 131, 132, 133, 134, -1, 3, 4, 5, 6, 7, -1, -1, -1, 144, 12, -1, -1, -1, -1, 150, 151, 152, 153, -1, -1, -1, 157, 158, -1, -1, 161, -1, - -1, -1, -1, 166, -1, -1, -1, -1, -1, -1, + -1, -1, 32, 166, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 44, 45, -1, -1, -1, -1, 50, -1, 52, 53, 54, 55, 56, 57, -1, -1, 60, 61, 62, 63, 64, 65, 66, 67, 68, -1, -1, -1, -1, 73, 74, 75, 76, 77, -1, -1, -1, -1, -1, 83, 84, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 103, -1, -1, -1, -1, -1, -1, -1, 111, -1, -1, -1, -1, -1, -1, -1, 119, 120, -1, -1, -1, -1, -1, -1, -1, 128, 129, 130, 131, 132, 133, 134, -1, 3, 4, 5, 6, 7, -1, -1, -1, 144, 12, -1, -1, -1, -1, 150, 151, 152, 153, -1, -1, -1, 157, 158, -1, - -1, 161, -1, -1, -1, -1, 166, -1, -1, -1, + -1, 161, -1, -1, -1, 32, 166, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 44, 45, -1, -1, -1, -1, 50, -1, 52, 53, 54, 55, 56, 57, -1, -1, 60, 61, 62, 63, 64, 65, 66, 67, 68, -1, -1, -1, -1, 73, 74, 75, 76, 77, -1, -1, -1, -1, -1, 83, 84, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 103, -1, -1, -1, -1, -1, -1, -1, 111, -1, -1, -1, -1, -1, -1, -1, 119, 120, -1, -1, -1, -1, -1, -1, - -1, 128, 129, 130, 131, 132, 133, 134, -1, -1, - -1, -1, -1, -1, -1, -1, -1, 144, -1, -1, - -1, -1, -1, 150, 151, 152, 153, 9, 10, 11, + -1, 128, 129, 130, 131, 132, 133, 134, -1, 3, + 4, 5, 6, 7, -1, -1, -1, 144, 12, -1, + -1, -1, -1, 150, 151, 152, 153, -1, -1, -1, 157, 158, -1, -1, 161, -1, -1, -1, -1, 166, - -1, -1, -1, 25, -1, 27, 28, 29, 30, 31, - 32, 33, 34, 35, 36, 37, 38, 39, 40, 41, - 42, 43, 44, 45, 46, 47, 48, 49, -1, 51, - 9, 10, 11, -1, -1, -1, -1, -1, -1, -1, - -1, -1, -1, -1, -1, -1, 25, -1, 27, 28, - 29, 30, 31, 32, 33, 34, 35, 36, 37, 38, - 39, 40, 41, 42, 43, 44, 45, 46, 47, 48, - 49, -1, 51, 9, 10, 11, -1, -1, -1, -1, - -1, -1, -1, -1, -1, -1, -1, -1, -1, 25, + -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, + 44, 45, -1, -1, -1, -1, 50, -1, 52, 53, + 54, 55, 56, 57, -1, -1, 60, 61, 62, 63, + 64, 65, 66, 67, 68, -1, -1, -1, -1, 73, + 74, 75, 76, 77, -1, -1, -1, -1, -1, 83, + 84, -1, -1, -1, -1, -1, -1, -1, -1, -1, + -1, -1, -1, -1, -1, -1, -1, -1, -1, 103, + -1, -1, -1, -1, -1, -1, -1, 111, -1, -1, + -1, -1, -1, -1, -1, 119, 120, -1, -1, -1, + -1, -1, -1, -1, 128, 129, 130, 131, 132, 133, + 134, -1, 3, 4, 5, 6, 7, -1, -1, -1, + 144, 12, -1, -1, -1, -1, 150, 151, 152, 153, + -1, -1, -1, 157, 158, -1, -1, 161, -1, -1, + -1, -1, 166, -1, -1, -1, -1, -1, -1, -1, + -1, -1, -1, 44, 45, -1, -1, -1, -1, 50, + -1, 52, 53, 54, 55, 56, 57, -1, -1, 60, + 61, 62, 63, 64, 65, 66, 67, 68, -1, -1, + -1, -1, 73, 74, 75, 76, 77, -1, -1, -1, + -1, -1, 83, 84, -1, -1, -1, -1, -1, -1, + -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, + -1, -1, 103, -1, -1, -1, -1, -1, -1, -1, + 111, -1, -1, -1, -1, -1, -1, -1, 119, 120, + -1, -1, -1, -1, -1, -1, -1, 128, 129, 130, + 131, 132, 133, 134, -1, -1, -1, -1, -1, -1, + -1, -1, -1, 144, -1, -1, -1, -1, -1, 150, + 151, 152, 153, 9, 10, 11, 157, 158, -1, -1, + 161, -1, -1, -1, -1, 166, -1, -1, -1, 25, -1, 27, 28, 29, 30, 31, 32, 33, 34, 35, 36, 37, 38, 39, 40, 41, 42, 43, 44, 45, - 46, 47, 48, 49, -1, 51, -1, -1, -1, -1, - -1, -1, -1, -1, -1, -1, 9, 10, 11, -1, + 46, 47, 48, 49, -1, 51, 9, 10, 11, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, - -1, -1, 25, 165, 27, 28, 29, 30, 31, 32, + -1, -1, 25, -1, 27, 28, 29, 30, 31, 32, 33, 34, 35, 36, 37, 38, 39, 40, 41, 42, 43, 44, 45, 46, 47, 48, 49, -1, 51, 9, 10, 11, -1, -1, -1, -1, -1, -1, -1, -1, - -1, -1, -1, -1, -1, 25, 165, 27, 28, 29, + -1, -1, -1, -1, -1, 25, -1, 27, 28, 29, 30, 31, 32, 33, 34, 35, 36, 37, 38, 39, 40, 41, 42, 43, 44, 45, 46, 47, 48, 49, - -1, 51, -1, -1, 9, 10, 11, -1, -1, -1, - -1, -1, -1, -1, -1, -1, -1, -1, -1, 165, - 25, 26, 27, 28, 29, 30, 31, 32, 33, 34, + -1, 51, -1, -1, -1, -1, -1, -1, -1, -1, + -1, -1, 9, 10, 11, -1, -1, -1, -1, -1, + -1, -1, -1, -1, -1, -1, -1, -1, 25, 165, + 27, 28, 29, 30, 31, 32, 33, 34, 35, 36, + 37, 38, 39, 40, 41, 42, 43, 44, 45, 46, + 47, 48, 49, -1, 51, -1, -1, 9, 10, 11, + -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, + -1, -1, 165, 25, 26, 27, 28, 29, 30, 31, + 32, 33, 34, 35, 36, 37, 38, 39, 40, 41, + 42, 43, 44, 45, 46, 47, 48, 49, -1, 51, + 9, 10, 11, -1, -1, -1, -1, -1, -1, -1, + -1, -1, -1, -1, -1, 165, 25, -1, 27, 28, + 29, 30, 31, 32, 33, 34, 35, 36, 37, 38, + 39, 40, 41, 42, 43, 44, 45, 46, 47, 48, + 49, -1, 51, -1, -1, -1, -1, -1, -1, -1, + -1, 9, 10, 11, -1, -1, -1, -1, -1, -1, + -1, -1, -1, -1, -1, -1, -1, 25, 165, 27, + 28, 29, 30, 31, 32, 33, 34, 35, 36, 37, + 38, 39, 40, 41, 42, 43, 44, 45, 46, 47, + 48, 49, -1, 51, 9, 10, 11, -1, -1, -1, + -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, + 25, 163, 27, 28, 29, 30, 31, 32, 33, 34, 35, 36, 37, 38, 39, 40, 41, 42, 43, 44, - 45, 46, 47, 48, 49, -1, 51, -1, -1, -1, - -1, -1, -1, -1, -1, 9, 10, 11, -1, -1, + 45, 46, 47, 48, 49, -1, 51, 9, 10, 11, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, - -1, 25, 165, 27, 28, 29, 30, 31, 32, 33, - 34, 35, 36, 37, 38, 39, 40, 41, 42, 43, - 44, 45, 46, 47, 48, 49, -1, 51, 9, 10, + -1, -1, -1, 25, 163, 27, 28, 29, 30, 31, + 32, 33, 34, 35, 36, 37, 38, 39, 40, 41, + 42, 43, 44, 45, 46, 47, 48, 49, -1, 51, + -1, -1, -1, -1, -1, -1, -1, -1, 9, 10, 11, -1, -1, -1, -1, -1, -1, -1, -1, -1, - -1, -1, -1, -1, 25, 165, 27, 28, 29, 30, + -1, -1, -1, -1, 25, 163, 27, 28, 29, 30, 31, 32, 33, 34, 35, 36, 37, 38, 39, 40, 41, 42, 43, 44, 45, 46, 47, 48, 49, -1, 51, 9, 10, 11, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 25, 163, 27, 28, 29, 30, 31, 32, 33, 34, 35, 36, 37, 38, 39, 40, 41, 42, 43, 44, 45, 46, 47, - 48, 49, -1, 51, -1, -1, -1, -1, -1, -1, - -1, -1, 9, 10, 11, -1, -1, -1, -1, -1, - -1, -1, -1, -1, -1, -1, -1, -1, 25, 163, - 27, 28, 29, 30, 31, 32, 33, 34, 35, 36, - 37, 38, 39, 40, 41, 42, 43, 44, 45, 46, - 47, 48, 49, -1, 51, 9, 10, 11, -1, -1, + 48, 49, -1, 51, 9, 10, 11, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, - -1, 25, 163, 27, 28, 29, 30, 31, 32, 33, - 34, 35, 36, 37, 38, 39, 40, 41, 42, 43, - 44, 45, 46, 47, 48, 49, -1, 51, 9, 10, - 11, -1, -1, -1, -1, -1, -1, -1, -1, -1, - -1, -1, -1, -1, 25, 163, 27, 28, 29, 30, - 31, 32, 33, 34, 35, 36, 37, 38, 39, 40, - 41, 42, 43, 44, 45, 46, 47, 48, 49, -1, - 51, -1, -1, -1, -1, -1, -1, -1, -1, 9, - 10, 11, -1, -1, -1, -1, -1, -1, -1, -1, - -1, -1, -1, -1, -1, 25, 163, 27, 28, 29, - 30, 31, 32, 33, 34, 35, 36, 37, 38, 39, - 40, 41, 42, 43, 44, 45, 46, 47, 48, 49, - -1, 51, -1, 9, 10, 11, -1, -1, -1, -1, - -1, -1, -1, -1, -1, -1, -1, -1, 162, 25, - -1, 27, 28, 29, 30, 31, 32, 33, 34, 35, + 25, 163, 27, 28, 29, 30, 31, 32, 33, 34, + 35, 36, 37, 38, 39, 40, 41, 42, 43, 44, + 45, 46, 47, 48, 49, -1, 51, -1, -1, -1, + -1, -1, -1, -1, 9, 10, 11, -1, -1, -1, + -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, + 25, 162, 27, 28, 29, 30, 31, 32, 33, 34, + 35, 36, 37, 38, 39, 40, 41, 42, 43, 44, + 45, 46, 47, 48, 49, -1, 51, 9, 10, 11, + -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, + -1, -1, -1, 25, 162, 27, 28, 29, 30, 31, + 32, 33, 34, 35, 36, 37, 38, 39, 40, 41, + 42, 43, 44, 45, 46, 47, 48, 49, -1, 51, + 9, 10, 11, -1, -1, -1, -1, -1, -1, -1, + -1, -1, -1, -1, -1, -1, 25, 162, 27, 28, + 29, 30, 31, 32, 33, 34, 35, 36, 37, 38, + 39, 40, 41, 42, 43, 44, 45, 46, 47, 48, + 49, -1, 51, -1, -1, -1, -1, -1, -1, -1, + 9, 10, 11, -1, -1, -1, -1, -1, -1, -1, + -1, -1, -1, -1, -1, -1, 25, 162, 27, 28, + 29, 30, 31, 32, 33, 34, 35, 36, 37, 38, + 39, 40, 41, 42, 43, 44, 45, 46, 47, 48, + 49, -1, 51, 9, 10, 11, -1, -1, -1, -1, + -1, -1, -1, -1, -1, -1, -1, -1, -1, 25, + 162, 27, 28, 29, 30, 31, 32, 33, 34, 35, 36, 37, 38, 39, 40, 41, 42, 43, 44, 45, 46, 47, 48, 49, -1, 51, 9, 10, 11, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, - -1, 162, 25, -1, 27, 28, 29, 30, 31, 32, + -1, -1, 25, 162, 27, 28, 29, 30, 31, 32, 33, 34, 35, 36, 37, 38, 39, 40, 41, 42, 43, 44, 45, 46, 47, 48, 49, -1, 51, -1, - -1, -1, -1, -1, -1, 9, 10, 11, -1, -1, + -1, -1, -1, -1, -1, -1, 9, 10, 11, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, - -1, 25, 162, 27, 28, 29, 30, 31, 32, 33, - 34, 35, 36, 37, 38, 39, 40, 41, 42, 43, - 44, 45, 46, 47, 48, 49, -1, 51, -1, 9, + -1, -1, 25, 162, 27, 28, 29, 30, 31, 32, + 33, 34, 35, 36, 37, 38, 39, 40, 41, 42, + 43, 44, 45, 46, 47, 48, 49, -1, 51, 9, 10, 11, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 25, 162, 27, 28, 29, 30, 31, 32, 33, 34, 35, 36, 37, 38, 39, 40, 41, 42, 43, 44, 45, 46, 47, 48, 49, - -1, 51, 9, 10, 11, -1, -1, -1, -1, -1, - -1, -1, -1, -1, -1, -1, -1, -1, 25, 162, - 27, 28, 29, 30, 31, 32, 33, 34, 35, 36, - 37, 38, 39, 40, 41, 42, 43, 44, 45, 46, - 47, 48, 49, -1, 51, -1, -1, -1, -1, -1, - -1, 9, 10, 11, -1, -1, -1, -1, -1, -1, - -1, -1, -1, -1, -1, -1, -1, 25, 162, 27, - 28, 29, 30, 31, 32, 33, 34, 35, 36, 37, - 38, 39, 40, 41, 42, 43, 44, 45, 46, 47, - 48, 49, -1, 51, -1, 9, 10, 11, -1, -1, + -1, 51, -1, -1, -1, -1, -1, -1, -1, -1, + -1, -1, -1, -1, -1, -1, -1, -1, -1, 162, + 9, 10, 11, -1, -1, -1, -1, -1, -1, -1, + -1, -1, -1, -1, 127, -1, 25, -1, 27, 28, + 29, 30, 31, 32, 33, 34, 35, 36, 37, 38, + 39, 40, 41, 42, 43, 44, 45, 46, 47, 48, + 49, -1, 51, 9, 10, 11, -1, -1, -1, -1, + -1, -1, -1, -1, -1, -1, -1, 127, -1, 25, + 26, 27, 28, 29, 30, 31, 32, 33, 34, 35, + 36, 37, 38, 39, 40, 41, 42, 43, 44, 45, + 46, 47, 48, 49, -1, 51, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, - -1, 25, 162, 27, 28, 29, 30, 31, 32, 33, - 34, 35, 36, 37, 38, 39, 40, 41, 42, 43, - 44, 45, 46, 47, 48, 49, -1, 51, 9, 10, - 11, -1, -1, -1, -1, -1, -1, -1, -1, -1, - -1, -1, -1, -1, 25, 162, 27, 28, 29, 30, - 31, 32, 33, 34, 35, 36, 37, 38, 39, 40, - 41, 42, 43, 44, 45, 46, 47, 48, 49, -1, - 51, -1, -1, -1, -1, -1, -1, -1, -1, -1, - -1, -1, -1, -1, -1, -1, 9, 10, 11, -1, - -1, -1, -1, -1, 162, -1, -1, -1, -1, -1, - -1, -1, 25, 127, 27, 28, 29, 30, 31, 32, - 33, 34, 35, 36, 37, 38, 39, 40, 41, 42, - 43, 44, 45, 46, 47, 48, 49, -1, 51, -1, -1, 9, 10, 11, -1, -1, -1, -1, -1, -1, - -1, -1, -1, -1, -1, -1, 127, 25, 26, 27, + -1, -1, -1, -1, -1, -1, -1, 25, 127, 27, 28, 29, 30, 31, 32, 33, 34, 35, 36, 37, 38, 39, 40, 41, 42, 43, 44, 45, 46, 47, - 48, 49, -1, 51, -1, -1, -1, -1, -1, -1, - -1, -1, -1, -1, -1, -1, -1, 9, 10, 11, - -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, - -1, -1, -1, 25, 127, 27, 28, 29, 30, 31, + 48, 49, -1, 51, 10, 11, -1, -1, -1, -1, + -1, -1, -1, -1, -1, -1, -1, -1, -1, 25, + -1, 27, 28, 29, 30, 31, 32, 33, 34, 35, + 36, 37, 38, 39, 40, 41, 42, 43, 44, 45, + 46, 47, 48, 49, 11, 51, -1, -1, -1, -1, + -1, -1, -1, -1, -1, -1, -1, -1, 25, -1, + 27, 28, 29, 30, 31, 32, 33, 34, 35, 36, + 37, 38, 39, 40, 41, 42, 43, 44, 45, 46, + 47, 48, 49, 25, 51, 27, 28, 29, 30, 31, + 32, 33, 34, 35, 36, 37, 38, 39, 40, 41, + 42, 43, 44, 45, 46, 47, 48, 49, -1, 51, + 27, 28, 29, 30, 31, 32, 33, 34, 35, 36, + 37, 38, 39, 40, 41, 42, 43, 44, 45, 46, + 47, 48, 49, -1, 51, 29, 30, 31, 32, 33, + 34, 35, 36, 37, 38, 39, 40, 41, 42, 43, + 44, 45, 46, 47, 48, 49, -1, 51, 30, 31, 32, 33, 34, 35, 36, 37, 38, 39, 40, 41, 42, 43, 44, 45, 46, 47, 48, 49, -1, 51, - 10, 11, -1, -1, -1, -1, -1, -1, -1, -1, - -1, -1, -1, -1, -1, 25, -1, 27, 28, 29, - 30, 31, 32, 33, 34, 35, 36, 37, 38, 39, - 40, 41, 42, 43, 44, 45, 46, 47, 48, 49, - 11, 51, -1, -1, -1, -1, -1, -1, -1, -1, - -1, -1, -1, -1, 25, -1, 27, 28, 29, 30, - 31, 32, 33, 34, 35, 36, 37, 38, 39, 40, - 41, 42, 43, 44, 45, 46, 47, 48, 49, 25, - 51, 27, 28, 29, 30, 31, 32, 33, 34, 35, - 36, 37, 38, 39, 40, 41, 42, 43, 44, 45, - 46, 47, 48, 49, -1, 51, 27, 28, 29, 30, 31, 32, 33, 34, 35, 36, 37, 38, 39, 40, 41, 42, 43, 44, 45, 46, 47, 48, 49, -1, - 51, 30, 31, 32, 33, 34, 35, 36, 37, 38, - 39, 40, 41, 42, 43, 44, 45, 46, 47, 48, - 49, -1, 51, 31, 32, 33, 34, 35, 36, 37, - 38, 39, 40, 41, 42, 43, 44, 45, 46, 47, - 48, 49, -1, 51 + 51 }; /* YYSTOS[STATE-NUM] -- The (internal number of the) accessing symbol of state STATE-NUM. */ static const yytype_uint16 yystos[] = { 0, 169, 170, 0, 3, 4, 5, 6, 7, 12, 44, 45, 50, 52, 53, 54, 55, 56, 57, 60, 61, 62, 63, 64, 65, 66, 67, 68, 69, 73, 74, 75, 76, 77, 79, 83, 84, 85, 86, 87, 89, 91, 93, 96, 100, 101, 102, 103, 104, 105, 106, 108, 109, 110, 111, 112, 113, 118, 119, 120, 121, 122, 123, 128, 129, 130, 131, 132, 133, 134, 137, 138, 140, 144, 150, 151, 152, 153, 156, 157, 158, 161, 163, 164, 166, 171, 172, 175, 178, 179, 186, 187, 189, 190, 191, 193, 248, 249, 250, 253, 254, 262, 265, 269, 270, 272, 273, 279, 280, 281, 282, 283, 284, 285, 286, 291, 296, 298, 299, 300, 301, 302, 75, 111, 150, 158, 250, 269, 269, 161, 269, 269, 269, 269, 269, 269, 269, 75, 111, 150, 153, 161, 171, 254, 272, 273, 281, 272, 269, 269, 269, 269, 269, 269, 269, 269, 32, 269, 294, 295, 150, 153, 171, 254, 256, 257, 281, 284, 285, 291, 269, 161, 260, 161, 26, 65, 65, 245, 269, 178, 161, 161, 161, 161, 161, 163, 269, 163, 269, 75, 75, 163, 248, 269, 273, 164, 269, 153, 171, 173, 174, 77, 166, 220, 221, 77, 222, 250, 122, 122, 161, 161, 161, 161, 161, 161, 153, 164, 171, 171, 248, 269, 273, 249, 269, 301, 176, 164, 153, 161, 8, 163, 75, 75, 163, 32, 188, 65, 147, 9, 10, 11, 25, 27, 28, 29, 30, 31, 32, 33, 34, 35, 36, 37, 38, 39, 40, 41, 42, 43, 44, 45, 46, 47, 48, 49, 51, 163, 53, 54, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 161, 147, 65, 126, 65, 164, 166, 285, 65, 65, 65, 188, 269, 153, 171, 301, 147, 147, 271, 273, 127, 167, 8, 267, 153, 171, 147, 161, 261, 147, 126, 285, 162, 269, 269, 269, 287, 287, 8, 163, 87, 269, 246, 247, 269, 248, 273, 75, 202, 269, 163, 163, 163, 13, 163, 163, 176, 163, 171, 95, 8, 163, 164, 270, 273, 8, 163, 13, 8, 163, 188, 184, 185, 273, 273, 297, 273, 162, 128, 273, 292, 293, 294, 171, 170, 163, 164, 161, 127, 162, 162, 162, 121, 165, 177, 178, 186, 187, 269, 75, 32, 160, 217, 218, 219, 269, 75, 124, 192, 124, 194, 75, 161, 287, 75, 279, 285, 291, 269, 269, 269, 26, 269, 269, 269, 269, 269, 269, 269, 269, 269, 269, 269, 269, 269, 269, 269, 269, 269, 269, 269, 269, 269, 269, 269, 269, 256, 32, 269, 269, 269, 269, 269, 269, 269, 269, 269, 269, 269, 269, 217, 75, 279, 287, 75, 164, 279, 288, 289, 290, 287, 269, 287, 287, 287, 162, 171, 75, 75, 32, 269, 32, 269, 171, 279, 217, 279, 288, 162, 162, 167, 167, 269, 161, 162, 163, 8, 95, 95, 13, 8, 162, 162, 44, 45, 65, 83, 129, 150, 153, 171, 254, 262, 263, 264, 165, 95, 75, 174, 269, 221, 263, 77, 161, 8, 162, 8, 162, 162, 163, 161, 8, 162, 162, 161, 165, 170, 217, 248, 273, 161, 165, 271, 269, 162, 8, 13, 150, 153, 171, 255, 125, 195, 196, 255, 164, 161, 129, 155, 211, 212, 214, 215, 255, 167, 161, 161, 285, 269, 26, 66, 273, 162, 161, 161, 167, 269, 161, 276, 277, 278, 65, 164, 167, 165, 167, 167, 167, 271, 271, 127, 162, 258, 26, 178, 269, 26, 178, 206, 246, 269, 273, 32, 198, 273, 263, 75, 26, 178, 201, 26, 164, 203, 263, 263, 263, 266, 268, 161, 153, 171, 147, 107, 159, 180, 181, 183, 75, 165, 13, 211, 185, 163, 273, 292, 293, 13, 217, 165, 162, 162, 219, 263, 153, 171, 196, 164, 8, 223, 211, 162, 8, 32, 77, 160, 213, 217, 217, 269, 256, 217, 217, 165, 217, 65, 65, 274, 287, 269, 32, 269, 126, 259, 176, 207, 162, 176, 163, 127, 197, 273, 197, 13, 176, 163, 204, 163, 204, 127, 167, 8, 267, 266, 171, 75, 161, 164, 181, 182, 183, 263, 162, 162, 269, 162, 163, 171, 223, 255, 104, 109, 111, 112, 113, 114, 115, 116, 117, 165, 224, 226, 239, 240, 241, 242, 244, 162, 109, 251, 214, 213, 77, 13, 162, 162, 261, 162, 162, 162, 287, 287, 126, 275, 167, 165, 271, 288, 208, 70, 71, 209, 163, 88, 246, 198, 162, 162, 263, 94, 204, 97, 98, 99, 204, 165, 263, 263, 162, 255, 176, 251, 165, 75, 227, 255, 77, 243, 250, 242, 8, 163, 26, 216, 161, 216, 32, 213, 13, 263, 167, 167, 288, 70, 71, 210, 161, 178, 163, 162, 26, 178, 200, 200, 163, 97, 163, 269, 26, 163, 205, 165, 127, 77, 165, 216, 13, 8, 163, - 164, 228, 13, 8, 163, 225, 75, 215, 164, 32, - 77, 252, 164, 213, 13, 263, 278, 161, 26, 72, - 269, 26, 178, 199, 176, 163, 205, 176, 263, 162, - 164, 263, 255, 75, 229, 230, 231, 232, 234, 235, - 236, 255, 263, 77, 188, 13, 176, 77, 8, 162, - 176, 13, 263, 269, 176, 163, 162, 176, 92, 176, - 164, 176, 165, 231, 163, 95, 154, 163, 147, 13, - 75, 263, 165, 32, 77, 165, 263, 162, 178, 90, - 163, 176, 165, 237, 242, 233, 255, 75, 263, 161, - 77, 26, 163, 165, 75, 8, 211, 176, 255, 162, - 216, 163, 164, 238, 176, 165 + 164, 228, 13, 8, 163, 225, 75, 25, 215, 164, + 32, 77, 252, 164, 213, 13, 263, 278, 161, 26, + 72, 269, 26, 178, 199, 176, 163, 205, 176, 263, + 162, 164, 263, 255, 75, 229, 230, 231, 232, 234, + 235, 236, 255, 263, 77, 188, 13, 215, 176, 77, + 8, 162, 176, 13, 263, 269, 176, 163, 162, 176, + 92, 176, 164, 176, 165, 231, 163, 95, 154, 163, + 147, 13, 75, 263, 165, 32, 77, 165, 263, 162, + 178, 90, 163, 176, 165, 237, 242, 233, 255, 75, + 263, 161, 77, 26, 163, 165, 75, 8, 211, 176, + 255, 162, 216, 163, 164, 238, 176, 165 }; /* YYR1[YYN] -- Symbol number of symbol that rule YYN derives. */ static const yytype_uint16 yyr1[] = { 0, 168, 169, 170, 170, 171, 171, 172, 172, 172, 172, 172, 172, 172, 172, 172, 173, 173, 174, 174, 174, 174, 175, 175, 176, 176, 177, 177, 177, 177, 178, 178, 178, 178, 178, 179, 179, 179, 179, 179, 179, 179, 179, 179, 179, 179, 179, 179, 179, 179, 179, 179, 179, 179, 179, 179, 179, 179, 179, 179, 179, 179, 179, 179, 180, 180, 181, 182, 182, 183, 184, 184, 185, 186, 187, 188, 188, 189, 190, 190, 191, 191, 191, 191, 192, 192, 193, 194, 194, 195, 195, 196, 196, 197, 197, 198, 198, 199, 199, 200, 200, 201, 201, 202, 202, 203, 203, 203, 203, 204, 204, 204, 205, 205, 206, 206, 207, 207, 208, 208, 209, 209, 210, 210, 211, 211, 212, 212, 212, 212, 212, 212, 212, 212, 213, 213, 214, 214, 215, 215, - 215, 216, 216, 217, 217, 218, 218, 219, 219, 219, - 220, 220, 221, 221, 221, 222, 222, 222, 222, 223, - 223, 224, 224, 224, 225, 224, 226, 227, 227, 228, - 228, 229, 229, 230, 230, 231, 231, 232, 233, 233, - 234, 234, 235, 236, 236, 237, 237, 238, 238, 239, - 239, 240, 240, 241, 241, 242, 242, 242, 242, 242, - 242, 243, 243, 243, 243, 244, 244, 245, 245, 246, - 246, 247, 247, 248, 248, 248, 248, 248, 248, 248, + 215, 216, 216, 216, 217, 217, 218, 218, 219, 219, + 219, 220, 220, 221, 221, 221, 222, 222, 222, 222, + 223, 223, 224, 224, 224, 225, 224, 226, 227, 227, + 228, 228, 229, 229, 230, 230, 231, 231, 232, 233, + 233, 234, 234, 235, 236, 236, 237, 237, 238, 238, + 239, 239, 240, 240, 241, 241, 242, 242, 242, 242, + 242, 242, 243, 243, 243, 243, 244, 244, 245, 245, + 246, 246, 247, 247, 248, 248, 248, 248, 248, 248, 248, 248, 248, 248, 248, 248, 248, 248, 248, 248, 248, 248, 248, 248, 248, 248, 248, 248, 248, 248, 248, 248, 248, 248, 248, 248, 248, 248, 248, 248, 248, 248, 248, 248, 248, 248, 248, 248, 248, 248, 248, 248, 248, 248, 248, 248, 248, 248, 248, 248, 248, 248, 248, 248, 248, 248, 248, 248, 248, 248, - 248, 248, 248, 248, 248, 248, 249, 249, 249, 249, - 250, 251, 251, 252, 252, 252, 252, 253, 253, 253, - 253, 253, 253, 253, 253, 254, 254, 254, 254, 255, - 255, 255, 256, 256, 257, 257, 258, 258, 259, 260, - 260, 260, 261, 261, 262, 262, 262, 262, 262, 262, - 262, 262, 262, 262, 262, 262, 263, 263, 263, 263, - 263, 263, 263, 263, 263, 264, 265, 265, 265, 265, - 265, 265, 266, 266, 267, 267, 268, 268, 268, 268, - 269, 269, 270, 271, 272, 273, 273, 274, 274, 275, - 276, 276, 277, 278, 278, 278, 279, 279, 280, 280, - 281, 282, 282, 283, 283, 283, 284, 284, 284, 284, - 285, 285, 285, 286, 286, 287, 287, 288, 288, 289, - 289, 289, 290, 290, 291, 291, 292, 292, 293, 293, - 293, 294, 294, 295, 295, 295, 295, 295, 295, 295, - 295, 296, 296, 296, 296, 296, 296, 296, 297, 297, - 298, 298, 299, 299, 299, 299, 299, 300, 300, 301, - 302, 302 + 248, 248, 248, 248, 248, 248, 248, 249, 249, 249, + 249, 250, 251, 251, 252, 252, 252, 252, 253, 253, + 253, 253, 253, 253, 253, 253, 254, 254, 254, 254, + 255, 255, 255, 256, 256, 257, 257, 258, 258, 259, + 260, 260, 260, 261, 261, 262, 262, 262, 262, 262, + 262, 262, 262, 262, 262, 262, 262, 263, 263, 263, + 263, 263, 263, 263, 263, 263, 264, 265, 265, 265, + 265, 265, 265, 266, 266, 267, 267, 268, 268, 268, + 268, 269, 269, 270, 271, 272, 273, 273, 274, 274, + 275, 276, 276, 277, 278, 278, 278, 279, 279, 280, + 280, 281, 282, 282, 283, 283, 283, 284, 284, 284, + 284, 285, 285, 285, 286, 286, 287, 287, 288, 288, + 289, 289, 289, 290, 290, 291, 291, 292, 292, 293, + 293, 293, 294, 294, 295, 295, 295, 295, 295, 295, + 295, 295, 296, 296, 296, 296, 296, 296, 296, 297, + 297, 298, 298, 299, 299, 299, 299, 299, 300, 300, + 301, 302, 302 }; /* YYR2[YYN] -- Number of symbols on the right hand side of rule YYN. */ static const yytype_uint8 yyr2[] = { 0, 2, 1, 2, 0, 1, 3, 1, 1, 1, 4, 3, 5, 4, 3, 2, 3, 1, 1, 3, 2, 4, 5, 4, 2, 0, 1, 1, 1, 4, 1, 2, 1, 1, 1, 3, 7, 10, 5, 7, 9, 5, 2, 3, 2, 3, 2, 3, 3, 3, 3, 3, 1, 2, 2, 5, 8, 8, 5, 1, 6, 5, 3, 3, 2, 1, 8, 0, 1, 4, 1, 3, 1, 1, 1, 0, 1, 10, 7, 6, 1, 2, 2, 1, 0, 2, 1, 0, 2, 0, 2, 1, 3, 0, 2, 1, 2, 1, 4, 1, 4, 1, 4, 3, 5, 3, 4, 4, 5, 0, 5, 4, 1, 1, 1, 4, 0, 6, 0, 7, 0, 2, 0, 3, 1, 0, 2, 3, 5, 4, 4, 5, 7, 6, 2, 1, 0, 1, 1, 1, - 1, 0, 2, 1, 0, 1, 3, 1, 2, 2, - 3, 1, 1, 2, 4, 3, 5, 1, 3, 2, - 0, 3, 2, 1, 0, 10, 3, 1, 3, 1, - 3, 0, 1, 1, 2, 2, 2, 3, 1, 3, - 1, 1, 3, 4, 3, 0, 1, 1, 3, 1, - 1, 0, 1, 1, 2, 1, 1, 1, 1, 1, - 1, 3, 5, 1, 3, 5, 4, 3, 1, 0, - 1, 3, 1, 6, 3, 4, 6, 2, 3, 3, - 3, 3, 3, 3, 3, 3, 3, 3, 3, 2, - 2, 2, 2, 3, 3, 3, 3, 3, 3, 3, - 3, 3, 3, 3, 3, 3, 3, 3, 3, 2, - 2, 2, 2, 3, 3, 3, 3, 3, 3, 3, - 3, 3, 3, 1, 1, 5, 4, 3, 1, 2, - 2, 2, 2, 2, 2, 2, 2, 2, 1, 1, - 1, 1, 2, 1, 10, 11, 2, 2, 4, 4, - 1, 0, 4, 3, 4, 1, 2, 4, 6, 5, - 6, 6, 6, 6, 4, 1, 1, 3, 2, 1, - 3, 2, 1, 1, 4, 1, 2, 0, 2, 0, - 2, 3, 0, 3, 1, 1, 1, 1, 1, 1, - 1, 1, 1, 1, 1, 1, 1, 1, 3, 2, - 2, 2, 4, 3, 1, 3, 1, 1, 1, 3, - 2, 1, 0, 2, 0, 1, 5, 3, 3, 1, - 1, 1, 1, 1, 1, 5, 1, 2, 0, 3, - 4, 4, 3, 1, 1, 0, 1, 2, 3, 3, - 1, 4, 4, 1, 1, 1, 1, 3, 2, 1, - 4, 4, 1, 1, 4, 0, 1, 1, 1, 4, - 4, 1, 1, 3, 1, 2, 3, 1, 1, 4, - 0, 0, 2, 5, 3, 3, 1, 6, 4, 4, - 2, 4, 4, 2, 2, 4, 2, 2, 1, 3, - 3, 3, 4, 4, 4, 4, 4, 4, 3, 3, - 3, 3 + 1, 0, 3, 2, 1, 0, 1, 3, 1, 2, + 2, 3, 1, 1, 2, 4, 3, 5, 1, 3, + 2, 0, 3, 2, 1, 0, 10, 3, 1, 3, + 1, 3, 0, 1, 1, 2, 2, 2, 3, 1, + 3, 1, 1, 3, 4, 3, 0, 1, 1, 3, + 1, 1, 0, 1, 1, 2, 1, 1, 1, 1, + 1, 1, 3, 5, 1, 3, 5, 4, 3, 1, + 0, 1, 3, 1, 6, 3, 4, 6, 2, 3, + 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, + 2, 2, 2, 2, 3, 3, 3, 3, 3, 3, + 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, + 2, 2, 2, 2, 3, 3, 3, 3, 3, 3, + 3, 3, 3, 3, 1, 1, 5, 4, 3, 1, + 2, 2, 2, 2, 2, 2, 2, 2, 2, 1, + 1, 1, 1, 2, 1, 10, 11, 2, 2, 4, + 4, 1, 0, 4, 3, 4, 1, 2, 4, 6, + 5, 6, 6, 6, 6, 4, 1, 1, 3, 2, + 1, 3, 2, 1, 1, 4, 1, 2, 0, 2, + 0, 2, 3, 0, 3, 1, 1, 1, 1, 1, + 1, 1, 1, 1, 1, 1, 1, 1, 1, 3, + 2, 2, 2, 4, 3, 1, 3, 1, 1, 1, + 3, 2, 1, 0, 2, 0, 1, 5, 3, 3, + 1, 1, 1, 1, 1, 1, 5, 1, 2, 0, + 3, 4, 4, 3, 1, 1, 0, 1, 2, 3, + 3, 1, 4, 4, 1, 1, 1, 1, 3, 2, + 1, 4, 4, 1, 1, 4, 0, 1, 1, 1, + 4, 4, 1, 1, 3, 1, 2, 3, 1, 1, + 4, 0, 0, 2, 5, 3, 3, 1, 6, 4, + 4, 2, 4, 4, 2, 2, 4, 2, 2, 1, + 3, 3, 3, 4, 4, 4, 4, 4, 4, 3, + 3, 3, 3 }; #define yyerrok (yyerrstatus = 0) #define yyclearin (yychar = YYEMPTY) #define YYEMPTY (-2) #define YYEOF 0 #define YYACCEPT goto yyacceptlab #define YYABORT goto yyabortlab #define YYERROR goto yyerrorlab #define YYRECOVERING() (!!yyerrstatus) #define YYBACKUP(Token, Value) \ do \ if (yychar == YYEMPTY) \ { \ yychar = (Token); \ yylval = (Value); \ YYPOPSTACK (yylen); \ yystate = *yyssp; \ goto yybackup; \ } \ else \ { \ yyerror (yyscanner, root, YY_("syntax error: cannot back up")); \ YYERROR; \ } \ while (0) /* Error token number */ #define YYTERROR 1 #define YYERRCODE 256 /* Enable debugging if requested. */ #if YYDEBUG # ifndef YYFPRINTF # include /* INFRINGES ON USER NAME SPACE */ # define YYFPRINTF fprintf # endif # define YYDPRINTF(Args) \ do { \ if (yydebug) \ YYFPRINTF Args; \ } while (0) /* This macro is provided for backward compatibility. */ #ifndef YY_LOCATION_PRINT # define YY_LOCATION_PRINT(File, Loc) ((void) 0) #endif # define YY_SYMBOL_PRINT(Title, Type, Value, Location) \ do { \ if (yydebug) \ { \ YYFPRINTF (stderr, "%s ", Title); \ yy_symbol_print (stderr, \ Type, Value, yyscanner, root); \ YYFPRINTF (stderr, "\n"); \ } \ } while (0) /*----------------------------------------. | Print this symbol's value on YYOUTPUT. | `----------------------------------------*/ static void yy_symbol_value_print (FILE *yyoutput, int yytype, YYSTYPE const * const yyvaluep, void* yyscanner, xhpast::Node** root) { FILE *yyo = yyoutput; YYUSE (yyo); YYUSE (yyscanner); YYUSE (root); if (!yyvaluep) return; # ifdef YYPRINT if (yytype < YYNTOKENS) YYPRINT (yyoutput, yytoknum[yytype], *yyvaluep); # endif YYUSE (yytype); } /*--------------------------------. | Print this symbol on YYOUTPUT. | `--------------------------------*/ static void yy_symbol_print (FILE *yyoutput, int yytype, YYSTYPE const * const yyvaluep, void* yyscanner, xhpast::Node** root) { YYFPRINTF (yyoutput, "%s %s (", yytype < YYNTOKENS ? "token" : "nterm", yytname[yytype]); yy_symbol_value_print (yyoutput, yytype, yyvaluep, yyscanner, root); YYFPRINTF (yyoutput, ")"); } /*------------------------------------------------------------------. | yy_stack_print -- Print the state stack from its BOTTOM up to its | | TOP (included). | `------------------------------------------------------------------*/ static void yy_stack_print (yytype_int16 *yybottom, yytype_int16 *yytop) { YYFPRINTF (stderr, "Stack now"); for (; yybottom <= yytop; yybottom++) { int yybot = *yybottom; YYFPRINTF (stderr, " %d", yybot); } YYFPRINTF (stderr, "\n"); } # define YY_STACK_PRINT(Bottom, Top) \ do { \ if (yydebug) \ yy_stack_print ((Bottom), (Top)); \ } while (0) /*------------------------------------------------. | Report that the YYRULE is going to be reduced. | `------------------------------------------------*/ static void yy_reduce_print (yytype_int16 *yyssp, YYSTYPE *yyvsp, int yyrule, void* yyscanner, xhpast::Node** root) { unsigned long int yylno = yyrline[yyrule]; int yynrhs = yyr2[yyrule]; int yyi; YYFPRINTF (stderr, "Reducing stack by rule %d (line %lu):\n", yyrule - 1, yylno); /* The symbols being reduced. */ for (yyi = 0; yyi < yynrhs; yyi++) { YYFPRINTF (stderr, " $%d = ", yyi + 1); yy_symbol_print (stderr, yystos[yyssp[yyi + 1 - yynrhs]], &(yyvsp[(yyi + 1) - (yynrhs)]) , yyscanner, root); YYFPRINTF (stderr, "\n"); } } # define YY_REDUCE_PRINT(Rule) \ do { \ if (yydebug) \ yy_reduce_print (yyssp, yyvsp, Rule, yyscanner, root); \ } while (0) /* Nonzero means print parse trace. It is left uninitialized so that multiple parsers can coexist. */ int yydebug; #else /* !YYDEBUG */ # define YYDPRINTF(Args) # define YY_SYMBOL_PRINT(Title, Type, Value, Location) # define YY_STACK_PRINT(Bottom, Top) # define YY_REDUCE_PRINT(Rule) #endif /* !YYDEBUG */ /* YYINITDEPTH -- initial size of the parser's stacks. */ #ifndef YYINITDEPTH # define YYINITDEPTH 200 #endif /* YYMAXDEPTH -- maximum size the stacks can grow to (effective only if the built-in stack extension method is used). Do not make this value too large; the results are undefined if YYSTACK_ALLOC_MAXIMUM < YYSTACK_BYTES (YYMAXDEPTH) evaluated with infinite-precision integer arithmetic. */ #ifndef YYMAXDEPTH # define YYMAXDEPTH 10000 #endif #if YYERROR_VERBOSE # ifndef yystrlen # if defined __GLIBC__ && defined _STRING_H # define yystrlen strlen # else /* Return the length of YYSTR. */ static YYSIZE_T yystrlen (const char *yystr) { YYSIZE_T yylen; for (yylen = 0; yystr[yylen]; yylen++) continue; return yylen; } # endif # endif # ifndef yystpcpy # if defined __GLIBC__ && defined _STRING_H && defined _GNU_SOURCE # define yystpcpy stpcpy # else /* Copy YYSRC to YYDEST, returning the address of the terminating '\0' in YYDEST. */ static char * yystpcpy (char *yydest, const char *yysrc) { char *yyd = yydest; const char *yys = yysrc; while ((*yyd++ = *yys++) != '\0') continue; return yyd - 1; } # endif # endif # ifndef yytnamerr /* Copy to YYRES the contents of YYSTR after stripping away unnecessary quotes and backslashes, so that it's suitable for yyerror. The heuristic is that double-quoting is unnecessary unless the string contains an apostrophe, a comma, or backslash (other than backslash-backslash). YYSTR is taken from yytname. If YYRES is null, do not copy; instead, return the length of what the result would have been. */ static YYSIZE_T yytnamerr (char *yyres, const char *yystr) { if (*yystr == '"') { YYSIZE_T yyn = 0; char const *yyp = yystr; for (;;) switch (*++yyp) { case '\'': case ',': goto do_not_strip_quotes; case '\\': if (*++yyp != '\\') goto do_not_strip_quotes; /* Fall through. */ default: if (yyres) yyres[yyn] = *yyp; yyn++; break; case '"': if (yyres) yyres[yyn] = '\0'; return yyn; } do_not_strip_quotes: ; } if (! yyres) return yystrlen (yystr); return yystpcpy (yyres, yystr) - yyres; } # endif /* Copy into *YYMSG, which is of size *YYMSG_ALLOC, an error message about the unexpected token YYTOKEN for the state stack whose top is YYSSP. Return 0 if *YYMSG was successfully written. Return 1 if *YYMSG is not large enough to hold the message. In that case, also set *YYMSG_ALLOC to the required number of bytes. Return 2 if the required number of bytes is too large to store. */ static int yysyntax_error (YYSIZE_T *yymsg_alloc, char **yymsg, yytype_int16 *yyssp, int yytoken) { YYSIZE_T yysize0 = yytnamerr (YY_NULLPTR, yytname[yytoken]); YYSIZE_T yysize = yysize0; enum { YYERROR_VERBOSE_ARGS_MAXIMUM = 5 }; /* Internationalized format string. */ const char *yyformat = YY_NULLPTR; /* Arguments of yyformat. */ char const *yyarg[YYERROR_VERBOSE_ARGS_MAXIMUM]; /* Number of reported tokens (one for the "unexpected", one per "expected"). */ int yycount = 0; /* There are many possibilities here to consider: - If this state is a consistent state with a default action, then the only way this function was invoked is if the default action is an error action. In that case, don't check for expected tokens because there are none. - The only way there can be no lookahead present (in yychar) is if this state is a consistent state with a default action. Thus, detecting the absence of a lookahead is sufficient to determine that there is no unexpected or expected token to report. In that case, just report a simple "syntax error". - Don't assume there isn't a lookahead just because this state is a consistent state with a default action. There might have been a previous inconsistent state, consistent state with a non-default action, or user semantic action that manipulated yychar. - Of course, the expected token list depends on states to have correct lookahead information, and it depends on the parser not to perform extra reductions after fetching a lookahead from the scanner and before detecting a syntax error. Thus, state merging (from LALR or IELR) and default reductions corrupt the expected token list. However, the list is correct for canonical LR with one exception: it will still contain any token that will not be accepted due to an error action in a later state. */ if (yytoken != YYEMPTY) { int yyn = yypact[*yyssp]; yyarg[yycount++] = yytname[yytoken]; if (!yypact_value_is_default (yyn)) { /* Start YYX at -YYN if negative to avoid negative indexes in YYCHECK. In other words, skip the first -YYN actions for this state because they are default actions. */ int yyxbegin = yyn < 0 ? -yyn : 0; /* Stay within bounds of both yycheck and yytname. */ int yychecklim = YYLAST - yyn + 1; int yyxend = yychecklim < YYNTOKENS ? yychecklim : YYNTOKENS; int yyx; for (yyx = yyxbegin; yyx < yyxend; ++yyx) if (yycheck[yyx + yyn] == yyx && yyx != YYTERROR && !yytable_value_is_error (yytable[yyx + yyn])) { if (yycount == YYERROR_VERBOSE_ARGS_MAXIMUM) { yycount = 1; yysize = yysize0; break; } yyarg[yycount++] = yytname[yyx]; { YYSIZE_T yysize1 = yysize + yytnamerr (YY_NULLPTR, yytname[yyx]); if (! (yysize <= yysize1 && yysize1 <= YYSTACK_ALLOC_MAXIMUM)) return 2; yysize = yysize1; } } } } switch (yycount) { # define YYCASE_(N, S) \ case N: \ yyformat = S; \ break YYCASE_(0, YY_("syntax error")); YYCASE_(1, YY_("syntax error, unexpected %s")); YYCASE_(2, YY_("syntax error, unexpected %s, expecting %s")); YYCASE_(3, YY_("syntax error, unexpected %s, expecting %s or %s")); YYCASE_(4, YY_("syntax error, unexpected %s, expecting %s or %s or %s")); YYCASE_(5, YY_("syntax error, unexpected %s, expecting %s or %s or %s or %s")); # undef YYCASE_ } { YYSIZE_T yysize1 = yysize + yystrlen (yyformat); if (! (yysize <= yysize1 && yysize1 <= YYSTACK_ALLOC_MAXIMUM)) return 2; yysize = yysize1; } if (*yymsg_alloc < yysize) { *yymsg_alloc = 2 * yysize; if (! (yysize <= *yymsg_alloc && *yymsg_alloc <= YYSTACK_ALLOC_MAXIMUM)) *yymsg_alloc = YYSTACK_ALLOC_MAXIMUM; return 1; } /* Avoid sprintf, as that infringes on the user's name space. Don't have undefined behavior even if the translation produced a string with the wrong number of "%s"s. */ { char *yyp = *yymsg; int yyi = 0; while ((*yyp = *yyformat) != '\0') if (*yyp == '%' && yyformat[1] == 's' && yyi < yycount) { yyp += yytnamerr (yyp, yyarg[yyi++]); yyformat += 2; } else { yyp++; yyformat++; } } return 0; } #endif /* YYERROR_VERBOSE */ /*-----------------------------------------------. | Release the memory associated to this symbol. | `-----------------------------------------------*/ static void yydestruct (const char *yymsg, int yytype, YYSTYPE *yyvaluep, void* yyscanner, xhpast::Node** root) { YYUSE (yyvaluep); YYUSE (yyscanner); YYUSE (root); if (!yymsg) yymsg = "Deleting"; YY_SYMBOL_PRINT (yymsg, yytype, yyvaluep, yylocationp); YY_IGNORE_MAYBE_UNINITIALIZED_BEGIN YYUSE (yytype); YY_IGNORE_MAYBE_UNINITIALIZED_END } /*----------. | yyparse. | `----------*/ int yyparse (void* yyscanner, xhpast::Node** root) { /* The lookahead symbol. */ int yychar; /* The semantic value of the lookahead symbol. */ /* Default value used for initialization, for pacifying older GCCs or non-GCC compilers. */ YY_INITIAL_VALUE (static YYSTYPE yyval_default;) YYSTYPE yylval YY_INITIAL_VALUE (= yyval_default); /* Number of syntax errors so far. */ int yynerrs; int yystate; /* Number of tokens to shift before error messages enabled. */ int yyerrstatus; /* The stacks and their tools: 'yyss': related to states. 'yyvs': related to semantic values. Refer to the stacks through separate pointers, to allow yyoverflow to reallocate them elsewhere. */ /* The state stack. */ yytype_int16 yyssa[YYINITDEPTH]; yytype_int16 *yyss; yytype_int16 *yyssp; /* The semantic value stack. */ YYSTYPE yyvsa[YYINITDEPTH]; YYSTYPE *yyvs; YYSTYPE *yyvsp; YYSIZE_T yystacksize; int yyn; int yyresult; /* Lookahead token as an internal (translated) token number. */ int yytoken = 0; /* The variables used to return semantic value and location from the action routines. */ YYSTYPE yyval; #if YYERROR_VERBOSE /* Buffer for error messages, and its allocated size. */ char yymsgbuf[128]; char *yymsg = yymsgbuf; YYSIZE_T yymsg_alloc = sizeof yymsgbuf; #endif #define YYPOPSTACK(N) (yyvsp -= (N), yyssp -= (N)) /* The number of symbols on the RHS of the reduced rule. Keep to zero when no symbol should be popped. */ int yylen = 0; yyssp = yyss = yyssa; yyvsp = yyvs = yyvsa; yystacksize = YYINITDEPTH; YYDPRINTF ((stderr, "Starting parse\n")); yystate = 0; yyerrstatus = 0; yynerrs = 0; yychar = YYEMPTY; /* Cause a token to be read. */ goto yysetstate; /*------------------------------------------------------------. | yynewstate -- Push a new state, which is found in yystate. | `------------------------------------------------------------*/ yynewstate: /* In all cases, when you get here, the value and location stacks have just been pushed. So pushing a state here evens the stacks. */ yyssp++; yysetstate: *yyssp = yystate; if (yyss + yystacksize - 1 <= yyssp) { /* Get the current used size of the three stacks, in elements. */ YYSIZE_T yysize = yyssp - yyss + 1; #ifdef yyoverflow { /* Give user a chance to reallocate the stack. Use copies of these so that the &'s don't force the real ones into memory. */ YYSTYPE *yyvs1 = yyvs; yytype_int16 *yyss1 = yyss; /* Each stack pointer address is followed by the size of the data in use in that stack, in bytes. This used to be a conditional around just the two extra args, but that might be undefined if yyoverflow is a macro. */ yyoverflow (YY_("memory exhausted"), &yyss1, yysize * sizeof (*yyssp), &yyvs1, yysize * sizeof (*yyvsp), &yystacksize); yyss = yyss1; yyvs = yyvs1; } #else /* no yyoverflow */ # ifndef YYSTACK_RELOCATE goto yyexhaustedlab; # else /* Extend the stack our own way. */ if (YYMAXDEPTH <= yystacksize) goto yyexhaustedlab; yystacksize *= 2; if (YYMAXDEPTH < yystacksize) yystacksize = YYMAXDEPTH; { yytype_int16 *yyss1 = yyss; union yyalloc *yyptr = (union yyalloc *) YYSTACK_ALLOC (YYSTACK_BYTES (yystacksize)); if (! yyptr) goto yyexhaustedlab; YYSTACK_RELOCATE (yyss_alloc, yyss); YYSTACK_RELOCATE (yyvs_alloc, yyvs); # undef YYSTACK_RELOCATE if (yyss1 != yyssa) YYSTACK_FREE (yyss1); } # endif #endif /* no yyoverflow */ yyssp = yyss + yysize - 1; yyvsp = yyvs + yysize - 1; YYDPRINTF ((stderr, "Stack size increased to %lu\n", (unsigned long int) yystacksize)); if (yyss + yystacksize - 1 <= yyssp) YYABORT; } YYDPRINTF ((stderr, "Entering state %d\n", yystate)); if (yystate == YYFINAL) YYACCEPT; goto yybackup; /*-----------. | yybackup. | `-----------*/ yybackup: /* Do appropriate processing given the current state. Read a lookahead token if we need one and don't already have one. */ /* First try to decide what to do without reference to lookahead token. */ yyn = yypact[yystate]; if (yypact_value_is_default (yyn)) goto yydefault; /* Not known => get a lookahead token if don't already have one. */ /* YYCHAR is either YYEMPTY or YYEOF or a valid lookahead symbol. */ if (yychar == YYEMPTY) { YYDPRINTF ((stderr, "Reading a token: ")); yychar = yylex (&yylval, yyscanner); } if (yychar <= YYEOF) { yychar = yytoken = YYEOF; YYDPRINTF ((stderr, "Now at end of input.\n")); } else { yytoken = YYTRANSLATE (yychar); YY_SYMBOL_PRINT ("Next token is", yytoken, &yylval, &yylloc); } /* If the proper action on seeing token YYTOKEN is to reduce or to detect an error, take that action. */ yyn += yytoken; if (yyn < 0 || YYLAST < yyn || yycheck[yyn] != yytoken) goto yydefault; yyn = yytable[yyn]; if (yyn <= 0) { if (yytable_value_is_error (yyn)) goto yyerrlab; yyn = -yyn; goto yyreduce; } /* Count tokens shifted since error; after three, turn off error status. */ if (yyerrstatus) yyerrstatus--; /* Shift the lookahead token. */ YY_SYMBOL_PRINT ("Shifting", yytoken, &yylval, &yylloc); /* Discard the shifted token. */ yychar = YYEMPTY; yystate = yyn; YY_IGNORE_MAYBE_UNINITIALIZED_BEGIN *++yyvsp = yylval; YY_IGNORE_MAYBE_UNINITIALIZED_END goto yynewstate; /*-----------------------------------------------------------. | yydefault -- do the default action for the current state. | `-----------------------------------------------------------*/ yydefault: yyn = yydefact[yystate]; if (yyn == 0) goto yyerrlab; goto yyreduce; /*-----------------------------. | yyreduce -- Do a reduction. | `-----------------------------*/ yyreduce: /* yyn is the number of a rule to reduce with. */ yylen = yyr2[yyn]; /* If YYLEN is nonzero, implement the default value of the action: '$$ = $1'. Otherwise, the following line sets YYVAL to garbage. This behavior is undocumented and Bison users should not rely upon it. Assigning to YYVAL unconditionally makes the parser a bit smaller, and it avoids a GCC warning that YYVAL may be used uninitialized. */ yyval = yyvsp[1-yylen]; YY_REDUCE_PRINT (yyn); switch (yyn) { case 2: #line 210 "parser.y" /* yacc.c:1646 */ { *root = NNEW(n_PROGRAM)->appendChild((yyvsp[0])); } -#line 3439 "parser.yacc.cpp" /* yacc.c:1646 */ +#line 3429 "parser.yacc.cpp" /* yacc.c:1646 */ break; case 3: #line 216 "parser.y" /* yacc.c:1646 */ { (yyval) = (yyvsp[-1])->appendChild((yyvsp[0])); } -#line 3447 "parser.yacc.cpp" /* yacc.c:1646 */ +#line 3437 "parser.yacc.cpp" /* yacc.c:1646 */ break; case 4: #line 219 "parser.y" /* yacc.c:1646 */ { (yyval) = NNEW(n_STATEMENT_LIST); } -#line 3455 "parser.yacc.cpp" /* yacc.c:1646 */ +#line 3445 "parser.yacc.cpp" /* yacc.c:1646 */ break; case 5: #line 225 "parser.y" /* yacc.c:1646 */ { (yyval) = NTYPE((yyvsp[0]), n_SYMBOL_NAME); } -#line 3463 "parser.yacc.cpp" /* yacc.c:1646 */ +#line 3453 "parser.yacc.cpp" /* yacc.c:1646 */ break; case 6: #line 228 "parser.y" /* yacc.c:1646 */ { (yyval) = NMORE((yyvsp[-2]), (yyvsp[0])); } -#line 3471 "parser.yacc.cpp" /* yacc.c:1646 */ +#line 3461 "parser.yacc.cpp" /* yacc.c:1646 */ break; case 10: #line 237 "parser.y" /* yacc.c:1646 */ { (yyvsp[-3]) = NSPAN((yyvsp[-3]), n_HALT_COMPILER, (yyvsp[-1])); (yyval) = NNEW(n_STATEMENT)->appendChild((yyvsp[-3])); NMORE((yyval), (yyvsp[0])); } -#line 3481 "parser.yacc.cpp" /* yacc.c:1646 */ +#line 3471 "parser.yacc.cpp" /* yacc.c:1646 */ break; case 11: #line 242 "parser.y" /* yacc.c:1646 */ { NSPAN((yyvsp[-2]), n_NAMESPACE, (yyvsp[-1])); (yyvsp[-2])->appendChild((yyvsp[-1])); (yyvsp[-2])->appendChild(NNEW(n_EMPTY)); (yyval) = NNEW(n_STATEMENT)->appendChild((yyvsp[-2])); NMORE((yyval), (yyvsp[0])); } -#line 3493 "parser.yacc.cpp" /* yacc.c:1646 */ +#line 3483 "parser.yacc.cpp" /* yacc.c:1646 */ break; case 12: #line 249 "parser.y" /* yacc.c:1646 */ { NSPAN((yyvsp[-4]), n_NAMESPACE, (yyvsp[0])); (yyvsp[-4])->appendChild((yyvsp[-3])); (yyvsp[-4])->appendChild(NEXPAND((yyvsp[-2]), (yyvsp[-1]), (yyvsp[0]))); (yyval) = NNEW(n_STATEMENT)->appendChild((yyvsp[-4])); } -#line 3504 "parser.yacc.cpp" /* yacc.c:1646 */ +#line 3494 "parser.yacc.cpp" /* yacc.c:1646 */ break; case 13: #line 255 "parser.y" /* yacc.c:1646 */ { NSPAN((yyvsp[-3]), n_NAMESPACE, (yyvsp[0])); (yyvsp[-3])->appendChild(NNEW(n_EMPTY)); NMORE((yyvsp[-1]), (yyvsp[0])); NMORE((yyvsp[-1]), (yyvsp[-2])); (yyvsp[-3])->appendChild((yyvsp[-1])); (yyval) = NNEW(n_STATEMENT)->appendChild((yyvsp[-3])); } -#line 3517 "parser.yacc.cpp" /* yacc.c:1646 */ +#line 3507 "parser.yacc.cpp" /* yacc.c:1646 */ break; case 14: #line 263 "parser.y" /* yacc.c:1646 */ { NMORE((yyvsp[-1]), (yyvsp[-2])); (yyval) = NNEW(n_STATEMENT)->appendChild((yyvsp[-1])); NMORE((yyval), (yyvsp[0])); } -#line 3527 "parser.yacc.cpp" /* yacc.c:1646 */ +#line 3517 "parser.yacc.cpp" /* yacc.c:1646 */ break; case 15: #line 268 "parser.y" /* yacc.c:1646 */ { (yyval) = NNEW(n_STATEMENT)->appendChild((yyvsp[-1])); NMORE((yyval), (yyvsp[0])); } -#line 3536 "parser.yacc.cpp" /* yacc.c:1646 */ +#line 3526 "parser.yacc.cpp" /* yacc.c:1646 */ break; case 16: #line 275 "parser.y" /* yacc.c:1646 */ { (yyval) = (yyvsp[-2])->appendChild((yyvsp[0])); } -#line 3544 "parser.yacc.cpp" /* yacc.c:1646 */ +#line 3534 "parser.yacc.cpp" /* yacc.c:1646 */ break; case 17: #line 278 "parser.y" /* yacc.c:1646 */ { (yyval) = NNEW(n_USE_LIST); (yyval)->appendChild((yyvsp[0])); } -#line 3553 "parser.yacc.cpp" /* yacc.c:1646 */ +#line 3543 "parser.yacc.cpp" /* yacc.c:1646 */ break; case 18: #line 285 "parser.y" /* yacc.c:1646 */ { (yyval) = NNEW(n_USE); (yyval)->appendChild((yyvsp[0])); (yyval)->appendChild(NNEW(n_EMPTY)); } -#line 3563 "parser.yacc.cpp" /* yacc.c:1646 */ +#line 3553 "parser.yacc.cpp" /* yacc.c:1646 */ break; case 19: #line 290 "parser.y" /* yacc.c:1646 */ { (yyval) = NNEW(n_USE); (yyval)->appendChild((yyvsp[-2])); NTYPE((yyvsp[0]), n_STRING); (yyval)->appendChild((yyvsp[0])); } -#line 3574 "parser.yacc.cpp" /* yacc.c:1646 */ +#line 3564 "parser.yacc.cpp" /* yacc.c:1646 */ break; case 20: #line 296 "parser.y" /* yacc.c:1646 */ { (yyval) = NNEW(n_USE); NMORE((yyvsp[0]), (yyvsp[-1])); (yyval)->appendChild((yyvsp[0])); (yyval)->appendChild(NNEW(n_EMPTY)); } -#line 3585 "parser.yacc.cpp" /* yacc.c:1646 */ +#line 3575 "parser.yacc.cpp" /* yacc.c:1646 */ break; case 21: #line 302 "parser.y" /* yacc.c:1646 */ { (yyval) = NNEW(n_USE); NMORE((yyvsp[-2]), (yyvsp[-3])); (yyval)->appendChild((yyvsp[-2])); NTYPE((yyvsp[0]), n_STRING); (yyval)->appendChild((yyvsp[0])); } -#line 3597 "parser.yacc.cpp" /* yacc.c:1646 */ +#line 3587 "parser.yacc.cpp" /* yacc.c:1646 */ break; case 22: #line 312 "parser.y" /* yacc.c:1646 */ { NMORE((yyval), (yyvsp[0])); (yyval)->appendChild( NNEW(n_CONSTANT_DECLARATION) ->appendChild(NTYPE((yyvsp[-2]), n_STRING)) ->appendChild((yyvsp[0]))); } -#line 3609 "parser.yacc.cpp" /* yacc.c:1646 */ +#line 3599 "parser.yacc.cpp" /* yacc.c:1646 */ break; case 23: #line 319 "parser.y" /* yacc.c:1646 */ { NSPAN((yyval), n_CONSTANT_DECLARATION_LIST, (yyvsp[0])); (yyval)->appendChild( NNEW(n_CONSTANT_DECLARATION) ->appendChild(NTYPE((yyvsp[-2]), n_STRING)) ->appendChild((yyvsp[0]))); } -#line 3621 "parser.yacc.cpp" /* yacc.c:1646 */ +#line 3611 "parser.yacc.cpp" /* yacc.c:1646 */ break; case 24: #line 329 "parser.y" /* yacc.c:1646 */ { (yyval) = (yyvsp[-1])->appendChild((yyvsp[0])); } -#line 3629 "parser.yacc.cpp" /* yacc.c:1646 */ +#line 3619 "parser.yacc.cpp" /* yacc.c:1646 */ break; case 25: #line 332 "parser.y" /* yacc.c:1646 */ { (yyval) = NNEW(n_STATEMENT_LIST); } -#line 3637 "parser.yacc.cpp" /* yacc.c:1646 */ +#line 3627 "parser.yacc.cpp" /* yacc.c:1646 */ break; case 29: #line 341 "parser.y" /* yacc.c:1646 */ { (yyvsp[-3]) = NSPAN((yyvsp[-3]), n_HALT_COMPILER, (yyvsp[-1])); (yyval) = NNEW(n_STATEMENT)->appendChild((yyvsp[-3])); NMORE((yyval), (yyvsp[0])); } -#line 3647 "parser.yacc.cpp" /* yacc.c:1646 */ +#line 3637 "parser.yacc.cpp" /* yacc.c:1646 */ break; case 31: #line 350 "parser.y" /* yacc.c:1646 */ { NTYPE((yyvsp[-1]), n_STRING); (yyval) = NNEW(n_LABEL); (yyval)->appendChild((yyvsp[-1])); NMORE((yyval), (yyvsp[0])); } -#line 3658 "parser.yacc.cpp" /* yacc.c:1646 */ +#line 3648 "parser.yacc.cpp" /* yacc.c:1646 */ break; case 32: #line 356 "parser.y" /* yacc.c:1646 */ { (yyval) = NTYPE((yyvsp[0]), n_OPEN_TAG); } -#line 3666 "parser.yacc.cpp" /* yacc.c:1646 */ +#line 3656 "parser.yacc.cpp" /* yacc.c:1646 */ break; case 33: #line 359 "parser.y" /* yacc.c:1646 */ { (yyval) = NTYPE((yyvsp[0]), n_OPEN_TAG); } -#line 3674 "parser.yacc.cpp" /* yacc.c:1646 */ +#line 3664 "parser.yacc.cpp" /* yacc.c:1646 */ break; case 34: #line 362 "parser.y" /* yacc.c:1646 */ { (yyval) = NTYPE((yyvsp[0]), n_CLOSE_TAG); } -#line 3682 "parser.yacc.cpp" /* yacc.c:1646 */ +#line 3672 "parser.yacc.cpp" /* yacc.c:1646 */ break; case 35: #line 368 "parser.y" /* yacc.c:1646 */ { (yyval) = NEXPAND((yyvsp[-2]), (yyvsp[-1]), (yyvsp[0])); } -#line 3690 "parser.yacc.cpp" /* yacc.c:1646 */ +#line 3680 "parser.yacc.cpp" /* yacc.c:1646 */ break; case 36: #line 371 "parser.y" /* yacc.c:1646 */ { (yyval) = NNEW(n_CONDITION_LIST); (yyvsp[-6]) = NTYPE((yyvsp[-6]), n_IF); (yyvsp[-6])->appendChild(NSPAN((yyvsp[-5]), n_CONTROL_CONDITION, (yyvsp[-3]))->appendChild((yyvsp[-4]))); (yyvsp[-6])->appendChild((yyvsp[-2])); (yyval)->appendChild((yyvsp[-6])); (yyval)->appendChildren((yyvsp[-1])); // Hacks: merge a list of if (x) { } else if (y) { } into a single condition // list instead of a condition tree. if ((yyvsp[0])->type == n_EMPTY) { // Ignore. } else if ((yyvsp[0])->type == n_ELSE) { xhpast::Node *stype = (yyvsp[0])->firstChild()->firstChild(); if (stype && stype->type == n_CONDITION_LIST) { NTYPE(stype->firstChild(), n_ELSEIF); stype->firstChild()->l_tok = (yyvsp[0])->l_tok; (yyval)->appendChildren(stype); } else { (yyval)->appendChild((yyvsp[0])); } } else { (yyval)->appendChild((yyvsp[0])); } (yyval) = NNEW(n_STATEMENT)->appendChild((yyval)); } -#line 3725 "parser.yacc.cpp" /* yacc.c:1646 */ +#line 3715 "parser.yacc.cpp" /* yacc.c:1646 */ break; case 37: #line 405 "parser.y" /* yacc.c:1646 */ { (yyval) = NNEW(n_CONDITION_LIST); NTYPE((yyvsp[-9]), n_IF); (yyvsp[-9])->appendChild(NSPAN((yyvsp[-8]), n_CONTROL_CONDITION, (yyvsp[-6]))->appendChild((yyvsp[-7]))); (yyvsp[-9])->appendChild((yyvsp[-4])); (yyval)->appendChild((yyvsp[-9])); (yyval)->appendChildren((yyvsp[-3])); (yyval)->appendChild((yyvsp[-2])); NMORE((yyval), (yyvsp[-1])); (yyval) = NNEW(n_STATEMENT)->appendChild((yyval)); NMORE((yyval), (yyvsp[0])); } -#line 3745 "parser.yacc.cpp" /* yacc.c:1646 */ +#line 3735 "parser.yacc.cpp" /* yacc.c:1646 */ break; case 38: #line 420 "parser.y" /* yacc.c:1646 */ { NTYPE((yyvsp[-4]), n_WHILE); (yyvsp[-4])->appendChild(NSPAN((yyvsp[-3]), n_CONTROL_CONDITION, (yyvsp[-1]))->appendChild((yyvsp[-2]))); (yyvsp[-4])->appendChild((yyvsp[0])); (yyval) = NNEW(n_STATEMENT)->appendChild((yyvsp[-4])); } -#line 3757 "parser.yacc.cpp" /* yacc.c:1646 */ +#line 3747 "parser.yacc.cpp" /* yacc.c:1646 */ break; case 39: #line 427 "parser.y" /* yacc.c:1646 */ { NTYPE((yyvsp[-6]), n_DO_WHILE); (yyvsp[-6])->appendChild((yyvsp[-5])); (yyvsp[-6])->appendChild(NSPAN((yyvsp[-3]), n_CONTROL_CONDITION, (yyvsp[-1]))->appendChild((yyvsp[-2]))); (yyval) = NNEW(n_STATEMENT)->appendChild((yyvsp[-6])); NMORE((yyval), (yyvsp[0])); } -#line 3770 "parser.yacc.cpp" /* yacc.c:1646 */ +#line 3760 "parser.yacc.cpp" /* yacc.c:1646 */ break; case 40: #line 435 "parser.y" /* yacc.c:1646 */ { NTYPE((yyvsp[-8]), n_FOR); NSPAN((yyvsp[-7]), n_FOR_EXPRESSION, (yyvsp[-1])) ->appendChild((yyvsp[-6])) ->appendChild((yyvsp[-4])) ->appendChild((yyvsp[-2])); (yyvsp[-8])->appendChild((yyvsp[-7])); (yyvsp[-8])->appendChild((yyvsp[0])); (yyval) = NNEW(n_STATEMENT)->appendChild((yyvsp[-8])); } -#line 3788 "parser.yacc.cpp" /* yacc.c:1646 */ +#line 3778 "parser.yacc.cpp" /* yacc.c:1646 */ break; case 41: #line 448 "parser.y" /* yacc.c:1646 */ { NTYPE((yyvsp[-4]), n_SWITCH); (yyvsp[-4])->appendChild(NSPAN((yyvsp[-3]), n_CONTROL_CONDITION, (yyvsp[-1]))->appendChild((yyvsp[-2]))); (yyvsp[-4])->appendChild((yyvsp[0])); (yyval) = NNEW(n_STATEMENT)->appendChild((yyvsp[-4])); } -#line 3800 "parser.yacc.cpp" /* yacc.c:1646 */ +#line 3790 "parser.yacc.cpp" /* yacc.c:1646 */ break; case 42: #line 455 "parser.y" /* yacc.c:1646 */ { NTYPE((yyvsp[-1]), n_BREAK); (yyvsp[-1])->appendChild(NNEW(n_EMPTY)); (yyval) = NNEW(n_STATEMENT)->appendChild((yyvsp[-1])); NMORE((yyval), (yyvsp[0])); } -#line 3812 "parser.yacc.cpp" /* yacc.c:1646 */ +#line 3802 "parser.yacc.cpp" /* yacc.c:1646 */ break; case 43: #line 462 "parser.y" /* yacc.c:1646 */ { NTYPE((yyvsp[-2]), n_BREAK); (yyvsp[-2])->appendChild((yyvsp[-1])); (yyval) = NNEW(n_STATEMENT)->appendChild((yyvsp[-2])); NMORE((yyval), (yyvsp[0])); } -#line 3824 "parser.yacc.cpp" /* yacc.c:1646 */ +#line 3814 "parser.yacc.cpp" /* yacc.c:1646 */ break; case 44: #line 469 "parser.y" /* yacc.c:1646 */ { NTYPE((yyvsp[-1]), n_CONTINUE); (yyvsp[-1])->appendChild(NNEW(n_EMPTY)); (yyval) = NNEW(n_STATEMENT)->appendChild((yyvsp[-1])); NMORE((yyval), (yyvsp[0])); } -#line 3836 "parser.yacc.cpp" /* yacc.c:1646 */ +#line 3826 "parser.yacc.cpp" /* yacc.c:1646 */ break; case 45: #line 476 "parser.y" /* yacc.c:1646 */ { NTYPE((yyvsp[-2]), n_CONTINUE); (yyvsp[-2])->appendChild((yyvsp[-1])); (yyval) = NNEW(n_STATEMENT)->appendChild((yyvsp[-2])); NMORE((yyval), (yyvsp[0])); } -#line 3848 "parser.yacc.cpp" /* yacc.c:1646 */ +#line 3838 "parser.yacc.cpp" /* yacc.c:1646 */ break; case 46: #line 483 "parser.y" /* yacc.c:1646 */ { NTYPE((yyvsp[-1]), n_RETURN); (yyvsp[-1])->appendChild(NNEW(n_EMPTY)); (yyval) = NNEW(n_STATEMENT)->appendChild((yyvsp[-1])); NMORE((yyval), (yyvsp[0])); } -#line 3860 "parser.yacc.cpp" /* yacc.c:1646 */ +#line 3850 "parser.yacc.cpp" /* yacc.c:1646 */ break; case 47: #line 490 "parser.y" /* yacc.c:1646 */ { NTYPE((yyvsp[-2]), n_RETURN); (yyvsp[-2])->appendChild((yyvsp[-1])); (yyval) = NNEW(n_STATEMENT)->appendChild((yyvsp[-2])); NMORE((yyval), (yyvsp[0])); } -#line 3872 "parser.yacc.cpp" /* yacc.c:1646 */ +#line 3862 "parser.yacc.cpp" /* yacc.c:1646 */ break; case 48: #line 497 "parser.y" /* yacc.c:1646 */ { NTYPE((yyvsp[-2]), n_RETURN); (yyvsp[-2])->appendChild((yyvsp[-1])); (yyval) = NNEW(n_STATEMENT)->appendChild((yyvsp[-2])); NMORE((yyval), (yyvsp[0])); } -#line 3884 "parser.yacc.cpp" /* yacc.c:1646 */ +#line 3874 "parser.yacc.cpp" /* yacc.c:1646 */ break; case 49: #line 504 "parser.y" /* yacc.c:1646 */ { NMORE((yyvsp[-1]), (yyvsp[-2])); (yyval) = NNEW(n_STATEMENT)->appendChild((yyvsp[-1])); NMORE((yyval), (yyvsp[0])); } -#line 3894 "parser.yacc.cpp" /* yacc.c:1646 */ +#line 3884 "parser.yacc.cpp" /* yacc.c:1646 */ break; case 50: #line 509 "parser.y" /* yacc.c:1646 */ { NMORE((yyvsp[-1]), (yyvsp[-2])); (yyval) = NNEW(n_STATEMENT)->appendChild((yyvsp[-1])); NMORE((yyval), (yyvsp[0])); } -#line 3904 "parser.yacc.cpp" /* yacc.c:1646 */ +#line 3894 "parser.yacc.cpp" /* yacc.c:1646 */ break; case 51: #line 514 "parser.y" /* yacc.c:1646 */ { NMORE((yyvsp[-1]), (yyvsp[-2])); (yyval) = NNEW(n_STATEMENT)->appendChild((yyvsp[-1])); NMORE((yyval), (yyvsp[0])); } -#line 3914 "parser.yacc.cpp" /* yacc.c:1646 */ +#line 3904 "parser.yacc.cpp" /* yacc.c:1646 */ break; case 52: #line 519 "parser.y" /* yacc.c:1646 */ { NTYPE((yyvsp[0]), n_INLINE_HTML); (yyval) = (yyvsp[0]); } -#line 3923 "parser.yacc.cpp" /* yacc.c:1646 */ +#line 3913 "parser.yacc.cpp" /* yacc.c:1646 */ break; case 53: #line 523 "parser.y" /* yacc.c:1646 */ { (yyval) = NNEW(n_STATEMENT)->appendChild((yyvsp[-1])); NMORE((yyval), (yyvsp[0])); } -#line 3932 "parser.yacc.cpp" /* yacc.c:1646 */ +#line 3922 "parser.yacc.cpp" /* yacc.c:1646 */ break; case 54: #line 527 "parser.y" /* yacc.c:1646 */ { (yyval) = NNEW(n_STATEMENT)->appendChild((yyvsp[-1])); NMORE((yyval), (yyvsp[0])); } -#line 3941 "parser.yacc.cpp" /* yacc.c:1646 */ +#line 3931 "parser.yacc.cpp" /* yacc.c:1646 */ break; case 55: #line 531 "parser.y" /* yacc.c:1646 */ { NMORE((yyvsp[-2]), (yyvsp[-1])); NMORE((yyvsp[-2]), (yyvsp[-4])); (yyval) = NNEW(n_STATEMENT)->appendChild((yyvsp[-2])); NMORE((yyval), (yyvsp[0])); } -#line 3952 "parser.yacc.cpp" /* yacc.c:1646 */ +#line 3942 "parser.yacc.cpp" /* yacc.c:1646 */ break; case 56: #line 538 "parser.y" /* yacc.c:1646 */ { NTYPE((yyvsp[-7]), n_FOREACH); NSPAN((yyvsp[-6]), n_FOREACH_EXPRESSION, (yyvsp[-1])); (yyvsp[-6])->appendChild((yyvsp[-5])); if ((yyvsp[-2])->type == n_EMPTY) { (yyvsp[-6])->appendChild((yyvsp[-2])); (yyvsp[-6])->appendChild((yyvsp[-3])); } else { (yyvsp[-6])->appendChild((yyvsp[-3])); (yyvsp[-6])->appendChild((yyvsp[-2])); } (yyvsp[-7])->appendChild((yyvsp[-6])); (yyvsp[-7])->appendChild((yyvsp[0])); (yyval) = NNEW(n_STATEMENT)->appendChild((yyvsp[-7])); } -#line 3974 "parser.yacc.cpp" /* yacc.c:1646 */ +#line 3964 "parser.yacc.cpp" /* yacc.c:1646 */ break; case 57: #line 556 "parser.y" /* yacc.c:1646 */ { NTYPE((yyvsp[-7]), n_FOREACH); NSPAN((yyvsp[-6]), n_FOREACH_EXPRESSION, (yyvsp[-1])); (yyvsp[-6])->appendChild((yyvsp[-5])); if ((yyvsp[-2])->type == n_EMPTY) { (yyvsp[-6])->appendChild((yyvsp[-2])); (yyvsp[-6])->appendChild((yyvsp[-3])); } else { (yyvsp[-6])->appendChild((yyvsp[-3])); (yyvsp[-6])->appendChild((yyvsp[-2])); } (yyvsp[-7])->appendChild((yyvsp[-6])); (yyvsp[-7])->appendChild((yyvsp[0])); (yyval) = NNEW(n_STATEMENT)->appendChild((yyvsp[-7])); } -#line 3995 "parser.yacc.cpp" /* yacc.c:1646 */ +#line 3985 "parser.yacc.cpp" /* yacc.c:1646 */ break; case 58: #line 572 "parser.y" /* yacc.c:1646 */ { NTYPE((yyvsp[-4]), n_DECLARE); (yyvsp[-4])->appendChild((yyvsp[-2])); (yyvsp[-4])->appendChild((yyvsp[0])); (yyval) = NNEW(n_STATEMENT)->appendChild((yyvsp[-4])); } -#line 4006 "parser.yacc.cpp" /* yacc.c:1646 */ +#line 3996 "parser.yacc.cpp" /* yacc.c:1646 */ break; case 59: #line 578 "parser.y" /* yacc.c:1646 */ { (yyval) = NNEW(n_STATEMENT)->appendChild(NNEW(n_EMPTY)); NMORE((yyval), (yyvsp[0])); } -#line 4015 "parser.yacc.cpp" /* yacc.c:1646 */ +#line 4005 "parser.yacc.cpp" /* yacc.c:1646 */ break; case 60: #line 582 "parser.y" /* yacc.c:1646 */ { NTYPE((yyvsp[-5]), n_TRY); (yyvsp[-5])->appendChild(NEXPAND((yyvsp[-4]), (yyvsp[-3]), (yyvsp[-2]))); (yyvsp[-5])->appendChild((yyvsp[-1])); (yyvsp[-5])->appendChild((yyvsp[0])); (yyval) = NNEW(n_STATEMENT)->appendChild((yyvsp[-5])); } -#line 4029 "parser.yacc.cpp" /* yacc.c:1646 */ +#line 4019 "parser.yacc.cpp" /* yacc.c:1646 */ break; case 61: #line 591 "parser.y" /* yacc.c:1646 */ { NTYPE((yyvsp[-4]), n_TRY); (yyvsp[-4])->appendChild(NEXPAND((yyvsp[-3]), (yyvsp[-2]), (yyvsp[-1]))); (yyvsp[-4])->appendChild(NNEW(n_CATCH_LIST)); (yyvsp[-4])->appendChild((yyvsp[0])); (yyval) = NNEW(n_STATEMENT)->appendChild((yyvsp[-4])); } -#line 4043 "parser.yacc.cpp" /* yacc.c:1646 */ +#line 4033 "parser.yacc.cpp" /* yacc.c:1646 */ break; case 62: #line 600 "parser.y" /* yacc.c:1646 */ { NTYPE((yyvsp[-2]), n_THROW); (yyvsp[-2])->appendChild((yyvsp[-1])); (yyval) = NNEW(n_STATEMENT)->appendChild((yyvsp[-2])); NMORE((yyval), (yyvsp[0])); } -#line 4056 "parser.yacc.cpp" /* yacc.c:1646 */ +#line 4046 "parser.yacc.cpp" /* yacc.c:1646 */ break; case 63: #line 608 "parser.y" /* yacc.c:1646 */ { NTYPE((yyvsp[-2]), n_GOTO); NTYPE((yyvsp[-1]), n_STRING); (yyvsp[-2])->appendChild((yyvsp[-1])); (yyval) = NNEW(n_STATEMENT)->appendChild((yyvsp[-2])); NMORE((yyval), (yyvsp[0])); } -#line 4069 "parser.yacc.cpp" /* yacc.c:1646 */ +#line 4059 "parser.yacc.cpp" /* yacc.c:1646 */ break; case 64: #line 619 "parser.y" /* yacc.c:1646 */ { (yyvsp[-1])->appendChild((yyvsp[0])); (yyval) = (yyvsp[-1]); } -#line 4078 "parser.yacc.cpp" /* yacc.c:1646 */ +#line 4068 "parser.yacc.cpp" /* yacc.c:1646 */ break; case 65: #line 623 "parser.y" /* yacc.c:1646 */ { (yyval) = NNEW(n_CATCH_LIST); (yyval)->appendChild((yyvsp[0])); } -#line 4087 "parser.yacc.cpp" /* yacc.c:1646 */ +#line 4077 "parser.yacc.cpp" /* yacc.c:1646 */ break; case 66: #line 630 "parser.y" /* yacc.c:1646 */ { NTYPE((yyvsp[-7]), n_CATCH); (yyvsp[-7])->appendChild((yyvsp[-5])); (yyvsp[-7])->appendChild(NTYPE((yyvsp[-4]), n_VARIABLE)); (yyvsp[-7])->appendChild(NEXPAND((yyvsp[-2]), (yyvsp[-1]), (yyvsp[0]))); NMORE((yyvsp[-7]), (yyvsp[0])); (yyval) = (yyvsp[-7]); } -#line 4100 "parser.yacc.cpp" /* yacc.c:1646 */ +#line 4090 "parser.yacc.cpp" /* yacc.c:1646 */ break; case 67: #line 641 "parser.y" /* yacc.c:1646 */ { (yyval) = NNEW(n_EMPTY); } -#line 4108 "parser.yacc.cpp" /* yacc.c:1646 */ +#line 4098 "parser.yacc.cpp" /* yacc.c:1646 */ break; case 69: #line 648 "parser.y" /* yacc.c:1646 */ { NTYPE((yyvsp[-3]), n_FINALLY); (yyvsp[-3])->appendChild((yyvsp[-1])); NMORE((yyvsp[-3]), (yyvsp[0])); (yyval) = (yyvsp[-3]); } -#line 4119 "parser.yacc.cpp" /* yacc.c:1646 */ +#line 4109 "parser.yacc.cpp" /* yacc.c:1646 */ break; case 70: #line 657 "parser.y" /* yacc.c:1646 */ { (yyval) = NNEW(n_UNSET_LIST); (yyval)->appendChild((yyvsp[0])); } -#line 4128 "parser.yacc.cpp" /* yacc.c:1646 */ +#line 4118 "parser.yacc.cpp" /* yacc.c:1646 */ break; case 71: #line 661 "parser.y" /* yacc.c:1646 */ { (yyvsp[-2])->appendChild((yyvsp[0])); (yyval) = (yyvsp[-2]); } -#line 4137 "parser.yacc.cpp" /* yacc.c:1646 */ +#line 4127 "parser.yacc.cpp" /* yacc.c:1646 */ break; case 75: #line 680 "parser.y" /* yacc.c:1646 */ { (yyval) = NNEW(n_EMPTY); } -#line 4145 "parser.yacc.cpp" /* yacc.c:1646 */ +#line 4135 "parser.yacc.cpp" /* yacc.c:1646 */ break; case 76: #line 683 "parser.y" /* yacc.c:1646 */ { (yyval) = NTYPE((yyvsp[0]), n_REFERENCE); } -#line 4153 "parser.yacc.cpp" /* yacc.c:1646 */ +#line 4143 "parser.yacc.cpp" /* yacc.c:1646 */ break; case 77: #line 690 "parser.y" /* yacc.c:1646 */ { NSPAN((yyvsp[-9]), n_FUNCTION_DECLARATION, (yyvsp[-1])); (yyvsp[-9])->appendChild(NNEW(n_EMPTY)); (yyvsp[-9])->appendChild((yyvsp[-8])); (yyvsp[-9])->appendChild(NTYPE((yyvsp[-7]), n_STRING)); (yyvsp[-9])->appendChild(NEXPAND((yyvsp[-6]), (yyvsp[-5]), (yyvsp[-4]))); (yyvsp[-9])->appendChild(NNEW(n_EMPTY)); (yyvsp[-9])->appendChild((yyvsp[-3])); (yyvsp[-9])->appendChild(NEXPAND((yyvsp[-2]), (yyvsp[-1]), (yyvsp[0]))); (yyval) = NNEW(n_STATEMENT)->appendChild((yyvsp[-9])); } -#line 4170 "parser.yacc.cpp" /* yacc.c:1646 */ +#line 4160 "parser.yacc.cpp" /* yacc.c:1646 */ break; case 78: #line 706 "parser.y" /* yacc.c:1646 */ { (yyval) = NNEW(n_CLASS_DECLARATION); (yyval)->appendChild((yyvsp[-6])); (yyval)->appendChild(NTYPE((yyvsp[-5]), n_CLASS_NAME)); (yyval)->appendChild((yyvsp[-4])); (yyval)->appendChild((yyvsp[-3])); (yyval)->appendChild(NEXPAND((yyvsp[-2]), (yyvsp[-1]), (yyvsp[0]))); NMORE((yyval), (yyvsp[0])); (yyval) = NNEW(n_STATEMENT)->appendChild((yyval)); } -#line 4186 "parser.yacc.cpp" /* yacc.c:1646 */ +#line 4176 "parser.yacc.cpp" /* yacc.c:1646 */ break; case 79: #line 717 "parser.y" /* yacc.c:1646 */ { (yyval) = NNEW(n_INTERFACE_DECLARATION); (yyval)->appendChild(NNEW(n_CLASS_ATTRIBUTES)); NMORE((yyval), (yyvsp[-5])); (yyval)->appendChild(NTYPE((yyvsp[-4]), n_CLASS_NAME)); (yyval)->appendChild((yyvsp[-3])); (yyval)->appendChild(NNEW(n_EMPTY)); (yyval)->appendChild(NEXPAND((yyvsp[-2]), (yyvsp[-1]), (yyvsp[0]))); NMORE((yyval), (yyvsp[0])); (yyval) = NNEW(n_STATEMENT)->appendChild((yyval)); } -#line 4203 "parser.yacc.cpp" /* yacc.c:1646 */ +#line 4193 "parser.yacc.cpp" /* yacc.c:1646 */ break; case 80: #line 732 "parser.y" /* yacc.c:1646 */ { NTYPE((yyvsp[0]), n_CLASS_ATTRIBUTES); (yyval) = (yyvsp[0]); } -#line 4212 "parser.yacc.cpp" /* yacc.c:1646 */ +#line 4202 "parser.yacc.cpp" /* yacc.c:1646 */ break; case 81: #line 736 "parser.y" /* yacc.c:1646 */ { NTYPE((yyvsp[0]), n_CLASS_ATTRIBUTES); NMORE((yyvsp[0]), (yyvsp[-1])); (yyvsp[0])->appendChild(NTYPE((yyvsp[-1]), n_STRING)); (yyval) = (yyvsp[0]); } -#line 4224 "parser.yacc.cpp" /* yacc.c:1646 */ +#line 4214 "parser.yacc.cpp" /* yacc.c:1646 */ break; case 82: #line 743 "parser.y" /* yacc.c:1646 */ { NTYPE((yyvsp[0]), n_CLASS_ATTRIBUTES); NMORE((yyvsp[0]), (yyvsp[-1])); (yyvsp[0])->appendChild(NTYPE((yyvsp[-1]), n_STRING)); (yyval) = (yyvsp[0]); } -#line 4236 "parser.yacc.cpp" /* yacc.c:1646 */ +#line 4226 "parser.yacc.cpp" /* yacc.c:1646 */ break; case 83: #line 750 "parser.y" /* yacc.c:1646 */ { (yyval) = NNEW(n_CLASS_ATTRIBUTES); (yyval)->appendChild(NTYPE((yyvsp[0]), n_STRING)); } -#line 4245 "parser.yacc.cpp" /* yacc.c:1646 */ +#line 4235 "parser.yacc.cpp" /* yacc.c:1646 */ break; case 84: #line 757 "parser.y" /* yacc.c:1646 */ { (yyval) = NNEW(n_EMPTY); } -#line 4253 "parser.yacc.cpp" /* yacc.c:1646 */ +#line 4243 "parser.yacc.cpp" /* yacc.c:1646 */ break; case 85: #line 760 "parser.y" /* yacc.c:1646 */ { (yyval) = NTYPE((yyvsp[-1]), n_EXTENDS_LIST)->appendChild((yyvsp[0])); } -#line 4261 "parser.yacc.cpp" /* yacc.c:1646 */ +#line 4251 "parser.yacc.cpp" /* yacc.c:1646 */ break; case 87: #line 770 "parser.y" /* yacc.c:1646 */ { (yyval) = NNEW(n_EMPTY); } -#line 4269 "parser.yacc.cpp" /* yacc.c:1646 */ +#line 4259 "parser.yacc.cpp" /* yacc.c:1646 */ break; case 88: #line 773 "parser.y" /* yacc.c:1646 */ { NTYPE((yyvsp[-1]), n_EXTENDS_LIST); (yyvsp[-1])->appendChildren((yyvsp[0])); (yyval) = (yyvsp[-1]); } -#line 4279 "parser.yacc.cpp" /* yacc.c:1646 */ +#line 4269 "parser.yacc.cpp" /* yacc.c:1646 */ break; case 89: #line 781 "parser.y" /* yacc.c:1646 */ { (yyval) = NNEW(n_EMPTY); } -#line 4287 "parser.yacc.cpp" /* yacc.c:1646 */ +#line 4277 "parser.yacc.cpp" /* yacc.c:1646 */ break; case 90: #line 784 "parser.y" /* yacc.c:1646 */ { NTYPE((yyvsp[-1]), n_IMPLEMENTS_LIST); (yyvsp[-1])->appendChildren((yyvsp[0])); (yyval) = (yyvsp[-1]); } -#line 4297 "parser.yacc.cpp" /* yacc.c:1646 */ +#line 4287 "parser.yacc.cpp" /* yacc.c:1646 */ break; case 91: #line 792 "parser.y" /* yacc.c:1646 */ { (yyval) = NNEW(n_IMPLEMENTS_LIST)->appendChild((yyvsp[0])); } -#line 4305 "parser.yacc.cpp" /* yacc.c:1646 */ +#line 4295 "parser.yacc.cpp" /* yacc.c:1646 */ break; case 92: #line 795 "parser.y" /* yacc.c:1646 */ { (yyval) = (yyvsp[-2])->appendChild((yyvsp[0])); } -#line 4313 "parser.yacc.cpp" /* yacc.c:1646 */ +#line 4303 "parser.yacc.cpp" /* yacc.c:1646 */ break; case 93: #line 801 "parser.y" /* yacc.c:1646 */ { (yyval) = NNEW(n_EMPTY); } -#line 4321 "parser.yacc.cpp" /* yacc.c:1646 */ +#line 4311 "parser.yacc.cpp" /* yacc.c:1646 */ break; case 94: #line 804 "parser.y" /* yacc.c:1646 */ { (yyval) = (yyvsp[0]); } -#line 4329 "parser.yacc.cpp" /* yacc.c:1646 */ +#line 4319 "parser.yacc.cpp" /* yacc.c:1646 */ break; case 96: #line 811 "parser.y" /* yacc.c:1646 */ { NTYPE((yyvsp[-1]), n_VARIABLE_REFERENCE); (yyvsp[-1])->appendChild((yyvsp[0])); (yyval) = (yyvsp[-1]); } -#line 4339 "parser.yacc.cpp" /* yacc.c:1646 */ +#line 4329 "parser.yacc.cpp" /* yacc.c:1646 */ break; case 98: #line 820 "parser.y" /* yacc.c:1646 */ { NMORE((yyvsp[-2]), (yyvsp[-3])); NMORE((yyvsp[-2]), (yyvsp[0])); (yyval) = (yyvsp[-2]); } -#line 4349 "parser.yacc.cpp" /* yacc.c:1646 */ +#line 4339 "parser.yacc.cpp" /* yacc.c:1646 */ break; case 100: #line 829 "parser.y" /* yacc.c:1646 */ { NMORE((yyvsp[-2]), (yyvsp[-3])); NMORE((yyvsp[-2]), (yyvsp[0])); (yyval) = (yyvsp[-2]); } -#line 4359 "parser.yacc.cpp" /* yacc.c:1646 */ +#line 4349 "parser.yacc.cpp" /* yacc.c:1646 */ break; case 102: #line 838 "parser.y" /* yacc.c:1646 */ { NMORE((yyvsp[-2]), (yyvsp[-3])); NMORE((yyvsp[-2]), (yyvsp[0])); (yyval) = (yyvsp[-2]); } -#line 4369 "parser.yacc.cpp" /* yacc.c:1646 */ +#line 4359 "parser.yacc.cpp" /* yacc.c:1646 */ break; case 103: #line 846 "parser.y" /* yacc.c:1646 */ { (yyval) = NNEW(n_DECLARE_DECLARATION); (yyval)->appendChild(NTYPE((yyvsp[-2]), n_STRING)); (yyval)->appendChild((yyvsp[0])); (yyval) = NNEW(n_DECLARE_DECLARATION_LIST)->appendChild((yyval)); } -#line 4380 "parser.yacc.cpp" /* yacc.c:1646 */ +#line 4370 "parser.yacc.cpp" /* yacc.c:1646 */ break; case 104: #line 852 "parser.y" /* yacc.c:1646 */ { (yyval) = NNEW(n_DECLARE_DECLARATION); (yyval)->appendChild(NTYPE((yyvsp[-2]), n_STRING)); (yyval)->appendChild((yyvsp[0])); (yyvsp[-4])->appendChild((yyval)); (yyval) = (yyvsp[-4]); } -#line 4393 "parser.yacc.cpp" /* yacc.c:1646 */ +#line 4383 "parser.yacc.cpp" /* yacc.c:1646 */ break; case 105: #line 863 "parser.y" /* yacc.c:1646 */ { (yyval) = NEXPAND((yyvsp[-2]), (yyvsp[-1]), (yyvsp[0])); } -#line 4401 "parser.yacc.cpp" /* yacc.c:1646 */ +#line 4391 "parser.yacc.cpp" /* yacc.c:1646 */ break; case 106: #line 866 "parser.y" /* yacc.c:1646 */ { // ...why does this rule exist? NTYPE((yyvsp[-2]), n_STATEMENT); (yyvsp[-3])->appendChild(NNEW(n_EMPTY)); (yyval) = NNEW(n_STATEMENT_LIST)->appendChild((yyvsp[-2])); (yyval)->appendChildren((yyvsp[-1])); NEXPAND((yyvsp[-3]), (yyval), (yyvsp[0])); } -#line 4416 "parser.yacc.cpp" /* yacc.c:1646 */ +#line 4406 "parser.yacc.cpp" /* yacc.c:1646 */ break; case 107: #line 876 "parser.y" /* yacc.c:1646 */ { NMORE((yyvsp[-2]), (yyvsp[0])); NMORE((yyvsp[-2]), (yyvsp[-3])); (yyval) = (yyvsp[-2]); } -#line 4426 "parser.yacc.cpp" /* yacc.c:1646 */ +#line 4416 "parser.yacc.cpp" /* yacc.c:1646 */ break; case 108: #line 881 "parser.y" /* yacc.c:1646 */ { NTYPE((yyvsp[-3]), n_STATEMENT); (yyvsp[-4])->appendChild(NNEW(n_EMPTY)); (yyval) = NNEW(n_STATEMENT_LIST)->appendChild((yyvsp[-3])); (yyval)->appendChildren((yyvsp[-2])); NMORE((yyval), (yyvsp[0])); NMORE((yyval), (yyvsp[-4])); } -#line 4440 "parser.yacc.cpp" /* yacc.c:1646 */ +#line 4430 "parser.yacc.cpp" /* yacc.c:1646 */ break; case 109: #line 893 "parser.y" /* yacc.c:1646 */ { (yyval) = NNEW(n_STATEMENT_LIST); } -#line 4448 "parser.yacc.cpp" /* yacc.c:1646 */ +#line 4438 "parser.yacc.cpp" /* yacc.c:1646 */ break; case 110: #line 896 "parser.y" /* yacc.c:1646 */ { NTYPE((yyvsp[-3]), n_CASE); (yyvsp[-3])->appendChild((yyvsp[-2])); (yyvsp[-3])->appendChild((yyvsp[0])); (yyvsp[-4])->appendChild((yyvsp[-3])); (yyval) = (yyvsp[-4]); } -#line 4461 "parser.yacc.cpp" /* yacc.c:1646 */ +#line 4451 "parser.yacc.cpp" /* yacc.c:1646 */ break; case 111: #line 904 "parser.y" /* yacc.c:1646 */ { NTYPE((yyvsp[-2]), n_DEFAULT); (yyvsp[-2])->appendChild((yyvsp[0])); (yyvsp[-3])->appendChild((yyvsp[-2])); (yyval) = (yyvsp[-3]); } -#line 4473 "parser.yacc.cpp" /* yacc.c:1646 */ +#line 4463 "parser.yacc.cpp" /* yacc.c:1646 */ break; case 115: #line 920 "parser.y" /* yacc.c:1646 */ { NMORE((yyvsp[-2]), (yyvsp[0])); NMORE((yyvsp[-2]), (yyvsp[-3])); (yyval) = (yyvsp[-2]); } -#line 4483 "parser.yacc.cpp" /* yacc.c:1646 */ +#line 4473 "parser.yacc.cpp" /* yacc.c:1646 */ break; case 116: #line 928 "parser.y" /* yacc.c:1646 */ { (yyval) = NNEW(n_CONDITION_LIST); } -#line 4491 "parser.yacc.cpp" /* yacc.c:1646 */ +#line 4481 "parser.yacc.cpp" /* yacc.c:1646 */ break; case 117: #line 931 "parser.y" /* yacc.c:1646 */ { NTYPE((yyvsp[-4]), n_ELSEIF); (yyvsp[-4])->appendChild(NSPAN((yyvsp[-3]), n_CONTROL_CONDITION, (yyvsp[-1]))->appendChild((yyvsp[-2]))); (yyvsp[-4])->appendChild((yyvsp[0])); (yyval) = (yyvsp[-5])->appendChild((yyvsp[-4])); } -#line 4503 "parser.yacc.cpp" /* yacc.c:1646 */ +#line 4493 "parser.yacc.cpp" /* yacc.c:1646 */ break; case 118: #line 941 "parser.y" /* yacc.c:1646 */ { (yyval) = NNEW(n_CONDITION_LIST); } -#line 4511 "parser.yacc.cpp" /* yacc.c:1646 */ +#line 4501 "parser.yacc.cpp" /* yacc.c:1646 */ break; case 119: #line 944 "parser.y" /* yacc.c:1646 */ { NTYPE((yyvsp[-5]), n_ELSEIF); (yyvsp[-5])->appendChild((yyvsp[-3])); (yyvsp[-5])->appendChild((yyvsp[0])); (yyval) = (yyvsp[-6])->appendChild((yyvsp[-5])); } -#line 4523 "parser.yacc.cpp" /* yacc.c:1646 */ +#line 4513 "parser.yacc.cpp" /* yacc.c:1646 */ break; case 120: #line 954 "parser.y" /* yacc.c:1646 */ { (yyval) = NNEW(n_EMPTY); } -#line 4531 "parser.yacc.cpp" /* yacc.c:1646 */ +#line 4521 "parser.yacc.cpp" /* yacc.c:1646 */ break; case 121: #line 957 "parser.y" /* yacc.c:1646 */ { NTYPE((yyvsp[-1]), n_ELSE); (yyvsp[-1])->appendChild((yyvsp[0])); (yyval) = (yyvsp[-1]); } -#line 4541 "parser.yacc.cpp" /* yacc.c:1646 */ +#line 4531 "parser.yacc.cpp" /* yacc.c:1646 */ break; case 122: #line 965 "parser.y" /* yacc.c:1646 */ { (yyval) = NNEW(n_EMPTY); } -#line 4549 "parser.yacc.cpp" /* yacc.c:1646 */ +#line 4539 "parser.yacc.cpp" /* yacc.c:1646 */ break; case 123: #line 968 "parser.y" /* yacc.c:1646 */ { NTYPE((yyvsp[-2]), n_ELSE); (yyvsp[-2])->appendChild((yyvsp[0])); (yyval) = (yyvsp[-2]); } -#line 4559 "parser.yacc.cpp" /* yacc.c:1646 */ +#line 4549 "parser.yacc.cpp" /* yacc.c:1646 */ break; case 125: #line 977 "parser.y" /* yacc.c:1646 */ { (yyval) = NNEW(n_DECLARATION_PARAMETER_LIST); } -#line 4567 "parser.yacc.cpp" /* yacc.c:1646 */ +#line 4557 "parser.yacc.cpp" /* yacc.c:1646 */ break; case 126: #line 983 "parser.y" /* yacc.c:1646 */ { (yyval) = NNEW(n_DECLARATION_PARAMETER); (yyval)->appendChild((yyvsp[-1])); (yyval)->appendChild((yyvsp[0])); (yyval)->appendChild(NNEW(n_EMPTY)); (yyval) = NNEW(n_DECLARATION_PARAMETER_LIST)->appendChild((yyval)); } -#line 4580 "parser.yacc.cpp" /* yacc.c:1646 */ +#line 4570 "parser.yacc.cpp" /* yacc.c:1646 */ break; case 127: #line 991 "parser.y" /* yacc.c:1646 */ { (yyval) = NNEW(n_DECLARATION_PARAMETER); (yyval)->appendChild((yyvsp[-2])); (yyval)->appendChild(NTYPE((yyvsp[-1]), n_VARIABLE_REFERENCE)); (yyvsp[-1])->appendChild((yyvsp[0])); (yyval)->appendChild(NNEW(n_EMPTY)); (yyval) = NNEW(n_DECLARATION_PARAMETER_LIST)->appendChild((yyval)); } -#line 4594 "parser.yacc.cpp" /* yacc.c:1646 */ +#line 4584 "parser.yacc.cpp" /* yacc.c:1646 */ break; case 128: #line 1000 "parser.y" /* yacc.c:1646 */ { (yyval) = NNEW(n_DECLARATION_PARAMETER); (yyval)->appendChild((yyvsp[-4])); (yyval)->appendChild(NTYPE((yyvsp[-3]), n_VARIABLE_REFERENCE)); (yyvsp[-3])->appendChild((yyvsp[-2])); (yyval)->appendChild((yyvsp[0])); (yyval) = NNEW(n_DECLARATION_PARAMETER_LIST)->appendChild((yyval)); } -#line 4608 "parser.yacc.cpp" /* yacc.c:1646 */ +#line 4598 "parser.yacc.cpp" /* yacc.c:1646 */ break; case 129: #line 1009 "parser.y" /* yacc.c:1646 */ { (yyval) = NNEW(n_DECLARATION_PARAMETER); (yyval)->appendChild((yyvsp[-3])); (yyval)->appendChild((yyvsp[-2])); (yyval)->appendChild((yyvsp[0])); (yyval) = NNEW(n_DECLARATION_PARAMETER_LIST)->appendChild((yyval)); } -#line 4621 "parser.yacc.cpp" /* yacc.c:1646 */ +#line 4611 "parser.yacc.cpp" /* yacc.c:1646 */ break; case 130: #line 1017 "parser.y" /* yacc.c:1646 */ { (yyval) = NNEW(n_DECLARATION_PARAMETER); (yyval)->appendChild((yyvsp[-1])); (yyval)->appendChild((yyvsp[0])); (yyval)->appendChild(NNEW(n_EMPTY)); (yyval) = (yyvsp[-3])->appendChild((yyval)); } -#line 4634 "parser.yacc.cpp" /* yacc.c:1646 */ +#line 4624 "parser.yacc.cpp" /* yacc.c:1646 */ break; case 131: #line 1025 "parser.y" /* yacc.c:1646 */ { (yyval) = NNEW(n_DECLARATION_PARAMETER); (yyval)->appendChild((yyvsp[-2])); (yyval)->appendChild(NTYPE((yyvsp[-1]), n_VARIABLE_REFERENCE)); (yyvsp[-1])->appendChild((yyvsp[0])); (yyval)->appendChild(NNEW(n_EMPTY)); (yyval) = (yyvsp[-4])->appendChild((yyval)); } -#line 4648 "parser.yacc.cpp" /* yacc.c:1646 */ +#line 4638 "parser.yacc.cpp" /* yacc.c:1646 */ break; case 132: #line 1035 "parser.y" /* yacc.c:1646 */ { (yyval) = NNEW(n_DECLARATION_PARAMETER); (yyval)->appendChild((yyvsp[-4])); (yyval)->appendChild(NTYPE((yyvsp[-3]), n_VARIABLE_REFERENCE)); (yyvsp[-3])->appendChild((yyvsp[-2])); (yyval)->appendChild((yyvsp[0])); (yyval) = (yyvsp[-6])->appendChild((yyval)); } -#line 4662 "parser.yacc.cpp" /* yacc.c:1646 */ +#line 4652 "parser.yacc.cpp" /* yacc.c:1646 */ break; case 133: #line 1045 "parser.y" /* yacc.c:1646 */ { (yyval) = NNEW(n_DECLARATION_PARAMETER); (yyval)->appendChild((yyvsp[-3])); (yyval)->appendChild((yyvsp[-2])); (yyval)->appendChild((yyvsp[0])); (yyval) = (yyvsp[-5])->appendChild((yyval)); } -#line 4675 "parser.yacc.cpp" /* yacc.c:1646 */ +#line 4665 "parser.yacc.cpp" /* yacc.c:1646 */ break; case 134: #line 1056 "parser.y" /* yacc.c:1646 */ { (yyval) = NTYPE((yyvsp[-1]), n_UNPACK); (yyval)->appendChild(NTYPE((yyvsp[0]), n_VARIABLE)); } -#line 4684 "parser.yacc.cpp" /* yacc.c:1646 */ +#line 4674 "parser.yacc.cpp" /* yacc.c:1646 */ break; case 135: #line 1060 "parser.y" /* yacc.c:1646 */ { (yyval) = NTYPE((yyvsp[0]), n_VARIABLE); } -#line 4692 "parser.yacc.cpp" /* yacc.c:1646 */ +#line 4682 "parser.yacc.cpp" /* yacc.c:1646 */ break; case 136: #line 1066 "parser.y" /* yacc.c:1646 */ { (yyval) = NNEW(n_EMPTY); } -#line 4700 "parser.yacc.cpp" /* yacc.c:1646 */ +#line 4690 "parser.yacc.cpp" /* yacc.c:1646 */ break; case 138: #line 1073 "parser.y" /* yacc.c:1646 */ { (yyval) = (yyvsp[0]); } -#line 4708 "parser.yacc.cpp" /* yacc.c:1646 */ +#line 4698 "parser.yacc.cpp" /* yacc.c:1646 */ break; case 139: #line 1076 "parser.y" /* yacc.c:1646 */ { (yyval) = NTYPE((yyvsp[0]), n_TYPE_NAME); } -#line 4716 "parser.yacc.cpp" /* yacc.c:1646 */ +#line 4706 "parser.yacc.cpp" /* yacc.c:1646 */ break; case 140: #line 1079 "parser.y" /* yacc.c:1646 */ { (yyval) = NTYPE((yyvsp[0]), n_TYPE_NAME); } -#line 4724 "parser.yacc.cpp" /* yacc.c:1646 */ +#line 4714 "parser.yacc.cpp" /* yacc.c:1646 */ break; case 141: #line 1085 "parser.y" /* yacc.c:1646 */ { (yyval) = NNEW(n_EMPTY); } -#line 4732 "parser.yacc.cpp" /* yacc.c:1646 */ +#line 4722 "parser.yacc.cpp" /* yacc.c:1646 */ break; case 142: #line 1088 "parser.y" /* yacc.c:1646 */ { - (yyval) = (yyvsp[0]); + (yyval) = NNEW(n_DECLARATION_RETURN); + (yyval)->appendChild((yyvsp[-1])); + (yyval)->appendChild((yyvsp[0])); } -#line 4740 "parser.yacc.cpp" /* yacc.c:1646 */ +#line 4732 "parser.yacc.cpp" /* yacc.c:1646 */ break; - case 144: -#line 1095 "parser.y" /* yacc.c:1646 */ + case 143: +#line 1093 "parser.y" /* yacc.c:1646 */ { - (yyval) = NNEW(n_CALL_PARAMETER_LIST); + (yyval) = NNEW(n_DECLARATION_RETURN); + (yyval)->appendChild(NNEW(n_EMPTY)); + (yyval)->appendChild((yyvsp[0])); } -#line 4748 "parser.yacc.cpp" /* yacc.c:1646 */ +#line 4742 "parser.yacc.cpp" /* yacc.c:1646 */ break; case 145: -#line 1101 "parser.y" /* yacc.c:1646 */ +#line 1102 "parser.y" /* yacc.c:1646 */ { - (yyval) = NNEW(n_CALL_PARAMETER_LIST)->appendChild((yyvsp[0])); + (yyval) = NNEW(n_CALL_PARAMETER_LIST); } -#line 4756 "parser.yacc.cpp" /* yacc.c:1646 */ +#line 4750 "parser.yacc.cpp" /* yacc.c:1646 */ break; case 146: -#line 1104 "parser.y" /* yacc.c:1646 */ +#line 1108 "parser.y" /* yacc.c:1646 */ { - (yyval) = (yyvsp[-2])->appendChild((yyvsp[0])); + (yyval) = NNEW(n_CALL_PARAMETER_LIST)->appendChild((yyvsp[0])); } -#line 4764 "parser.yacc.cpp" /* yacc.c:1646 */ +#line 4758 "parser.yacc.cpp" /* yacc.c:1646 */ break; - case 148: + case 147: #line 1111 "parser.y" /* yacc.c:1646 */ { - (yyval) = NNEW(n_UNPACK)->appendChild((yyvsp[-1])); + (yyval) = (yyvsp[-2])->appendChild((yyvsp[0])); } -#line 4772 "parser.yacc.cpp" /* yacc.c:1646 */ +#line 4766 "parser.yacc.cpp" /* yacc.c:1646 */ break; case 149: -#line 1114 "parser.y" /* yacc.c:1646 */ +#line 1118 "parser.y" /* yacc.c:1646 */ { - NTYPE((yyvsp[-1]), n_VARIABLE_REFERENCE); - (yyval) = (yyvsp[-1])->appendChild((yyvsp[0])); + (yyval) = NNEW(n_UNPACK)->appendChild((yyvsp[-1])); } -#line 4781 "parser.yacc.cpp" /* yacc.c:1646 */ +#line 4774 "parser.yacc.cpp" /* yacc.c:1646 */ break; case 150: #line 1121 "parser.y" /* yacc.c:1646 */ + { + NTYPE((yyvsp[-1]), n_VARIABLE_REFERENCE); + (yyval) = (yyvsp[-1])->appendChild((yyvsp[0])); + } +#line 4783 "parser.yacc.cpp" /* yacc.c:1646 */ + break; + + case 151: +#line 1128 "parser.y" /* yacc.c:1646 */ { (yyvsp[-2])->appendChild((yyvsp[0])); (yyval) = (yyvsp[-2]); } -#line 4790 "parser.yacc.cpp" /* yacc.c:1646 */ +#line 4792 "parser.yacc.cpp" /* yacc.c:1646 */ break; - case 151: -#line 1125 "parser.y" /* yacc.c:1646 */ + case 152: +#line 1132 "parser.y" /* yacc.c:1646 */ { (yyval) = NNEW(n_GLOBAL_DECLARATION_LIST); (yyval)->appendChild((yyvsp[0])); } -#line 4799 "parser.yacc.cpp" /* yacc.c:1646 */ +#line 4801 "parser.yacc.cpp" /* yacc.c:1646 */ break; - case 152: -#line 1132 "parser.y" /* yacc.c:1646 */ + case 153: +#line 1139 "parser.y" /* yacc.c:1646 */ { (yyval) = NTYPE((yyvsp[0]), n_VARIABLE); } -#line 4807 "parser.yacc.cpp" /* yacc.c:1646 */ +#line 4809 "parser.yacc.cpp" /* yacc.c:1646 */ break; - case 153: -#line 1135 "parser.y" /* yacc.c:1646 */ + case 154: +#line 1142 "parser.y" /* yacc.c:1646 */ { (yyval) = NTYPE((yyvsp[-1]), n_VARIABLE_VARIABLE); (yyval)->appendChild((yyvsp[0])); } -#line 4816 "parser.yacc.cpp" /* yacc.c:1646 */ +#line 4818 "parser.yacc.cpp" /* yacc.c:1646 */ break; - case 154: -#line 1139 "parser.y" /* yacc.c:1646 */ + case 155: +#line 1146 "parser.y" /* yacc.c:1646 */ { (yyval) = NTYPE((yyvsp[-3]), n_VARIABLE_VARIABLE); (yyval)->appendChild((yyvsp[-1])); } -#line 4825 "parser.yacc.cpp" /* yacc.c:1646 */ +#line 4827 "parser.yacc.cpp" /* yacc.c:1646 */ break; - case 155: -#line 1146 "parser.y" /* yacc.c:1646 */ + case 156: +#line 1153 "parser.y" /* yacc.c:1646 */ { NTYPE((yyvsp[0]), n_VARIABLE); (yyval) = NNEW(n_STATIC_DECLARATION); (yyval)->appendChild((yyvsp[0])); (yyval)->appendChild(NNEW(n_EMPTY)); (yyval) = (yyvsp[-2])->appendChild((yyval)); } -#line 4838 "parser.yacc.cpp" /* yacc.c:1646 */ +#line 4840 "parser.yacc.cpp" /* yacc.c:1646 */ break; - case 156: -#line 1154 "parser.y" /* yacc.c:1646 */ + case 157: +#line 1161 "parser.y" /* yacc.c:1646 */ { NTYPE((yyvsp[-2]), n_VARIABLE); (yyval) = NNEW(n_STATIC_DECLARATION); (yyval)->appendChild((yyvsp[-2])); (yyval)->appendChild((yyvsp[0])); (yyval) = (yyvsp[-4])->appendChild((yyval)); } -#line 4851 "parser.yacc.cpp" /* yacc.c:1646 */ +#line 4853 "parser.yacc.cpp" /* yacc.c:1646 */ break; - case 157: -#line 1162 "parser.y" /* yacc.c:1646 */ + case 158: +#line 1169 "parser.y" /* yacc.c:1646 */ { NTYPE((yyvsp[0]), n_VARIABLE); (yyval) = NNEW(n_STATIC_DECLARATION); (yyval)->appendChild((yyvsp[0])); (yyval)->appendChild(NNEW(n_EMPTY)); (yyval) = NNEW(n_STATIC_DECLARATION_LIST)->appendChild((yyval)); } -#line 4864 "parser.yacc.cpp" /* yacc.c:1646 */ +#line 4866 "parser.yacc.cpp" /* yacc.c:1646 */ break; - case 158: -#line 1170 "parser.y" /* yacc.c:1646 */ + case 159: +#line 1177 "parser.y" /* yacc.c:1646 */ { NTYPE((yyvsp[-2]), n_VARIABLE); (yyval) = NNEW(n_STATIC_DECLARATION); (yyval)->appendChild((yyvsp[-2])); (yyval)->appendChild((yyvsp[0])); (yyval) = NNEW(n_STATIC_DECLARATION_LIST)->appendChild((yyval)); } -#line 4877 "parser.yacc.cpp" /* yacc.c:1646 */ +#line 4879 "parser.yacc.cpp" /* yacc.c:1646 */ break; - case 159: -#line 1181 "parser.y" /* yacc.c:1646 */ + case 160: +#line 1188 "parser.y" /* yacc.c:1646 */ { (yyval) = (yyvsp[-1])->appendChild((yyvsp[0])); } -#line 4885 "parser.yacc.cpp" /* yacc.c:1646 */ +#line 4887 "parser.yacc.cpp" /* yacc.c:1646 */ break; - case 160: -#line 1184 "parser.y" /* yacc.c:1646 */ + case 161: +#line 1191 "parser.y" /* yacc.c:1646 */ { (yyval) = NNEW(n_STATEMENT_LIST); } -#line 4893 "parser.yacc.cpp" /* yacc.c:1646 */ +#line 4895 "parser.yacc.cpp" /* yacc.c:1646 */ break; - case 161: -#line 1190 "parser.y" /* yacc.c:1646 */ + case 162: +#line 1197 "parser.y" /* yacc.c:1646 */ { (yyval) = NNEW(n_CLASS_MEMBER_DECLARATION_LIST); (yyval)->appendChild((yyvsp[-2])); (yyval)->appendChildren((yyvsp[-1])); (yyval) = NNEW(n_STATEMENT)->appendChild((yyval)); NMORE((yyval), (yyvsp[0])); } -#line 4906 "parser.yacc.cpp" /* yacc.c:1646 */ +#line 4908 "parser.yacc.cpp" /* yacc.c:1646 */ break; - case 162: -#line 1198 "parser.y" /* yacc.c:1646 */ + case 163: +#line 1205 "parser.y" /* yacc.c:1646 */ { (yyval) = NNEW(n_STATEMENT)->appendChild((yyvsp[-1])); NMORE((yyval), (yyvsp[0])); } -#line 4915 "parser.yacc.cpp" /* yacc.c:1646 */ +#line 4917 "parser.yacc.cpp" /* yacc.c:1646 */ break; - case 163: -#line 1202 "parser.y" /* yacc.c:1646 */ + case 164: +#line 1209 "parser.y" /* yacc.c:1646 */ { (yyval) = (yyvsp[0]); } -#line 4923 "parser.yacc.cpp" /* yacc.c:1646 */ +#line 4925 "parser.yacc.cpp" /* yacc.c:1646 */ break; - case 164: -#line 1205 "parser.y" /* yacc.c:1646 */ + case 165: +#line 1212 "parser.y" /* yacc.c:1646 */ { /* empty */ } -#line 4931 "parser.yacc.cpp" /* yacc.c:1646 */ +#line 4933 "parser.yacc.cpp" /* yacc.c:1646 */ break; - case 165: -#line 1207 "parser.y" /* yacc.c:1646 */ + case 166: +#line 1214 "parser.y" /* yacc.c:1646 */ { (yyval) = NNEW(n_METHOD_DECLARATION); NMORE((yyval), (yyvsp[-8])); (yyval)->appendChild((yyvsp[-9])); (yyval)->appendChild((yyvsp[-6])); (yyval)->appendChild(NTYPE((yyvsp[-5]), n_STRING)); (yyval)->appendChild(NEXPAND((yyvsp[-4]), (yyvsp[-3]), (yyvsp[-2]))); (yyval)->appendChild(NNEW(n_EMPTY)); (yyval)->appendChild((yyvsp[-1])); (yyval)->appendChild((yyvsp[0])); (yyval) = NNEW(n_STATEMENT)->appendChild((yyval)); } -#line 4949 "parser.yacc.cpp" /* yacc.c:1646 */ +#line 4951 "parser.yacc.cpp" /* yacc.c:1646 */ break; - case 166: -#line 1223 "parser.y" /* yacc.c:1646 */ + case 167: +#line 1230 "parser.y" /* yacc.c:1646 */ { (yyval) = NTYPE((yyvsp[-2]), n_TRAIT_USE); (yyval)->appendChildren((yyvsp[-1])); (yyval)->appendChild((yyvsp[0])); } -#line 4959 "parser.yacc.cpp" /* yacc.c:1646 */ +#line 4961 "parser.yacc.cpp" /* yacc.c:1646 */ break; - case 167: -#line 1231 "parser.y" /* yacc.c:1646 */ + case 168: +#line 1238 "parser.y" /* yacc.c:1646 */ { (yyval) = NNEW(n_TRAIT_USE_LIST)->appendChild((yyvsp[0])); } -#line 4967 "parser.yacc.cpp" /* yacc.c:1646 */ +#line 4969 "parser.yacc.cpp" /* yacc.c:1646 */ break; - case 168: -#line 1234 "parser.y" /* yacc.c:1646 */ + case 169: +#line 1241 "parser.y" /* yacc.c:1646 */ { (yyval) = (yyvsp[-2])->appendChild((yyvsp[0])); } -#line 4975 "parser.yacc.cpp" /* yacc.c:1646 */ +#line 4977 "parser.yacc.cpp" /* yacc.c:1646 */ break; - case 169: -#line 1240 "parser.y" /* yacc.c:1646 */ + case 170: +#line 1247 "parser.y" /* yacc.c:1646 */ { (yyval) = NNEW(n_EMPTY); } -#line 4983 "parser.yacc.cpp" /* yacc.c:1646 */ +#line 4985 "parser.yacc.cpp" /* yacc.c:1646 */ break; - case 170: -#line 1243 "parser.y" /* yacc.c:1646 */ + case 171: +#line 1250 "parser.y" /* yacc.c:1646 */ { (yyval) = NEXPAND((yyvsp[-2]), (yyvsp[-1]), (yyvsp[0])); } -#line 4991 "parser.yacc.cpp" /* yacc.c:1646 */ +#line 4993 "parser.yacc.cpp" /* yacc.c:1646 */ break; - case 171: -#line 1249 "parser.y" /* yacc.c:1646 */ + case 172: +#line 1256 "parser.y" /* yacc.c:1646 */ { (yyval) = NNEW(n_TRAIT_ADAPTATION_LIST); } -#line 4999 "parser.yacc.cpp" /* yacc.c:1646 */ +#line 5001 "parser.yacc.cpp" /* yacc.c:1646 */ break; - case 172: -#line 1252 "parser.y" /* yacc.c:1646 */ + case 173: +#line 1259 "parser.y" /* yacc.c:1646 */ { (yyval) = (yyvsp[0]); } -#line 5007 "parser.yacc.cpp" /* yacc.c:1646 */ +#line 5009 "parser.yacc.cpp" /* yacc.c:1646 */ break; - case 173: -#line 1258 "parser.y" /* yacc.c:1646 */ + case 174: +#line 1265 "parser.y" /* yacc.c:1646 */ { (yyval) = NNEW(n_TRAIT_ADAPTATION_LIST); (yyval)->appendChild((yyvsp[0])); } -#line 5016 "parser.yacc.cpp" /* yacc.c:1646 */ +#line 5018 "parser.yacc.cpp" /* yacc.c:1646 */ break; - case 174: -#line 1262 "parser.y" /* yacc.c:1646 */ + case 175: +#line 1269 "parser.y" /* yacc.c:1646 */ { (yyvsp[-1])->appendChild((yyvsp[0])); (yyval) = (yyvsp[-1]); } -#line 5025 "parser.yacc.cpp" /* yacc.c:1646 */ +#line 5027 "parser.yacc.cpp" /* yacc.c:1646 */ break; - case 175: -#line 1269 "parser.y" /* yacc.c:1646 */ + case 176: +#line 1276 "parser.y" /* yacc.c:1646 */ { (yyval) = NMORE((yyvsp[-1]), (yyvsp[0])); } -#line 5033 "parser.yacc.cpp" /* yacc.c:1646 */ +#line 5035 "parser.yacc.cpp" /* yacc.c:1646 */ break; - case 176: -#line 1272 "parser.y" /* yacc.c:1646 */ + case 177: +#line 1279 "parser.y" /* yacc.c:1646 */ { (yyval) = NMORE((yyvsp[-1]), (yyvsp[0])); } -#line 5041 "parser.yacc.cpp" /* yacc.c:1646 */ +#line 5043 "parser.yacc.cpp" /* yacc.c:1646 */ break; - case 177: -#line 1278 "parser.y" /* yacc.c:1646 */ + case 178: +#line 1285 "parser.y" /* yacc.c:1646 */ { (yyval) = NNEW(n_TRAIT_INSTEADOF); (yyval)->appendChild((yyvsp[-2])); (yyval)->appendChild((yyvsp[0])); } -#line 5051 "parser.yacc.cpp" /* yacc.c:1646 */ +#line 5053 "parser.yacc.cpp" /* yacc.c:1646 */ break; - case 178: -#line 1286 "parser.y" /* yacc.c:1646 */ + case 179: +#line 1293 "parser.y" /* yacc.c:1646 */ { (yyval) = NNEW(n_TRAIT_REFERENCE_LIST); (yyval)->appendChild((yyvsp[0])); } -#line 5060 "parser.yacc.cpp" /* yacc.c:1646 */ +#line 5062 "parser.yacc.cpp" /* yacc.c:1646 */ break; - case 179: -#line 1290 "parser.y" /* yacc.c:1646 */ + case 180: +#line 1297 "parser.y" /* yacc.c:1646 */ { (yyvsp[-2])->appendChild((yyvsp[0])); (yyval) = (yyvsp[-2]); } -#line 5069 "parser.yacc.cpp" /* yacc.c:1646 */ +#line 5071 "parser.yacc.cpp" /* yacc.c:1646 */ break; - case 180: -#line 1297 "parser.y" /* yacc.c:1646 */ + case 181: +#line 1304 "parser.y" /* yacc.c:1646 */ { (yyval) = NNEW(n_TRAIT_METHOD_REFERENCE); (yyval)->appendChild(NTYPE((yyvsp[0]), n_STRING)); } -#line 5078 "parser.yacc.cpp" /* yacc.c:1646 */ +#line 5080 "parser.yacc.cpp" /* yacc.c:1646 */ break; - case 181: -#line 1301 "parser.y" /* yacc.c:1646 */ + case 182: +#line 1308 "parser.y" /* yacc.c:1646 */ { (yyval) = (yyvsp[0]); } -#line 5086 "parser.yacc.cpp" /* yacc.c:1646 */ +#line 5088 "parser.yacc.cpp" /* yacc.c:1646 */ break; - case 182: -#line 1307 "parser.y" /* yacc.c:1646 */ + case 183: +#line 1314 "parser.y" /* yacc.c:1646 */ { NTYPE((yyvsp[-1]), n_TRAIT_METHOD_REFERENCE); NEXPAND((yyvsp[-2]), (yyvsp[-1]), NTYPE((yyvsp[0]), n_STRING)); (yyval) = (yyvsp[-1]); } -#line 5096 "parser.yacc.cpp" /* yacc.c:1646 */ +#line 5098 "parser.yacc.cpp" /* yacc.c:1646 */ break; - case 183: -#line 1315 "parser.y" /* yacc.c:1646 */ + case 184: +#line 1322 "parser.y" /* yacc.c:1646 */ { (yyval) = NNEW(n_TRAIT_AS); (yyval)->appendChild((yyvsp[-3])); (yyval)->appendChild((yyvsp[-1])); (yyval)->appendChild(NTYPE((yyvsp[0]), n_STRING)); } -#line 5107 "parser.yacc.cpp" /* yacc.c:1646 */ +#line 5109 "parser.yacc.cpp" /* yacc.c:1646 */ break; - case 184: -#line 1321 "parser.y" /* yacc.c:1646 */ + case 185: +#line 1328 "parser.y" /* yacc.c:1646 */ { (yyval) = NNEW(n_TRAIT_AS); (yyval)->appendChild((yyvsp[-2])); (yyval)->appendChild((yyvsp[0])); (yyval)->appendChild(NNEW(n_EMPTY)); } -#line 5118 "parser.yacc.cpp" /* yacc.c:1646 */ +#line 5120 "parser.yacc.cpp" /* yacc.c:1646 */ break; - case 185: -#line 1330 "parser.y" /* yacc.c:1646 */ + case 186: +#line 1337 "parser.y" /* yacc.c:1646 */ { (yyval) = NNEW(n_EMPTY); } -#line 5126 "parser.yacc.cpp" /* yacc.c:1646 */ +#line 5128 "parser.yacc.cpp" /* yacc.c:1646 */ break; - case 186: -#line 1333 "parser.y" /* yacc.c:1646 */ + case 187: +#line 1340 "parser.y" /* yacc.c:1646 */ { (yyval) = NNEW(n_METHOD_MODIFIER_LIST); (yyval)->appendChild(NTYPE((yyvsp[0]), n_STRING)); } -#line 5135 "parser.yacc.cpp" /* yacc.c:1646 */ +#line 5137 "parser.yacc.cpp" /* yacc.c:1646 */ break; - case 187: -#line 1341 "parser.y" /* yacc.c:1646 */ + case 188: +#line 1348 "parser.y" /* yacc.c:1646 */ { (yyval) = NNEW(n_EMPTY); } -#line 5143 "parser.yacc.cpp" /* yacc.c:1646 */ +#line 5145 "parser.yacc.cpp" /* yacc.c:1646 */ break; - case 188: -#line 1344 "parser.y" /* yacc.c:1646 */ + case 189: +#line 1351 "parser.y" /* yacc.c:1646 */ { (yyval) = NEXPAND((yyvsp[-2]), (yyvsp[-1]), (yyvsp[0])); } -#line 5151 "parser.yacc.cpp" /* yacc.c:1646 */ +#line 5153 "parser.yacc.cpp" /* yacc.c:1646 */ break; - case 190: -#line 1351 "parser.y" /* yacc.c:1646 */ + case 191: +#line 1358 "parser.y" /* yacc.c:1646 */ { (yyval) = NNEW(n_CLASS_MEMBER_MODIFIER_LIST); (yyval)->appendChild(NTYPE((yyvsp[0]), n_STRING)); } -#line 5160 "parser.yacc.cpp" /* yacc.c:1646 */ +#line 5162 "parser.yacc.cpp" /* yacc.c:1646 */ break; - case 191: -#line 1358 "parser.y" /* yacc.c:1646 */ + case 192: +#line 1365 "parser.y" /* yacc.c:1646 */ { (yyval) = NNEW(n_METHOD_MODIFIER_LIST); } -#line 5168 "parser.yacc.cpp" /* yacc.c:1646 */ +#line 5170 "parser.yacc.cpp" /* yacc.c:1646 */ break; - case 192: -#line 1361 "parser.y" /* yacc.c:1646 */ + case 193: +#line 1368 "parser.y" /* yacc.c:1646 */ { NTYPE((yyvsp[0]), n_METHOD_MODIFIER_LIST); (yyval) = (yyvsp[0]); } -#line 5177 "parser.yacc.cpp" /* yacc.c:1646 */ +#line 5179 "parser.yacc.cpp" /* yacc.c:1646 */ break; - case 193: -#line 1368 "parser.y" /* yacc.c:1646 */ + case 194: +#line 1375 "parser.y" /* yacc.c:1646 */ { (yyval) = NNEW(n_CLASS_MEMBER_MODIFIER_LIST); (yyval)->appendChild(NTYPE((yyvsp[0]), n_STRING)); } -#line 5186 "parser.yacc.cpp" /* yacc.c:1646 */ +#line 5188 "parser.yacc.cpp" /* yacc.c:1646 */ break; - case 194: -#line 1372 "parser.y" /* yacc.c:1646 */ + case 195: +#line 1379 "parser.y" /* yacc.c:1646 */ { (yyval) = (yyvsp[-1])->appendChild(NTYPE((yyvsp[0]), n_STRING)); } -#line 5194 "parser.yacc.cpp" /* yacc.c:1646 */ +#line 5196 "parser.yacc.cpp" /* yacc.c:1646 */ break; - case 201: -#line 1387 "parser.y" /* yacc.c:1646 */ + case 202: +#line 1394 "parser.y" /* yacc.c:1646 */ { (yyval) = NNEW(n_CLASS_MEMBER_DECLARATION); (yyval)->appendChild(NTYPE((yyvsp[0]), n_VARIABLE)); (yyval)->appendChild(NNEW(n_EMPTY)); (yyval) = (yyvsp[-2])->appendChild((yyval)); } -#line 5206 "parser.yacc.cpp" /* yacc.c:1646 */ +#line 5208 "parser.yacc.cpp" /* yacc.c:1646 */ break; - case 202: -#line 1394 "parser.y" /* yacc.c:1646 */ + case 203: +#line 1401 "parser.y" /* yacc.c:1646 */ { (yyval) = NNEW(n_CLASS_MEMBER_DECLARATION); (yyval)->appendChild(NTYPE((yyvsp[-2]), n_VARIABLE)); (yyval)->appendChild((yyvsp[0])); (yyval) = (yyvsp[-4])->appendChild((yyval)); } -#line 5218 "parser.yacc.cpp" /* yacc.c:1646 */ +#line 5220 "parser.yacc.cpp" /* yacc.c:1646 */ break; - case 203: -#line 1401 "parser.y" /* yacc.c:1646 */ + case 204: +#line 1408 "parser.y" /* yacc.c:1646 */ { (yyval) = NNEW(n_CLASS_MEMBER_DECLARATION); (yyval)->appendChild(NTYPE((yyvsp[0]), n_VARIABLE)); (yyval)->appendChild(NNEW(n_EMPTY)); (yyval) = NNEW(n_CLASS_MEMBER_DECLARATION_LIST)->appendChild((yyval)); } -#line 5230 "parser.yacc.cpp" /* yacc.c:1646 */ +#line 5232 "parser.yacc.cpp" /* yacc.c:1646 */ break; - case 204: -#line 1408 "parser.y" /* yacc.c:1646 */ + case 205: +#line 1415 "parser.y" /* yacc.c:1646 */ { (yyval) = NNEW(n_CLASS_MEMBER_DECLARATION); (yyval)->appendChild(NTYPE((yyvsp[-2]), n_VARIABLE)); (yyval)->appendChild((yyvsp[0])); (yyval) = NNEW(n_CLASS_MEMBER_DECLARATION_LIST)->appendChild((yyval)); } -#line 5242 "parser.yacc.cpp" /* yacc.c:1646 */ +#line 5244 "parser.yacc.cpp" /* yacc.c:1646 */ break; - case 205: -#line 1418 "parser.y" /* yacc.c:1646 */ + case 206: +#line 1425 "parser.y" /* yacc.c:1646 */ { (yyval) = NNEW(n_CLASS_CONSTANT_DECLARATION); (yyval)->appendChild(NTYPE((yyvsp[-2]), n_STRING)); (yyval)->appendChild((yyvsp[0])); (yyvsp[-4])->appendChild((yyval)); (yyval) = (yyvsp[-4]); } -#line 5256 "parser.yacc.cpp" /* yacc.c:1646 */ +#line 5258 "parser.yacc.cpp" /* yacc.c:1646 */ break; - case 206: -#line 1427 "parser.y" /* yacc.c:1646 */ + case 207: +#line 1434 "parser.y" /* yacc.c:1646 */ { NTYPE((yyvsp[-3]), n_CLASS_CONSTANT_DECLARATION_LIST); (yyval) = NNEW(n_CLASS_CONSTANT_DECLARATION); (yyval)->appendChild(NTYPE((yyvsp[-2]), n_STRING)); (yyval)->appendChild((yyvsp[0])); (yyvsp[-3])->appendChild((yyval)); (yyval) = (yyvsp[-3]); } -#line 5270 "parser.yacc.cpp" /* yacc.c:1646 */ +#line 5272 "parser.yacc.cpp" /* yacc.c:1646 */ break; - case 207: -#line 1439 "parser.y" /* yacc.c:1646 */ + case 208: +#line 1446 "parser.y" /* yacc.c:1646 */ { (yyvsp[-2])->appendChild((yyvsp[0])); } -#line 5278 "parser.yacc.cpp" /* yacc.c:1646 */ +#line 5280 "parser.yacc.cpp" /* yacc.c:1646 */ break; - case 208: -#line 1442 "parser.y" /* yacc.c:1646 */ + case 209: +#line 1449 "parser.y" /* yacc.c:1646 */ { (yyval) = NNEW(n_ECHO_LIST); (yyval)->appendChild((yyvsp[0])); } -#line 5287 "parser.yacc.cpp" /* yacc.c:1646 */ +#line 5289 "parser.yacc.cpp" /* yacc.c:1646 */ break; - case 209: -#line 1449 "parser.y" /* yacc.c:1646 */ + case 210: +#line 1456 "parser.y" /* yacc.c:1646 */ { (yyval) = NNEW(n_EMPTY); } -#line 5295 "parser.yacc.cpp" /* yacc.c:1646 */ +#line 5297 "parser.yacc.cpp" /* yacc.c:1646 */ break; - case 211: -#line 1457 "parser.y" /* yacc.c:1646 */ + case 212: +#line 1464 "parser.y" /* yacc.c:1646 */ { (yyvsp[-2])->appendChild((yyvsp[0])); } -#line 5303 "parser.yacc.cpp" /* yacc.c:1646 */ +#line 5305 "parser.yacc.cpp" /* yacc.c:1646 */ break; - case 212: -#line 1460 "parser.y" /* yacc.c:1646 */ + case 213: +#line 1467 "parser.y" /* yacc.c:1646 */ { (yyval) = NNEW(n_EXPRESSION_LIST); (yyval)->appendChild((yyvsp[0])); } -#line 5312 "parser.yacc.cpp" /* yacc.c:1646 */ +#line 5314 "parser.yacc.cpp" /* yacc.c:1646 */ break; - case 213: -#line 1467 "parser.y" /* yacc.c:1646 */ + case 214: +#line 1474 "parser.y" /* yacc.c:1646 */ { NTYPE((yyvsp[-5]), n_LIST); (yyvsp[-5])->appendChild(NEXPAND((yyvsp[-4]), (yyvsp[-3]), (yyvsp[-2]))); (yyval) = NNEW(n_BINARY_EXPRESSION); (yyval)->appendChild((yyvsp[-5])); (yyval)->appendChild(NTYPE((yyvsp[-1]), n_OPERATOR)); (yyval)->appendChild((yyvsp[0])); } -#line 5325 "parser.yacc.cpp" /* yacc.c:1646 */ +#line 5327 "parser.yacc.cpp" /* yacc.c:1646 */ break; - case 214: -#line 1475 "parser.y" /* yacc.c:1646 */ + case 215: +#line 1482 "parser.y" /* yacc.c:1646 */ { (yyval) = NNEW(n_BINARY_EXPRESSION); (yyval)->appendChild((yyvsp[-2])); (yyval)->appendChild(NTYPE((yyvsp[-1]), n_OPERATOR)); (yyval)->appendChild((yyvsp[0])); } -#line 5336 "parser.yacc.cpp" /* yacc.c:1646 */ +#line 5338 "parser.yacc.cpp" /* yacc.c:1646 */ break; - case 215: -#line 1481 "parser.y" /* yacc.c:1646 */ + case 216: +#line 1488 "parser.y" /* yacc.c:1646 */ { (yyval) = NNEW(n_BINARY_EXPRESSION); (yyval)->appendChild((yyvsp[-3])); (yyval)->appendChild(NTYPE((yyvsp[-2]), n_OPERATOR)); NTYPE((yyvsp[-1]), n_VARIABLE_REFERENCE); (yyvsp[-1])->appendChild((yyvsp[0])); (yyval)->appendChild((yyvsp[-1])); } -#line 5351 "parser.yacc.cpp" /* yacc.c:1646 */ +#line 5353 "parser.yacc.cpp" /* yacc.c:1646 */ break; - case 216: -#line 1491 "parser.y" /* yacc.c:1646 */ + case 217: +#line 1498 "parser.y" /* yacc.c:1646 */ { (yyval) = NNEW(n_BINARY_EXPRESSION); (yyval)->appendChild((yyvsp[-5])); (yyval)->appendChild(NTYPE((yyvsp[-4]), n_OPERATOR)); NTYPE((yyvsp[-2]), n_NEW); (yyvsp[-2])->appendChild((yyvsp[-1])); (yyvsp[-2])->appendChild((yyvsp[0])); NTYPE((yyvsp[-3]), n_VARIABLE_REFERENCE); (yyvsp[-3])->appendChild((yyvsp[-2])); (yyval)->appendChild((yyvsp[-3])); } -#line 5370 "parser.yacc.cpp" /* yacc.c:1646 */ - break; - - case 217: -#line 1505 "parser.y" /* yacc.c:1646 */ - { - (yyval) = NNEW(n_UNARY_PREFIX_EXPRESSION); - (yyval)->appendChild(NTYPE((yyvsp[-1]), n_OPERATOR)); - (yyval)->appendChild((yyvsp[0])); - } -#line 5380 "parser.yacc.cpp" /* yacc.c:1646 */ +#line 5372 "parser.yacc.cpp" /* yacc.c:1646 */ break; case 218: -#line 1510 "parser.y" /* yacc.c:1646 */ +#line 1512 "parser.y" /* yacc.c:1646 */ { - (yyval) = NNEW(n_BINARY_EXPRESSION); - (yyval)->appendChild((yyvsp[-2])); + (yyval) = NNEW(n_UNARY_PREFIX_EXPRESSION); (yyval)->appendChild(NTYPE((yyvsp[-1]), n_OPERATOR)); (yyval)->appendChild((yyvsp[0])); } -#line 5391 "parser.yacc.cpp" /* yacc.c:1646 */ +#line 5382 "parser.yacc.cpp" /* yacc.c:1646 */ break; case 219: -#line 1516 "parser.y" /* yacc.c:1646 */ +#line 1517 "parser.y" /* yacc.c:1646 */ { (yyval) = NNEW(n_BINARY_EXPRESSION); (yyval)->appendChild((yyvsp[-2])); (yyval)->appendChild(NTYPE((yyvsp[-1]), n_OPERATOR)); (yyval)->appendChild((yyvsp[0])); } -#line 5402 "parser.yacc.cpp" /* yacc.c:1646 */ +#line 5393 "parser.yacc.cpp" /* yacc.c:1646 */ break; case 220: -#line 1522 "parser.y" /* yacc.c:1646 */ +#line 1523 "parser.y" /* yacc.c:1646 */ { (yyval) = NNEW(n_BINARY_EXPRESSION); (yyval)->appendChild((yyvsp[-2])); (yyval)->appendChild(NTYPE((yyvsp[-1]), n_OPERATOR)); (yyval)->appendChild((yyvsp[0])); } -#line 5413 "parser.yacc.cpp" /* yacc.c:1646 */ +#line 5404 "parser.yacc.cpp" /* yacc.c:1646 */ break; case 221: -#line 1528 "parser.y" /* yacc.c:1646 */ +#line 1529 "parser.y" /* yacc.c:1646 */ { (yyval) = NNEW(n_BINARY_EXPRESSION); (yyval)->appendChild((yyvsp[-2])); (yyval)->appendChild(NTYPE((yyvsp[-1]), n_OPERATOR)); (yyval)->appendChild((yyvsp[0])); } -#line 5424 "parser.yacc.cpp" /* yacc.c:1646 */ +#line 5415 "parser.yacc.cpp" /* yacc.c:1646 */ break; case 222: -#line 1534 "parser.y" /* yacc.c:1646 */ +#line 1535 "parser.y" /* yacc.c:1646 */ { (yyval) = NNEW(n_BINARY_EXPRESSION); (yyval)->appendChild((yyvsp[-2])); (yyval)->appendChild(NTYPE((yyvsp[-1]), n_OPERATOR)); (yyval)->appendChild((yyvsp[0])); } -#line 5435 "parser.yacc.cpp" /* yacc.c:1646 */ +#line 5426 "parser.yacc.cpp" /* yacc.c:1646 */ break; case 223: -#line 1540 "parser.y" /* yacc.c:1646 */ +#line 1541 "parser.y" /* yacc.c:1646 */ { (yyval) = NNEW(n_BINARY_EXPRESSION); (yyval)->appendChild((yyvsp[-2])); (yyval)->appendChild(NTYPE((yyvsp[-1]), n_OPERATOR)); (yyval)->appendChild((yyvsp[0])); } -#line 5446 "parser.yacc.cpp" /* yacc.c:1646 */ +#line 5437 "parser.yacc.cpp" /* yacc.c:1646 */ break; case 224: -#line 1546 "parser.y" /* yacc.c:1646 */ +#line 1547 "parser.y" /* yacc.c:1646 */ { (yyval) = NNEW(n_BINARY_EXPRESSION); (yyval)->appendChild((yyvsp[-2])); (yyval)->appendChild(NTYPE((yyvsp[-1]), n_OPERATOR)); (yyval)->appendChild((yyvsp[0])); } -#line 5457 "parser.yacc.cpp" /* yacc.c:1646 */ +#line 5448 "parser.yacc.cpp" /* yacc.c:1646 */ break; case 225: -#line 1552 "parser.y" /* yacc.c:1646 */ +#line 1553 "parser.y" /* yacc.c:1646 */ { (yyval) = NNEW(n_BINARY_EXPRESSION); (yyval)->appendChild((yyvsp[-2])); (yyval)->appendChild(NTYPE((yyvsp[-1]), n_OPERATOR)); (yyval)->appendChild((yyvsp[0])); } -#line 5468 "parser.yacc.cpp" /* yacc.c:1646 */ +#line 5459 "parser.yacc.cpp" /* yacc.c:1646 */ break; case 226: -#line 1558 "parser.y" /* yacc.c:1646 */ +#line 1559 "parser.y" /* yacc.c:1646 */ { (yyval) = NNEW(n_BINARY_EXPRESSION); (yyval)->appendChild((yyvsp[-2])); (yyval)->appendChild(NTYPE((yyvsp[-1]), n_OPERATOR)); (yyval)->appendChild((yyvsp[0])); } -#line 5479 "parser.yacc.cpp" /* yacc.c:1646 */ +#line 5470 "parser.yacc.cpp" /* yacc.c:1646 */ break; case 227: -#line 1564 "parser.y" /* yacc.c:1646 */ +#line 1565 "parser.y" /* yacc.c:1646 */ { (yyval) = NNEW(n_BINARY_EXPRESSION); (yyval)->appendChild((yyvsp[-2])); (yyval)->appendChild(NTYPE((yyvsp[-1]), n_OPERATOR)); (yyval)->appendChild((yyvsp[0])); } -#line 5490 "parser.yacc.cpp" /* yacc.c:1646 */ +#line 5481 "parser.yacc.cpp" /* yacc.c:1646 */ break; case 228: -#line 1570 "parser.y" /* yacc.c:1646 */ +#line 1571 "parser.y" /* yacc.c:1646 */ { (yyval) = NNEW(n_BINARY_EXPRESSION); (yyval)->appendChild((yyvsp[-2])); (yyval)->appendChild(NTYPE((yyvsp[-1]), n_OPERATOR)); (yyval)->appendChild((yyvsp[0])); } -#line 5501 "parser.yacc.cpp" /* yacc.c:1646 */ +#line 5492 "parser.yacc.cpp" /* yacc.c:1646 */ break; case 229: -#line 1576 "parser.y" /* yacc.c:1646 */ +#line 1577 "parser.y" /* yacc.c:1646 */ + { + (yyval) = NNEW(n_BINARY_EXPRESSION); + (yyval)->appendChild((yyvsp[-2])); + (yyval)->appendChild(NTYPE((yyvsp[-1]), n_OPERATOR)); + (yyval)->appendChild((yyvsp[0])); + } +#line 5503 "parser.yacc.cpp" /* yacc.c:1646 */ + break; + + case 230: +#line 1583 "parser.y" /* yacc.c:1646 */ { (yyval) = NNEW(n_UNARY_POSTFIX_EXPRESSION); (yyval)->appendChild((yyvsp[-1])); (yyval)->appendChild(NTYPE((yyvsp[0]), n_OPERATOR)); } -#line 5511 "parser.yacc.cpp" /* yacc.c:1646 */ +#line 5513 "parser.yacc.cpp" /* yacc.c:1646 */ break; - case 230: -#line 1581 "parser.y" /* yacc.c:1646 */ + case 231: +#line 1588 "parser.y" /* yacc.c:1646 */ { (yyval) = NNEW(n_UNARY_PREFIX_EXPRESSION); (yyval)->appendChild(NTYPE((yyvsp[-1]), n_OPERATOR)); (yyval)->appendChild((yyvsp[0])); } -#line 5521 "parser.yacc.cpp" /* yacc.c:1646 */ +#line 5523 "parser.yacc.cpp" /* yacc.c:1646 */ break; - case 231: -#line 1586 "parser.y" /* yacc.c:1646 */ + case 232: +#line 1593 "parser.y" /* yacc.c:1646 */ { (yyval) = NNEW(n_UNARY_POSTFIX_EXPRESSION); (yyval)->appendChild((yyvsp[-1])); (yyval)->appendChild(NTYPE((yyvsp[0]), n_OPERATOR)); } -#line 5531 "parser.yacc.cpp" /* yacc.c:1646 */ - break; - - case 232: -#line 1591 "parser.y" /* yacc.c:1646 */ - { - (yyval) = NNEW(n_UNARY_PREFIX_EXPRESSION); - (yyval)->appendChild(NTYPE((yyvsp[-1]), n_OPERATOR)); - (yyval)->appendChild((yyvsp[0])); - } -#line 5541 "parser.yacc.cpp" /* yacc.c:1646 */ +#line 5533 "parser.yacc.cpp" /* yacc.c:1646 */ break; case 233: -#line 1596 "parser.y" /* yacc.c:1646 */ +#line 1598 "parser.y" /* yacc.c:1646 */ { - (yyval) = NNEW(n_BINARY_EXPRESSION); - (yyval)->appendChild((yyvsp[-2])); + (yyval) = NNEW(n_UNARY_PREFIX_EXPRESSION); (yyval)->appendChild(NTYPE((yyvsp[-1]), n_OPERATOR)); (yyval)->appendChild((yyvsp[0])); } -#line 5552 "parser.yacc.cpp" /* yacc.c:1646 */ +#line 5543 "parser.yacc.cpp" /* yacc.c:1646 */ break; case 234: -#line 1602 "parser.y" /* yacc.c:1646 */ +#line 1603 "parser.y" /* yacc.c:1646 */ { (yyval) = NNEW(n_BINARY_EXPRESSION); (yyval)->appendChild((yyvsp[-2])); (yyval)->appendChild(NTYPE((yyvsp[-1]), n_OPERATOR)); (yyval)->appendChild((yyvsp[0])); } -#line 5563 "parser.yacc.cpp" /* yacc.c:1646 */ +#line 5554 "parser.yacc.cpp" /* yacc.c:1646 */ break; case 235: -#line 1608 "parser.y" /* yacc.c:1646 */ +#line 1609 "parser.y" /* yacc.c:1646 */ { (yyval) = NNEW(n_BINARY_EXPRESSION); (yyval)->appendChild((yyvsp[-2])); (yyval)->appendChild(NTYPE((yyvsp[-1]), n_OPERATOR)); (yyval)->appendChild((yyvsp[0])); } -#line 5574 "parser.yacc.cpp" /* yacc.c:1646 */ +#line 5565 "parser.yacc.cpp" /* yacc.c:1646 */ break; case 236: -#line 1614 "parser.y" /* yacc.c:1646 */ +#line 1615 "parser.y" /* yacc.c:1646 */ { (yyval) = NNEW(n_BINARY_EXPRESSION); (yyval)->appendChild((yyvsp[-2])); (yyval)->appendChild(NTYPE((yyvsp[-1]), n_OPERATOR)); (yyval)->appendChild((yyvsp[0])); } -#line 5585 "parser.yacc.cpp" /* yacc.c:1646 */ +#line 5576 "parser.yacc.cpp" /* yacc.c:1646 */ break; case 237: -#line 1620 "parser.y" /* yacc.c:1646 */ +#line 1621 "parser.y" /* yacc.c:1646 */ { (yyval) = NNEW(n_BINARY_EXPRESSION); (yyval)->appendChild((yyvsp[-2])); (yyval)->appendChild(NTYPE((yyvsp[-1]), n_OPERATOR)); (yyval)->appendChild((yyvsp[0])); } -#line 5596 "parser.yacc.cpp" /* yacc.c:1646 */ +#line 5587 "parser.yacc.cpp" /* yacc.c:1646 */ break; case 238: -#line 1626 "parser.y" /* yacc.c:1646 */ +#line 1627 "parser.y" /* yacc.c:1646 */ { (yyval) = NNEW(n_BINARY_EXPRESSION); (yyval)->appendChild((yyvsp[-2])); (yyval)->appendChild(NTYPE((yyvsp[-1]), n_OPERATOR)); (yyval)->appendChild((yyvsp[0])); } -#line 5607 "parser.yacc.cpp" /* yacc.c:1646 */ +#line 5598 "parser.yacc.cpp" /* yacc.c:1646 */ break; case 239: -#line 1632 "parser.y" /* yacc.c:1646 */ +#line 1633 "parser.y" /* yacc.c:1646 */ { (yyval) = NNEW(n_BINARY_EXPRESSION); (yyval)->appendChild((yyvsp[-2])); (yyval)->appendChild(NTYPE((yyvsp[-1]), n_OPERATOR)); (yyval)->appendChild((yyvsp[0])); } -#line 5618 "parser.yacc.cpp" /* yacc.c:1646 */ +#line 5609 "parser.yacc.cpp" /* yacc.c:1646 */ break; case 240: -#line 1638 "parser.y" /* yacc.c:1646 */ +#line 1639 "parser.y" /* yacc.c:1646 */ { (yyval) = NNEW(n_BINARY_EXPRESSION); (yyval)->appendChild((yyvsp[-2])); (yyval)->appendChild(NTYPE((yyvsp[-1]), n_OPERATOR)); (yyval)->appendChild((yyvsp[0])); } -#line 5629 "parser.yacc.cpp" /* yacc.c:1646 */ +#line 5620 "parser.yacc.cpp" /* yacc.c:1646 */ break; case 241: -#line 1644 "parser.y" /* yacc.c:1646 */ +#line 1645 "parser.y" /* yacc.c:1646 */ + { + (yyval) = NNEW(n_BINARY_EXPRESSION); + (yyval)->appendChild((yyvsp[-2])); + (yyval)->appendChild(NTYPE((yyvsp[-1]), n_OPERATOR)); + (yyval)->appendChild((yyvsp[0])); + } +#line 5631 "parser.yacc.cpp" /* yacc.c:1646 */ + break; + + case 242: +#line 1651 "parser.y" /* yacc.c:1646 */ { /* The concatenation operator generates n_CONCATENATION_LIST instead of n_BINARY_EXPRESSION because we tend to run into stack depth issues in a lot of real-world cases otherwise (e.g., in PHP and JSON decoders). */ if ((yyvsp[-2])->type == n_CONCATENATION_LIST && (yyvsp[0])->type == n_CONCATENATION_LIST) { (yyvsp[-2])->appendChild(NTYPE((yyvsp[-1]), n_OPERATOR)); (yyvsp[-2])->appendChildren((yyvsp[0])); (yyval) = (yyvsp[-2]); } else if ((yyvsp[-2])->type == n_CONCATENATION_LIST) { (yyvsp[-2])->appendChild(NTYPE((yyvsp[-1]), n_OPERATOR)); (yyvsp[-2])->appendChild((yyvsp[0])); (yyval) = (yyvsp[-2]); } else if ((yyvsp[0])->type == n_CONCATENATION_LIST) { (yyval) = NNEW(n_CONCATENATION_LIST); (yyval)->appendChild((yyvsp[-2])); (yyval)->appendChild(NTYPE((yyvsp[-1]), n_OPERATOR)); (yyval)->appendChildren((yyvsp[0])); } else { (yyval) = NNEW(n_CONCATENATION_LIST); (yyval)->appendChild((yyvsp[-2])); (yyval)->appendChild(NTYPE((yyvsp[-1]), n_OPERATOR)); (yyval)->appendChild((yyvsp[0])); } } -#line 5660 "parser.yacc.cpp" /* yacc.c:1646 */ - break; - - case 242: -#line 1670 "parser.y" /* yacc.c:1646 */ - { - (yyval) = NNEW(n_BINARY_EXPRESSION); - (yyval)->appendChild((yyvsp[-2])); - (yyval)->appendChild(NTYPE((yyvsp[-1]), n_OPERATOR)); - (yyval)->appendChild((yyvsp[0])); - } -#line 5671 "parser.yacc.cpp" /* yacc.c:1646 */ +#line 5662 "parser.yacc.cpp" /* yacc.c:1646 */ break; case 243: -#line 1676 "parser.y" /* yacc.c:1646 */ +#line 1677 "parser.y" /* yacc.c:1646 */ { (yyval) = NNEW(n_BINARY_EXPRESSION); (yyval)->appendChild((yyvsp[-2])); (yyval)->appendChild(NTYPE((yyvsp[-1]), n_OPERATOR)); (yyval)->appendChild((yyvsp[0])); } -#line 5682 "parser.yacc.cpp" /* yacc.c:1646 */ +#line 5673 "parser.yacc.cpp" /* yacc.c:1646 */ break; case 244: -#line 1682 "parser.y" /* yacc.c:1646 */ +#line 1683 "parser.y" /* yacc.c:1646 */ { (yyval) = NNEW(n_BINARY_EXPRESSION); (yyval)->appendChild((yyvsp[-2])); (yyval)->appendChild(NTYPE((yyvsp[-1]), n_OPERATOR)); (yyval)->appendChild((yyvsp[0])); } -#line 5693 "parser.yacc.cpp" /* yacc.c:1646 */ +#line 5684 "parser.yacc.cpp" /* yacc.c:1646 */ break; case 245: -#line 1688 "parser.y" /* yacc.c:1646 */ +#line 1689 "parser.y" /* yacc.c:1646 */ { (yyval) = NNEW(n_BINARY_EXPRESSION); (yyval)->appendChild((yyvsp[-2])); (yyval)->appendChild(NTYPE((yyvsp[-1]), n_OPERATOR)); (yyval)->appendChild((yyvsp[0])); } -#line 5704 "parser.yacc.cpp" /* yacc.c:1646 */ +#line 5695 "parser.yacc.cpp" /* yacc.c:1646 */ break; case 246: -#line 1694 "parser.y" /* yacc.c:1646 */ +#line 1695 "parser.y" /* yacc.c:1646 */ { (yyval) = NNEW(n_BINARY_EXPRESSION); (yyval)->appendChild((yyvsp[-2])); (yyval)->appendChild(NTYPE((yyvsp[-1]), n_OPERATOR)); (yyval)->appendChild((yyvsp[0])); } -#line 5715 "parser.yacc.cpp" /* yacc.c:1646 */ +#line 5706 "parser.yacc.cpp" /* yacc.c:1646 */ break; case 247: -#line 1700 "parser.y" /* yacc.c:1646 */ +#line 1701 "parser.y" /* yacc.c:1646 */ { (yyval) = NNEW(n_BINARY_EXPRESSION); (yyval)->appendChild((yyvsp[-2])); (yyval)->appendChild(NTYPE((yyvsp[-1]), n_OPERATOR)); (yyval)->appendChild((yyvsp[0])); } -#line 5726 "parser.yacc.cpp" /* yacc.c:1646 */ +#line 5717 "parser.yacc.cpp" /* yacc.c:1646 */ break; case 248: -#line 1706 "parser.y" /* yacc.c:1646 */ +#line 1707 "parser.y" /* yacc.c:1646 */ { (yyval) = NNEW(n_BINARY_EXPRESSION); (yyval)->appendChild((yyvsp[-2])); (yyval)->appendChild(NTYPE((yyvsp[-1]), n_OPERATOR)); (yyval)->appendChild((yyvsp[0])); } -#line 5737 "parser.yacc.cpp" /* yacc.c:1646 */ +#line 5728 "parser.yacc.cpp" /* yacc.c:1646 */ break; case 249: -#line 1712 "parser.y" /* yacc.c:1646 */ +#line 1713 "parser.y" /* yacc.c:1646 */ { - (yyval) = NNEW(n_UNARY_PREFIX_EXPRESSION); + (yyval) = NNEW(n_BINARY_EXPRESSION); + (yyval)->appendChild((yyvsp[-2])); (yyval)->appendChild(NTYPE((yyvsp[-1]), n_OPERATOR)); (yyval)->appendChild((yyvsp[0])); } -#line 5747 "parser.yacc.cpp" /* yacc.c:1646 */ +#line 5739 "parser.yacc.cpp" /* yacc.c:1646 */ break; case 250: -#line 1717 "parser.y" /* yacc.c:1646 */ +#line 1719 "parser.y" /* yacc.c:1646 */ { (yyval) = NNEW(n_UNARY_PREFIX_EXPRESSION); (yyval)->appendChild(NTYPE((yyvsp[-1]), n_OPERATOR)); (yyval)->appendChild((yyvsp[0])); } -#line 5757 "parser.yacc.cpp" /* yacc.c:1646 */ +#line 5749 "parser.yacc.cpp" /* yacc.c:1646 */ break; case 251: -#line 1722 "parser.y" /* yacc.c:1646 */ +#line 1724 "parser.y" /* yacc.c:1646 */ { (yyval) = NNEW(n_UNARY_PREFIX_EXPRESSION); (yyval)->appendChild(NTYPE((yyvsp[-1]), n_OPERATOR)); (yyval)->appendChild((yyvsp[0])); } -#line 5767 "parser.yacc.cpp" /* yacc.c:1646 */ +#line 5759 "parser.yacc.cpp" /* yacc.c:1646 */ break; case 252: -#line 1727 "parser.y" /* yacc.c:1646 */ +#line 1729 "parser.y" /* yacc.c:1646 */ { (yyval) = NNEW(n_UNARY_PREFIX_EXPRESSION); (yyval)->appendChild(NTYPE((yyvsp[-1]), n_OPERATOR)); (yyval)->appendChild((yyvsp[0])); } -#line 5777 "parser.yacc.cpp" /* yacc.c:1646 */ +#line 5769 "parser.yacc.cpp" /* yacc.c:1646 */ break; case 253: -#line 1732 "parser.y" /* yacc.c:1646 */ +#line 1734 "parser.y" /* yacc.c:1646 */ { - (yyval) = NNEW(n_BINARY_EXPRESSION); - (yyval)->appendChild((yyvsp[-2])); + (yyval) = NNEW(n_UNARY_PREFIX_EXPRESSION); (yyval)->appendChild(NTYPE((yyvsp[-1]), n_OPERATOR)); (yyval)->appendChild((yyvsp[0])); } -#line 5788 "parser.yacc.cpp" /* yacc.c:1646 */ +#line 5779 "parser.yacc.cpp" /* yacc.c:1646 */ break; case 254: -#line 1738 "parser.y" /* yacc.c:1646 */ +#line 1739 "parser.y" /* yacc.c:1646 */ { (yyval) = NNEW(n_BINARY_EXPRESSION); (yyval)->appendChild((yyvsp[-2])); (yyval)->appendChild(NTYPE((yyvsp[-1]), n_OPERATOR)); (yyval)->appendChild((yyvsp[0])); } -#line 5799 "parser.yacc.cpp" /* yacc.c:1646 */ +#line 5790 "parser.yacc.cpp" /* yacc.c:1646 */ break; case 255: -#line 1744 "parser.y" /* yacc.c:1646 */ +#line 1745 "parser.y" /* yacc.c:1646 */ { (yyval) = NNEW(n_BINARY_EXPRESSION); (yyval)->appendChild((yyvsp[-2])); (yyval)->appendChild(NTYPE((yyvsp[-1]), n_OPERATOR)); (yyval)->appendChild((yyvsp[0])); } -#line 5810 "parser.yacc.cpp" /* yacc.c:1646 */ +#line 5801 "parser.yacc.cpp" /* yacc.c:1646 */ break; case 256: -#line 1750 "parser.y" /* yacc.c:1646 */ +#line 1751 "parser.y" /* yacc.c:1646 */ { (yyval) = NNEW(n_BINARY_EXPRESSION); (yyval)->appendChild((yyvsp[-2])); (yyval)->appendChild(NTYPE((yyvsp[-1]), n_OPERATOR)); (yyval)->appendChild((yyvsp[0])); } -#line 5821 "parser.yacc.cpp" /* yacc.c:1646 */ +#line 5812 "parser.yacc.cpp" /* yacc.c:1646 */ break; case 257: -#line 1756 "parser.y" /* yacc.c:1646 */ +#line 1757 "parser.y" /* yacc.c:1646 */ { (yyval) = NNEW(n_BINARY_EXPRESSION); (yyval)->appendChild((yyvsp[-2])); (yyval)->appendChild(NTYPE((yyvsp[-1]), n_OPERATOR)); (yyval)->appendChild((yyvsp[0])); } -#line 5832 "parser.yacc.cpp" /* yacc.c:1646 */ +#line 5823 "parser.yacc.cpp" /* yacc.c:1646 */ break; case 258: -#line 1762 "parser.y" /* yacc.c:1646 */ +#line 1763 "parser.y" /* yacc.c:1646 */ { (yyval) = NNEW(n_BINARY_EXPRESSION); (yyval)->appendChild((yyvsp[-2])); (yyval)->appendChild(NTYPE((yyvsp[-1]), n_OPERATOR)); (yyval)->appendChild((yyvsp[0])); } -#line 5843 "parser.yacc.cpp" /* yacc.c:1646 */ +#line 5834 "parser.yacc.cpp" /* yacc.c:1646 */ break; case 259: -#line 1768 "parser.y" /* yacc.c:1646 */ +#line 1769 "parser.y" /* yacc.c:1646 */ { (yyval) = NNEW(n_BINARY_EXPRESSION); (yyval)->appendChild((yyvsp[-2])); (yyval)->appendChild(NTYPE((yyvsp[-1]), n_OPERATOR)); (yyval)->appendChild((yyvsp[0])); } -#line 5854 "parser.yacc.cpp" /* yacc.c:1646 */ +#line 5845 "parser.yacc.cpp" /* yacc.c:1646 */ break; case 260: -#line 1774 "parser.y" /* yacc.c:1646 */ +#line 1775 "parser.y" /* yacc.c:1646 */ { (yyval) = NNEW(n_BINARY_EXPRESSION); (yyval)->appendChild((yyvsp[-2])); (yyval)->appendChild(NTYPE((yyvsp[-1]), n_OPERATOR)); (yyval)->appendChild((yyvsp[0])); } -#line 5865 "parser.yacc.cpp" /* yacc.c:1646 */ +#line 5856 "parser.yacc.cpp" /* yacc.c:1646 */ break; case 261: -#line 1780 "parser.y" /* yacc.c:1646 */ +#line 1781 "parser.y" /* yacc.c:1646 */ { (yyval) = NNEW(n_BINARY_EXPRESSION); (yyval)->appendChild((yyvsp[-2])); (yyval)->appendChild(NTYPE((yyvsp[-1]), n_OPERATOR)); (yyval)->appendChild((yyvsp[0])); } -#line 5876 "parser.yacc.cpp" /* yacc.c:1646 */ +#line 5867 "parser.yacc.cpp" /* yacc.c:1646 */ break; case 262: -#line 1786 "parser.y" /* yacc.c:1646 */ +#line 1787 "parser.y" /* yacc.c:1646 */ { (yyval) = NNEW(n_BINARY_EXPRESSION); (yyval)->appendChild((yyvsp[-2])); (yyval)->appendChild(NTYPE((yyvsp[-1]), n_OPERATOR)); (yyval)->appendChild((yyvsp[0])); } -#line 5887 "parser.yacc.cpp" /* yacc.c:1646 */ +#line 5878 "parser.yacc.cpp" /* yacc.c:1646 */ break; - case 265: -#line 1794 "parser.y" /* yacc.c:1646 */ + case 263: +#line 1793 "parser.y" /* yacc.c:1646 */ { - (yyval) = NNEW(n_TERNARY_EXPRESSION); - (yyval)->appendChild((yyvsp[-4])); - (yyval)->appendChild(NTYPE((yyvsp[-3]), n_OPERATOR)); + (yyval) = NNEW(n_BINARY_EXPRESSION); (yyval)->appendChild((yyvsp[-2])); (yyval)->appendChild(NTYPE((yyvsp[-1]), n_OPERATOR)); (yyval)->appendChild((yyvsp[0])); } -#line 5900 "parser.yacc.cpp" /* yacc.c:1646 */ +#line 5889 "parser.yacc.cpp" /* yacc.c:1646 */ break; case 266: -#line 1802 "parser.y" /* yacc.c:1646 */ +#line 1801 "parser.y" /* yacc.c:1646 */ { (yyval) = NNEW(n_TERNARY_EXPRESSION); - (yyval)->appendChild((yyvsp[-3])); - (yyval)->appendChild(NTYPE((yyvsp[-2]), n_OPERATOR)); - (yyval)->appendChild(NNEW(n_EMPTY)); + (yyval)->appendChild((yyvsp[-4])); + (yyval)->appendChild(NTYPE((yyvsp[-3]), n_OPERATOR)); + (yyval)->appendChild((yyvsp[-2])); (yyval)->appendChild(NTYPE((yyvsp[-1]), n_OPERATOR)); (yyval)->appendChild((yyvsp[0])); } -#line 5913 "parser.yacc.cpp" /* yacc.c:1646 */ +#line 5902 "parser.yacc.cpp" /* yacc.c:1646 */ break; case 267: -#line 1810 "parser.y" /* yacc.c:1646 */ +#line 1809 "parser.y" /* yacc.c:1646 */ { - (yyval) = NNEW(n_BINARY_EXPRESSION); - (yyval)->appendChild((yyvsp[-2])); + (yyval) = NNEW(n_TERNARY_EXPRESSION); + (yyval)->appendChild((yyvsp[-3])); + (yyval)->appendChild(NTYPE((yyvsp[-2]), n_OPERATOR)); + (yyval)->appendChild(NNEW(n_EMPTY)); (yyval)->appendChild(NTYPE((yyvsp[-1]), n_OPERATOR)); (yyval)->appendChild((yyvsp[0])); } -#line 5924 "parser.yacc.cpp" /* yacc.c:1646 */ +#line 5915 "parser.yacc.cpp" /* yacc.c:1646 */ break; - case 269: + case 268: #line 1817 "parser.y" /* yacc.c:1646 */ { - (yyval) = NNEW(n_CAST_EXPRESSION); - (yyval)->appendChild(NTYPE((yyvsp[-1]), n_CAST)); + (yyval) = NNEW(n_BINARY_EXPRESSION); + (yyval)->appendChild((yyvsp[-2])); + (yyval)->appendChild(NTYPE((yyvsp[-1]), n_OPERATOR)); (yyval)->appendChild((yyvsp[0])); } -#line 5934 "parser.yacc.cpp" /* yacc.c:1646 */ +#line 5926 "parser.yacc.cpp" /* yacc.c:1646 */ break; case 270: -#line 1822 "parser.y" /* yacc.c:1646 */ +#line 1824 "parser.y" /* yacc.c:1646 */ { (yyval) = NNEW(n_CAST_EXPRESSION); (yyval)->appendChild(NTYPE((yyvsp[-1]), n_CAST)); (yyval)->appendChild((yyvsp[0])); } -#line 5944 "parser.yacc.cpp" /* yacc.c:1646 */ +#line 5936 "parser.yacc.cpp" /* yacc.c:1646 */ break; case 271: -#line 1827 "parser.y" /* yacc.c:1646 */ +#line 1829 "parser.y" /* yacc.c:1646 */ { (yyval) = NNEW(n_CAST_EXPRESSION); (yyval)->appendChild(NTYPE((yyvsp[-1]), n_CAST)); (yyval)->appendChild((yyvsp[0])); } -#line 5954 "parser.yacc.cpp" /* yacc.c:1646 */ +#line 5946 "parser.yacc.cpp" /* yacc.c:1646 */ break; case 272: -#line 1832 "parser.y" /* yacc.c:1646 */ +#line 1834 "parser.y" /* yacc.c:1646 */ { (yyval) = NNEW(n_CAST_EXPRESSION); (yyval)->appendChild(NTYPE((yyvsp[-1]), n_CAST)); (yyval)->appendChild((yyvsp[0])); } -#line 5964 "parser.yacc.cpp" /* yacc.c:1646 */ +#line 5956 "parser.yacc.cpp" /* yacc.c:1646 */ break; case 273: -#line 1837 "parser.y" /* yacc.c:1646 */ +#line 1839 "parser.y" /* yacc.c:1646 */ { (yyval) = NNEW(n_CAST_EXPRESSION); (yyval)->appendChild(NTYPE((yyvsp[-1]), n_CAST)); (yyval)->appendChild((yyvsp[0])); } -#line 5974 "parser.yacc.cpp" /* yacc.c:1646 */ +#line 5966 "parser.yacc.cpp" /* yacc.c:1646 */ break; case 274: -#line 1842 "parser.y" /* yacc.c:1646 */ +#line 1844 "parser.y" /* yacc.c:1646 */ { (yyval) = NNEW(n_CAST_EXPRESSION); (yyval)->appendChild(NTYPE((yyvsp[-1]), n_CAST)); (yyval)->appendChild((yyvsp[0])); } -#line 5984 "parser.yacc.cpp" /* yacc.c:1646 */ +#line 5976 "parser.yacc.cpp" /* yacc.c:1646 */ break; case 275: -#line 1847 "parser.y" /* yacc.c:1646 */ +#line 1849 "parser.y" /* yacc.c:1646 */ { (yyval) = NNEW(n_CAST_EXPRESSION); (yyval)->appendChild(NTYPE((yyvsp[-1]), n_CAST)); (yyval)->appendChild((yyvsp[0])); } -#line 5994 "parser.yacc.cpp" /* yacc.c:1646 */ +#line 5986 "parser.yacc.cpp" /* yacc.c:1646 */ break; case 276: -#line 1852 "parser.y" /* yacc.c:1646 */ +#line 1854 "parser.y" /* yacc.c:1646 */ { - (yyval) = NNEW(n_UNARY_PREFIX_EXPRESSION); - (yyval)->appendChild(NTYPE((yyvsp[-1]), n_OPERATOR)); + (yyval) = NNEW(n_CAST_EXPRESSION); + (yyval)->appendChild(NTYPE((yyvsp[-1]), n_CAST)); (yyval)->appendChild((yyvsp[0])); } -#line 6004 "parser.yacc.cpp" /* yacc.c:1646 */ +#line 5996 "parser.yacc.cpp" /* yacc.c:1646 */ break; case 277: -#line 1857 "parser.y" /* yacc.c:1646 */ +#line 1859 "parser.y" /* yacc.c:1646 */ { (yyval) = NNEW(n_UNARY_PREFIX_EXPRESSION); (yyval)->appendChild(NTYPE((yyvsp[-1]), n_OPERATOR)); (yyval)->appendChild((yyvsp[0])); } -#line 6014 "parser.yacc.cpp" /* yacc.c:1646 */ +#line 6006 "parser.yacc.cpp" /* yacc.c:1646 */ break; case 278: -#line 1862 "parser.y" /* yacc.c:1646 */ +#line 1864 "parser.y" /* yacc.c:1646 */ + { + (yyval) = NNEW(n_UNARY_PREFIX_EXPRESSION); + (yyval)->appendChild(NTYPE((yyvsp[-1]), n_OPERATOR)); + (yyval)->appendChild((yyvsp[0])); + } +#line 6016 "parser.yacc.cpp" /* yacc.c:1646 */ + break; + + case 279: +#line 1869 "parser.y" /* yacc.c:1646 */ { NTYPE((yyvsp[0]), n_BACKTICKS_EXPRESSION); (yyval) = (yyvsp[0]); } -#line 6023 "parser.yacc.cpp" /* yacc.c:1646 */ +#line 6025 "parser.yacc.cpp" /* yacc.c:1646 */ break; - case 282: -#line 1869 "parser.y" /* yacc.c:1646 */ + case 283: +#line 1876 "parser.y" /* yacc.c:1646 */ { (yyval) = NNEW(n_UNARY_PREFIX_EXPRESSION); (yyval)->appendChild(NTYPE((yyvsp[-1]), n_OPERATOR)); (yyval)->appendChild((yyvsp[0])); } -#line 6033 "parser.yacc.cpp" /* yacc.c:1646 */ +#line 6035 "parser.yacc.cpp" /* yacc.c:1646 */ break; - case 283: -#line 1874 "parser.y" /* yacc.c:1646 */ + case 284: +#line 1881 "parser.y" /* yacc.c:1646 */ { NTYPE((yyvsp[0]), n_YIELD); (yyvsp[0])->appendChild(NNEW(n_EMPTY)); (yyvsp[0])->appendChild(NNEW(n_EMPTY)); (yyval) = (yyvsp[0]); } -#line 6044 "parser.yacc.cpp" /* yacc.c:1646 */ +#line 6046 "parser.yacc.cpp" /* yacc.c:1646 */ break; - case 284: -#line 1883 "parser.y" /* yacc.c:1646 */ + case 285: +#line 1890 "parser.y" /* yacc.c:1646 */ { NSPAN((yyvsp[-9]), n_FUNCTION_DECLARATION, (yyvsp[-1])); (yyvsp[-9])->appendChild(NNEW(n_EMPTY)); (yyvsp[-9])->appendChild((yyvsp[-8])); (yyvsp[-9])->appendChild(NNEW(n_EMPTY)); (yyvsp[-9])->appendChild(NEXPAND((yyvsp[-7]), (yyvsp[-6]), (yyvsp[-5]))); (yyvsp[-9])->appendChild((yyvsp[-4])); (yyvsp[-9])->appendChild((yyvsp[-3])); (yyvsp[-9])->appendChild(NEXPAND((yyvsp[-2]), (yyvsp[-1]), (yyvsp[0]))); (yyval) = (yyvsp[-9]); } -#line 6061 "parser.yacc.cpp" /* yacc.c:1646 */ +#line 6063 "parser.yacc.cpp" /* yacc.c:1646 */ break; - case 285: -#line 1898 "parser.y" /* yacc.c:1646 */ + case 286: +#line 1905 "parser.y" /* yacc.c:1646 */ { NSPAN((yyvsp[-9]), n_FUNCTION_DECLARATION, (yyvsp[-1])); NMORE((yyvsp[-9]), (yyvsp[-10])); (yyval) = NNEW(n_FUNCTION_MODIFIER_LIST); (yyval)->appendChild(NTYPE((yyvsp[-10]), n_STRING)); (yyvsp[-9])->appendChild((yyvsp[-10])); (yyvsp[-9])->appendChild(NNEW(n_EMPTY)); (yyvsp[-9])->appendChild((yyvsp[-8])); (yyvsp[-9])->appendChild(NNEW(n_EMPTY)); (yyvsp[-9])->appendChild(NEXPAND((yyvsp[-7]), (yyvsp[-6]), (yyvsp[-5]))); (yyvsp[-9])->appendChild((yyvsp[-4])); (yyvsp[-9])->appendChild((yyvsp[-3])); (yyvsp[-9])->appendChild(NEXPAND((yyvsp[-2]), (yyvsp[-1]), (yyvsp[0]))); (yyval) = (yyvsp[-9]); } -#line 6084 "parser.yacc.cpp" /* yacc.c:1646 */ +#line 6086 "parser.yacc.cpp" /* yacc.c:1646 */ break; - case 286: -#line 1919 "parser.y" /* yacc.c:1646 */ + case 287: +#line 1926 "parser.y" /* yacc.c:1646 */ { NTYPE((yyvsp[-1]), n_YIELD); (yyvsp[0])->appendChild(NNEW(n_EMPTY)); (yyvsp[-1])->appendChild((yyvsp[0])); (yyval) = (yyvsp[-1]); } -#line 6095 "parser.yacc.cpp" /* yacc.c:1646 */ +#line 6097 "parser.yacc.cpp" /* yacc.c:1646 */ break; - case 287: -#line 1925 "parser.y" /* yacc.c:1646 */ + case 288: +#line 1932 "parser.y" /* yacc.c:1646 */ { NTYPE((yyvsp[-1]), n_YIELD); (yyvsp[0])->appendChild(NNEW(n_EMPTY)); (yyvsp[-1])->appendChild((yyvsp[0])); (yyval) = (yyvsp[-1]); } -#line 6106 "parser.yacc.cpp" /* yacc.c:1646 */ +#line 6108 "parser.yacc.cpp" /* yacc.c:1646 */ break; - case 288: -#line 1931 "parser.y" /* yacc.c:1646 */ + case 289: +#line 1938 "parser.y" /* yacc.c:1646 */ { NTYPE((yyvsp[-3]), n_YIELD); (yyvsp[-3])->appendChild((yyvsp[-2])); (yyvsp[-3])->appendChild((yyvsp[0])); (yyval) = (yyvsp[-3]); } -#line 6117 "parser.yacc.cpp" /* yacc.c:1646 */ +#line 6119 "parser.yacc.cpp" /* yacc.c:1646 */ break; - case 289: -#line 1937 "parser.y" /* yacc.c:1646 */ + case 290: +#line 1944 "parser.y" /* yacc.c:1646 */ { NTYPE((yyvsp[-3]), n_YIELD); (yyvsp[-3])->appendChild((yyvsp[-2])); (yyvsp[-3])->appendChild((yyvsp[0])); (yyval) = (yyvsp[-3]); } -#line 6128 "parser.yacc.cpp" /* yacc.c:1646 */ +#line 6130 "parser.yacc.cpp" /* yacc.c:1646 */ break; - case 291: -#line 1950 "parser.y" /* yacc.c:1646 */ + case 292: +#line 1957 "parser.y" /* yacc.c:1646 */ { (yyval) = NNEW(n_EMPTY); } -#line 6136 "parser.yacc.cpp" /* yacc.c:1646 */ +#line 6138 "parser.yacc.cpp" /* yacc.c:1646 */ break; - case 292: -#line 1953 "parser.y" /* yacc.c:1646 */ + case 293: +#line 1960 "parser.y" /* yacc.c:1646 */ { NTYPE((yyvsp[-3]), n_LEXICAL_VARIABLE_LIST); (yyvsp[-3])->appendChildren((yyvsp[-1])); (yyval) = (yyvsp[-3]); } -#line 6146 "parser.yacc.cpp" /* yacc.c:1646 */ +#line 6148 "parser.yacc.cpp" /* yacc.c:1646 */ break; - case 293: -#line 1961 "parser.y" /* yacc.c:1646 */ + case 294: +#line 1968 "parser.y" /* yacc.c:1646 */ { (yyval) = (yyvsp[-2])->appendChild(NTYPE((yyvsp[0]), n_VARIABLE)); } -#line 6154 "parser.yacc.cpp" /* yacc.c:1646 */ +#line 6156 "parser.yacc.cpp" /* yacc.c:1646 */ break; - case 294: -#line 1964 "parser.y" /* yacc.c:1646 */ + case 295: +#line 1971 "parser.y" /* yacc.c:1646 */ { NTYPE((yyvsp[-1]), n_VARIABLE_REFERENCE); (yyvsp[-1])->appendChild(NTYPE((yyvsp[0]), n_VARIABLE)); (yyval) = (yyvsp[-3])->appendChild((yyvsp[-1])); } -#line 6164 "parser.yacc.cpp" /* yacc.c:1646 */ +#line 6166 "parser.yacc.cpp" /* yacc.c:1646 */ break; - case 295: -#line 1969 "parser.y" /* yacc.c:1646 */ + case 296: +#line 1976 "parser.y" /* yacc.c:1646 */ { (yyval) = NNEW(n_LEXICAL_VARIABLE_LIST); (yyval)->appendChild(NTYPE((yyvsp[0]), n_VARIABLE)); } -#line 6173 "parser.yacc.cpp" /* yacc.c:1646 */ +#line 6175 "parser.yacc.cpp" /* yacc.c:1646 */ break; - case 296: -#line 1973 "parser.y" /* yacc.c:1646 */ + case 297: +#line 1980 "parser.y" /* yacc.c:1646 */ { NTYPE((yyvsp[-1]), n_VARIABLE_REFERENCE); (yyvsp[-1])->appendChild(NTYPE((yyvsp[0]), n_VARIABLE)); (yyval) = NNEW(n_LEXICAL_VARIABLE_LIST); (yyval)->appendChild((yyvsp[-1])); } -#line 6184 "parser.yacc.cpp" /* yacc.c:1646 */ +#line 6186 "parser.yacc.cpp" /* yacc.c:1646 */ break; - case 297: -#line 1982 "parser.y" /* yacc.c:1646 */ + case 298: +#line 1989 "parser.y" /* yacc.c:1646 */ { (yyval) = NNEW(n_FUNCTION_CALL); (yyval)->appendChild((yyvsp[-3])); (yyval)->appendChild(NEXPAND((yyvsp[-2]), (yyvsp[-1]), (yyvsp[0]))); } -#line 6194 "parser.yacc.cpp" /* yacc.c:1646 */ +#line 6196 "parser.yacc.cpp" /* yacc.c:1646 */ break; - case 298: -#line 1988 "parser.y" /* yacc.c:1646 */ + case 299: +#line 1995 "parser.y" /* yacc.c:1646 */ { NMORE((yyvsp[-3]), (yyvsp[-5])); (yyval) = NNEW(n_FUNCTION_CALL); (yyval)->appendChild((yyvsp[-3])); (yyval)->appendChild(NEXPAND((yyvsp[-2]), (yyvsp[-1]), (yyvsp[0]))); } -#line 6205 "parser.yacc.cpp" /* yacc.c:1646 */ +#line 6207 "parser.yacc.cpp" /* yacc.c:1646 */ break; - case 299: -#line 1994 "parser.y" /* yacc.c:1646 */ + case 300: +#line 2001 "parser.y" /* yacc.c:1646 */ { NMORE((yyvsp[-3]), (yyvsp[-4])); (yyval) = NNEW(n_FUNCTION_CALL); (yyval)->appendChild((yyvsp[-3])); (yyval)->appendChild(NEXPAND((yyvsp[-2]), (yyvsp[-1]), (yyvsp[0]))); } -#line 6216 "parser.yacc.cpp" /* yacc.c:1646 */ +#line 6218 "parser.yacc.cpp" /* yacc.c:1646 */ break; - case 300: -#line 2001 "parser.y" /* yacc.c:1646 */ + case 301: +#line 2008 "parser.y" /* yacc.c:1646 */ { (yyval) = NNEW(n_CLASS_STATIC_ACCESS); (yyval)->appendChild((yyvsp[-5])); (yyval)->appendChild(NTYPE((yyvsp[-3]), n_STRING)); (yyval) = NNEW(n_FUNCTION_CALL)->appendChild((yyval)); (yyval)->appendChild(NEXPAND((yyvsp[-2]), (yyvsp[-1]), (yyvsp[0]))); } -#line 6229 "parser.yacc.cpp" /* yacc.c:1646 */ +#line 6231 "parser.yacc.cpp" /* yacc.c:1646 */ break; - case 301: -#line 2010 "parser.y" /* yacc.c:1646 */ + case 302: +#line 2017 "parser.y" /* yacc.c:1646 */ { (yyval) = NNEW(n_CLASS_STATIC_ACCESS); (yyval)->appendChild((yyvsp[-5])); (yyval)->appendChild(NTYPE((yyvsp[-3]), n_STRING)); (yyval) = NNEW(n_FUNCTION_CALL)->appendChild((yyval)); (yyval)->appendChild(NEXPAND((yyvsp[-2]), (yyvsp[-1]), (yyvsp[0]))); } -#line 6242 "parser.yacc.cpp" /* yacc.c:1646 */ +#line 6244 "parser.yacc.cpp" /* yacc.c:1646 */ break; - case 302: -#line 2019 "parser.y" /* yacc.c:1646 */ + case 303: +#line 2026 "parser.y" /* yacc.c:1646 */ { (yyval) = NNEW(n_CLASS_STATIC_ACCESS); (yyval)->appendChild((yyvsp[-5])); (yyval)->appendChild(NTYPE((yyvsp[-3]), n_STRING)); (yyval) = NNEW(n_FUNCTION_CALL)->appendChild((yyval)); (yyval)->appendChild(NEXPAND((yyvsp[-2]), (yyvsp[-1]), (yyvsp[0]))); } -#line 6255 "parser.yacc.cpp" /* yacc.c:1646 */ +#line 6257 "parser.yacc.cpp" /* yacc.c:1646 */ break; - case 303: -#line 2028 "parser.y" /* yacc.c:1646 */ + case 304: +#line 2035 "parser.y" /* yacc.c:1646 */ { (yyval) = NNEW(n_CLASS_STATIC_ACCESS); (yyval)->appendChild((yyvsp[-5])); (yyval)->appendChild(NTYPE((yyvsp[-3]), n_STRING)); (yyval) = NNEW(n_FUNCTION_CALL)->appendChild((yyval)); (yyval)->appendChild(NEXPAND((yyvsp[-2]), (yyvsp[-1]), (yyvsp[0]))); } -#line 6268 "parser.yacc.cpp" /* yacc.c:1646 */ +#line 6270 "parser.yacc.cpp" /* yacc.c:1646 */ break; - case 304: -#line 2036 "parser.y" /* yacc.c:1646 */ + case 305: +#line 2043 "parser.y" /* yacc.c:1646 */ { (yyval) = NNEW(n_FUNCTION_CALL); (yyval)->appendChild((yyvsp[-3])); (yyval)->appendChild(NEXPAND((yyvsp[-2]), (yyvsp[-1]), (yyvsp[0]))); } -#line 6278 "parser.yacc.cpp" /* yacc.c:1646 */ +#line 6280 "parser.yacc.cpp" /* yacc.c:1646 */ break; - case 305: -#line 2044 "parser.y" /* yacc.c:1646 */ + case 306: +#line 2051 "parser.y" /* yacc.c:1646 */ { (yyval) = NTYPE((yyvsp[0]), n_CLASS_NAME); } -#line 6286 "parser.yacc.cpp" /* yacc.c:1646 */ +#line 6288 "parser.yacc.cpp" /* yacc.c:1646 */ break; - case 306: -#line 2047 "parser.y" /* yacc.c:1646 */ + case 307: +#line 2054 "parser.y" /* yacc.c:1646 */ { (yyval) = NTYPE((yyvsp[0]), n_CLASS_NAME); } -#line 6294 "parser.yacc.cpp" /* yacc.c:1646 */ +#line 6296 "parser.yacc.cpp" /* yacc.c:1646 */ break; - case 307: -#line 2050 "parser.y" /* yacc.c:1646 */ + case 308: +#line 2057 "parser.y" /* yacc.c:1646 */ { NMORE((yyvsp[0]), (yyvsp[-2])); (yyval) = NTYPE((yyvsp[0]), n_CLASS_NAME); } -#line 6303 "parser.yacc.cpp" /* yacc.c:1646 */ +#line 6305 "parser.yacc.cpp" /* yacc.c:1646 */ break; - case 308: -#line 2054 "parser.y" /* yacc.c:1646 */ + case 309: +#line 2061 "parser.y" /* yacc.c:1646 */ { NMORE((yyvsp[0]), (yyvsp[-1])); (yyval) = NTYPE((yyvsp[0]), n_CLASS_NAME); } -#line 6312 "parser.yacc.cpp" /* yacc.c:1646 */ +#line 6314 "parser.yacc.cpp" /* yacc.c:1646 */ break; - case 309: -#line 2061 "parser.y" /* yacc.c:1646 */ + case 310: +#line 2068 "parser.y" /* yacc.c:1646 */ { (yyval) = NTYPE((yyvsp[0]), n_CLASS_NAME); } -#line 6320 "parser.yacc.cpp" /* yacc.c:1646 */ +#line 6322 "parser.yacc.cpp" /* yacc.c:1646 */ break; - case 310: -#line 2064 "parser.y" /* yacc.c:1646 */ + case 311: +#line 2071 "parser.y" /* yacc.c:1646 */ { NMORE((yyvsp[0]), (yyvsp[-2])); (yyval) = NTYPE((yyvsp[0]), n_CLASS_NAME); } -#line 6329 "parser.yacc.cpp" /* yacc.c:1646 */ +#line 6331 "parser.yacc.cpp" /* yacc.c:1646 */ break; - case 311: -#line 2068 "parser.y" /* yacc.c:1646 */ + case 312: +#line 2075 "parser.y" /* yacc.c:1646 */ { NMORE((yyvsp[0]), (yyvsp[-1])); (yyval) = NTYPE((yyvsp[0]), n_CLASS_NAME); } -#line 6338 "parser.yacc.cpp" /* yacc.c:1646 */ +#line 6340 "parser.yacc.cpp" /* yacc.c:1646 */ break; - case 314: -#line 2083 "parser.y" /* yacc.c:1646 */ + case 315: +#line 2090 "parser.y" /* yacc.c:1646 */ { (yyval) = NNEW(n_OBJECT_PROPERTY_ACCESS); (yyval)->appendChild((yyvsp[-3])); (yyval)->appendChild((yyvsp[-1])); for (xhpast::node_list_t::iterator ii = (yyvsp[0])->children.begin(); ii != (yyvsp[0])->children.end(); ++ii) { (yyval) = NNEW(n_OBJECT_PROPERTY_ACCESS)->appendChild((yyval)); (yyval)->appendChild(*ii); } } -#line 6355 "parser.yacc.cpp" /* yacc.c:1646 */ +#line 6357 "parser.yacc.cpp" /* yacc.c:1646 */ break; - case 316: -#line 2099 "parser.y" /* yacc.c:1646 */ + case 317: +#line 2106 "parser.y" /* yacc.c:1646 */ { (yyval) = (yyvsp[-1])->appendChild((yyvsp[0])); } -#line 6363 "parser.yacc.cpp" /* yacc.c:1646 */ +#line 6365 "parser.yacc.cpp" /* yacc.c:1646 */ break; - case 317: -#line 2102 "parser.y" /* yacc.c:1646 */ + case 318: +#line 2109 "parser.y" /* yacc.c:1646 */ { (yyval) = NNEW(n_EMPTY); } -#line 6371 "parser.yacc.cpp" /* yacc.c:1646 */ +#line 6373 "parser.yacc.cpp" /* yacc.c:1646 */ break; - case 318: -#line 2108 "parser.y" /* yacc.c:1646 */ + case 319: +#line 2115 "parser.y" /* yacc.c:1646 */ { (yyval) = (yyvsp[0]); } -#line 6379 "parser.yacc.cpp" /* yacc.c:1646 */ +#line 6381 "parser.yacc.cpp" /* yacc.c:1646 */ break; - case 319: -#line 2114 "parser.y" /* yacc.c:1646 */ + case 320: +#line 2121 "parser.y" /* yacc.c:1646 */ { (yyval) = NNEW(n_EMPTY); } -#line 6387 "parser.yacc.cpp" /* yacc.c:1646 */ +#line 6389 "parser.yacc.cpp" /* yacc.c:1646 */ break; - case 320: -#line 2117 "parser.y" /* yacc.c:1646 */ + case 321: +#line 2124 "parser.y" /* yacc.c:1646 */ { NSPAN((yyvsp[-1]), n_EMPTY, (yyvsp[0])); (yyval) = (yyvsp[-1]); } -#line 6396 "parser.yacc.cpp" /* yacc.c:1646 */ +#line 6398 "parser.yacc.cpp" /* yacc.c:1646 */ break; - case 321: -#line 2121 "parser.y" /* yacc.c:1646 */ + case 322: +#line 2128 "parser.y" /* yacc.c:1646 */ { NSPAN((yyvsp[-2]), n_PARENTHETICAL_EXPRESSION, (yyvsp[0])); (yyvsp[-2])->appendChild((yyvsp[-1])); (yyval) = (yyvsp[-2]); } -#line 6406 "parser.yacc.cpp" /* yacc.c:1646 */ - break; - - case 322: -#line 2129 "parser.y" /* yacc.c:1646 */ - { - (yyval) = NNEW(n_EMPTY); - } -#line 6414 "parser.yacc.cpp" /* yacc.c:1646 */ +#line 6408 "parser.yacc.cpp" /* yacc.c:1646 */ break; case 323: -#line 2132 "parser.y" /* yacc.c:1646 */ +#line 2136 "parser.y" /* yacc.c:1646 */ { - (yyval) = NEXPAND((yyvsp[-2]), (yyvsp[-1]), (yyvsp[0])); + (yyval) = NNEW(n_EMPTY); } -#line 6422 "parser.yacc.cpp" /* yacc.c:1646 */ +#line 6416 "parser.yacc.cpp" /* yacc.c:1646 */ break; case 324: -#line 2138 "parser.y" /* yacc.c:1646 */ +#line 2139 "parser.y" /* yacc.c:1646 */ { - (yyval) = NTYPE((yyvsp[0]), n_NUMERIC_SCALAR); + (yyval) = NEXPAND((yyvsp[-2]), (yyvsp[-1]), (yyvsp[0])); } -#line 6430 "parser.yacc.cpp" /* yacc.c:1646 */ +#line 6424 "parser.yacc.cpp" /* yacc.c:1646 */ break; case 325: -#line 2141 "parser.y" /* yacc.c:1646 */ +#line 2145 "parser.y" /* yacc.c:1646 */ { (yyval) = NTYPE((yyvsp[0]), n_NUMERIC_SCALAR); } -#line 6438 "parser.yacc.cpp" /* yacc.c:1646 */ +#line 6432 "parser.yacc.cpp" /* yacc.c:1646 */ break; case 326: -#line 2144 "parser.y" /* yacc.c:1646 */ +#line 2148 "parser.y" /* yacc.c:1646 */ { - (yyval) = NTYPE((yyvsp[0]), n_STRING_SCALAR); + (yyval) = NTYPE((yyvsp[0]), n_NUMERIC_SCALAR); } -#line 6446 "parser.yacc.cpp" /* yacc.c:1646 */ +#line 6440 "parser.yacc.cpp" /* yacc.c:1646 */ break; case 327: -#line 2147 "parser.y" /* yacc.c:1646 */ +#line 2151 "parser.y" /* yacc.c:1646 */ { - (yyval) = NTYPE((yyvsp[0]), n_MAGIC_SCALAR); + (yyval) = NTYPE((yyvsp[0]), n_STRING_SCALAR); } -#line 6454 "parser.yacc.cpp" /* yacc.c:1646 */ +#line 6448 "parser.yacc.cpp" /* yacc.c:1646 */ break; case 328: -#line 2150 "parser.y" /* yacc.c:1646 */ +#line 2154 "parser.y" /* yacc.c:1646 */ { (yyval) = NTYPE((yyvsp[0]), n_MAGIC_SCALAR); } -#line 6462 "parser.yacc.cpp" /* yacc.c:1646 */ +#line 6456 "parser.yacc.cpp" /* yacc.c:1646 */ break; case 329: -#line 2153 "parser.y" /* yacc.c:1646 */ +#line 2157 "parser.y" /* yacc.c:1646 */ { (yyval) = NTYPE((yyvsp[0]), n_MAGIC_SCALAR); } -#line 6470 "parser.yacc.cpp" /* yacc.c:1646 */ +#line 6464 "parser.yacc.cpp" /* yacc.c:1646 */ break; case 330: -#line 2156 "parser.y" /* yacc.c:1646 */ +#line 2160 "parser.y" /* yacc.c:1646 */ { (yyval) = NTYPE((yyvsp[0]), n_MAGIC_SCALAR); } -#line 6478 "parser.yacc.cpp" /* yacc.c:1646 */ +#line 6472 "parser.yacc.cpp" /* yacc.c:1646 */ break; case 331: -#line 2159 "parser.y" /* yacc.c:1646 */ +#line 2163 "parser.y" /* yacc.c:1646 */ { (yyval) = NTYPE((yyvsp[0]), n_MAGIC_SCALAR); } -#line 6486 "parser.yacc.cpp" /* yacc.c:1646 */ +#line 6480 "parser.yacc.cpp" /* yacc.c:1646 */ break; case 332: -#line 2162 "parser.y" /* yacc.c:1646 */ +#line 2166 "parser.y" /* yacc.c:1646 */ { (yyval) = NTYPE((yyvsp[0]), n_MAGIC_SCALAR); } -#line 6494 "parser.yacc.cpp" /* yacc.c:1646 */ +#line 6488 "parser.yacc.cpp" /* yacc.c:1646 */ break; case 333: -#line 2165 "parser.y" /* yacc.c:1646 */ +#line 2169 "parser.y" /* yacc.c:1646 */ { (yyval) = NTYPE((yyvsp[0]), n_MAGIC_SCALAR); } -#line 6502 "parser.yacc.cpp" /* yacc.c:1646 */ +#line 6496 "parser.yacc.cpp" /* yacc.c:1646 */ break; case 334: -#line 2168 "parser.y" /* yacc.c:1646 */ +#line 2172 "parser.y" /* yacc.c:1646 */ { (yyval) = NTYPE((yyvsp[0]), n_MAGIC_SCALAR); } -#line 6510 "parser.yacc.cpp" /* yacc.c:1646 */ +#line 6504 "parser.yacc.cpp" /* yacc.c:1646 */ break; case 335: -#line 2171 "parser.y" /* yacc.c:1646 */ +#line 2175 "parser.y" /* yacc.c:1646 */ + { + (yyval) = NTYPE((yyvsp[0]), n_MAGIC_SCALAR); + } +#line 6512 "parser.yacc.cpp" /* yacc.c:1646 */ + break; + + case 336: +#line 2178 "parser.y" /* yacc.c:1646 */ { (yyval) = NTYPE((yyvsp[0]), n_HEREDOC); } -#line 6518 "parser.yacc.cpp" /* yacc.c:1646 */ +#line 6520 "parser.yacc.cpp" /* yacc.c:1646 */ break; - case 338: -#line 2179 "parser.y" /* yacc.c:1646 */ + case 339: +#line 2186 "parser.y" /* yacc.c:1646 */ { NMORE((yyvsp[0]), (yyvsp[-2])); (yyval) = (yyvsp[0]); } -#line 6527 "parser.yacc.cpp" /* yacc.c:1646 */ +#line 6529 "parser.yacc.cpp" /* yacc.c:1646 */ break; - case 339: -#line 2183 "parser.y" /* yacc.c:1646 */ + case 340: +#line 2190 "parser.y" /* yacc.c:1646 */ { NMORE((yyvsp[0]), (yyvsp[-1])); (yyval) = (yyvsp[0]); } -#line 6536 "parser.yacc.cpp" /* yacc.c:1646 */ +#line 6538 "parser.yacc.cpp" /* yacc.c:1646 */ break; - case 340: -#line 2187 "parser.y" /* yacc.c:1646 */ + case 341: +#line 2194 "parser.y" /* yacc.c:1646 */ { (yyval) = NNEW(n_UNARY_PREFIX_EXPRESSION); (yyval)->appendChild(NTYPE((yyvsp[-1]), n_OPERATOR)); (yyval)->appendChild((yyvsp[0])); } -#line 6546 "parser.yacc.cpp" /* yacc.c:1646 */ +#line 6548 "parser.yacc.cpp" /* yacc.c:1646 */ break; - case 341: -#line 2192 "parser.y" /* yacc.c:1646 */ + case 342: +#line 2199 "parser.y" /* yacc.c:1646 */ { (yyval) = NNEW(n_UNARY_PREFIX_EXPRESSION); (yyval)->appendChild(NTYPE((yyvsp[-1]), n_OPERATOR)); (yyval)->appendChild((yyvsp[0])); } -#line 6556 "parser.yacc.cpp" /* yacc.c:1646 */ +#line 6558 "parser.yacc.cpp" /* yacc.c:1646 */ break; - case 342: -#line 2197 "parser.y" /* yacc.c:1646 */ + case 343: +#line 2204 "parser.y" /* yacc.c:1646 */ { NTYPE((yyvsp[-3]), n_ARRAY_LITERAL); (yyvsp[-3])->appendChild(NEXPAND((yyvsp[-2]), (yyvsp[-1]), (yyvsp[0]))); (yyval) = (yyvsp[-3]); } -#line 6566 "parser.yacc.cpp" /* yacc.c:1646 */ +#line 6568 "parser.yacc.cpp" /* yacc.c:1646 */ break; - case 343: -#line 2202 "parser.y" /* yacc.c:1646 */ + case 344: +#line 2209 "parser.y" /* yacc.c:1646 */ { NTYPE((yyvsp[-2]), n_ARRAY_LITERAL); (yyvsp[-2])->appendChild(NEXPAND((yyvsp[-2]), (yyvsp[-1]), (yyvsp[0]))); (yyval) = (yyvsp[-2]); } -#line 6576 "parser.yacc.cpp" /* yacc.c:1646 */ +#line 6578 "parser.yacc.cpp" /* yacc.c:1646 */ break; - case 345: -#line 2211 "parser.y" /* yacc.c:1646 */ + case 346: +#line 2218 "parser.y" /* yacc.c:1646 */ { (yyval) = NNEW(n_CLASS_STATIC_ACCESS); (yyval)->appendChild((yyvsp[-2])); (yyval)->appendChild(NTYPE((yyvsp[0]), n_STRING)); } -#line 6586 "parser.yacc.cpp" /* yacc.c:1646 */ +#line 6588 "parser.yacc.cpp" /* yacc.c:1646 */ break; - case 349: -#line 2222 "parser.y" /* yacc.c:1646 */ + case 350: +#line 2229 "parser.y" /* yacc.c:1646 */ { (yyval) = NMORE((yyvsp[0]), (yyvsp[-2])); } -#line 6594 "parser.yacc.cpp" /* yacc.c:1646 */ +#line 6596 "parser.yacc.cpp" /* yacc.c:1646 */ break; - case 350: -#line 2225 "parser.y" /* yacc.c:1646 */ + case 351: +#line 2232 "parser.y" /* yacc.c:1646 */ { (yyval) = NMORE((yyvsp[0]), (yyvsp[-1])); } -#line 6602 "parser.yacc.cpp" /* yacc.c:1646 */ +#line 6604 "parser.yacc.cpp" /* yacc.c:1646 */ break; - case 352: -#line 2232 "parser.y" /* yacc.c:1646 */ + case 353: +#line 2239 "parser.y" /* yacc.c:1646 */ { (yyval) = NNEW(n_ARRAY_VALUE_LIST); } -#line 6610 "parser.yacc.cpp" /* yacc.c:1646 */ +#line 6612 "parser.yacc.cpp" /* yacc.c:1646 */ break; - case 353: -#line 2235 "parser.y" /* yacc.c:1646 */ + case 354: +#line 2242 "parser.y" /* yacc.c:1646 */ { (yyval) = NMORE((yyvsp[-1]), (yyvsp[0])); } -#line 6618 "parser.yacc.cpp" /* yacc.c:1646 */ +#line 6620 "parser.yacc.cpp" /* yacc.c:1646 */ break; - case 354: -#line 2241 "parser.y" /* yacc.c:1646 */ + case 355: +#line 2248 "parser.y" /* yacc.c:1646 */ { (yyval) = NNEW(n_EMPTY); } -#line 6626 "parser.yacc.cpp" /* yacc.c:1646 */ +#line 6628 "parser.yacc.cpp" /* yacc.c:1646 */ break; - case 356: -#line 2252 "parser.y" /* yacc.c:1646 */ + case 357: +#line 2259 "parser.y" /* yacc.c:1646 */ { (yyval) = NNEW(n_ARRAY_VALUE); (yyval)->appendChild((yyvsp[-2])); (yyval)->appendChild((yyvsp[0])); (yyval) = (yyvsp[-4])->appendChild((yyval)); } -#line 6638 "parser.yacc.cpp" /* yacc.c:1646 */ +#line 6640 "parser.yacc.cpp" /* yacc.c:1646 */ break; - case 357: -#line 2259 "parser.y" /* yacc.c:1646 */ + case 358: +#line 2266 "parser.y" /* yacc.c:1646 */ { (yyval) = NNEW(n_ARRAY_VALUE); (yyval)->appendChild(NNEW(n_EMPTY)); (yyval)->appendChild((yyvsp[0])); (yyval) = (yyvsp[-2])->appendChild((yyval)); } -#line 6650 "parser.yacc.cpp" /* yacc.c:1646 */ +#line 6652 "parser.yacc.cpp" /* yacc.c:1646 */ break; - case 358: -#line 2266 "parser.y" /* yacc.c:1646 */ + case 359: +#line 2273 "parser.y" /* yacc.c:1646 */ { (yyval) = NNEW(n_ARRAY_VALUE); (yyval)->appendChild((yyvsp[-2])); (yyval)->appendChild((yyvsp[0])); (yyval) = NNEW(n_ARRAY_VALUE_LIST)->appendChild((yyval)); } -#line 6662 "parser.yacc.cpp" /* yacc.c:1646 */ +#line 6664 "parser.yacc.cpp" /* yacc.c:1646 */ break; - case 359: -#line 2273 "parser.y" /* yacc.c:1646 */ + case 360: +#line 2280 "parser.y" /* yacc.c:1646 */ { (yyval) = NNEW(n_ARRAY_VALUE); (yyval)->appendChild(NNEW(n_EMPTY)); (yyval)->appendChild((yyvsp[0])); (yyval) = NNEW(n_ARRAY_VALUE_LIST)->appendChild((yyval)); } -#line 6674 "parser.yacc.cpp" /* yacc.c:1646 */ +#line 6676 "parser.yacc.cpp" /* yacc.c:1646 */ break; - case 365: -#line 2303 "parser.y" /* yacc.c:1646 */ + case 366: +#line 2310 "parser.y" /* yacc.c:1646 */ { (yyval) = NNEW(n_OBJECT_PROPERTY_ACCESS); (yyval)->appendChild((yyvsp[-4])); (yyval)->appendChild((yyvsp[-2])); if ((yyvsp[-1])->type != n_EMPTY) { (yyval) = NNEW(n_METHOD_CALL)->appendChild((yyval)); (yyval)->appendChild((yyvsp[-1])); } for (xhpast::node_list_t::iterator ii = (yyvsp[0])->children.begin(); ii != (yyvsp[0])->children.end(); ++ii) { if ((*ii)->type == n_CALL_PARAMETER_LIST) { (yyval) = NNEW(n_METHOD_CALL)->appendChild((yyval)); (yyval)->appendChild((*ii)); } else { (yyval) = NNEW(n_OBJECT_PROPERTY_ACCESS)->appendChild((yyval)); (yyval)->appendChild((*ii)); } } } -#line 6702 "parser.yacc.cpp" /* yacc.c:1646 */ +#line 6704 "parser.yacc.cpp" /* yacc.c:1646 */ break; - case 367: -#line 2330 "parser.y" /* yacc.c:1646 */ + case 368: +#line 2337 "parser.y" /* yacc.c:1646 */ { (yyval) = (yyvsp[-1])->appendChildren((yyvsp[0])); } -#line 6710 "parser.yacc.cpp" /* yacc.c:1646 */ +#line 6712 "parser.yacc.cpp" /* yacc.c:1646 */ break; - case 368: -#line 2333 "parser.y" /* yacc.c:1646 */ + case 369: +#line 2340 "parser.y" /* yacc.c:1646 */ { (yyval) = NNEW(n_EMPTY); } -#line 6718 "parser.yacc.cpp" /* yacc.c:1646 */ +#line 6720 "parser.yacc.cpp" /* yacc.c:1646 */ break; - case 369: -#line 2339 "parser.y" /* yacc.c:1646 */ + case 370: +#line 2346 "parser.y" /* yacc.c:1646 */ { (yyval) = NNEW(n_EMPTY); (yyval)->appendChild((yyvsp[-1])); if ((yyvsp[0])->type != n_EMPTY) { (yyval)->appendChild((yyvsp[0])); } } -#line 6730 "parser.yacc.cpp" /* yacc.c:1646 */ +#line 6732 "parser.yacc.cpp" /* yacc.c:1646 */ break; - case 370: -#line 2349 "parser.y" /* yacc.c:1646 */ + case 371: +#line 2356 "parser.y" /* yacc.c:1646 */ { (yyval) = NNEW(n_INDEX_ACCESS); (yyval)->appendChild((yyvsp[-3])); (yyval)->appendChild((yyvsp[-1])); NMORE((yyval), (yyvsp[0])); } -#line 6741 "parser.yacc.cpp" /* yacc.c:1646 */ +#line 6743 "parser.yacc.cpp" /* yacc.c:1646 */ break; - case 371: -#line 2355 "parser.y" /* yacc.c:1646 */ + case 372: +#line 2362 "parser.y" /* yacc.c:1646 */ { (yyval) = NNEW(n_INDEX_ACCESS); (yyval)->appendChild((yyvsp[-3])); (yyval)->appendChild((yyvsp[-1])); NMORE((yyval), (yyvsp[0])); } -#line 6752 "parser.yacc.cpp" /* yacc.c:1646 */ +#line 6754 "parser.yacc.cpp" /* yacc.c:1646 */ break; - case 372: -#line 2364 "parser.y" /* yacc.c:1646 */ + case 373: +#line 2371 "parser.y" /* yacc.c:1646 */ { (yyval) = NEXPAND((yyvsp[-2]), (yyvsp[-1]), (yyvsp[0])); } -#line 6760 "parser.yacc.cpp" /* yacc.c:1646 */ +#line 6762 "parser.yacc.cpp" /* yacc.c:1646 */ break; - case 375: -#line 2372 "parser.y" /* yacc.c:1646 */ + case 376: +#line 2379 "parser.y" /* yacc.c:1646 */ { (yyval) = NNEW(n_EMPTY); } -#line 6768 "parser.yacc.cpp" /* yacc.c:1646 */ +#line 6770 "parser.yacc.cpp" /* yacc.c:1646 */ break; - case 377: -#line 2379 "parser.y" /* yacc.c:1646 */ + case 378: +#line 2386 "parser.y" /* yacc.c:1646 */ { xhpast::Node *last = (yyvsp[-1]); NMORE((yyvsp[-1]), (yyvsp[0])); while (last->firstChild() && last->firstChild()->type == n_VARIABLE_VARIABLE) { NMORE(last, (yyvsp[0])); last = last->firstChild(); } last->appendChild((yyvsp[0])); (yyval) = (yyvsp[-1]); } -#line 6785 "parser.yacc.cpp" /* yacc.c:1646 */ +#line 6787 "parser.yacc.cpp" /* yacc.c:1646 */ break; - case 378: -#line 2394 "parser.y" /* yacc.c:1646 */ + case 379: +#line 2401 "parser.y" /* yacc.c:1646 */ { (yyval) = NNEW(n_CLASS_STATIC_ACCESS); (yyval)->appendChild((yyvsp[-2])); (yyval)->appendChild((yyvsp[0])); } -#line 6795 "parser.yacc.cpp" /* yacc.c:1646 */ +#line 6797 "parser.yacc.cpp" /* yacc.c:1646 */ break; - case 379: -#line 2399 "parser.y" /* yacc.c:1646 */ + case 380: +#line 2406 "parser.y" /* yacc.c:1646 */ { (yyval) = NNEW(n_CLASS_STATIC_ACCESS); (yyval)->appendChild((yyvsp[-2])); (yyval)->appendChild((yyvsp[0])); } -#line 6805 "parser.yacc.cpp" /* yacc.c:1646 */ +#line 6807 "parser.yacc.cpp" /* yacc.c:1646 */ break; - case 381: -#line 2411 "parser.y" /* yacc.c:1646 */ + case 382: +#line 2418 "parser.y" /* yacc.c:1646 */ { (yyval) = NNEW(n_INDEX_ACCESS); (yyval)->appendChild((yyvsp[-3])); (yyval)->appendChild((yyvsp[-1])); NMORE((yyval), (yyvsp[0])); } -#line 6816 "parser.yacc.cpp" /* yacc.c:1646 */ +#line 6818 "parser.yacc.cpp" /* yacc.c:1646 */ break; - case 382: -#line 2417 "parser.y" /* yacc.c:1646 */ + case 383: +#line 2424 "parser.y" /* yacc.c:1646 */ { (yyval) = NNEW(n_INDEX_ACCESS); (yyval)->appendChild((yyvsp[-3])); (yyval)->appendChild((yyvsp[-1])); NMORE((yyval), (yyvsp[0])); } -#line 6827 "parser.yacc.cpp" /* yacc.c:1646 */ +#line 6829 "parser.yacc.cpp" /* yacc.c:1646 */ break; - case 387: -#line 2433 "parser.y" /* yacc.c:1646 */ + case 388: +#line 2440 "parser.y" /* yacc.c:1646 */ { (yyval) = NEXPAND((yyvsp[-2]), (yyvsp[-1]), (yyvsp[0])); } -#line 6835 "parser.yacc.cpp" /* yacc.c:1646 */ +#line 6837 "parser.yacc.cpp" /* yacc.c:1646 */ break; - case 388: -#line 2436 "parser.y" /* yacc.c:1646 */ + case 389: +#line 2443 "parser.y" /* yacc.c:1646 */ { xhpast::Node *last = (yyvsp[-1]); NMORE((yyvsp[-1]), (yyvsp[0])); while (last->firstChild() && last->firstChild()->type == n_VARIABLE_VARIABLE) { NMORE(last, (yyvsp[0])); last = last->firstChild(); } last->appendChild((yyvsp[0])); (yyval) = (yyvsp[-1]); } -#line 6852 "parser.yacc.cpp" /* yacc.c:1646 */ +#line 6854 "parser.yacc.cpp" /* yacc.c:1646 */ break; - case 390: -#line 2452 "parser.y" /* yacc.c:1646 */ + case 391: +#line 2459 "parser.y" /* yacc.c:1646 */ { (yyval) = NNEW(n_INDEX_ACCESS); (yyval)->appendChild((yyvsp[-3])); (yyval)->appendChild((yyvsp[-1])); NMORE((yyval), (yyvsp[0])); } -#line 6863 "parser.yacc.cpp" /* yacc.c:1646 */ +#line 6865 "parser.yacc.cpp" /* yacc.c:1646 */ break; - case 391: -#line 2458 "parser.y" /* yacc.c:1646 */ + case 392: +#line 2465 "parser.y" /* yacc.c:1646 */ { (yyval) = NNEW(n_INDEX_ACCESS); (yyval)->appendChild((yyvsp[-3])); (yyval)->appendChild((yyvsp[-1])); NMORE((yyval), (yyvsp[0])); } -#line 6874 "parser.yacc.cpp" /* yacc.c:1646 */ +#line 6876 "parser.yacc.cpp" /* yacc.c:1646 */ break; - case 393: -#line 2468 "parser.y" /* yacc.c:1646 */ + case 394: +#line 2475 "parser.y" /* yacc.c:1646 */ { NTYPE((yyvsp[0]), n_VARIABLE); } -#line 6882 "parser.yacc.cpp" /* yacc.c:1646 */ +#line 6884 "parser.yacc.cpp" /* yacc.c:1646 */ break; - case 394: -#line 2471 "parser.y" /* yacc.c:1646 */ + case 395: +#line 2478 "parser.y" /* yacc.c:1646 */ { NSPAN((yyvsp[-3]), n_VARIABLE_EXPRESSION, (yyvsp[0])); (yyvsp[-3])->appendChild((yyvsp[-1])); (yyval) = (yyvsp[-3]); } -#line 6892 "parser.yacc.cpp" /* yacc.c:1646 */ +#line 6894 "parser.yacc.cpp" /* yacc.c:1646 */ break; - case 395: -#line 2479 "parser.y" /* yacc.c:1646 */ + case 396: +#line 2486 "parser.y" /* yacc.c:1646 */ { (yyval) = NNEW(n_EMPTY); } -#line 6900 "parser.yacc.cpp" /* yacc.c:1646 */ +#line 6902 "parser.yacc.cpp" /* yacc.c:1646 */ break; - case 396: -#line 2482 "parser.y" /* yacc.c:1646 */ + case 397: +#line 2489 "parser.y" /* yacc.c:1646 */ { (yyval) = (yyvsp[0]); } -#line 6908 "parser.yacc.cpp" /* yacc.c:1646 */ +#line 6910 "parser.yacc.cpp" /* yacc.c:1646 */ break; - case 399: -#line 2493 "parser.y" /* yacc.c:1646 */ + case 400: +#line 2500 "parser.y" /* yacc.c:1646 */ { (yyval) = NNEW(n_INDEX_ACCESS); (yyval)->appendChild((yyvsp[-3])); (yyval)->appendChild((yyvsp[-1])); NMORE((yyval), (yyvsp[0])); } -#line 6919 "parser.yacc.cpp" /* yacc.c:1646 */ +#line 6921 "parser.yacc.cpp" /* yacc.c:1646 */ break; - case 400: -#line 2499 "parser.y" /* yacc.c:1646 */ + case 401: +#line 2506 "parser.y" /* yacc.c:1646 */ { (yyval) = NNEW(n_INDEX_ACCESS); (yyval)->appendChild((yyvsp[-3])); (yyval)->appendChild((yyvsp[-1])); NMORE((yyval), (yyvsp[0])); } -#line 6930 "parser.yacc.cpp" /* yacc.c:1646 */ +#line 6932 "parser.yacc.cpp" /* yacc.c:1646 */ break; - case 402: -#line 2509 "parser.y" /* yacc.c:1646 */ + case 403: +#line 2516 "parser.y" /* yacc.c:1646 */ { NTYPE((yyvsp[0]), n_STRING); (yyval) = (yyvsp[0]); } -#line 6939 "parser.yacc.cpp" /* yacc.c:1646 */ +#line 6941 "parser.yacc.cpp" /* yacc.c:1646 */ break; - case 403: -#line 2513 "parser.y" /* yacc.c:1646 */ + case 404: +#line 2520 "parser.y" /* yacc.c:1646 */ { (yyval) = NEXPAND((yyvsp[-2]), (yyvsp[-1]), (yyvsp[0])); } -#line 6947 "parser.yacc.cpp" /* yacc.c:1646 */ +#line 6949 "parser.yacc.cpp" /* yacc.c:1646 */ break; - case 404: -#line 2519 "parser.y" /* yacc.c:1646 */ + case 405: +#line 2526 "parser.y" /* yacc.c:1646 */ { (yyval) = NTYPE((yyvsp[0]), n_VARIABLE_VARIABLE); } -#line 6955 "parser.yacc.cpp" /* yacc.c:1646 */ +#line 6957 "parser.yacc.cpp" /* yacc.c:1646 */ break; - case 405: -#line 2522 "parser.y" /* yacc.c:1646 */ + case 406: +#line 2529 "parser.y" /* yacc.c:1646 */ { (yyvsp[0]) = NTYPE((yyvsp[0]), n_VARIABLE_VARIABLE); xhpast::Node *last = (yyvsp[-1]); while (last->firstChild() && last->firstChild()->type == n_VARIABLE_VARIABLE) { last = last->firstChild(); } last->appendChild((yyvsp[0])); (yyval) = (yyvsp[-1]); } -#line 6972 "parser.yacc.cpp" /* yacc.c:1646 */ +#line 6974 "parser.yacc.cpp" /* yacc.c:1646 */ break; - case 406: -#line 2537 "parser.y" /* yacc.c:1646 */ + case 407: +#line 2544 "parser.y" /* yacc.c:1646 */ { (yyval) = (yyvsp[-2])->appendChild((yyvsp[0])); } -#line 6980 "parser.yacc.cpp" /* yacc.c:1646 */ +#line 6982 "parser.yacc.cpp" /* yacc.c:1646 */ break; - case 407: -#line 2540 "parser.y" /* yacc.c:1646 */ + case 408: +#line 2547 "parser.y" /* yacc.c:1646 */ { (yyval) = NNEW(n_ASSIGNMENT_LIST); (yyval)->appendChild((yyvsp[0])); } -#line 6989 "parser.yacc.cpp" /* yacc.c:1646 */ +#line 6991 "parser.yacc.cpp" /* yacc.c:1646 */ break; - case 409: -#line 2548 "parser.y" /* yacc.c:1646 */ + case 410: +#line 2555 "parser.y" /* yacc.c:1646 */ { (yyval) = NNEW(n_LIST); (yyval)->appendChild(NEXPAND((yyvsp[-2]), (yyvsp[-1]), (yyvsp[0]))); } -#line 6998 "parser.yacc.cpp" /* yacc.c:1646 */ +#line 7000 "parser.yacc.cpp" /* yacc.c:1646 */ break; - case 410: -#line 2552 "parser.y" /* yacc.c:1646 */ + case 411: +#line 2559 "parser.y" /* yacc.c:1646 */ { (yyval) = NNEW(n_EMPTY); } -#line 7006 "parser.yacc.cpp" /* yacc.c:1646 */ +#line 7008 "parser.yacc.cpp" /* yacc.c:1646 */ break; - case 411: -#line 2558 "parser.y" /* yacc.c:1646 */ + case 412: +#line 2565 "parser.y" /* yacc.c:1646 */ { (yyval) = NNEW(n_ARRAY_VALUE_LIST); } -#line 7014 "parser.yacc.cpp" /* yacc.c:1646 */ +#line 7016 "parser.yacc.cpp" /* yacc.c:1646 */ break; - case 412: -#line 2561 "parser.y" /* yacc.c:1646 */ + case 413: +#line 2568 "parser.y" /* yacc.c:1646 */ { (yyval) = NMORE((yyvsp[-1]), (yyvsp[0])); } -#line 7022 "parser.yacc.cpp" /* yacc.c:1646 */ +#line 7024 "parser.yacc.cpp" /* yacc.c:1646 */ break; - case 413: -#line 2567 "parser.y" /* yacc.c:1646 */ + case 414: +#line 2574 "parser.y" /* yacc.c:1646 */ { (yyval) = NNEW(n_ARRAY_VALUE); (yyval)->appendChild((yyvsp[-2])); (yyval)->appendChild((yyvsp[0])); (yyval) = (yyvsp[-4])->appendChild((yyval)); } -#line 7034 "parser.yacc.cpp" /* yacc.c:1646 */ +#line 7036 "parser.yacc.cpp" /* yacc.c:1646 */ break; - case 414: -#line 2574 "parser.y" /* yacc.c:1646 */ + case 415: +#line 2581 "parser.y" /* yacc.c:1646 */ { (yyval) = NNEW(n_ARRAY_VALUE); (yyval)->appendChild(NNEW(n_EMPTY)); (yyval)->appendChild((yyvsp[0])); (yyval) = (yyvsp[-2])->appendChild((yyval)); } -#line 7046 "parser.yacc.cpp" /* yacc.c:1646 */ +#line 7048 "parser.yacc.cpp" /* yacc.c:1646 */ break; - case 415: -#line 2581 "parser.y" /* yacc.c:1646 */ + case 416: +#line 2588 "parser.y" /* yacc.c:1646 */ { (yyval) = NNEW(n_ARRAY_VALUE); (yyval)->appendChild((yyvsp[-2])); (yyval)->appendChild((yyvsp[0])); (yyval) = NNEW(n_ARRAY_VALUE_LIST)->appendChild((yyval)); } -#line 7058 "parser.yacc.cpp" /* yacc.c:1646 */ +#line 7060 "parser.yacc.cpp" /* yacc.c:1646 */ break; - case 416: -#line 2588 "parser.y" /* yacc.c:1646 */ + case 417: +#line 2595 "parser.y" /* yacc.c:1646 */ { (yyval) = NNEW(n_ARRAY_VALUE); (yyval)->appendChild(NNEW(n_EMPTY)); (yyval)->appendChild((yyvsp[0])); (yyval) = NNEW(n_ARRAY_VALUE_LIST)->appendChild((yyval)); } -#line 7070 "parser.yacc.cpp" /* yacc.c:1646 */ +#line 7072 "parser.yacc.cpp" /* yacc.c:1646 */ break; - case 417: -#line 2595 "parser.y" /* yacc.c:1646 */ + case 418: +#line 2602 "parser.y" /* yacc.c:1646 */ { (yyval) = NNEW(n_ARRAY_VALUE); (yyval)->appendChild((yyvsp[-3])); (yyval)->appendChild(NTYPE((yyvsp[-1]), n_VARIABLE_REFERENCE)->appendChild((yyvsp[0]))); (yyval) = (yyvsp[-5])->appendChild((yyval)); } -#line 7082 "parser.yacc.cpp" /* yacc.c:1646 */ +#line 7084 "parser.yacc.cpp" /* yacc.c:1646 */ break; - case 418: -#line 2602 "parser.y" /* yacc.c:1646 */ + case 419: +#line 2609 "parser.y" /* yacc.c:1646 */ { (yyval) = NNEW(n_ARRAY_VALUE); (yyval)->appendChild(NNEW(n_EMPTY)); (yyval)->appendChild(NTYPE((yyvsp[-1]), n_VARIABLE_REFERENCE)->appendChild((yyvsp[0]))); (yyval) = (yyvsp[-3])->appendChild((yyval)); } -#line 7094 "parser.yacc.cpp" /* yacc.c:1646 */ +#line 7096 "parser.yacc.cpp" /* yacc.c:1646 */ break; - case 419: -#line 2609 "parser.y" /* yacc.c:1646 */ + case 420: +#line 2616 "parser.y" /* yacc.c:1646 */ { (yyval) = NNEW(n_ARRAY_VALUE); (yyval)->appendChild((yyvsp[-3])); (yyval)->appendChild(NTYPE((yyvsp[-1]), n_VARIABLE_REFERENCE)->appendChild((yyvsp[0]))); (yyval) = NNEW(n_ARRAY_VALUE_LIST)->appendChild((yyval)); } -#line 7106 "parser.yacc.cpp" /* yacc.c:1646 */ +#line 7108 "parser.yacc.cpp" /* yacc.c:1646 */ break; - case 420: -#line 2616 "parser.y" /* yacc.c:1646 */ + case 421: +#line 2623 "parser.y" /* yacc.c:1646 */ { (yyval) = NNEW(n_ARRAY_VALUE); (yyval)->appendChild(NNEW(n_EMPTY)); (yyval)->appendChild(NTYPE((yyvsp[-1]), n_VARIABLE_REFERENCE)->appendChild((yyvsp[0]))); (yyval) = NNEW(n_ARRAY_VALUE_LIST)->appendChild((yyval)); } -#line 7118 "parser.yacc.cpp" /* yacc.c:1646 */ +#line 7120 "parser.yacc.cpp" /* yacc.c:1646 */ break; - case 421: -#line 2626 "parser.y" /* yacc.c:1646 */ + case 422: +#line 2633 "parser.y" /* yacc.c:1646 */ { NTYPE((yyvsp[-3]), n_SYMBOL_NAME); NSPAN((yyvsp[-2]), n_CALL_PARAMETER_LIST, (yyvsp[0])); (yyvsp[-2])->appendChildren((yyvsp[-1])); (yyval) = NNEW(n_FUNCTION_CALL); (yyval)->appendChild((yyvsp[-3])); (yyval)->appendChild((yyvsp[-2])); } -#line 7133 "parser.yacc.cpp" /* yacc.c:1646 */ +#line 7135 "parser.yacc.cpp" /* yacc.c:1646 */ break; - case 422: -#line 2636 "parser.y" /* yacc.c:1646 */ + case 423: +#line 2643 "parser.y" /* yacc.c:1646 */ { NTYPE((yyvsp[-3]), n_SYMBOL_NAME); NSPAN((yyvsp[-2]), n_CALL_PARAMETER_LIST, (yyvsp[0])); (yyvsp[-2])->appendChild((yyvsp[-1])); (yyval) = NNEW(n_FUNCTION_CALL); (yyval)->appendChild((yyvsp[-3])); (yyval)->appendChild((yyvsp[-2])); } -#line 7148 "parser.yacc.cpp" /* yacc.c:1646 */ +#line 7150 "parser.yacc.cpp" /* yacc.c:1646 */ break; - case 423: -#line 2646 "parser.y" /* yacc.c:1646 */ + case 424: +#line 2653 "parser.y" /* yacc.c:1646 */ { (yyval) = NTYPE((yyvsp[-1]), n_INCLUDE_FILE)->appendChild((yyvsp[0])); } -#line 7156 "parser.yacc.cpp" /* yacc.c:1646 */ +#line 7158 "parser.yacc.cpp" /* yacc.c:1646 */ break; - case 424: -#line 2649 "parser.y" /* yacc.c:1646 */ + case 425: +#line 2656 "parser.y" /* yacc.c:1646 */ { (yyval) = NTYPE((yyvsp[-1]), n_INCLUDE_FILE)->appendChild((yyvsp[0])); } -#line 7164 "parser.yacc.cpp" /* yacc.c:1646 */ +#line 7166 "parser.yacc.cpp" /* yacc.c:1646 */ break; - case 425: -#line 2652 "parser.y" /* yacc.c:1646 */ + case 426: +#line 2659 "parser.y" /* yacc.c:1646 */ { NTYPE((yyvsp[-3]), n_SYMBOL_NAME); NSPAN((yyvsp[-2]), n_CALL_PARAMETER_LIST, (yyvsp[0])); (yyvsp[-2])->appendChild((yyvsp[-1])); (yyval) = NNEW(n_FUNCTION_CALL); (yyval)->appendChild((yyvsp[-3])); (yyval)->appendChild((yyvsp[-2])); } -#line 7179 "parser.yacc.cpp" /* yacc.c:1646 */ +#line 7181 "parser.yacc.cpp" /* yacc.c:1646 */ break; - case 426: -#line 2662 "parser.y" /* yacc.c:1646 */ + case 427: +#line 2669 "parser.y" /* yacc.c:1646 */ { (yyval) = NTYPE((yyvsp[-1]), n_INCLUDE_FILE)->appendChild((yyvsp[0])); } -#line 7187 "parser.yacc.cpp" /* yacc.c:1646 */ +#line 7189 "parser.yacc.cpp" /* yacc.c:1646 */ break; - case 427: -#line 2665 "parser.y" /* yacc.c:1646 */ + case 428: +#line 2672 "parser.y" /* yacc.c:1646 */ { (yyval) = NTYPE((yyvsp[-1]), n_INCLUDE_FILE)->appendChild((yyvsp[0])); } -#line 7195 "parser.yacc.cpp" /* yacc.c:1646 */ +#line 7197 "parser.yacc.cpp" /* yacc.c:1646 */ break; - case 428: -#line 2671 "parser.y" /* yacc.c:1646 */ + case 429: +#line 2678 "parser.y" /* yacc.c:1646 */ { (yyval) = NNEW(n_EMPTY); (yyval)->appendChild((yyvsp[0])); } -#line 7204 "parser.yacc.cpp" /* yacc.c:1646 */ +#line 7206 "parser.yacc.cpp" /* yacc.c:1646 */ break; - case 429: -#line 2675 "parser.y" /* yacc.c:1646 */ + case 430: +#line 2682 "parser.y" /* yacc.c:1646 */ { (yyval) = (yyvsp[-2])->appendChild((yyvsp[0])); } -#line 7212 "parser.yacc.cpp" /* yacc.c:1646 */ +#line 7214 "parser.yacc.cpp" /* yacc.c:1646 */ break; - case 430: -#line 2681 "parser.y" /* yacc.c:1646 */ + case 431: +#line 2688 "parser.y" /* yacc.c:1646 */ { NSPAN((yyvsp[-2]), n_PARENTHETICAL_EXPRESSION, (yyvsp[0])); (yyvsp[-2])->appendChild((yyvsp[-1])); (yyval) = (yyvsp[-2]); } -#line 7222 "parser.yacc.cpp" /* yacc.c:1646 */ +#line 7224 "parser.yacc.cpp" /* yacc.c:1646 */ break; - case 431: -#line 2686 "parser.y" /* yacc.c:1646 */ + case 432: +#line 2693 "parser.y" /* yacc.c:1646 */ { (yyval) = NEXPAND((yyvsp[-2]), (yyvsp[-1]), (yyvsp[0])); } -#line 7230 "parser.yacc.cpp" /* yacc.c:1646 */ +#line 7232 "parser.yacc.cpp" /* yacc.c:1646 */ break; - case 432: -#line 2692 "parser.y" /* yacc.c:1646 */ + case 433: +#line 2699 "parser.y" /* yacc.c:1646 */ { (yyval) = NNEW(n_INDEX_ACCESS); (yyval)->appendChild((yyvsp[-3])); (yyval)->appendChild((yyvsp[-1])); NMORE((yyval), (yyvsp[0])); } -#line 7241 "parser.yacc.cpp" /* yacc.c:1646 */ +#line 7243 "parser.yacc.cpp" /* yacc.c:1646 */ break; - case 433: -#line 2698 "parser.y" /* yacc.c:1646 */ + case 434: +#line 2705 "parser.y" /* yacc.c:1646 */ { (yyval) = NNEW(n_INDEX_ACCESS); (yyval)->appendChild((yyvsp[-3])); (yyval)->appendChild((yyvsp[-1])); NMORE((yyval), (yyvsp[0])); } -#line 7252 "parser.yacc.cpp" /* yacc.c:1646 */ +#line 7254 "parser.yacc.cpp" /* yacc.c:1646 */ break; - case 434: -#line 2704 "parser.y" /* yacc.c:1646 */ + case 435: +#line 2711 "parser.y" /* yacc.c:1646 */ { (yyval) = NNEW(n_INDEX_ACCESS); (yyval)->appendChild(NTYPE((yyvsp[-3]), n_STRING_SCALAR)); (yyval)->appendChild((yyvsp[-1])); NMORE((yyval), (yyvsp[0])); } -#line 7263 "parser.yacc.cpp" /* yacc.c:1646 */ +#line 7265 "parser.yacc.cpp" /* yacc.c:1646 */ break; - case 435: -#line 2710 "parser.y" /* yacc.c:1646 */ + case 436: +#line 2717 "parser.y" /* yacc.c:1646 */ { (yyval) = NNEW(n_INDEX_ACCESS); (yyval)->appendChild((yyvsp[-3])); (yyval)->appendChild((yyvsp[-1])); NMORE((yyval), (yyvsp[0])); } -#line 7274 "parser.yacc.cpp" /* yacc.c:1646 */ +#line 7276 "parser.yacc.cpp" /* yacc.c:1646 */ break; - case 436: -#line 2716 "parser.y" /* yacc.c:1646 */ + case 437: +#line 2723 "parser.y" /* yacc.c:1646 */ { (yyval) = NNEW(n_INDEX_ACCESS); (yyval)->appendChild(NTYPE((yyvsp[-3]), n_STRING)); (yyval)->appendChild((yyvsp[-1])); NMORE((yyval), (yyvsp[0])); } -#line 7285 "parser.yacc.cpp" /* yacc.c:1646 */ +#line 7287 "parser.yacc.cpp" /* yacc.c:1646 */ break; - case 437: -#line 2725 "parser.y" /* yacc.c:1646 */ + case 438: +#line 2732 "parser.y" /* yacc.c:1646 */ { NTYPE((yyvsp[-3]), n_ARRAY_LITERAL); (yyvsp[-3])->appendChild(NEXPAND((yyvsp[-2]), (yyvsp[-1]), (yyvsp[0]))); (yyval) = (yyvsp[-3]); } -#line 7295 "parser.yacc.cpp" /* yacc.c:1646 */ +#line 7297 "parser.yacc.cpp" /* yacc.c:1646 */ break; - case 438: -#line 2730 "parser.y" /* yacc.c:1646 */ + case 439: +#line 2737 "parser.y" /* yacc.c:1646 */ { NTYPE((yyvsp[-2]), n_ARRAY_LITERAL); (yyvsp[-2])->appendChild(NEXPAND((yyvsp[-2]), (yyvsp[-1]), (yyvsp[0]))); (yyval) = (yyvsp[-2]); } -#line 7305 "parser.yacc.cpp" /* yacc.c:1646 */ +#line 7307 "parser.yacc.cpp" /* yacc.c:1646 */ break; - case 439: -#line 2738 "parser.y" /* yacc.c:1646 */ + case 440: +#line 2745 "parser.y" /* yacc.c:1646 */ { NTYPE((yyvsp[-2]), n_NEW); (yyvsp[-2])->appendChild((yyvsp[-1])); (yyvsp[-2])->appendChild((yyvsp[0])); (yyval) = (yyvsp[-2]); } -#line 7316 "parser.yacc.cpp" /* yacc.c:1646 */ +#line 7318 "parser.yacc.cpp" /* yacc.c:1646 */ break; - case 440: -#line 2747 "parser.y" /* yacc.c:1646 */ + case 441: +#line 2754 "parser.y" /* yacc.c:1646 */ { (yyval) = NNEW(n_CLASS_STATIC_ACCESS); (yyval)->appendChild((yyvsp[-2])); (yyval)->appendChild(NTYPE((yyvsp[0]), n_STRING)); } -#line 7326 "parser.yacc.cpp" /* yacc.c:1646 */ +#line 7328 "parser.yacc.cpp" /* yacc.c:1646 */ break; - case 441: -#line 2752 "parser.y" /* yacc.c:1646 */ + case 442: +#line 2759 "parser.y" /* yacc.c:1646 */ { (yyval) = NNEW(n_CLASS_STATIC_ACCESS); (yyval)->appendChild((yyvsp[-2])); (yyval)->appendChild(NTYPE((yyvsp[0]), n_STRING)); } -#line 7336 "parser.yacc.cpp" /* yacc.c:1646 */ +#line 7338 "parser.yacc.cpp" /* yacc.c:1646 */ break; -#line 7340 "parser.yacc.cpp" /* yacc.c:1646 */ +#line 7342 "parser.yacc.cpp" /* yacc.c:1646 */ default: break; } /* User semantic actions sometimes alter yychar, and that requires that yytoken be updated with the new translation. We take the approach of translating immediately before every use of yytoken. One alternative is translating here after every semantic action, but that translation would be missed if the semantic action invokes YYABORT, YYACCEPT, or YYERROR immediately after altering yychar or if it invokes YYBACKUP. In the case of YYABORT or YYACCEPT, an incorrect destructor might then be invoked immediately. In the case of YYERROR or YYBACKUP, subsequent parser actions might lead to an incorrect destructor call or verbose syntax error message before the lookahead is translated. */ YY_SYMBOL_PRINT ("-> $$ =", yyr1[yyn], &yyval, &yyloc); YYPOPSTACK (yylen); yylen = 0; YY_STACK_PRINT (yyss, yyssp); *++yyvsp = yyval; /* Now 'shift' the result of the reduction. Determine what state that goes to, based on the state we popped back to and the rule number reduced by. */ yyn = yyr1[yyn]; yystate = yypgoto[yyn - YYNTOKENS] + *yyssp; if (0 <= yystate && yystate <= YYLAST && yycheck[yystate] == *yyssp) yystate = yytable[yystate]; else yystate = yydefgoto[yyn - YYNTOKENS]; goto yynewstate; /*--------------------------------------. | yyerrlab -- here on detecting error. | `--------------------------------------*/ yyerrlab: /* Make sure we have latest lookahead translation. See comments at user semantic actions for why this is necessary. */ yytoken = yychar == YYEMPTY ? YYEMPTY : YYTRANSLATE (yychar); /* If not already recovering from an error, report this error. */ if (!yyerrstatus) { ++yynerrs; #if ! YYERROR_VERBOSE yyerror (yyscanner, root, YY_("syntax error")); #else # define YYSYNTAX_ERROR yysyntax_error (&yymsg_alloc, &yymsg, \ yyssp, yytoken) { char const *yymsgp = YY_("syntax error"); int yysyntax_error_status; yysyntax_error_status = YYSYNTAX_ERROR; if (yysyntax_error_status == 0) yymsgp = yymsg; else if (yysyntax_error_status == 1) { if (yymsg != yymsgbuf) YYSTACK_FREE (yymsg); yymsg = (char *) YYSTACK_ALLOC (yymsg_alloc); if (!yymsg) { yymsg = yymsgbuf; yymsg_alloc = sizeof yymsgbuf; yysyntax_error_status = 2; } else { yysyntax_error_status = YYSYNTAX_ERROR; yymsgp = yymsg; } } yyerror (yyscanner, root, yymsgp); if (yysyntax_error_status == 2) goto yyexhaustedlab; } # undef YYSYNTAX_ERROR #endif } if (yyerrstatus == 3) { /* If just tried and failed to reuse lookahead token after an error, discard it. */ if (yychar <= YYEOF) { /* Return failure if at end of input. */ if (yychar == YYEOF) YYABORT; } else { yydestruct ("Error: discarding", yytoken, &yylval, yyscanner, root); yychar = YYEMPTY; } } /* Else will try to reuse lookahead token after shifting the error token. */ goto yyerrlab1; /*---------------------------------------------------. | yyerrorlab -- error raised explicitly by YYERROR. | `---------------------------------------------------*/ yyerrorlab: /* Pacify compilers like GCC when the user code never invokes YYERROR and the label yyerrorlab therefore never appears in user code. */ if (/*CONSTCOND*/ 0) goto yyerrorlab; /* Do not reclaim the symbols of the rule whose action triggered this YYERROR. */ YYPOPSTACK (yylen); yylen = 0; YY_STACK_PRINT (yyss, yyssp); yystate = *yyssp; goto yyerrlab1; /*-------------------------------------------------------------. | yyerrlab1 -- common code for both syntax error and YYERROR. | `-------------------------------------------------------------*/ yyerrlab1: yyerrstatus = 3; /* Each real token shifted decrements this. */ for (;;) { yyn = yypact[yystate]; if (!yypact_value_is_default (yyn)) { yyn += YYTERROR; if (0 <= yyn && yyn <= YYLAST && yycheck[yyn] == YYTERROR) { yyn = yytable[yyn]; if (0 < yyn) break; } } /* Pop the current state because it cannot handle the error token. */ if (yyssp == yyss) YYABORT; yydestruct ("Error: popping", yystos[yystate], yyvsp, yyscanner, root); YYPOPSTACK (1); yystate = *yyssp; YY_STACK_PRINT (yyss, yyssp); } YY_IGNORE_MAYBE_UNINITIALIZED_BEGIN *++yyvsp = yylval; YY_IGNORE_MAYBE_UNINITIALIZED_END /* Shift the error token. */ YY_SYMBOL_PRINT ("Shifting", yystos[yyn], yyvsp, yylsp); yystate = yyn; goto yynewstate; /*-------------------------------------. | yyacceptlab -- YYACCEPT comes here. | `-------------------------------------*/ yyacceptlab: yyresult = 0; goto yyreturn; /*-----------------------------------. | yyabortlab -- YYABORT comes here. | `-----------------------------------*/ yyabortlab: yyresult = 1; goto yyreturn; #if !defined yyoverflow || YYERROR_VERBOSE /*-------------------------------------------------. | yyexhaustedlab -- memory exhaustion comes here. | `-------------------------------------------------*/ yyexhaustedlab: yyerror (yyscanner, root, YY_("memory exhausted")); yyresult = 2; /* Fall through. */ #endif yyreturn: if (yychar != YYEMPTY) { /* Make sure we have latest lookahead translation. See comments at user semantic actions for why this is necessary. */ yytoken = YYTRANSLATE (yychar); yydestruct ("Cleanup: discarding lookahead", yytoken, &yylval, yyscanner, root); } /* Do not reclaim the symbols of the rule whose action triggered this YYABORT or YYACCEPT. */ YYPOPSTACK (yylen); YY_STACK_PRINT (yyss, yyssp); while (yyssp != yyss) { yydestruct ("Cleanup: popping", yystos[*yyssp], yyvsp, yyscanner, root); YYPOPSTACK (1); } #ifndef yyoverflow if (yyss != yyssa) YYSTACK_FREE (yyss); #endif #if YYERROR_VERBOSE if (yymsg != yymsgbuf) YYSTACK_FREE (yymsg); #endif return yyresult; } -#line 2759 "parser.y" /* yacc.c:1906 */ +#line 2766 "parser.y" /* yacc.c:1906 */ const char* yytokname(int tok) { if (tok < 255) { return NULL; } return yytname[YYTRANSLATE(tok)]; } /* @generated */ diff --git a/support/xhpast/parser_nodes.php b/support/xhpast/parser_nodes.php index b785b27..6418235 100644 --- a/support/xhpast/parser_nodes.php +++ b/support/xhpast/parser_nodes.php @@ -1,125 +1,126 @@ 'n_PROGRAM', 9001 => 'n_SYMBOL_NAME', 9002 => 'n_HALT_COMPILER', 9003 => 'n_NAMESPACE', 9004 => 'n_STATEMENT', 9005 => 'n_EMPTY', 9006 => 'n_STATEMENT_LIST', 9007 => 'n_OPEN_TAG', 9008 => 'n_CLOSE_TAG', 9009 => 'n_USE_LIST', 9010 => 'n_USE', 9011 => 'n_CONSTANT_DECLARATION_LIST', 9012 => 'n_CONSTANT_DECLARATION', 9013 => 'n_STRING', 9014 => 'n_LABEL', 9015 => 'n_CONDITION_LIST', 9016 => 'n_CONTROL_CONDITION', 9017 => 'n_IF', 9018 => 'n_ELSEIF', 9019 => 'n_ELSE', 9020 => 'n_WHILE', 9021 => 'n_DO_WHILE', 9022 => 'n_FOR', 9023 => 'n_FOR_EXPRESSION', 9024 => 'n_SWITCH', 9025 => 'n_BREAK', 9026 => 'n_CONTINUE', 9027 => 'n_RETURN', 9028 => 'n_GLOBAL_DECLARATION_LIST', 9029 => 'n_GLOBAL_DECLARATION', 9030 => 'n_STATIC_DECLARATION_LIST', 9031 => 'n_STATIC_DECLARATION', 9032 => 'n_ECHO_LIST', 9033 => 'n_ECHO', 9034 => 'n_INLINE_HTML', 9035 => 'n_UNSET_LIST', 9036 => 'n_UNSET', 9037 => 'n_FOREACH', 9038 => 'n_FOREACH_EXPRESSION', 9039 => 'n_THROW', 9040 => 'n_GOTO', 9041 => 'n_TRY', 9042 => 'n_CATCH_LIST', 9043 => 'n_CATCH', 9044 => 'n_DECLARE', 9045 => 'n_DECLARE_DECLARATION_LIST', 9046 => 'n_DECLARE_DECLARATION', 9047 => 'n_VARIABLE', 9048 => 'n_REFERENCE', 9049 => 'n_VARIABLE_REFERENCE', 9050 => 'n_FUNCTION_DECLARATION', 9051 => 'n_CLASS_DECLARATION', 9052 => 'n_CLASS_ATTRIBUTES', 9053 => 'n_EXTENDS', 9054 => 'n_EXTENDS_LIST', 9055 => 'n_IMPLEMENTS_LIST', 9056 => 'n_INTERFACE_DECLARATION', 9057 => 'n_CASE', 9058 => 'n_DEFAULT', 9059 => 'n_DECLARATION_PARAMETER_LIST', 9060 => 'n_DECLARATION_PARAMETER', 9061 => 'n_TYPE_NAME', 9062 => 'n_VARIABLE_VARIABLE', 9063 => 'n_CLASS_MEMBER_DECLARATION_LIST', 9064 => 'n_CLASS_MEMBER_DECLARATION', 9065 => 'n_CLASS_CONSTANT_DECLARATION_LIST', 9066 => 'n_CLASS_CONSTANT_DECLARATION', 9067 => 'n_METHOD_DECLARATION', 9068 => 'n_METHOD_MODIFIER_LIST', 9069 => 'n_FUNCTION_MODIFIER_LIST', 9070 => 'n_CLASS_MEMBER_MODIFIER_LIST', 9071 => 'n_EXPRESSION_LIST', 9072 => 'n_LIST', 9073 => 'n_ASSIGNMENT', 9074 => 'n_NEW', 9075 => 'n_UNARY_PREFIX_EXPRESSION', 9076 => 'n_UNARY_POSTFIX_EXPRESSION', 9077 => 'n_BINARY_EXPRESSION', 9078 => 'n_TERNARY_EXPRESSION', 9079 => 'n_CAST_EXPRESSION', 9080 => 'n_CAST', 9081 => 'n_OPERATOR', 9082 => 'n_ARRAY_LITERAL', 9083 => 'n_EXIT_EXPRESSION', 9084 => 'n_BACKTICKS_EXPRESSION', 9085 => 'n_LEXICAL_VARIABLE_LIST', 9086 => 'n_NUMERIC_SCALAR', 9087 => 'n_STRING_SCALAR', 9088 => 'n_MAGIC_SCALAR', 9089 => 'n_CLASS_STATIC_ACCESS', 9090 => 'n_CLASS_NAME', 9091 => 'n_MAGIC_CLASS_KEYWORD', 9092 => 'n_OBJECT_PROPERTY_ACCESS', 9093 => 'n_ARRAY_VALUE_LIST', 9094 => 'n_ARRAY_VALUE', 9095 => 'n_CALL_PARAMETER_LIST', 9096 => 'n_VARIABLE_EXPRESSION', 9097 => 'n_INCLUDE_FILE', 9098 => 'n_HEREDOC', 9099 => 'n_FUNCTION_CALL', 9100 => 'n_INDEX_ACCESS', 9101 => 'n_ASSIGNMENT_LIST', 9102 => 'n_METHOD_CALL', 9103 => 'n_CONCATENATION_LIST', 9104 => 'n_PARENTHETICAL_EXPRESSION', 9105 => 'n_TRAIT_USE', 9106 => 'n_TRAIT_USE_LIST', 9107 => 'n_TRAIT_ADAPTATION_LIST', 9108 => 'n_TRAIT_INSTEADOF', 9109 => 'n_TRAIT_REFERENCE_LIST', 9110 => 'n_TRAIT_METHOD_REFERENCE', 9111 => 'n_TRAIT_AS', 9112 => 'n_YIELD', 9113 => 'n_FINALLY', 9114 => 'n_UNPACK', + 9115 => 'n_DECLARATION_RETURN', ); } diff --git a/support/xhpast/xhpast.cpp b/support/xhpast/xhpast.cpp index 71d933f..8bf79a7 100644 --- a/support/xhpast/xhpast.cpp +++ b/support/xhpast/xhpast.cpp @@ -1,121 +1,121 @@ #include "ast.hpp" #include #include #include using namespace std; int xhpastparse(void*, xhpast::Node **); int xhpast_process(std::string &in); void print_node(xhpast::Node *node); int main(int argc, char* argv[]) { if (argc != 1) { // Coupling: modify also src/parser/xhpast/bin/PhutilXHPASTBinary.php - cout << "7.0.3\n"; + cout << "7.1.0\n"; return 0; } ifstream inputFile; istream *inputStream; inputStream = &cin; std::stringbuf sb; *inputStream >> noskipws >> &sb; std::string buffer = sb.str(); inputFile.close(); return xhpast_process(buffer); } int xhpast_process(std::string &in) { char *buffer; in.reserve(in.size() + 1); buffer = const_cast(in.c_str()); buffer[in.size() + 1] = 0; // need double NULL for scan_buffer void* scanner; yy_extra_type extra; extra.insert_token = 0;//flags.eval ? T_OPEN_TAG_FAKE : 0; xhpast::Node *root = NULL; xhpastlex_init(&scanner); xhpastset_extra(&extra, scanner); xhpast_scan_buffer(buffer, in.size() + 2, scanner); xhpastparse(scanner, &root); xhpastlex_destroy(scanner); if (extra.terminated) { fprintf( stderr, "XHPAST Parse Error: %s on line %d\n", extra.error.c_str(), (int)extra.lineno); return 1; } printf("{"); printf("\"tree\":"); if (root) { // Extend the right token for the root node to the end of the concrete // token stream. This ensure all tokens appear in the tree. If we don't // do this and the file ends in tokens which don't go to the parser (like // comments and whitespace) they won't be represented in the tree. root->r_tok = (extra.token_list.size() - 1); print_node(root); } else { printf("null"); } printf(","); printf("\"stream\":"); printf("["); if (!extra.token_list.empty()) { for (xhpast::token_list_t::iterator ii = extra.token_list.begin();;) { printf("[%d, %d]", (*ii)->type, (int)(*ii)->value.length()); if (++ii != extra.token_list.end()) { printf(","); } else { break; } } } printf("]"); printf("}\n"); return 0; } void print_node(xhpast::Node *node) { int l = -1; if (node->l_tok != -1) { l = node->l_tok; } if (l == -1) { printf("[%u]", node->type); } else { int r = -1; if (node->r_tok != -1) { r = node->r_tok; } printf("[%u, %d, %d", node->type, l, r); if (!node->children.empty()) { printf(", ["); for (xhpast::node_list_t::iterator ii = node->children.begin();;) { print_node(*ii); if (++ii != node->children.end()) { printf(","); } else { break; } } printf("]"); } printf("]"); } }