diff --git a/.eslintrc.js b/.eslintrc.js index 8cd59e0..0968303 100644 --- a/.eslintrc.js +++ b/.eslintrc.js @@ -5,12 +5,9 @@ module.exports = { es2021: true, node: true, }, - extends: [ - 'airbnb-base', - ], + extends: ['airbnb-base'], parserOptions: { ecmaVersion: 12, }, - rules: { - }, + rules: {}, }; diff --git a/.github/workflows/nodejs.yml b/.github/workflows/nodejs.yml index 827bea3..4c4e672 100644 --- a/.github/workflows/nodejs.yml +++ b/.github/workflows/nodejs.yml @@ -2,20 +2,47 @@ name: nodejs on: push: - pull_request: + paths: + - '**/**' + - '!**/docs/**' + +env: + CI: true + FORCE_COLOR: 2 jobs: - build: - runs-on: ubuntu-latest + run: + name: Node ${{ matrix.node }} on ${{ matrix.os }} + runs-on: ${{ matrix.os }} strategy: + fail-fast: false matrix: - node-version: ["10", "12", "14"] + node: ['10.x', '12.x', '14.x'] + os: ['ubuntu-latest'] steps: - - uses: actions/checkout@v2 + - uses: actions/checkout@v2.3.4 - name: Use Node.js ${{ matrix.node-version }} - uses: actions/setup-node@v1 + uses: actions/setup-node@v2.1.4 with: node-version: ${{ matrix.node-version }} - - run: npm install + + - name: Get npm cache directory + id: npm-cache-dir + run: | + echo "::set-output name=dir::$(npm config get cache)" + - uses: actions/cache@v2 + id: npm-cache # use this to check for `cache-hit` ==> if: steps.npm-cache.outputs.cache-hit != 'true' + with: + path: ${{ steps.npm-cache-dir.outputs.dir }} + key: ${{ runner.os }}-node-${{ hashFiles('**/package-lock.json') }} + restore-keys: | + ${{ runner.os }}-node- + + - name: npm install, build, and test + run: | + npm install + npm run ci + env: + CI: true diff --git a/.gitignore b/.gitignore index 2eeab20..318bb46 100644 --- a/.gitignore +++ b/.gitignore @@ -1,228 +1,9 @@ -# -*- mode: gitignore; -*- -*~ -\#*\# -/.emacs.desktop -/.emacs.desktop.lock -*.elc -auto-save-list -tramp -.\#* - -# Org-mode -.org-id-locations -*_archive - -# flymake-mode -*_flymake.* - -# eshell files -/eshell/history -/eshell/lastdir - -# elpa packages -/elpa/ - -# reftex files -*.rel - -# AUCTeX auto folder -/auto/ - -# cask packages -.cask/ -dist/ - -# Flycheck -flycheck_*.el - -# server auth directory -/server/ - -# projectiles files -.projectile - -# directory configuration -.dir-locals.el - -# network security -/network-security.data - - -### macOS ### -# General .DS_Store -.AppleDouble -.LSOverride - -# Icon must end with two \r -Icon - -# Thumbnails -._* - -# Files that might appear in the root of a volume -.DocumentRevisions-V100 -.fseventsd -.Spotlight-V100 -.TemporaryItems -.Trashes -.VolumeIcon.icns -.com.apple.timemachine.donotpresent - -# Directories potentially created on remote AFP share -.AppleDB -.AppleDesktop -Network Trash Folder -Temporary Items -.apdisk - -### Node ### -# Logs -logs +node_modules +.nyc* +nyc* *.log -npm-debug.log* -yarn-debug.log* -yarn-error.log* -lerna-debug.log* - -# Diagnostic reports (https://nodejs.org/api/report.html) -report.[0-9]*.[0-9]*.[0-9]*.[0-9]*.json - -# Runtime data -pids -*.pid -*.seed -*.pid.lock - -# Directory for instrumented libs generated by jscoverage/JSCover -lib-cov - -# Coverage directory used by tools like istanbul -coverage -*.lcov - -# nyc test coverage -.nyc_output - -# Grunt intermediate storage (https://gruntjs.com/creating-plugins#storing-task-files) -.grunt - -# Bower dependency directory (https://bower.io/) -bower_components - -# node-waf configuration -.lock-wscript - -# Compiled binary addons (https://nodejs.org/api/addons.html) -build/Release - -# Dependency directories -node_modules/ -jspm_packages/ - -# TypeScript v1 declaration files -typings/ - -# TypeScript cache -*.tsbuildinfo - -# Optional npm cache directory -.npm - -# Optional eslint cache -.eslintcache - -# Microbundle cache -.rpt2_cache/ -.rts2_cache_cjs/ -.rts2_cache_es/ -.rts2_cache_umd/ - -# Optional REPL history -.node_repl_history - -# Output of 'npm pack' +*.coverage +coverage/ *.tgz - -# Yarn Integrity file -.yarn-integrity - -# dotenv environment variables file -.env -.env.test -.env*.local - -# parcel-bundler cache (https://parceljs.org/) -.cache -.parcel-cache - -# Next.js build output -.next - -# Nuxt.js build / generate output -.nuxt -dist - -# Gatsby files -.cache/ -# Comment in the public line in if your project uses Gatsby and not Next.js -# https://nextjs.org/blog/next-9-1#public-directory-support -# public - -# vuepress build output -.vuepress/dist - -# Serverless directories -.serverless/ - -# FuseBox cache -.fusebox/ - -# DynamoDB Local files -.dynamodb/ - -# TernJS port file -.tern-port - -# Stores VSCode versions used for testing VSCode extensions -.vscode-test - -### VisualStudioCode ### -.vscode/* -!.vscode/settings.json -!.vscode/tasks.json -!.vscode/launch.json -!.vscode/extensions.json -*.code-workspace - -### VisualStudioCode Patch ### -# Ignore all local history of files -.history -.ionide - -### Windows ### -# Windows thumbnail cache files -Thumbs.db -Thumbs.db:encryptable -ehthumbs.db -ehthumbs_vista.db - -# Dump file -*.stackdump - -# Folder config file -[Dd]esktop.ini - -# Recycle Bin used on file shares -$RECYCLE.BIN/ - -# Windows Installer files -*.cab -*.msi -*.msix -*.msm -*.msp - -# Windows shortcuts -*.lnk - +*.tar.gz diff --git a/.prettierignore b/.prettierignore index a170529..74c63df 100644 --- a/.prettierignore +++ b/.prettierignore @@ -13,3 +13,5 @@ codecov/ *.xhtml peggy/ *.peg +.nyc* +lib/solidity-pegis.js diff --git a/.vscode/settings.json b/.vscode/settings.json new file mode 100644 index 0000000..eeb03c2 --- /dev/null +++ b/.vscode/settings.json @@ -0,0 +1,3 @@ +{ + "cSpell.words": ["pegis", "pegjs"] +} diff --git a/CHANGELOG.md b/CHANGELOG.md new file mode 100644 index 0000000..24d1c6d --- /dev/null +++ b/CHANGELOG.md @@ -0,0 +1,72 @@ +### Changelog + +All notable changes to this project will be documented in this file. Dates are +displayed in UTC. + +Generated by [`auto-changelog`](https://github.com/CookPete/auto-changelog). + +#### [v2.0.4](https://github.com/sambacha/solidity-pegjs-parser/compare/v2.0.3...v2.0.4) + +> 30 October 2020 + +- fix(npm): fix pathnames, again + [`132d1b2`](https://github.com/sambacha/solidity-pegjs-parser/commit/132d1b2fa3c9951befced2c0989a42adc5402b8e) +- revert(solidity.pegjs): solidity.pegjs in rootdir + [`fc28601`](https://github.com/sambacha/solidity-pegjs-parser/commit/fc28601af20dad7611c9ebafa39c6a2356de7d84) +- Update README.md + [`4bf8cd1`](https://github.com/sambacha/solidity-pegjs-parser/commit/4bf8cd1acc273118f9657fcaa0a6e146d04a0793) + +#### [v2.0.3](https://github.com/sambacha/solidity-pegjs-parser/compare/2.0.2...v2.0.3) + +> 30 October 2020 + +- chore(npm): fix npm package details + [`4e626f3`](https://github.com/sambacha/solidity-pegjs-parser/commit/4e626f395d68e54885fc13f4a1123b2cd14f3085) +- feat(release): v2.0.2 + [`36fd9d5`](https://github.com/sambacha/solidity-pegjs-parser/commit/36fd9d563cdfa5e8580eff4c3938d051b3030aa8) +- fix(git): fix git merge + [`cd6d2d2`](https://github.com/sambacha/solidity-pegjs-parser/commit/cd6d2d206f8009358e0b3f6bed7e0b443034a5cf) + +#### [2.0.2](https://github.com/sambacha/solidity-pegjs-parser/compare/2.0.1...2.0.2) + +> 30 October 2020 + +- Release 2.0.2 + [`84fb0ab`](https://github.com/sambacha/solidity-pegjs-parser/commit/84fb0ab4335478aa9be1e9c88cbeaa329ec15fe7) + +#### [2.0.1](https://github.com/sambacha/solidity-pegjs-parser/compare/2.0.0...2.0.1) + +> 30 October 2020 + +- fix(npm): npm build directory + [`2dad33b`](https://github.com/sambacha/solidity-pegjs-parser/commit/2dad33b73271627adddc74d74c03b19b46c1c588) +- fix(bug): fixes issue wit deps + [`d807ba1`](https://github.com/sambacha/solidity-pegjs-parser/commit/d807ba1e7313cb7fc628130ab6abef1d474bae0a) +- test(mocah): fix mocah tests + [`4671018`](https://github.com/sambacha/solidity-pegjs-parser/commit/46710187897d4f16f5dec94d76b019124669100f) + +#### [2.0.0](https://github.com/sambacha/solidity-pegjs-parser/compare/v2.0.0...2.0.0) + +> 10 October 2020 + +### [v2.0.0](https://github.com/sambacha/solidity-pegjs-parser/compare/v1.0.1...v2.0.0) + +> 18 August 2021 + +- feat(refactor): migrate to peggy and various improvements + [`87b594a`](https://github.com/sambacha/solidity-pegjs-parser/commit/87b594ad21e1221b5e3574ac8f69b5751a9ce4be) +- build(refactor): improve build process + [`0de7a77`](https://github.com/sambacha/solidity-pegjs-parser/commit/0de7a774bf2edd51b03a865e435b30a02feb5313) +- chore(repo): remove dead and legacy artifacts + [`012fec1`](https://github.com/sambacha/solidity-pegjs-parser/commit/012fec1b5000017a6125c38580d76a3299f597cc) + +#### v1.0.1 + +> 31 October 2020 + +- feat(publish): inital github commit + [`ef9fd61`](https://github.com/sambacha/solidity-pegjs-parser/commit/ef9fd618cc1d2975f24ab6f387036d869ae76b4d) +- fix(tests): fix tests for coverage + [`bbfa7e4`](https://github.com/sambacha/solidity-pegjs-parser/commit/bbfa7e4658cb81ee66c18b0ad37ebc4df910e604) +- feat(v1.2.0): release v1.2.0 + [`2e37081`](https://github.com/sambacha/solidity-pegjs-parser/commit/2e37081899cf04ff19cef05f2c58dfb117167836) diff --git a/README.md b/README.md index c990314..5228e9a 100644 --- a/README.md +++ b/README.md @@ -16,12 +16,33 @@ Ideal for AST use-cases pegis-solidity -> original [consensys/solidity-parser](https://github.com/ConsenSys/solidity-parser) with additional project specific grammar rules +> original +> [consensys/solidity-parser](https://github.com/ConsenSys/solidity-parser) with +> additional project specific grammar rules + +- Main change is adoption of `peggy` as the `peg.js` framework has been + stagnant, this is a drop in replacement. + +#### TODO + +- Typescript support in next release via `ts-peggy` +- Documentation update + +## Reference for Changes + +> v2 changes start here: 18 August 2021 + +- feat(refactor): migrate to peggy and various improvements + [`87b594a`](https://github.com/sambacha/solidity-pegjs-parser/commit/87b594ad21e1221b5e3574ac8f69b5751a9ce4be) +- build(refactor): improve build process + [`0de7a77`](https://github.com/sambacha/solidity-pegjs-parser/commit/0de7a774bf2edd51b03a865e435b30a02feb5313) +- chore(repo): remove dead and legacy artifacts + [`012fec1`](https://github.com/sambacha/solidity-pegjs-parser/commit/012fec1b5000017a6125c38580d76a3299f597cc) ### Usage ```js -import { solidityparser } from "pegis-solidity" +import { solidityparser } from 'pegis-solidity'; ``` ### command line @@ -91,13 +112,13 @@ Generated output as AST output: ``` ```js -var SolidityParser = require("pegis-solidity") +var SolidityParser = require('pegis-solidity'); // Parse Solidity code as a string: -var result = SolidityParser.parse("contract { ... }") +var result = SolidityParser.parse('contract { ... }'); // Or, parse a file: -var result = SolidityParser.parseFile("./path/to/file.sol") +var result = SolidityParser.parseFile('./path/to/file.sol'); ``` ## Updates to Grammar diff --git a/cli.js b/cli.js index caa9e31..c98b71a 100755 --- a/cli.js +++ b/cli.js @@ -1,23 +1,20 @@ #!/usr/bin/env node -"use strict"; +'use strict'; /* eslint no-console: 0 */ -let argv = require("yargs").argv; -let SolidityParser = require("./index.js"); - +let argv = require('yargs').argv; +let SolidityParser = require('./index.js'); let result; try { - - if (argv.e) { - result = SolidityParser.parse(argv.e || argv.expression); - } else { - result = SolidityParser.parseFile(argv.f || argv.file || argv._[0]); - } - console.log(JSON.stringify(result, null, 2)); - + if (argv.e) { + result = SolidityParser.parse(argv.e || argv.expression); + } else { + result = SolidityParser.parseFile(argv.f || argv.file || argv._[0]); + } + console.log(JSON.stringify(result, null, 2)); } catch (e) { - console.error(e.message); - process.exit(1); -} \ No newline at end of file + console.error(e.message); + process.exit(1); +} diff --git a/cmd.js b/cmd.js new file mode 100755 index 0000000..0ceb059 --- /dev/null +++ b/cmd.js @@ -0,0 +1,34 @@ +#!/usr/bin/env node + +'use strict'; + +(function () { + var SolidityParser, echo, file, fs, i, len, ref, src; + + fs = require('fs'); + + SolidityParser = require('./index.js'); + + echo = function (msg) { + return process.stdout.write(JSON.stringify(msg, null, 2) + '\n'); + }; + + if (process.argv.length > 2) { + ref = process.argv.slice(2); + for (i = 0, len = ref.length; i < len; i++) { + file = ref[i]; + src = fs.readFileSync(file, 'utf8'); + try { + echo(SolidityParser.parse(src)); + } catch (err) { + process.stderr.write( + err.name === 'SyntaxError' + ? 'Location: ' + JSON.stringify(err.location, null, 4) + '\n' + err + : err.name + ': ' + err.message, + ); + } + } + } else { + echo('Solidity Parser: file...'); + } +}.call(this)); diff --git a/codecov.yml b/codecov.yml index 2cc8b16..45fa62b 100644 --- a/codecov.yml +++ b/codecov.yml @@ -4,4 +4,4 @@ codecov: coverage: precision: 2 round: down - range: "70...100" + range: '70...100' diff --git a/dev.sh b/dev.sh deleted file mode 100755 index 9e087db..0000000 --- a/dev.sh +++ /dev/null @@ -1,2 +0,0 @@ -#!/bin/bash ---reporter=text-lcov diff --git a/entrypoint.sh b/entrypoint.sh index 0ad7207..c2a516c 100755 --- a/entrypoint.sh +++ b/entrypoint.sh @@ -2,18 +2,20 @@ set -o errexit export NODE_ENV='production' export SOURCE_COMMIT="${SOURCE_COMMIT:-$(git rev-parse HEAD)}" - +mkdir -p build DIR="node_modules/.bin" if [ -d "$DIR" ]; then echo "Building Solidity Parser..." echo "Parser SOURCE_COMMIT" echo "SOURCE_COMMIT: $SOURCE_COMMIT" sleep 1 + rm -rf build/ + mkdir -p build/ npx peggy --cache -o ./build/parser.js ./solidity.pegjs npx peggy -o ./build/imports_parser.js ./imports.pegjs echo "Geneated parser successfully" exit 0 else - echo "Error: ${DIR} not found. Try installing with npm and not yarn" + echo "::error file=${DIR} not found. Try installing with npm and not yarn" exit 1 fi diff --git a/explore.js b/explore.js new file mode 100644 index 0000000..63995d4 --- /dev/null +++ b/explore.js @@ -0,0 +1,27 @@ +var solExplore = require('sol-explore'), + solparse = require('pegjs-solidity'); + +module.exports = { + version: require('./package.json').version, + + findImports: function (sourceCode) { + var importedFiles = [], + AST; + + try { + AST = solparse.parse(sourceCode); + } catch (e) { + throw new Error('An error occured while trying to parse the code:\n' + e); + } + + solExplore.traverse(AST, { + enter: function (node) { + if (node.type === 'ImportStatement') { + importedFiles.push(node.from); + } + }, + }); + + return importedFiles; + }, +}; diff --git a/index.js b/index.js index a86886b..9ceb4ca 100644 --- a/index.js +++ b/index.js @@ -1,76 +1,87 @@ -"use strict"; +'use strict'; -const PEG = require("peggy"); -const fs = require("fs"); -const path = require("path"); +const PEG = require('peggy'); +const fs = require('fs'); +const path = require('path'); const builtParsers = { - "solidity": require("./build/parser"), - "imports": require("./build/imports_parser") + solidity: require('./build/parser'), + imports: require('./build/imports_parser'), }; - function parseComments(sourceCode) { - // for Line comment regexp, the "." doesn't cover line termination chars so we're good :) - const comments = [], commentParser = /(\/\*(\*(?!\/)|[^*])*\*\/)|(\/\/.*)/g; - let nextComment; + // for Line comment regexp, the "." doesn't cover line termination chars so we're good :) + const comments = [], + commentParser = /(\/\*(\*(?!\/)|[^*])*\*\/)|(\/\/.*)/g; + let nextComment; - // eslint-disable-next-line no-cond-assign - while (nextComment = commentParser.exec(sourceCode)) { - const text = nextComment[0], types = { "//": "Line", "/*": "Block" }; + // eslint-disable-next-line no-cond-assign + while ((nextComment = commentParser.exec(sourceCode))) { + const text = nextComment[0], + types = { '//': 'Line', '/*': 'Block' }; - comments.push({ - text, - type: types[text.slice(0, 2)], - start: nextComment.index, - end: nextComment.index + text.length - }); - } + comments.push({ + text, + type: types[text.slice(0, 2)], + start: nextComment.index, + end: nextComment.index + text.length, + }); + } - return comments; + return comments; } - // TODO: Make all this async. module.exports = { - getParser: function(parser_name, rebuild) { - if (rebuild == true) { - let parserfile = fs.readFileSync(path.resolve("./" + parser_name + ".pegjs"), {encoding: "utf8"}); - return PEG.generate(parserfile); - } else { - return builtParsers[parser_name]; - } - }, - parse: function(source, options, parser_name, rebuild) { - if (typeof parser_name == "boolean") { - rebuild = parser_name; - parser_name = null; - } + getParser: function (parser_name, rebuild) { + if (rebuild == true) { + let parserfile = fs.readFileSync( + path.resolve('./' + parser_name + '.pegjs'), + { encoding: 'utf8' }, + ); + return PEG.generate(parserfile); + } else { + return builtParsers[parser_name]; + } + }, + parse: function (source, options, parser_name, rebuild) { + if (typeof parser_name == 'boolean') { + rebuild = parser_name; + parser_name = null; + } - if (parser_name == null) { - parser_name = "solidity"; - } + if (parser_name == null) { + parser_name = 'solidity'; + } - let parser = this.getParser(parser_name, rebuild); - let result; + let parser = this.getParser(parser_name, rebuild); + let result; - try { - result = parser.parse(source); - } catch (e) { - if (e instanceof parser.SyntaxError) { - e.message += " Line: " + e.location.start.line + ", Column: " + e.location.start.column; - } - throw e; - } + try { + result = parser.parse(source); + } catch (e) { + if (e instanceof parser.SyntaxError) { + e.message += + ' Line: ' + + e.location.start.line + + ', Column: ' + + e.location.start.column; + } + throw e; + } - if (typeof options === "object" && options.comment === true) { - result.comments = parseComments(source); - } + if (typeof options === 'object' && options.comment === true) { + result.comments = parseComments(source); + } - return result; - }, - parseFile: function(file, parser_name, rebuild) { - return this.parse(fs.readFileSync(path.resolve(file), {encoding: "utf8"}), parser_name, rebuild); - }, - parseComments + return result; + }, + parseFile: function (file, parser_name, rebuild) { + return this.parse( + fs.readFileSync(path.resolve(file), { encoding: 'utf8' }), + parser_name, + rebuild, + ); + }, + parseComments, }; diff --git a/package.json b/package.json index 0abbf62..c3f9b6b 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "pegis-solidity", - "version": "1.0.1", + "version": "2.1.0", "description": "pegjs grammar for solidity parsing", "main": "index.js", "bin": { @@ -12,25 +12,34 @@ }, "dependencies": { "peggy": "^1.2.0", - "ts-pegjs": "^1.1.1", + "solc": "^0.6.12", + "ts-pegjs": "^1.2.1", "yargs": "^16.1.0" }, "devDependencies": { + "@types/mocha": "^9.0.0", + "@types/node": "^14", "chai": "^4.3.4", "codecov": "^3.8.3", - "eslint": "^7.32.0", + "eslint": "^8.6.0", "eslint-config-airbnb-base": "^14.2.1", "eslint-config-prettier": "^8.3.0", "eslint-plugin-import": "^2.24.0", - "mocha": "^9.0.3", + "mocha": "^9.1.3", "nyc": "^15.1.0", - "prettier": "^2.3.2" + "prettier": "^2.5.1", + "ts-node": "^10.4.0", + "tslib": "^2.3.1", + "typescript": "^4.5.4" }, "scripts": { - "build": "sh entrypoint.sh", - "ci": "rm -rf build/ && sh entrypoint.sh && npx nyc --reporter=lcov npm test && npx codecov", + "build": "npx peggy --cache -o ./build/parser.js ./solidity.pegjs", + "compile": "npx peggy -o ./build/imports_parser.js ./imports.pegjs", + "ci": "./entrypoint.sh && npx nyc --reporter=lcov npm test && npx codecov", + "tracer": "./node_modules/.bin/peggy --trace --output parser-trace.js solidity.pegjs", "lint": "npx eslint .", - "run": "npm run build", + "run": "npm run build && npm run compile", + "format": "npx prettier --config .prettierrc.json --write .", "test": "npx mocha --timeout 5000 --reporter spec" }, "repository": { diff --git a/parser-trace.js b/parser-trace.js new file mode 100644 index 0000000..c6e76c1 --- /dev/null +++ b/parser-trace.js @@ -0,0 +1,24082 @@ +// Generated by Peggy 1.2.0. +// +// https://peggyjs.org/ + +'use strict'; + +function peg$subclass(child, parent) { + function C() { + this.constructor = child; + } + C.prototype = parent.prototype; + child.prototype = new C(); +} + +function peg$SyntaxError(message, expected, found, location) { + var self = Error.call(this, message); + if (Object.setPrototypeOf) { + Object.setPrototypeOf(self, peg$SyntaxError.prototype); + } + self.expected = expected; + self.found = found; + self.location = location; + self.name = 'SyntaxError'; + return self; +} + +peg$subclass(peg$SyntaxError, Error); + +function peg$padEnd(str, targetLength, padString) { + padString = padString || ' '; + if (str.length > targetLength) { + return str; + } + targetLength -= str.length; + padString += padString.repeat(targetLength); + return str + padString.slice(0, targetLength); +} + +peg$SyntaxError.prototype.format = function (sources) { + var str = 'Error: ' + this.message; + if (this.location) { + var src = null; + var k; + for (k = 0; k < sources.length; k++) { + if (sources[k].source === this.location.source) { + src = sources[k].text.split(/\r\n|\n|\r/g); + break; + } + } + var s = this.location.start; + var loc = this.location.source + ':' + s.line + ':' + s.column; + if (src) { + var e = this.location.end; + var filler = peg$padEnd('', s.line.toString().length); + var line = src[s.line - 1]; + var last = s.line === e.line ? e.column : line.length + 1; + str += + '\n --> ' + + loc + + '\n' + + filler + + ' |\n' + + s.line + + ' | ' + + line + + '\n' + + filler + + ' | ' + + peg$padEnd('', s.column - 1) + + peg$padEnd('', last - s.column, '^'); + } else { + str += '\n at ' + loc; + } + } + return str; +}; + +peg$SyntaxError.buildMessage = function (expected, found) { + var DESCRIBE_EXPECTATION_FNS = { + literal: function (expectation) { + return '"' + literalEscape(expectation.text) + '"'; + }, + + class: function (expectation) { + var escapedParts = expectation.parts.map(function (part) { + return Array.isArray(part) + ? classEscape(part[0]) + '-' + classEscape(part[1]) + : classEscape(part); + }); + + return '[' + (expectation.inverted ? '^' : '') + escapedParts + ']'; + }, + + any: function () { + return 'any character'; + }, + + end: function () { + return 'end of input'; + }, + + other: function (expectation) { + return expectation.description; + }, + }; + + function hex(ch) { + return ch.charCodeAt(0).toString(16).toUpperCase(); + } + + function literalEscape(s) { + return s + .replace(/\\/g, '\\\\') + .replace(/"/g, '\\"') + .replace(/\0/g, '\\0') + .replace(/\t/g, '\\t') + .replace(/\n/g, '\\n') + .replace(/\r/g, '\\r') + .replace(/[\x00-\x0F]/g, function (ch) { + return '\\x0' + hex(ch); + }) + .replace(/[\x10-\x1F\x7F-\x9F]/g, function (ch) { + return '\\x' + hex(ch); + }); + } + + function classEscape(s) { + return s + .replace(/\\/g, '\\\\') + .replace(/\]/g, '\\]') + .replace(/\^/g, '\\^') + .replace(/-/g, '\\-') + .replace(/\0/g, '\\0') + .replace(/\t/g, '\\t') + .replace(/\n/g, '\\n') + .replace(/\r/g, '\\r') + .replace(/[\x00-\x0F]/g, function (ch) { + return '\\x0' + hex(ch); + }) + .replace(/[\x10-\x1F\x7F-\x9F]/g, function (ch) { + return '\\x' + hex(ch); + }); + } + + function describeExpectation(expectation) { + return DESCRIBE_EXPECTATION_FNS[expectation.type](expectation); + } + + function describeExpected(expected) { + var descriptions = expected.map(describeExpectation); + var i, j; + + descriptions.sort(); + + if (descriptions.length > 0) { + for (i = 1, j = 1; i < descriptions.length; i++) { + if (descriptions[i - 1] !== descriptions[i]) { + descriptions[j] = descriptions[i]; + j++; + } + } + descriptions.length = j; + } + + switch (descriptions.length) { + case 1: + return descriptions[0]; + + case 2: + return descriptions[0] + ' or ' + descriptions[1]; + + default: + return ( + descriptions.slice(0, -1).join(', ') + + ', or ' + + descriptions[descriptions.length - 1] + ); + } + } + + function describeFound(found) { + return found ? '"' + literalEscape(found) + '"' : 'end of input'; + } + + return ( + 'Expected ' + + describeExpected(expected) + + ' but ' + + describeFound(found) + + ' found.' + ); +}; + +function peg$DefaultTracer() { + this.indentLevel = 0; +} + +peg$DefaultTracer.prototype.trace = function (event) { + var that = this; + + function log(event) { + function repeat(string, n) { + var result = '', + i; + + for (i = 0; i < n; i++) { + result += string; + } + + return result; + } + + function pad(string, length) { + return string + repeat(' ', length - string.length); + } + + if (typeof console === 'object') { + console.log( + event.location.start.line + + ':' + + event.location.start.column + + '-' + + event.location.end.line + + ':' + + event.location.end.column + + ' ' + + pad(event.type, 10) + + ' ' + + repeat(' ', that.indentLevel) + + event.rule, + ); + } + } + + switch (event.type) { + case 'rule.enter': + log(event); + this.indentLevel++; + break; + + case 'rule.match': + this.indentLevel--; + log(event); + break; + + case 'rule.fail': + this.indentLevel--; + log(event); + break; + + default: + throw new Error('Invalid event type: ' + event.type + '.'); + } +}; + +function peg$parse(input, options) { + options = options !== undefined ? options : {}; + + var peg$FAILED = {}; + var peg$source = options.grammarSource; + + var peg$startRuleFunctions = { Start: peg$parseStart }; + var peg$startRuleFunction = peg$parseStart; + + var peg$c0 = '\t'; + var peg$c1 = '\v'; + var peg$c2 = '\f'; + var peg$c3 = ' '; + var peg$c4 = '\xA0'; + var peg$c5 = '\uFEFF'; + var peg$c6 = '\n'; + var peg$c7 = '\r\n'; + var peg$c8 = '\r'; + var peg$c9 = '\u2028'; + var peg$c10 = '\u2029'; + var peg$c11 = '/*'; + var peg$c12 = '*/'; + var peg$c13 = '//'; + var peg$c14 = '$'; + var peg$c15 = '_'; + var peg$c16 = 'address'; + var peg$c17 = '.'; + var peg$c18 = '0'; + var peg$c19 = 'e'; + var peg$c20 = '0x'; + var peg$c21 = '"'; + var peg$c22 = "'"; + var peg$c23 = '\\'; + var peg$c24 = 'b'; + var peg$c25 = 'f'; + var peg$c26 = 'n'; + var peg$c27 = 'r'; + var peg$c28 = 't'; + var peg$c29 = 'v'; + var peg$c30 = 'x'; + var peg$c31 = 'u'; + var peg$c32 = 'emit'; + var peg$c33 = 'revert'; + var peg$c34 = 'abstract'; + var peg$c35 = 'experimental'; + var peg$c36 = 'override'; + var peg$c37 = 'abicoder'; + var peg$c38 = 'external'; + var peg$c39 = 'pure'; + var peg$c40 = 'view'; + var peg$c41 = 'payable'; + var peg$c42 = 'anonymous'; + var peg$c43 = 'as'; + var peg$c44 = 'break'; + var peg$c45 = 'calldata'; + var peg$c46 = 'constant'; + var peg$c47 = 'immutable'; + var peg$c48 = 'continue'; + var peg$c49 = 'contract'; + var peg$c50 = 'constructor'; + var peg$c51 = 'receive'; + var peg$c52 = 'fallback'; + var peg$c53 = 'days'; + var peg$c54 = 'delete'; + var peg$c55 = 'do'; + var peg$c56 = 'else'; + var peg$c57 = 'enum'; + var peg$c58 = 'ether'; + var peg$c59 = 'event'; + var peg$c60 = 'error'; + var peg$c61 = 'false'; + var peg$c62 = 'finney'; + var peg$c63 = 'for'; + var peg$c64 = 'from'; + var peg$c65 = 'function'; + var peg$c66 = 'get'; + var peg$c67 = 'hex'; + var peg$c68 = 'hours'; + var peg$c69 = 'if'; + var peg$c70 = 'try'; + var peg$c71 = 'catch'; + var peg$c72 = 'is'; + var peg$c73 = 'indexed'; + var peg$c74 = 'import'; + var peg$c75 = 'interface'; + var peg$c76 = 'internal'; + var peg$c77 = 'library'; + var peg$c78 = 'mapping'; + var peg$c79 = 'memory'; + var peg$c80 = 'minutes'; + var peg$c81 = 'modifier'; + var peg$c82 = 'new'; + var peg$c83 = 'null'; + var peg$c84 = 'private'; + var peg$c85 = 'pragma'; + var peg$c86 = 'public'; + var peg$c87 = 'return'; + var peg$c88 = 'returns'; + var peg$c89 = 'seconds'; + var peg$c90 = 'set'; + var peg$c91 = 'solidity'; + var peg$c92 = 'storage'; + var peg$c93 = 'struct'; + var peg$c94 = 'super'; + var peg$c95 = 'szabo'; + var peg$c96 = 'this'; + var peg$c97 = 'throw'; + var peg$c98 = 'true'; + var peg$c99 = 'using'; + var peg$c100 = 'var'; + var peg$c101 = 'weeks'; + var peg$c102 = 'wei'; + var peg$c103 = 'while'; + var peg$c104 = 'years'; + var peg$c105 = ';'; + var peg$c106 = ','; + var peg$c107 = '('; + var peg$c108 = ')'; + var peg$c109 = '['; + var peg$c110 = ']'; + var peg$c111 = '{'; + var peg$c112 = '}'; + var peg$c113 = ':'; + var peg$c114 = '='; + var peg$c115 = '=>'; + var peg$c116 = '++'; + var peg$c117 = '--'; + var peg$c118 = '+'; + var peg$c119 = '-'; + var peg$c120 = '~'; + var peg$c121 = '!'; + var peg$c122 = '*'; + var peg$c123 = '/'; + var peg$c124 = '%'; + var peg$c125 = '<<'; + var peg$c126 = '>>>'; + var peg$c127 = '>>'; + var peg$c128 = '<='; + var peg$c129 = '>='; + var peg$c130 = '<'; + var peg$c131 = '>'; + var peg$c132 = '=='; + var peg$c133 = '!='; + var peg$c134 = '&'; + var peg$c135 = '^'; + var peg$c136 = '|'; + var peg$c137 = '&&'; + var peg$c138 = '||'; + var peg$c139 = '?'; + var peg$c140 = '*='; + var peg$c141 = '/='; + var peg$c142 = '%='; + var peg$c143 = '+='; + var peg$c144 = '-='; + var peg$c145 = '<<='; + var peg$c146 = '>>='; + var peg$c147 = '&='; + var peg$c148 = '^='; + var peg$c149 = '|='; + var peg$c150 = 'Error'; + var peg$c151 = 'assembly'; + var peg$c152 = '->'; + var peg$c153 = 'let'; + var peg$c154 = ':='; + + var peg$r0 = /^[\n\r\u2028\u2029]/; + var peg$r1 = /^[0-9_]/; + var peg$r2 = /^[1-9]/; + var peg$r3 = /^[+\-]/; + var peg$r4 = /^[0-9a-f]/i; + var peg$r5 = + /^[a-z\xB5\xDF-\xF6\xF8-\xFF\u0101\u0103\u0105\u0107\u0109\u010B\u010D\u010F\u0111\u0113\u0115\u0117\u0119\u011B\u011D\u011F\u0121\u0123\u0125\u0127\u0129\u012B\u012D\u012F\u0131\u0133\u0135\u0137-\u0138\u013A\u013C\u013E\u0140\u0142\u0144\u0146\u0148-\u0149\u014B\u014D\u014F\u0151\u0153\u0155\u0157\u0159\u015B\u015D\u015F\u0161\u0163\u0165\u0167\u0169\u016B\u016D\u016F\u0171\u0173\u0175\u0177\u017A\u017C\u017E-\u0180\u0183\u0185\u0188\u018C-\u018D\u0192\u0195\u0199-\u019B\u019E\u01A1\u01A3\u01A5\u01A8\u01AA-\u01AB\u01AD\u01B0\u01B4\u01B6\u01B9-\u01BA\u01BD-\u01BF\u01C6\u01C9\u01CC\u01CE\u01D0\u01D2\u01D4\u01D6\u01D8\u01DA\u01DC-\u01DD\u01DF\u01E1\u01E3\u01E5\u01E7\u01E9\u01EB\u01ED\u01EF-\u01F0\u01F3\u01F5\u01F9\u01FB\u01FD\u01FF\u0201\u0203\u0205\u0207\u0209\u020B\u020D\u020F\u0211\u0213\u0215\u0217\u0219\u021B\u021D\u021F\u0221\u0223\u0225\u0227\u0229\u022B\u022D\u022F\u0231\u0233-\u0239\u023C\u023F-\u0240\u0242\u0247\u0249\u024B\u024D\u024F-\u0293\u0295-\u02AF\u0371\u0373\u0377\u037B-\u037D\u0390\u03AC-\u03CE\u03D0-\u03D1\u03D5-\u03D7\u03D9\u03DB\u03DD\u03DF\u03E1\u03E3\u03E5\u03E7\u03E9\u03EB\u03ED\u03EF-\u03F3\u03F5\u03F8\u03FB-\u03FC\u0430-\u045F\u0461\u0463\u0465\u0467\u0469\u046B\u046D\u046F\u0471\u0473\u0475\u0477\u0479\u047B\u047D\u047F\u0481\u048B\u048D\u048F\u0491\u0493\u0495\u0497\u0499\u049B\u049D\u049F\u04A1\u04A3\u04A5\u04A7\u04A9\u04AB\u04AD\u04AF\u04B1\u04B3\u04B5\u04B7\u04B9\u04BB\u04BD\u04BF\u04C2\u04C4\u04C6\u04C8\u04CA\u04CC\u04CE-\u04CF\u04D1\u04D3\u04D5\u04D7\u04D9\u04DB\u04DD\u04DF\u04E1\u04E3\u04E5\u04E7\u04E9\u04EB\u04ED\u04EF\u04F1\u04F3\u04F5\u04F7\u04F9\u04FB\u04FD\u04FF\u0501\u0503\u0505\u0507\u0509\u050B\u050D\u050F\u0511\u0513\u0515\u0517\u0519\u051B\u051D\u051F\u0521\u0523\u0525\u0527\u0529\u052B\u052D\u052F\u0561-\u0587\u13F8-\u13FD\u1D00-\u1D2B\u1D6B-\u1D77\u1D79-\u1D9A\u1E01\u1E03\u1E05\u1E07\u1E09\u1E0B\u1E0D\u1E0F\u1E11\u1E13\u1E15\u1E17\u1E19\u1E1B\u1E1D\u1E1F\u1E21\u1E23\u1E25\u1E27\u1E29\u1E2B\u1E2D\u1E2F\u1E31\u1E33\u1E35\u1E37\u1E39\u1E3B\u1E3D\u1E3F\u1E41\u1E43\u1E45\u1E47\u1E49\u1E4B\u1E4D\u1E4F\u1E51\u1E53\u1E55\u1E57\u1E59\u1E5B\u1E5D\u1E5F\u1E61\u1E63\u1E65\u1E67\u1E69\u1E6B\u1E6D\u1E6F\u1E71\u1E73\u1E75\u1E77\u1E79\u1E7B\u1E7D\u1E7F\u1E81\u1E83\u1E85\u1E87\u1E89\u1E8B\u1E8D\u1E8F\u1E91\u1E93\u1E95-\u1E9D\u1E9F\u1EA1\u1EA3\u1EA5\u1EA7\u1EA9\u1EAB\u1EAD\u1EAF\u1EB1\u1EB3\u1EB5\u1EB7\u1EB9\u1EBB\u1EBD\u1EBF\u1EC1\u1EC3\u1EC5\u1EC7\u1EC9\u1ECB\u1ECD\u1ECF\u1ED1\u1ED3\u1ED5\u1ED7\u1ED9\u1EDB\u1EDD\u1EDF\u1EE1\u1EE3\u1EE5\u1EE7\u1EE9\u1EEB\u1EED\u1EEF\u1EF1\u1EF3\u1EF5\u1EF7\u1EF9\u1EFB\u1EFD\u1EFF-\u1F07\u1F10-\u1F15\u1F20-\u1F27\u1F30-\u1F37\u1F40-\u1F45\u1F50-\u1F57\u1F60-\u1F67\u1F70-\u1F7D\u1F80-\u1F87\u1F90-\u1F97\u1FA0-\u1FA7\u1FB0-\u1FB4\u1FB6-\u1FB7\u1FBE\u1FC2-\u1FC4\u1FC6-\u1FC7\u1FD0-\u1FD3\u1FD6-\u1FD7\u1FE0-\u1FE7\u1FF2-\u1FF4\u1FF6-\u1FF7\u210A\u210E-\u210F\u2113\u212F\u2134\u2139\u213C-\u213D\u2146-\u2149\u214E\u2184\u2C30-\u2C5E\u2C61\u2C65-\u2C66\u2C68\u2C6A\u2C6C\u2C71\u2C73-\u2C74\u2C76-\u2C7B\u2C81\u2C83\u2C85\u2C87\u2C89\u2C8B\u2C8D\u2C8F\u2C91\u2C93\u2C95\u2C97\u2C99\u2C9B\u2C9D\u2C9F\u2CA1\u2CA3\u2CA5\u2CA7\u2CA9\u2CAB\u2CAD\u2CAF\u2CB1\u2CB3\u2CB5\u2CB7\u2CB9\u2CBB\u2CBD\u2CBF\u2CC1\u2CC3\u2CC5\u2CC7\u2CC9\u2CCB\u2CCD\u2CCF\u2CD1\u2CD3\u2CD5\u2CD7\u2CD9\u2CDB\u2CDD\u2CDF\u2CE1\u2CE3-\u2CE4\u2CEC\u2CEE\u2CF3\u2D00-\u2D25\u2D27\u2D2D\uA641\uA643\uA645\uA647\uA649\uA64B\uA64D\uA64F\uA651\uA653\uA655\uA657\uA659\uA65B\uA65D\uA65F\uA661\uA663\uA665\uA667\uA669\uA66B\uA66D\uA681\uA683\uA685\uA687\uA689\uA68B\uA68D\uA68F\uA691\uA693\uA695\uA697\uA699\uA69B\uA723\uA725\uA727\uA729\uA72B\uA72D\uA72F-\uA731\uA733\uA735\uA737\uA739\uA73B\uA73D\uA73F\uA741\uA743\uA745\uA747\uA749\uA74B\uA74D\uA74F\uA751\uA753\uA755\uA757\uA759\uA75B\uA75D\uA75F\uA761\uA763\uA765\uA767\uA769\uA76B\uA76D\uA76F\uA771-\uA778\uA77A\uA77C\uA77F\uA781\uA783\uA785\uA787\uA78C\uA78E\uA791\uA793-\uA795\uA797\uA799\uA79B\uA79D\uA79F\uA7A1\uA7A3\uA7A5\uA7A7\uA7A9\uA7B5\uA7B7\uA7FA\uAB30-\uAB5A\uAB60-\uAB65\uAB70-\uABBF\uFB00-\uFB06\uFB13-\uFB17\uFF41-\uFF5A]/; + var peg$r6 = + /^[\u02B0-\u02C1\u02C6-\u02D1\u02E0-\u02E4\u02EC\u02EE\u0374\u037A\u0559\u0640\u06E5-\u06E6\u07F4-\u07F5\u07FA\u081A\u0824\u0828\u0971\u0E46\u0EC6\u10FC\u17D7\u1843\u1AA7\u1C78-\u1C7D\u1D2C-\u1D6A\u1D78\u1D9B-\u1DBF\u2071\u207F\u2090-\u209C\u2C7C-\u2C7D\u2D6F\u2E2F\u3005\u3031-\u3035\u303B\u309D-\u309E\u30FC-\u30FE\uA015\uA4F8-\uA4FD\uA60C\uA67F\uA69C-\uA69D\uA717-\uA71F\uA770\uA788\uA7F8-\uA7F9\uA9CF\uA9E6\uAA70\uAADD\uAAF3-\uAAF4\uAB5C-\uAB5F\uFF70\uFF9E-\uFF9F]/; + var peg$r7 = + /^[\xAA\xBA\u01BB\u01C0-\u01C3\u0294\u05D0-\u05EA\u05F0-\u05F2\u0620-\u063F\u0641-\u064A\u066E-\u066F\u0671-\u06D3\u06D5\u06EE-\u06EF\u06FA-\u06FC\u06FF\u0710\u0712-\u072F\u074D-\u07A5\u07B1\u07CA-\u07EA\u0800-\u0815\u0840-\u0858\u08A0-\u08B4\u0904-\u0939\u093D\u0950\u0958-\u0961\u0972-\u0980\u0985-\u098C\u098F-\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2\u09B6-\u09B9\u09BD\u09CE\u09DC-\u09DD\u09DF-\u09E1\u09F0-\u09F1\u0A05-\u0A0A\u0A0F-\u0A10\u0A13-\u0A28\u0A2A-\u0A30\u0A32-\u0A33\u0A35-\u0A36\u0A38-\u0A39\u0A59-\u0A5C\u0A5E\u0A72-\u0A74\u0A85-\u0A8D\u0A8F-\u0A91\u0A93-\u0AA8\u0AAA-\u0AB0\u0AB2-\u0AB3\u0AB5-\u0AB9\u0ABD\u0AD0\u0AE0-\u0AE1\u0AF9\u0B05-\u0B0C\u0B0F-\u0B10\u0B13-\u0B28\u0B2A-\u0B30\u0B32-\u0B33\u0B35-\u0B39\u0B3D\u0B5C-\u0B5D\u0B5F-\u0B61\u0B71\u0B83\u0B85-\u0B8A\u0B8E-\u0B90\u0B92-\u0B95\u0B99-\u0B9A\u0B9C\u0B9E-\u0B9F\u0BA3-\u0BA4\u0BA8-\u0BAA\u0BAE-\u0BB9\u0BD0\u0C05-\u0C0C\u0C0E-\u0C10\u0C12-\u0C28\u0C2A-\u0C39\u0C3D\u0C58-\u0C5A\u0C60-\u0C61\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3\u0CB5-\u0CB9\u0CBD\u0CDE\u0CE0-\u0CE1\u0CF1-\u0CF2\u0D05-\u0D0C\u0D0E-\u0D10\u0D12-\u0D3A\u0D3D\u0D4E\u0D5F-\u0D61\u0D7A-\u0D7F\u0D85-\u0D96\u0D9A-\u0DB1\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0E01-\u0E30\u0E32-\u0E33\u0E40-\u0E45\u0E81-\u0E82\u0E84\u0E87-\u0E88\u0E8A\u0E8D\u0E94-\u0E97\u0E99-\u0E9F\u0EA1-\u0EA3\u0EA5\u0EA7\u0EAA-\u0EAB\u0EAD-\u0EB0\u0EB2-\u0EB3\u0EBD\u0EC0-\u0EC4\u0EDC-\u0EDF\u0F00\u0F40-\u0F47\u0F49-\u0F6C\u0F88-\u0F8C\u1000-\u102A\u103F\u1050-\u1055\u105A-\u105D\u1061\u1065-\u1066\u106E-\u1070\u1075-\u1081\u108E\u10D0-\u10FA\u10FD-\u1248\u124A-\u124D\u1250-\u1256\u1258\u125A-\u125D\u1260-\u1288\u128A-\u128D\u1290-\u12B0\u12B2-\u12B5\u12B8-\u12BE\u12C0\u12C2-\u12C5\u12C8-\u12D6\u12D8-\u1310\u1312-\u1315\u1318-\u135A\u1380-\u138F\u1401-\u166C\u166F-\u167F\u1681-\u169A\u16A0-\u16EA\u16F1-\u16F8\u1700-\u170C\u170E-\u1711\u1720-\u1731\u1740-\u1751\u1760-\u176C\u176E-\u1770\u1780-\u17B3\u17DC\u1820-\u1842\u1844-\u1877\u1880-\u18A8\u18AA\u18B0-\u18F5\u1900-\u191E\u1950-\u196D\u1970-\u1974\u1980-\u19AB\u19B0-\u19C9\u1A00-\u1A16\u1A20-\u1A54\u1B05-\u1B33\u1B45-\u1B4B\u1B83-\u1BA0\u1BAE-\u1BAF\u1BBA-\u1BE5\u1C00-\u1C23\u1C4D-\u1C4F\u1C5A-\u1C77\u1CE9-\u1CEC\u1CEE-\u1CF1\u1CF5-\u1CF6\u2135-\u2138\u2D30-\u2D67\u2D80-\u2D96\u2DA0-\u2DA6\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE\u2DD0-\u2DD6\u2DD8-\u2DDE\u3006\u303C\u3041-\u3096\u309F\u30A1-\u30FA\u30FF\u3105-\u312D\u3131-\u318E\u31A0-\u31BA\u31F0-\u31FF\u3400-\u4DB5\u4E00-\u9FD5\uA000-\uA014\uA016-\uA48C\uA4D0-\uA4F7\uA500-\uA60B\uA610-\uA61F\uA62A-\uA62B\uA66E\uA6A0-\uA6E5\uA78F\uA7F7\uA7FB-\uA801\uA803-\uA805\uA807-\uA80A\uA80C-\uA822\uA840-\uA873\uA882-\uA8B3\uA8F2-\uA8F7\uA8FB\uA8FD\uA90A-\uA925\uA930-\uA946\uA960-\uA97C\uA984-\uA9B2\uA9E0-\uA9E4\uA9E7-\uA9EF\uA9FA-\uA9FE\uAA00-\uAA28\uAA40-\uAA42\uAA44-\uAA4B\uAA60-\uAA6F\uAA71-\uAA76\uAA7A\uAA7E-\uAAAF\uAAB1\uAAB5-\uAAB6\uAAB9-\uAABD\uAAC0\uAAC2\uAADB-\uAADC\uAAE0-\uAAEA\uAAF2\uAB01-\uAB06\uAB09-\uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E\uABC0-\uABE2\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFA6D\uFA70-\uFAD9\uFB1D\uFB1F-\uFB28\uFB2A-\uFB36\uFB38-\uFB3C\uFB3E\uFB40-\uFB41\uFB43-\uFB44\uFB46-\uFBB1\uFBD3-\uFD3D\uFD50-\uFD8F\uFD92-\uFDC7\uFDF0-\uFDFB\uFE70-\uFE74\uFE76-\uFEFC\uFF66-\uFF6F\uFF71-\uFF9D\uFFA0-\uFFBE\uFFC2-\uFFC7\uFFCA-\uFFCF\uFFD2-\uFFD7\uFFDA-\uFFDC]/; + var peg$r8 = + /^[\u01C5\u01C8\u01CB\u01F2\u1F88-\u1F8F\u1F98-\u1F9F\u1FA8-\u1FAF\u1FBC\u1FCC\u1FFC]/; + var peg$r9 = + /^[A-Z\xC0-\xD6\xD8-\xDE\u0100\u0102\u0104\u0106\u0108\u010A\u010C\u010E\u0110\u0112\u0114\u0116\u0118\u011A\u011C\u011E\u0120\u0122\u0124\u0126\u0128\u012A\u012C\u012E\u0130\u0132\u0134\u0136\u0139\u013B\u013D\u013F\u0141\u0143\u0145\u0147\u014A\u014C\u014E\u0150\u0152\u0154\u0156\u0158\u015A\u015C\u015E\u0160\u0162\u0164\u0166\u0168\u016A\u016C\u016E\u0170\u0172\u0174\u0176\u0178-\u0179\u017B\u017D\u0181-\u0182\u0184\u0186-\u0187\u0189-\u018B\u018E-\u0191\u0193-\u0194\u0196-\u0198\u019C-\u019D\u019F-\u01A0\u01A2\u01A4\u01A6-\u01A7\u01A9\u01AC\u01AE-\u01AF\u01B1-\u01B3\u01B5\u01B7-\u01B8\u01BC\u01C4\u01C7\u01CA\u01CD\u01CF\u01D1\u01D3\u01D5\u01D7\u01D9\u01DB\u01DE\u01E0\u01E2\u01E4\u01E6\u01E8\u01EA\u01EC\u01EE\u01F1\u01F4\u01F6-\u01F8\u01FA\u01FC\u01FE\u0200\u0202\u0204\u0206\u0208\u020A\u020C\u020E\u0210\u0212\u0214\u0216\u0218\u021A\u021C\u021E\u0220\u0222\u0224\u0226\u0228\u022A\u022C\u022E\u0230\u0232\u023A-\u023B\u023D-\u023E\u0241\u0243-\u0246\u0248\u024A\u024C\u024E\u0370\u0372\u0376\u037F\u0386\u0388-\u038A\u038C\u038E-\u038F\u0391-\u03A1\u03A3-\u03AB\u03CF\u03D2-\u03D4\u03D8\u03DA\u03DC\u03DE\u03E0\u03E2\u03E4\u03E6\u03E8\u03EA\u03EC\u03EE\u03F4\u03F7\u03F9-\u03FA\u03FD-\u042F\u0460\u0462\u0464\u0466\u0468\u046A\u046C\u046E\u0470\u0472\u0474\u0476\u0478\u047A\u047C\u047E\u0480\u048A\u048C\u048E\u0490\u0492\u0494\u0496\u0498\u049A\u049C\u049E\u04A0\u04A2\u04A4\u04A6\u04A8\u04AA\u04AC\u04AE\u04B0\u04B2\u04B4\u04B6\u04B8\u04BA\u04BC\u04BE\u04C0-\u04C1\u04C3\u04C5\u04C7\u04C9\u04CB\u04CD\u04D0\u04D2\u04D4\u04D6\u04D8\u04DA\u04DC\u04DE\u04E0\u04E2\u04E4\u04E6\u04E8\u04EA\u04EC\u04EE\u04F0\u04F2\u04F4\u04F6\u04F8\u04FA\u04FC\u04FE\u0500\u0502\u0504\u0506\u0508\u050A\u050C\u050E\u0510\u0512\u0514\u0516\u0518\u051A\u051C\u051E\u0520\u0522\u0524\u0526\u0528\u052A\u052C\u052E\u0531-\u0556\u10A0-\u10C5\u10C7\u10CD\u13A0-\u13F5\u1E00\u1E02\u1E04\u1E06\u1E08\u1E0A\u1E0C\u1E0E\u1E10\u1E12\u1E14\u1E16\u1E18\u1E1A\u1E1C\u1E1E\u1E20\u1E22\u1E24\u1E26\u1E28\u1E2A\u1E2C\u1E2E\u1E30\u1E32\u1E34\u1E36\u1E38\u1E3A\u1E3C\u1E3E\u1E40\u1E42\u1E44\u1E46\u1E48\u1E4A\u1E4C\u1E4E\u1E50\u1E52\u1E54\u1E56\u1E58\u1E5A\u1E5C\u1E5E\u1E60\u1E62\u1E64\u1E66\u1E68\u1E6A\u1E6C\u1E6E\u1E70\u1E72\u1E74\u1E76\u1E78\u1E7A\u1E7C\u1E7E\u1E80\u1E82\u1E84\u1E86\u1E88\u1E8A\u1E8C\u1E8E\u1E90\u1E92\u1E94\u1E9E\u1EA0\u1EA2\u1EA4\u1EA6\u1EA8\u1EAA\u1EAC\u1EAE\u1EB0\u1EB2\u1EB4\u1EB6\u1EB8\u1EBA\u1EBC\u1EBE\u1EC0\u1EC2\u1EC4\u1EC6\u1EC8\u1ECA\u1ECC\u1ECE\u1ED0\u1ED2\u1ED4\u1ED6\u1ED8\u1EDA\u1EDC\u1EDE\u1EE0\u1EE2\u1EE4\u1EE6\u1EE8\u1EEA\u1EEC\u1EEE\u1EF0\u1EF2\u1EF4\u1EF6\u1EF8\u1EFA\u1EFC\u1EFE\u1F08-\u1F0F\u1F18-\u1F1D\u1F28-\u1F2F\u1F38-\u1F3F\u1F48-\u1F4D\u1F59\u1F5B\u1F5D\u1F5F\u1F68-\u1F6F\u1FB8-\u1FBB\u1FC8-\u1FCB\u1FD8-\u1FDB\u1FE8-\u1FEC\u1FF8-\u1FFB\u2102\u2107\u210B-\u210D\u2110-\u2112\u2115\u2119-\u211D\u2124\u2126\u2128\u212A-\u212D\u2130-\u2133\u213E-\u213F\u2145\u2183\u2C00-\u2C2E\u2C60\u2C62-\u2C64\u2C67\u2C69\u2C6B\u2C6D-\u2C70\u2C72\u2C75\u2C7E-\u2C80\u2C82\u2C84\u2C86\u2C88\u2C8A\u2C8C\u2C8E\u2C90\u2C92\u2C94\u2C96\u2C98\u2C9A\u2C9C\u2C9E\u2CA0\u2CA2\u2CA4\u2CA6\u2CA8\u2CAA\u2CAC\u2CAE\u2CB0\u2CB2\u2CB4\u2CB6\u2CB8\u2CBA\u2CBC\u2CBE\u2CC0\u2CC2\u2CC4\u2CC6\u2CC8\u2CCA\u2CCC\u2CCE\u2CD0\u2CD2\u2CD4\u2CD6\u2CD8\u2CDA\u2CDC\u2CDE\u2CE0\u2CE2\u2CEB\u2CED\u2CF2\uA640\uA642\uA644\uA646\uA648\uA64A\uA64C\uA64E\uA650\uA652\uA654\uA656\uA658\uA65A\uA65C\uA65E\uA660\uA662\uA664\uA666\uA668\uA66A\uA66C\uA680\uA682\uA684\uA686\uA688\uA68A\uA68C\uA68E\uA690\uA692\uA694\uA696\uA698\uA69A\uA722\uA724\uA726\uA728\uA72A\uA72C\uA72E\uA732\uA734\uA736\uA738\uA73A\uA73C\uA73E\uA740\uA742\uA744\uA746\uA748\uA74A\uA74C\uA74E\uA750\uA752\uA754\uA756\uA758\uA75A\uA75C\uA75E\uA760\uA762\uA764\uA766\uA768\uA76A\uA76C\uA76E\uA779\uA77B\uA77D-\uA77E\uA780\uA782\uA784\uA786\uA78B\uA78D\uA790\uA792\uA796\uA798\uA79A\uA79C\uA79E\uA7A0\uA7A2\uA7A4\uA7A6\uA7A8\uA7AA-\uA7AD\uA7B0-\uA7B4\uA7B6\uFF21-\uFF3A]/; + var peg$r10 = + /^[\u0903\u093B\u093E-\u0940\u0949-\u094C\u094E-\u094F\u0982-\u0983\u09BE-\u09C0\u09C7-\u09C8\u09CB-\u09CC\u09D7\u0A03\u0A3E-\u0A40\u0A83\u0ABE-\u0AC0\u0AC9\u0ACB-\u0ACC\u0B02-\u0B03\u0B3E\u0B40\u0B47-\u0B48\u0B4B-\u0B4C\u0B57\u0BBE-\u0BBF\u0BC1-\u0BC2\u0BC6-\u0BC8\u0BCA-\u0BCC\u0BD7\u0C01-\u0C03\u0C41-\u0C44\u0C82-\u0C83\u0CBE\u0CC0-\u0CC4\u0CC7-\u0CC8\u0CCA-\u0CCB\u0CD5-\u0CD6\u0D02-\u0D03\u0D3E-\u0D40\u0D46-\u0D48\u0D4A-\u0D4C\u0D57\u0D82-\u0D83\u0DCF-\u0DD1\u0DD8-\u0DDF\u0DF2-\u0DF3\u0F3E-\u0F3F\u0F7F\u102B-\u102C\u1031\u1038\u103B-\u103C\u1056-\u1057\u1062-\u1064\u1067-\u106D\u1083-\u1084\u1087-\u108C\u108F\u109A-\u109C\u17B6\u17BE-\u17C5\u17C7-\u17C8\u1923-\u1926\u1929-\u192B\u1930-\u1931\u1933-\u1938\u1A19-\u1A1A\u1A55\u1A57\u1A61\u1A63-\u1A64\u1A6D-\u1A72\u1B04\u1B35\u1B3B\u1B3D-\u1B41\u1B43-\u1B44\u1B82\u1BA1\u1BA6-\u1BA7\u1BAA\u1BE7\u1BEA-\u1BEC\u1BEE\u1BF2-\u1BF3\u1C24-\u1C2B\u1C34-\u1C35\u1CE1\u1CF2-\u1CF3\u302E-\u302F\uA823-\uA824\uA827\uA880-\uA881\uA8B4-\uA8C3\uA952-\uA953\uA983\uA9B4-\uA9B5\uA9BA-\uA9BB\uA9BD-\uA9C0\uAA2F-\uAA30\uAA33-\uAA34\uAA4D\uAA7B\uAA7D\uAAEB\uAAEE-\uAAEF\uAAF5\uABE3-\uABE4\uABE6-\uABE7\uABE9-\uABEA\uABEC]/; + var peg$r11 = + /^[\u0300-\u036F\u0483-\u0487\u0591-\u05BD\u05BF\u05C1-\u05C2\u05C4-\u05C5\u05C7\u0610-\u061A\u064B-\u065F\u0670\u06D6-\u06DC\u06DF-\u06E4\u06E7-\u06E8\u06EA-\u06ED\u0711\u0730-\u074A\u07A6-\u07B0\u07EB-\u07F3\u0816-\u0819\u081B-\u0823\u0825-\u0827\u0829-\u082D\u0859-\u085B\u08E3-\u0902\u093A\u093C\u0941-\u0948\u094D\u0951-\u0957\u0962-\u0963\u0981\u09BC\u09C1-\u09C4\u09CD\u09E2-\u09E3\u0A01-\u0A02\u0A3C\u0A41-\u0A42\u0A47-\u0A48\u0A4B-\u0A4D\u0A51\u0A70-\u0A71\u0A75\u0A81-\u0A82\u0ABC\u0AC1-\u0AC5\u0AC7-\u0AC8\u0ACD\u0AE2-\u0AE3\u0B01\u0B3C\u0B3F\u0B41-\u0B44\u0B4D\u0B56\u0B62-\u0B63\u0B82\u0BC0\u0BCD\u0C00\u0C3E-\u0C40\u0C46-\u0C48\u0C4A-\u0C4D\u0C55-\u0C56\u0C62-\u0C63\u0C81\u0CBC\u0CBF\u0CC6\u0CCC-\u0CCD\u0CE2-\u0CE3\u0D01\u0D41-\u0D44\u0D4D\u0D62-\u0D63\u0DCA\u0DD2-\u0DD4\u0DD6\u0E31\u0E34-\u0E3A\u0E47-\u0E4E\u0EB1\u0EB4-\u0EB9\u0EBB-\u0EBC\u0EC8-\u0ECD\u0F18-\u0F19\u0F35\u0F37\u0F39\u0F71-\u0F7E\u0F80-\u0F84\u0F86-\u0F87\u0F8D-\u0F97\u0F99-\u0FBC\u0FC6\u102D-\u1030\u1032-\u1037\u1039-\u103A\u103D-\u103E\u1058-\u1059\u105E-\u1060\u1071-\u1074\u1082\u1085-\u1086\u108D\u109D\u135D-\u135F\u1712-\u1714\u1732-\u1734\u1752-\u1753\u1772-\u1773\u17B4-\u17B5\u17B7-\u17BD\u17C6\u17C9-\u17D3\u17DD\u180B-\u180D\u18A9\u1920-\u1922\u1927-\u1928\u1932\u1939-\u193B\u1A17-\u1A18\u1A1B\u1A56\u1A58-\u1A5E\u1A60\u1A62\u1A65-\u1A6C\u1A73-\u1A7C\u1A7F\u1AB0-\u1ABD\u1B00-\u1B03\u1B34\u1B36-\u1B3A\u1B3C\u1B42\u1B6B-\u1B73\u1B80-\u1B81\u1BA2-\u1BA5\u1BA8-\u1BA9\u1BAB-\u1BAD\u1BE6\u1BE8-\u1BE9\u1BED\u1BEF-\u1BF1\u1C2C-\u1C33\u1C36-\u1C37\u1CD0-\u1CD2\u1CD4-\u1CE0\u1CE2-\u1CE8\u1CED\u1CF4\u1CF8-\u1CF9\u1DC0-\u1DF5\u1DFC-\u1DFF\u20D0-\u20DC\u20E1\u20E5-\u20F0\u2CEF-\u2CF1\u2D7F\u2DE0-\u2DFF\u302A-\u302D\u3099-\u309A\uA66F\uA674-\uA67D\uA69E-\uA69F\uA6F0-\uA6F1\uA802\uA806\uA80B\uA825-\uA826\uA8C4\uA8E0-\uA8F1\uA926-\uA92D\uA947-\uA951\uA980-\uA982\uA9B3\uA9B6-\uA9B9\uA9BC\uA9E5\uAA29-\uAA2E\uAA31-\uAA32\uAA35-\uAA36\uAA43\uAA4C\uAA7C\uAAB0\uAAB2-\uAAB4\uAAB7-\uAAB8\uAABE-\uAABF\uAAC1\uAAEC-\uAAED\uAAF6\uABE5\uABE8\uABED\uFB1E\uFE00-\uFE0F\uFE20-\uFE2F]/; + var peg$r12 = + /^[0-9\u0660-\u0669\u06F0-\u06F9\u07C0-\u07C9\u0966-\u096F\u09E6-\u09EF\u0A66-\u0A6F\u0AE6-\u0AEF\u0B66-\u0B6F\u0BE6-\u0BEF\u0C66-\u0C6F\u0CE6-\u0CEF\u0D66-\u0D6F\u0DE6-\u0DEF\u0E50-\u0E59\u0ED0-\u0ED9\u0F20-\u0F29\u1040-\u1049\u1090-\u1099\u17E0-\u17E9\u1810-\u1819\u1946-\u194F\u19D0-\u19D9\u1A80-\u1A89\u1A90-\u1A99\u1B50-\u1B59\u1BB0-\u1BB9\u1C40-\u1C49\u1C50-\u1C59\uA620-\uA629\uA8D0-\uA8D9\uA900-\uA909\uA9D0-\uA9D9\uA9F0-\uA9F9\uAA50-\uAA59\uABF0-\uABF9\uFF10-\uFF19]/; + var peg$r13 = + /^[\u16EE-\u16F0\u2160-\u2182\u2185-\u2188\u3007\u3021-\u3029\u3038-\u303A\uA6E6-\uA6EF]/; + var peg$r14 = /^[_\u203F-\u2040\u2054\uFE33-\uFE34\uFE4D-\uFE4F\uFF3F]/; + var peg$r15 = /^[ \xA0\u1680\u2000-\u200A\u202F\u205F\u3000]/; + var peg$r16 = /^[+=]/; + var peg$r17 = /^[\-=]/; + var peg$r18 = /^[&=]/; + var peg$r19 = /^[|=]/; + + var peg$e0 = peg$anyExpectation(); + var peg$e1 = peg$otherExpectation('whitespace'); + var peg$e2 = peg$literalExpectation('\t', false); + var peg$e3 = peg$literalExpectation('\v', false); + var peg$e4 = peg$literalExpectation('\f', false); + var peg$e5 = peg$literalExpectation(' ', false); + var peg$e6 = peg$literalExpectation('\xA0', false); + var peg$e7 = peg$literalExpectation('\uFEFF', false); + var peg$e8 = peg$classExpectation( + ['\n', '\r', '\u2028', '\u2029'], + false, + false, + ); + var peg$e9 = peg$otherExpectation('end of line'); + var peg$e10 = peg$literalExpectation('\n', false); + var peg$e11 = peg$literalExpectation('\r\n', false); + var peg$e12 = peg$literalExpectation('\r', false); + var peg$e13 = peg$literalExpectation('\u2028', false); + var peg$e14 = peg$literalExpectation('\u2029', false); + var peg$e15 = peg$otherExpectation('comment'); + var peg$e16 = peg$literalExpectation('/*', false); + var peg$e17 = peg$literalExpectation('*/', false); + var peg$e18 = peg$literalExpectation('//', false); + var peg$e19 = peg$otherExpectation('identifier'); + var peg$e20 = peg$literalExpectation('$', false); + var peg$e21 = peg$literalExpectation('_', false); + var peg$e22 = peg$literalExpectation('address', false); + var peg$e23 = peg$otherExpectation('number'); + var peg$e24 = peg$literalExpectation('.', false); + var peg$e25 = peg$literalExpectation('0', false); + var peg$e26 = peg$classExpectation([['0', '9'], '_'], false, false); + var peg$e27 = peg$classExpectation([['1', '9']], false, false); + var peg$e28 = peg$literalExpectation('e', true); + var peg$e29 = peg$classExpectation(['+', '-'], false, false); + var peg$e30 = peg$literalExpectation('0x', true); + var peg$e31 = peg$classExpectation( + [ + ['0', '9'], + ['a', 'f'], + ], + false, + true, + ); + var peg$e32 = peg$otherExpectation('string'); + var peg$e33 = peg$literalExpectation('"', false); + var peg$e34 = peg$literalExpectation("'", false); + var peg$e35 = peg$literalExpectation('\\', false); + var peg$e36 = peg$literalExpectation('b', false); + var peg$e37 = peg$literalExpectation('f', false); + var peg$e38 = peg$literalExpectation('n', false); + var peg$e39 = peg$literalExpectation('r', false); + var peg$e40 = peg$literalExpectation('t', false); + var peg$e41 = peg$literalExpectation('v', false); + var peg$e42 = peg$literalExpectation('x', false); + var peg$e43 = peg$literalExpectation('u', false); + var peg$e44 = peg$classExpectation( + [ + ['a', 'z'], + '\xB5', + ['\xDF', '\xF6'], + ['\xF8', '\xFF'], + '\u0101', + '\u0103', + '\u0105', + '\u0107', + '\u0109', + '\u010B', + '\u010D', + '\u010F', + '\u0111', + '\u0113', + '\u0115', + '\u0117', + '\u0119', + '\u011B', + '\u011D', + '\u011F', + '\u0121', + '\u0123', + '\u0125', + '\u0127', + '\u0129', + '\u012B', + '\u012D', + '\u012F', + '\u0131', + '\u0133', + '\u0135', + ['\u0137', '\u0138'], + '\u013A', + '\u013C', + '\u013E', + '\u0140', + '\u0142', + '\u0144', + '\u0146', + ['\u0148', '\u0149'], + '\u014B', + '\u014D', + '\u014F', + '\u0151', + '\u0153', + '\u0155', + '\u0157', + '\u0159', + '\u015B', + '\u015D', + '\u015F', + '\u0161', + '\u0163', + '\u0165', + '\u0167', + '\u0169', + '\u016B', + '\u016D', + '\u016F', + '\u0171', + '\u0173', + '\u0175', + '\u0177', + '\u017A', + '\u017C', + ['\u017E', '\u0180'], + '\u0183', + '\u0185', + '\u0188', + ['\u018C', '\u018D'], + '\u0192', + '\u0195', + ['\u0199', '\u019B'], + '\u019E', + '\u01A1', + '\u01A3', + '\u01A5', + '\u01A8', + ['\u01AA', '\u01AB'], + '\u01AD', + '\u01B0', + '\u01B4', + '\u01B6', + ['\u01B9', '\u01BA'], + ['\u01BD', '\u01BF'], + '\u01C6', + '\u01C9', + '\u01CC', + '\u01CE', + '\u01D0', + '\u01D2', + '\u01D4', + '\u01D6', + '\u01D8', + '\u01DA', + ['\u01DC', '\u01DD'], + '\u01DF', + '\u01E1', + '\u01E3', + '\u01E5', + '\u01E7', + '\u01E9', + '\u01EB', + '\u01ED', + ['\u01EF', '\u01F0'], + '\u01F3', + '\u01F5', + '\u01F9', + '\u01FB', + '\u01FD', + '\u01FF', + '\u0201', + '\u0203', + '\u0205', + '\u0207', + '\u0209', + '\u020B', + '\u020D', + '\u020F', + '\u0211', + '\u0213', + '\u0215', + '\u0217', + '\u0219', + '\u021B', + '\u021D', + '\u021F', + '\u0221', + '\u0223', + '\u0225', + '\u0227', + '\u0229', + '\u022B', + '\u022D', + '\u022F', + '\u0231', + ['\u0233', '\u0239'], + '\u023C', + ['\u023F', '\u0240'], + '\u0242', + '\u0247', + '\u0249', + '\u024B', + '\u024D', + ['\u024F', '\u0293'], + ['\u0295', '\u02AF'], + '\u0371', + '\u0373', + '\u0377', + ['\u037B', '\u037D'], + '\u0390', + ['\u03AC', '\u03CE'], + ['\u03D0', '\u03D1'], + ['\u03D5', '\u03D7'], + '\u03D9', + '\u03DB', + '\u03DD', + '\u03DF', + '\u03E1', + '\u03E3', + '\u03E5', + '\u03E7', + '\u03E9', + '\u03EB', + '\u03ED', + ['\u03EF', '\u03F3'], + '\u03F5', + '\u03F8', + ['\u03FB', '\u03FC'], + ['\u0430', '\u045F'], + '\u0461', + '\u0463', + '\u0465', + '\u0467', + '\u0469', + '\u046B', + '\u046D', + '\u046F', + '\u0471', + '\u0473', + '\u0475', + '\u0477', + '\u0479', + '\u047B', + '\u047D', + '\u047F', + '\u0481', + '\u048B', + '\u048D', + '\u048F', + '\u0491', + '\u0493', + '\u0495', + '\u0497', + '\u0499', + '\u049B', + '\u049D', + '\u049F', + '\u04A1', + '\u04A3', + '\u04A5', + '\u04A7', + '\u04A9', + '\u04AB', + '\u04AD', + '\u04AF', + '\u04B1', + '\u04B3', + '\u04B5', + '\u04B7', + '\u04B9', + '\u04BB', + '\u04BD', + '\u04BF', + '\u04C2', + '\u04C4', + '\u04C6', + '\u04C8', + '\u04CA', + '\u04CC', + ['\u04CE', '\u04CF'], + '\u04D1', + '\u04D3', + '\u04D5', + '\u04D7', + '\u04D9', + '\u04DB', + '\u04DD', + '\u04DF', + '\u04E1', + '\u04E3', + '\u04E5', + '\u04E7', + '\u04E9', + '\u04EB', + '\u04ED', + '\u04EF', + '\u04F1', + '\u04F3', + '\u04F5', + '\u04F7', + '\u04F9', + '\u04FB', + '\u04FD', + '\u04FF', + '\u0501', + '\u0503', + '\u0505', + '\u0507', + '\u0509', + '\u050B', + '\u050D', + '\u050F', + '\u0511', + '\u0513', + '\u0515', + '\u0517', + '\u0519', + '\u051B', + '\u051D', + '\u051F', + '\u0521', + '\u0523', + '\u0525', + '\u0527', + '\u0529', + '\u052B', + '\u052D', + '\u052F', + ['\u0561', '\u0587'], + ['\u13F8', '\u13FD'], + ['\u1D00', '\u1D2B'], + ['\u1D6B', '\u1D77'], + ['\u1D79', '\u1D9A'], + '\u1E01', + '\u1E03', + '\u1E05', + '\u1E07', + '\u1E09', + '\u1E0B', + '\u1E0D', + '\u1E0F', + '\u1E11', + '\u1E13', + '\u1E15', + '\u1E17', + '\u1E19', + '\u1E1B', + '\u1E1D', + '\u1E1F', + '\u1E21', + '\u1E23', + '\u1E25', + '\u1E27', + '\u1E29', + '\u1E2B', + '\u1E2D', + '\u1E2F', + '\u1E31', + '\u1E33', + '\u1E35', + '\u1E37', + '\u1E39', + '\u1E3B', + '\u1E3D', + '\u1E3F', + '\u1E41', + '\u1E43', + '\u1E45', + '\u1E47', + '\u1E49', + '\u1E4B', + '\u1E4D', + '\u1E4F', + '\u1E51', + '\u1E53', + '\u1E55', + '\u1E57', + '\u1E59', + '\u1E5B', + '\u1E5D', + '\u1E5F', + '\u1E61', + '\u1E63', + '\u1E65', + '\u1E67', + '\u1E69', + '\u1E6B', + '\u1E6D', + '\u1E6F', + '\u1E71', + '\u1E73', + '\u1E75', + '\u1E77', + '\u1E79', + '\u1E7B', + '\u1E7D', + '\u1E7F', + '\u1E81', + '\u1E83', + '\u1E85', + '\u1E87', + '\u1E89', + '\u1E8B', + '\u1E8D', + '\u1E8F', + '\u1E91', + '\u1E93', + ['\u1E95', '\u1E9D'], + '\u1E9F', + '\u1EA1', + '\u1EA3', + '\u1EA5', + '\u1EA7', + '\u1EA9', + '\u1EAB', + '\u1EAD', + '\u1EAF', + '\u1EB1', + '\u1EB3', + '\u1EB5', + '\u1EB7', + '\u1EB9', + '\u1EBB', + '\u1EBD', + '\u1EBF', + '\u1EC1', + '\u1EC3', + '\u1EC5', + '\u1EC7', + '\u1EC9', + '\u1ECB', + '\u1ECD', + '\u1ECF', + '\u1ED1', + '\u1ED3', + '\u1ED5', + '\u1ED7', + '\u1ED9', + '\u1EDB', + '\u1EDD', + '\u1EDF', + '\u1EE1', + '\u1EE3', + '\u1EE5', + '\u1EE7', + '\u1EE9', + '\u1EEB', + '\u1EED', + '\u1EEF', + '\u1EF1', + '\u1EF3', + '\u1EF5', + '\u1EF7', + '\u1EF9', + '\u1EFB', + '\u1EFD', + ['\u1EFF', '\u1F07'], + ['\u1F10', '\u1F15'], + ['\u1F20', '\u1F27'], + ['\u1F30', '\u1F37'], + ['\u1F40', '\u1F45'], + ['\u1F50', '\u1F57'], + ['\u1F60', '\u1F67'], + ['\u1F70', '\u1F7D'], + ['\u1F80', '\u1F87'], + ['\u1F90', '\u1F97'], + ['\u1FA0', '\u1FA7'], + ['\u1FB0', '\u1FB4'], + ['\u1FB6', '\u1FB7'], + '\u1FBE', + ['\u1FC2', '\u1FC4'], + ['\u1FC6', '\u1FC7'], + ['\u1FD0', '\u1FD3'], + ['\u1FD6', '\u1FD7'], + ['\u1FE0', '\u1FE7'], + ['\u1FF2', '\u1FF4'], + ['\u1FF6', '\u1FF7'], + '\u210A', + ['\u210E', '\u210F'], + '\u2113', + '\u212F', + '\u2134', + '\u2139', + ['\u213C', '\u213D'], + ['\u2146', '\u2149'], + '\u214E', + '\u2184', + ['\u2C30', '\u2C5E'], + '\u2C61', + ['\u2C65', '\u2C66'], + '\u2C68', + '\u2C6A', + '\u2C6C', + '\u2C71', + ['\u2C73', '\u2C74'], + ['\u2C76', '\u2C7B'], + '\u2C81', + '\u2C83', + '\u2C85', + '\u2C87', + '\u2C89', + '\u2C8B', + '\u2C8D', + '\u2C8F', + '\u2C91', + '\u2C93', + '\u2C95', + '\u2C97', + '\u2C99', + '\u2C9B', + '\u2C9D', + '\u2C9F', + '\u2CA1', + '\u2CA3', + '\u2CA5', + '\u2CA7', + '\u2CA9', + '\u2CAB', + '\u2CAD', + '\u2CAF', + '\u2CB1', + '\u2CB3', + '\u2CB5', + '\u2CB7', + '\u2CB9', + '\u2CBB', + '\u2CBD', + '\u2CBF', + '\u2CC1', + '\u2CC3', + '\u2CC5', + '\u2CC7', + '\u2CC9', + '\u2CCB', + '\u2CCD', + '\u2CCF', + '\u2CD1', + '\u2CD3', + '\u2CD5', + '\u2CD7', + '\u2CD9', + '\u2CDB', + '\u2CDD', + '\u2CDF', + '\u2CE1', + ['\u2CE3', '\u2CE4'], + '\u2CEC', + '\u2CEE', + '\u2CF3', + ['\u2D00', '\u2D25'], + '\u2D27', + '\u2D2D', + '\uA641', + '\uA643', + '\uA645', + '\uA647', + '\uA649', + '\uA64B', + '\uA64D', + '\uA64F', + '\uA651', + '\uA653', + '\uA655', + '\uA657', + '\uA659', + '\uA65B', + '\uA65D', + '\uA65F', + '\uA661', + '\uA663', + '\uA665', + '\uA667', + '\uA669', + '\uA66B', + '\uA66D', + '\uA681', + '\uA683', + '\uA685', + '\uA687', + '\uA689', + '\uA68B', + '\uA68D', + '\uA68F', + '\uA691', + '\uA693', + '\uA695', + '\uA697', + '\uA699', + '\uA69B', + '\uA723', + '\uA725', + '\uA727', + '\uA729', + '\uA72B', + '\uA72D', + ['\uA72F', '\uA731'], + '\uA733', + '\uA735', + '\uA737', + '\uA739', + '\uA73B', + '\uA73D', + '\uA73F', + '\uA741', + '\uA743', + '\uA745', + '\uA747', + '\uA749', + '\uA74B', + '\uA74D', + '\uA74F', + '\uA751', + '\uA753', + '\uA755', + '\uA757', + '\uA759', + '\uA75B', + '\uA75D', + '\uA75F', + '\uA761', + '\uA763', + '\uA765', + '\uA767', + '\uA769', + '\uA76B', + '\uA76D', + '\uA76F', + ['\uA771', '\uA778'], + '\uA77A', + '\uA77C', + '\uA77F', + '\uA781', + '\uA783', + '\uA785', + '\uA787', + '\uA78C', + '\uA78E', + '\uA791', + ['\uA793', '\uA795'], + '\uA797', + '\uA799', + '\uA79B', + '\uA79D', + '\uA79F', + '\uA7A1', + '\uA7A3', + '\uA7A5', + '\uA7A7', + '\uA7A9', + '\uA7B5', + '\uA7B7', + '\uA7FA', + ['\uAB30', '\uAB5A'], + ['\uAB60', '\uAB65'], + ['\uAB70', '\uABBF'], + ['\uFB00', '\uFB06'], + ['\uFB13', '\uFB17'], + ['\uFF41', '\uFF5A'], + ], + false, + false, + ); + var peg$e45 = peg$classExpectation( + [ + ['\u02B0', '\u02C1'], + ['\u02C6', '\u02D1'], + ['\u02E0', '\u02E4'], + '\u02EC', + '\u02EE', + '\u0374', + '\u037A', + '\u0559', + '\u0640', + ['\u06E5', '\u06E6'], + ['\u07F4', '\u07F5'], + '\u07FA', + '\u081A', + '\u0824', + '\u0828', + '\u0971', + '\u0E46', + '\u0EC6', + '\u10FC', + '\u17D7', + '\u1843', + '\u1AA7', + ['\u1C78', '\u1C7D'], + ['\u1D2C', '\u1D6A'], + '\u1D78', + ['\u1D9B', '\u1DBF'], + '\u2071', + '\u207F', + ['\u2090', '\u209C'], + ['\u2C7C', '\u2C7D'], + '\u2D6F', + '\u2E2F', + '\u3005', + ['\u3031', '\u3035'], + '\u303B', + ['\u309D', '\u309E'], + ['\u30FC', '\u30FE'], + '\uA015', + ['\uA4F8', '\uA4FD'], + '\uA60C', + '\uA67F', + ['\uA69C', '\uA69D'], + ['\uA717', '\uA71F'], + '\uA770', + '\uA788', + ['\uA7F8', '\uA7F9'], + '\uA9CF', + '\uA9E6', + '\uAA70', + '\uAADD', + ['\uAAF3', '\uAAF4'], + ['\uAB5C', '\uAB5F'], + '\uFF70', + ['\uFF9E', '\uFF9F'], + ], + false, + false, + ); + var peg$e46 = peg$classExpectation( + [ + '\xAA', + '\xBA', + '\u01BB', + ['\u01C0', '\u01C3'], + '\u0294', + ['\u05D0', '\u05EA'], + ['\u05F0', '\u05F2'], + ['\u0620', '\u063F'], + ['\u0641', '\u064A'], + ['\u066E', '\u066F'], + ['\u0671', '\u06D3'], + '\u06D5', + ['\u06EE', '\u06EF'], + ['\u06FA', '\u06FC'], + '\u06FF', + '\u0710', + ['\u0712', '\u072F'], + ['\u074D', '\u07A5'], + '\u07B1', + ['\u07CA', '\u07EA'], + ['\u0800', '\u0815'], + ['\u0840', '\u0858'], + ['\u08A0', '\u08B4'], + ['\u0904', '\u0939'], + '\u093D', + '\u0950', + ['\u0958', '\u0961'], + ['\u0972', '\u0980'], + ['\u0985', '\u098C'], + ['\u098F', '\u0990'], + ['\u0993', '\u09A8'], + ['\u09AA', '\u09B0'], + '\u09B2', + ['\u09B6', '\u09B9'], + '\u09BD', + '\u09CE', + ['\u09DC', '\u09DD'], + ['\u09DF', '\u09E1'], + ['\u09F0', '\u09F1'], + ['\u0A05', '\u0A0A'], + ['\u0A0F', '\u0A10'], + ['\u0A13', '\u0A28'], + ['\u0A2A', '\u0A30'], + ['\u0A32', '\u0A33'], + ['\u0A35', '\u0A36'], + ['\u0A38', '\u0A39'], + ['\u0A59', '\u0A5C'], + '\u0A5E', + ['\u0A72', '\u0A74'], + ['\u0A85', '\u0A8D'], + ['\u0A8F', '\u0A91'], + ['\u0A93', '\u0AA8'], + ['\u0AAA', '\u0AB0'], + ['\u0AB2', '\u0AB3'], + ['\u0AB5', '\u0AB9'], + '\u0ABD', + '\u0AD0', + ['\u0AE0', '\u0AE1'], + '\u0AF9', + ['\u0B05', '\u0B0C'], + ['\u0B0F', '\u0B10'], + ['\u0B13', '\u0B28'], + ['\u0B2A', '\u0B30'], + ['\u0B32', '\u0B33'], + ['\u0B35', '\u0B39'], + '\u0B3D', + ['\u0B5C', '\u0B5D'], + ['\u0B5F', '\u0B61'], + '\u0B71', + '\u0B83', + ['\u0B85', '\u0B8A'], + ['\u0B8E', '\u0B90'], + ['\u0B92', '\u0B95'], + ['\u0B99', '\u0B9A'], + '\u0B9C', + ['\u0B9E', '\u0B9F'], + ['\u0BA3', '\u0BA4'], + ['\u0BA8', '\u0BAA'], + ['\u0BAE', '\u0BB9'], + '\u0BD0', + ['\u0C05', '\u0C0C'], + ['\u0C0E', '\u0C10'], + ['\u0C12', '\u0C28'], + ['\u0C2A', '\u0C39'], + '\u0C3D', + ['\u0C58', '\u0C5A'], + ['\u0C60', '\u0C61'], + ['\u0C85', '\u0C8C'], + ['\u0C8E', '\u0C90'], + ['\u0C92', '\u0CA8'], + ['\u0CAA', '\u0CB3'], + ['\u0CB5', '\u0CB9'], + '\u0CBD', + '\u0CDE', + ['\u0CE0', '\u0CE1'], + ['\u0CF1', '\u0CF2'], + ['\u0D05', '\u0D0C'], + ['\u0D0E', '\u0D10'], + ['\u0D12', '\u0D3A'], + '\u0D3D', + '\u0D4E', + ['\u0D5F', '\u0D61'], + ['\u0D7A', '\u0D7F'], + ['\u0D85', '\u0D96'], + ['\u0D9A', '\u0DB1'], + ['\u0DB3', '\u0DBB'], + '\u0DBD', + ['\u0DC0', '\u0DC6'], + ['\u0E01', '\u0E30'], + ['\u0E32', '\u0E33'], + ['\u0E40', '\u0E45'], + ['\u0E81', '\u0E82'], + '\u0E84', + ['\u0E87', '\u0E88'], + '\u0E8A', + '\u0E8D', + ['\u0E94', '\u0E97'], + ['\u0E99', '\u0E9F'], + ['\u0EA1', '\u0EA3'], + '\u0EA5', + '\u0EA7', + ['\u0EAA', '\u0EAB'], + ['\u0EAD', '\u0EB0'], + ['\u0EB2', '\u0EB3'], + '\u0EBD', + ['\u0EC0', '\u0EC4'], + ['\u0EDC', '\u0EDF'], + '\u0F00', + ['\u0F40', '\u0F47'], + ['\u0F49', '\u0F6C'], + ['\u0F88', '\u0F8C'], + ['\u1000', '\u102A'], + '\u103F', + ['\u1050', '\u1055'], + ['\u105A', '\u105D'], + '\u1061', + ['\u1065', '\u1066'], + ['\u106E', '\u1070'], + ['\u1075', '\u1081'], + '\u108E', + ['\u10D0', '\u10FA'], + ['\u10FD', '\u1248'], + ['\u124A', '\u124D'], + ['\u1250', '\u1256'], + '\u1258', + ['\u125A', '\u125D'], + ['\u1260', '\u1288'], + ['\u128A', '\u128D'], + ['\u1290', '\u12B0'], + ['\u12B2', '\u12B5'], + ['\u12B8', '\u12BE'], + '\u12C0', + ['\u12C2', '\u12C5'], + ['\u12C8', '\u12D6'], + ['\u12D8', '\u1310'], + ['\u1312', '\u1315'], + ['\u1318', '\u135A'], + ['\u1380', '\u138F'], + ['\u1401', '\u166C'], + ['\u166F', '\u167F'], + ['\u1681', '\u169A'], + ['\u16A0', '\u16EA'], + ['\u16F1', '\u16F8'], + ['\u1700', '\u170C'], + ['\u170E', '\u1711'], + ['\u1720', '\u1731'], + ['\u1740', '\u1751'], + ['\u1760', '\u176C'], + ['\u176E', '\u1770'], + ['\u1780', '\u17B3'], + '\u17DC', + ['\u1820', '\u1842'], + ['\u1844', '\u1877'], + ['\u1880', '\u18A8'], + '\u18AA', + ['\u18B0', '\u18F5'], + ['\u1900', '\u191E'], + ['\u1950', '\u196D'], + ['\u1970', '\u1974'], + ['\u1980', '\u19AB'], + ['\u19B0', '\u19C9'], + ['\u1A00', '\u1A16'], + ['\u1A20', '\u1A54'], + ['\u1B05', '\u1B33'], + ['\u1B45', '\u1B4B'], + ['\u1B83', '\u1BA0'], + ['\u1BAE', '\u1BAF'], + ['\u1BBA', '\u1BE5'], + ['\u1C00', '\u1C23'], + ['\u1C4D', '\u1C4F'], + ['\u1C5A', '\u1C77'], + ['\u1CE9', '\u1CEC'], + ['\u1CEE', '\u1CF1'], + ['\u1CF5', '\u1CF6'], + ['\u2135', '\u2138'], + ['\u2D30', '\u2D67'], + ['\u2D80', '\u2D96'], + ['\u2DA0', '\u2DA6'], + ['\u2DA8', '\u2DAE'], + ['\u2DB0', '\u2DB6'], + ['\u2DB8', '\u2DBE'], + ['\u2DC0', '\u2DC6'], + ['\u2DC8', '\u2DCE'], + ['\u2DD0', '\u2DD6'], + ['\u2DD8', '\u2DDE'], + '\u3006', + '\u303C', + ['\u3041', '\u3096'], + '\u309F', + ['\u30A1', '\u30FA'], + '\u30FF', + ['\u3105', '\u312D'], + ['\u3131', '\u318E'], + ['\u31A0', '\u31BA'], + ['\u31F0', '\u31FF'], + ['\u3400', '\u4DB5'], + ['\u4E00', '\u9FD5'], + ['\uA000', '\uA014'], + ['\uA016', '\uA48C'], + ['\uA4D0', '\uA4F7'], + ['\uA500', '\uA60B'], + ['\uA610', '\uA61F'], + ['\uA62A', '\uA62B'], + '\uA66E', + ['\uA6A0', '\uA6E5'], + '\uA78F', + '\uA7F7', + ['\uA7FB', '\uA801'], + ['\uA803', '\uA805'], + ['\uA807', '\uA80A'], + ['\uA80C', '\uA822'], + ['\uA840', '\uA873'], + ['\uA882', '\uA8B3'], + ['\uA8F2', '\uA8F7'], + '\uA8FB', + '\uA8FD', + ['\uA90A', '\uA925'], + ['\uA930', '\uA946'], + ['\uA960', '\uA97C'], + ['\uA984', '\uA9B2'], + ['\uA9E0', '\uA9E4'], + ['\uA9E7', '\uA9EF'], + ['\uA9FA', '\uA9FE'], + ['\uAA00', '\uAA28'], + ['\uAA40', '\uAA42'], + ['\uAA44', '\uAA4B'], + ['\uAA60', '\uAA6F'], + ['\uAA71', '\uAA76'], + '\uAA7A', + ['\uAA7E', '\uAAAF'], + '\uAAB1', + ['\uAAB5', '\uAAB6'], + ['\uAAB9', '\uAABD'], + '\uAAC0', + '\uAAC2', + ['\uAADB', '\uAADC'], + ['\uAAE0', '\uAAEA'], + '\uAAF2', + ['\uAB01', '\uAB06'], + ['\uAB09', '\uAB0E'], + ['\uAB11', '\uAB16'], + ['\uAB20', '\uAB26'], + ['\uAB28', '\uAB2E'], + ['\uABC0', '\uABE2'], + ['\uAC00', '\uD7A3'], + ['\uD7B0', '\uD7C6'], + ['\uD7CB', '\uD7FB'], + ['\uF900', '\uFA6D'], + ['\uFA70', '\uFAD9'], + '\uFB1D', + ['\uFB1F', '\uFB28'], + ['\uFB2A', '\uFB36'], + ['\uFB38', '\uFB3C'], + '\uFB3E', + ['\uFB40', '\uFB41'], + ['\uFB43', '\uFB44'], + ['\uFB46', '\uFBB1'], + ['\uFBD3', '\uFD3D'], + ['\uFD50', '\uFD8F'], + ['\uFD92', '\uFDC7'], + ['\uFDF0', '\uFDFB'], + ['\uFE70', '\uFE74'], + ['\uFE76', '\uFEFC'], + ['\uFF66', '\uFF6F'], + ['\uFF71', '\uFF9D'], + ['\uFFA0', '\uFFBE'], + ['\uFFC2', '\uFFC7'], + ['\uFFCA', '\uFFCF'], + ['\uFFD2', '\uFFD7'], + ['\uFFDA', '\uFFDC'], + ], + false, + false, + ); + var peg$e47 = peg$classExpectation( + [ + '\u01C5', + '\u01C8', + '\u01CB', + '\u01F2', + ['\u1F88', '\u1F8F'], + ['\u1F98', '\u1F9F'], + ['\u1FA8', '\u1FAF'], + '\u1FBC', + '\u1FCC', + '\u1FFC', + ], + false, + false, + ); + var peg$e48 = peg$classExpectation( + [ + ['A', 'Z'], + ['\xC0', '\xD6'], + ['\xD8', '\xDE'], + '\u0100', + '\u0102', + '\u0104', + '\u0106', + '\u0108', + '\u010A', + '\u010C', + '\u010E', + '\u0110', + '\u0112', + '\u0114', + '\u0116', + '\u0118', + '\u011A', + '\u011C', + '\u011E', + '\u0120', + '\u0122', + '\u0124', + '\u0126', + '\u0128', + '\u012A', + '\u012C', + '\u012E', + '\u0130', + '\u0132', + '\u0134', + '\u0136', + '\u0139', + '\u013B', + '\u013D', + '\u013F', + '\u0141', + '\u0143', + '\u0145', + '\u0147', + '\u014A', + '\u014C', + '\u014E', + '\u0150', + '\u0152', + '\u0154', + '\u0156', + '\u0158', + '\u015A', + '\u015C', + '\u015E', + '\u0160', + '\u0162', + '\u0164', + '\u0166', + '\u0168', + '\u016A', + '\u016C', + '\u016E', + '\u0170', + '\u0172', + '\u0174', + '\u0176', + ['\u0178', '\u0179'], + '\u017B', + '\u017D', + ['\u0181', '\u0182'], + '\u0184', + ['\u0186', '\u0187'], + ['\u0189', '\u018B'], + ['\u018E', '\u0191'], + ['\u0193', '\u0194'], + ['\u0196', '\u0198'], + ['\u019C', '\u019D'], + ['\u019F', '\u01A0'], + '\u01A2', + '\u01A4', + ['\u01A6', '\u01A7'], + '\u01A9', + '\u01AC', + ['\u01AE', '\u01AF'], + ['\u01B1', '\u01B3'], + '\u01B5', + ['\u01B7', '\u01B8'], + '\u01BC', + '\u01C4', + '\u01C7', + '\u01CA', + '\u01CD', + '\u01CF', + '\u01D1', + '\u01D3', + '\u01D5', + '\u01D7', + '\u01D9', + '\u01DB', + '\u01DE', + '\u01E0', + '\u01E2', + '\u01E4', + '\u01E6', + '\u01E8', + '\u01EA', + '\u01EC', + '\u01EE', + '\u01F1', + '\u01F4', + ['\u01F6', '\u01F8'], + '\u01FA', + '\u01FC', + '\u01FE', + '\u0200', + '\u0202', + '\u0204', + '\u0206', + '\u0208', + '\u020A', + '\u020C', + '\u020E', + '\u0210', + '\u0212', + '\u0214', + '\u0216', + '\u0218', + '\u021A', + '\u021C', + '\u021E', + '\u0220', + '\u0222', + '\u0224', + '\u0226', + '\u0228', + '\u022A', + '\u022C', + '\u022E', + '\u0230', + '\u0232', + ['\u023A', '\u023B'], + ['\u023D', '\u023E'], + '\u0241', + ['\u0243', '\u0246'], + '\u0248', + '\u024A', + '\u024C', + '\u024E', + '\u0370', + '\u0372', + '\u0376', + '\u037F', + '\u0386', + ['\u0388', '\u038A'], + '\u038C', + ['\u038E', '\u038F'], + ['\u0391', '\u03A1'], + ['\u03A3', '\u03AB'], + '\u03CF', + ['\u03D2', '\u03D4'], + '\u03D8', + '\u03DA', + '\u03DC', + '\u03DE', + '\u03E0', + '\u03E2', + '\u03E4', + '\u03E6', + '\u03E8', + '\u03EA', + '\u03EC', + '\u03EE', + '\u03F4', + '\u03F7', + ['\u03F9', '\u03FA'], + ['\u03FD', '\u042F'], + '\u0460', + '\u0462', + '\u0464', + '\u0466', + '\u0468', + '\u046A', + '\u046C', + '\u046E', + '\u0470', + '\u0472', + '\u0474', + '\u0476', + '\u0478', + '\u047A', + '\u047C', + '\u047E', + '\u0480', + '\u048A', + '\u048C', + '\u048E', + '\u0490', + '\u0492', + '\u0494', + '\u0496', + '\u0498', + '\u049A', + '\u049C', + '\u049E', + '\u04A0', + '\u04A2', + '\u04A4', + '\u04A6', + '\u04A8', + '\u04AA', + '\u04AC', + '\u04AE', + '\u04B0', + '\u04B2', + '\u04B4', + '\u04B6', + '\u04B8', + '\u04BA', + '\u04BC', + '\u04BE', + ['\u04C0', '\u04C1'], + '\u04C3', + '\u04C5', + '\u04C7', + '\u04C9', + '\u04CB', + '\u04CD', + '\u04D0', + '\u04D2', + '\u04D4', + '\u04D6', + '\u04D8', + '\u04DA', + '\u04DC', + '\u04DE', + '\u04E0', + '\u04E2', + '\u04E4', + '\u04E6', + '\u04E8', + '\u04EA', + '\u04EC', + '\u04EE', + '\u04F0', + '\u04F2', + '\u04F4', + '\u04F6', + '\u04F8', + '\u04FA', + '\u04FC', + '\u04FE', + '\u0500', + '\u0502', + '\u0504', + '\u0506', + '\u0508', + '\u050A', + '\u050C', + '\u050E', + '\u0510', + '\u0512', + '\u0514', + '\u0516', + '\u0518', + '\u051A', + '\u051C', + '\u051E', + '\u0520', + '\u0522', + '\u0524', + '\u0526', + '\u0528', + '\u052A', + '\u052C', + '\u052E', + ['\u0531', '\u0556'], + ['\u10A0', '\u10C5'], + '\u10C7', + '\u10CD', + ['\u13A0', '\u13F5'], + '\u1E00', + '\u1E02', + '\u1E04', + '\u1E06', + '\u1E08', + '\u1E0A', + '\u1E0C', + '\u1E0E', + '\u1E10', + '\u1E12', + '\u1E14', + '\u1E16', + '\u1E18', + '\u1E1A', + '\u1E1C', + '\u1E1E', + '\u1E20', + '\u1E22', + '\u1E24', + '\u1E26', + '\u1E28', + '\u1E2A', + '\u1E2C', + '\u1E2E', + '\u1E30', + '\u1E32', + '\u1E34', + '\u1E36', + '\u1E38', + '\u1E3A', + '\u1E3C', + '\u1E3E', + '\u1E40', + '\u1E42', + '\u1E44', + '\u1E46', + '\u1E48', + '\u1E4A', + '\u1E4C', + '\u1E4E', + '\u1E50', + '\u1E52', + '\u1E54', + '\u1E56', + '\u1E58', + '\u1E5A', + '\u1E5C', + '\u1E5E', + '\u1E60', + '\u1E62', + '\u1E64', + '\u1E66', + '\u1E68', + '\u1E6A', + '\u1E6C', + '\u1E6E', + '\u1E70', + '\u1E72', + '\u1E74', + '\u1E76', + '\u1E78', + '\u1E7A', + '\u1E7C', + '\u1E7E', + '\u1E80', + '\u1E82', + '\u1E84', + '\u1E86', + '\u1E88', + '\u1E8A', + '\u1E8C', + '\u1E8E', + '\u1E90', + '\u1E92', + '\u1E94', + '\u1E9E', + '\u1EA0', + '\u1EA2', + '\u1EA4', + '\u1EA6', + '\u1EA8', + '\u1EAA', + '\u1EAC', + '\u1EAE', + '\u1EB0', + '\u1EB2', + '\u1EB4', + '\u1EB6', + '\u1EB8', + '\u1EBA', + '\u1EBC', + '\u1EBE', + '\u1EC0', + '\u1EC2', + '\u1EC4', + '\u1EC6', + '\u1EC8', + '\u1ECA', + '\u1ECC', + '\u1ECE', + '\u1ED0', + '\u1ED2', + '\u1ED4', + '\u1ED6', + '\u1ED8', + '\u1EDA', + '\u1EDC', + '\u1EDE', + '\u1EE0', + '\u1EE2', + '\u1EE4', + '\u1EE6', + '\u1EE8', + '\u1EEA', + '\u1EEC', + '\u1EEE', + '\u1EF0', + '\u1EF2', + '\u1EF4', + '\u1EF6', + '\u1EF8', + '\u1EFA', + '\u1EFC', + '\u1EFE', + ['\u1F08', '\u1F0F'], + ['\u1F18', '\u1F1D'], + ['\u1F28', '\u1F2F'], + ['\u1F38', '\u1F3F'], + ['\u1F48', '\u1F4D'], + '\u1F59', + '\u1F5B', + '\u1F5D', + '\u1F5F', + ['\u1F68', '\u1F6F'], + ['\u1FB8', '\u1FBB'], + ['\u1FC8', '\u1FCB'], + ['\u1FD8', '\u1FDB'], + ['\u1FE8', '\u1FEC'], + ['\u1FF8', '\u1FFB'], + '\u2102', + '\u2107', + ['\u210B', '\u210D'], + ['\u2110', '\u2112'], + '\u2115', + ['\u2119', '\u211D'], + '\u2124', + '\u2126', + '\u2128', + ['\u212A', '\u212D'], + ['\u2130', '\u2133'], + ['\u213E', '\u213F'], + '\u2145', + '\u2183', + ['\u2C00', '\u2C2E'], + '\u2C60', + ['\u2C62', '\u2C64'], + '\u2C67', + '\u2C69', + '\u2C6B', + ['\u2C6D', '\u2C70'], + '\u2C72', + '\u2C75', + ['\u2C7E', '\u2C80'], + '\u2C82', + '\u2C84', + '\u2C86', + '\u2C88', + '\u2C8A', + '\u2C8C', + '\u2C8E', + '\u2C90', + '\u2C92', + '\u2C94', + '\u2C96', + '\u2C98', + '\u2C9A', + '\u2C9C', + '\u2C9E', + '\u2CA0', + '\u2CA2', + '\u2CA4', + '\u2CA6', + '\u2CA8', + '\u2CAA', + '\u2CAC', + '\u2CAE', + '\u2CB0', + '\u2CB2', + '\u2CB4', + '\u2CB6', + '\u2CB8', + '\u2CBA', + '\u2CBC', + '\u2CBE', + '\u2CC0', + '\u2CC2', + '\u2CC4', + '\u2CC6', + '\u2CC8', + '\u2CCA', + '\u2CCC', + '\u2CCE', + '\u2CD0', + '\u2CD2', + '\u2CD4', + '\u2CD6', + '\u2CD8', + '\u2CDA', + '\u2CDC', + '\u2CDE', + '\u2CE0', + '\u2CE2', + '\u2CEB', + '\u2CED', + '\u2CF2', + '\uA640', + '\uA642', + '\uA644', + '\uA646', + '\uA648', + '\uA64A', + '\uA64C', + '\uA64E', + '\uA650', + '\uA652', + '\uA654', + '\uA656', + '\uA658', + '\uA65A', + '\uA65C', + '\uA65E', + '\uA660', + '\uA662', + '\uA664', + '\uA666', + '\uA668', + '\uA66A', + '\uA66C', + '\uA680', + '\uA682', + '\uA684', + '\uA686', + '\uA688', + '\uA68A', + '\uA68C', + '\uA68E', + '\uA690', + '\uA692', + '\uA694', + '\uA696', + '\uA698', + '\uA69A', + '\uA722', + '\uA724', + '\uA726', + '\uA728', + '\uA72A', + '\uA72C', + '\uA72E', + '\uA732', + '\uA734', + '\uA736', + '\uA738', + '\uA73A', + '\uA73C', + '\uA73E', + '\uA740', + '\uA742', + '\uA744', + '\uA746', + '\uA748', + '\uA74A', + '\uA74C', + '\uA74E', + '\uA750', + '\uA752', + '\uA754', + '\uA756', + '\uA758', + '\uA75A', + '\uA75C', + '\uA75E', + '\uA760', + '\uA762', + '\uA764', + '\uA766', + '\uA768', + '\uA76A', + '\uA76C', + '\uA76E', + '\uA779', + '\uA77B', + ['\uA77D', '\uA77E'], + '\uA780', + '\uA782', + '\uA784', + '\uA786', + '\uA78B', + '\uA78D', + '\uA790', + '\uA792', + '\uA796', + '\uA798', + '\uA79A', + '\uA79C', + '\uA79E', + '\uA7A0', + '\uA7A2', + '\uA7A4', + '\uA7A6', + '\uA7A8', + ['\uA7AA', '\uA7AD'], + ['\uA7B0', '\uA7B4'], + '\uA7B6', + ['\uFF21', '\uFF3A'], + ], + false, + false, + ); + var peg$e49 = peg$classExpectation( + [ + '\u0903', + '\u093B', + ['\u093E', '\u0940'], + ['\u0949', '\u094C'], + ['\u094E', '\u094F'], + ['\u0982', '\u0983'], + ['\u09BE', '\u09C0'], + ['\u09C7', '\u09C8'], + ['\u09CB', '\u09CC'], + '\u09D7', + '\u0A03', + ['\u0A3E', '\u0A40'], + '\u0A83', + ['\u0ABE', '\u0AC0'], + '\u0AC9', + ['\u0ACB', '\u0ACC'], + ['\u0B02', '\u0B03'], + '\u0B3E', + '\u0B40', + ['\u0B47', '\u0B48'], + ['\u0B4B', '\u0B4C'], + '\u0B57', + ['\u0BBE', '\u0BBF'], + ['\u0BC1', '\u0BC2'], + ['\u0BC6', '\u0BC8'], + ['\u0BCA', '\u0BCC'], + '\u0BD7', + ['\u0C01', '\u0C03'], + ['\u0C41', '\u0C44'], + ['\u0C82', '\u0C83'], + '\u0CBE', + ['\u0CC0', '\u0CC4'], + ['\u0CC7', '\u0CC8'], + ['\u0CCA', '\u0CCB'], + ['\u0CD5', '\u0CD6'], + ['\u0D02', '\u0D03'], + ['\u0D3E', '\u0D40'], + ['\u0D46', '\u0D48'], + ['\u0D4A', '\u0D4C'], + '\u0D57', + ['\u0D82', '\u0D83'], + ['\u0DCF', '\u0DD1'], + ['\u0DD8', '\u0DDF'], + ['\u0DF2', '\u0DF3'], + ['\u0F3E', '\u0F3F'], + '\u0F7F', + ['\u102B', '\u102C'], + '\u1031', + '\u1038', + ['\u103B', '\u103C'], + ['\u1056', '\u1057'], + ['\u1062', '\u1064'], + ['\u1067', '\u106D'], + ['\u1083', '\u1084'], + ['\u1087', '\u108C'], + '\u108F', + ['\u109A', '\u109C'], + '\u17B6', + ['\u17BE', '\u17C5'], + ['\u17C7', '\u17C8'], + ['\u1923', '\u1926'], + ['\u1929', '\u192B'], + ['\u1930', '\u1931'], + ['\u1933', '\u1938'], + ['\u1A19', '\u1A1A'], + '\u1A55', + '\u1A57', + '\u1A61', + ['\u1A63', '\u1A64'], + ['\u1A6D', '\u1A72'], + '\u1B04', + '\u1B35', + '\u1B3B', + ['\u1B3D', '\u1B41'], + ['\u1B43', '\u1B44'], + '\u1B82', + '\u1BA1', + ['\u1BA6', '\u1BA7'], + '\u1BAA', + '\u1BE7', + ['\u1BEA', '\u1BEC'], + '\u1BEE', + ['\u1BF2', '\u1BF3'], + ['\u1C24', '\u1C2B'], + ['\u1C34', '\u1C35'], + '\u1CE1', + ['\u1CF2', '\u1CF3'], + ['\u302E', '\u302F'], + ['\uA823', '\uA824'], + '\uA827', + ['\uA880', '\uA881'], + ['\uA8B4', '\uA8C3'], + ['\uA952', '\uA953'], + '\uA983', + ['\uA9B4', '\uA9B5'], + ['\uA9BA', '\uA9BB'], + ['\uA9BD', '\uA9C0'], + ['\uAA2F', '\uAA30'], + ['\uAA33', '\uAA34'], + '\uAA4D', + '\uAA7B', + '\uAA7D', + '\uAAEB', + ['\uAAEE', '\uAAEF'], + '\uAAF5', + ['\uABE3', '\uABE4'], + ['\uABE6', '\uABE7'], + ['\uABE9', '\uABEA'], + '\uABEC', + ], + false, + false, + ); + var peg$e50 = peg$classExpectation( + [ + ['\u0300', '\u036F'], + ['\u0483', '\u0487'], + ['\u0591', '\u05BD'], + '\u05BF', + ['\u05C1', '\u05C2'], + ['\u05C4', '\u05C5'], + '\u05C7', + ['\u0610', '\u061A'], + ['\u064B', '\u065F'], + '\u0670', + ['\u06D6', '\u06DC'], + ['\u06DF', '\u06E4'], + ['\u06E7', '\u06E8'], + ['\u06EA', '\u06ED'], + '\u0711', + ['\u0730', '\u074A'], + ['\u07A6', '\u07B0'], + ['\u07EB', '\u07F3'], + ['\u0816', '\u0819'], + ['\u081B', '\u0823'], + ['\u0825', '\u0827'], + ['\u0829', '\u082D'], + ['\u0859', '\u085B'], + ['\u08E3', '\u0902'], + '\u093A', + '\u093C', + ['\u0941', '\u0948'], + '\u094D', + ['\u0951', '\u0957'], + ['\u0962', '\u0963'], + '\u0981', + '\u09BC', + ['\u09C1', '\u09C4'], + '\u09CD', + ['\u09E2', '\u09E3'], + ['\u0A01', '\u0A02'], + '\u0A3C', + ['\u0A41', '\u0A42'], + ['\u0A47', '\u0A48'], + ['\u0A4B', '\u0A4D'], + '\u0A51', + ['\u0A70', '\u0A71'], + '\u0A75', + ['\u0A81', '\u0A82'], + '\u0ABC', + ['\u0AC1', '\u0AC5'], + ['\u0AC7', '\u0AC8'], + '\u0ACD', + ['\u0AE2', '\u0AE3'], + '\u0B01', + '\u0B3C', + '\u0B3F', + ['\u0B41', '\u0B44'], + '\u0B4D', + '\u0B56', + ['\u0B62', '\u0B63'], + '\u0B82', + '\u0BC0', + '\u0BCD', + '\u0C00', + ['\u0C3E', '\u0C40'], + ['\u0C46', '\u0C48'], + ['\u0C4A', '\u0C4D'], + ['\u0C55', '\u0C56'], + ['\u0C62', '\u0C63'], + '\u0C81', + '\u0CBC', + '\u0CBF', + '\u0CC6', + ['\u0CCC', '\u0CCD'], + ['\u0CE2', '\u0CE3'], + '\u0D01', + ['\u0D41', '\u0D44'], + '\u0D4D', + ['\u0D62', '\u0D63'], + '\u0DCA', + ['\u0DD2', '\u0DD4'], + '\u0DD6', + '\u0E31', + ['\u0E34', '\u0E3A'], + ['\u0E47', '\u0E4E'], + '\u0EB1', + ['\u0EB4', '\u0EB9'], + ['\u0EBB', '\u0EBC'], + ['\u0EC8', '\u0ECD'], + ['\u0F18', '\u0F19'], + '\u0F35', + '\u0F37', + '\u0F39', + ['\u0F71', '\u0F7E'], + ['\u0F80', '\u0F84'], + ['\u0F86', '\u0F87'], + ['\u0F8D', '\u0F97'], + ['\u0F99', '\u0FBC'], + '\u0FC6', + ['\u102D', '\u1030'], + ['\u1032', '\u1037'], + ['\u1039', '\u103A'], + ['\u103D', '\u103E'], + ['\u1058', '\u1059'], + ['\u105E', '\u1060'], + ['\u1071', '\u1074'], + '\u1082', + ['\u1085', '\u1086'], + '\u108D', + '\u109D', + ['\u135D', '\u135F'], + ['\u1712', '\u1714'], + ['\u1732', '\u1734'], + ['\u1752', '\u1753'], + ['\u1772', '\u1773'], + ['\u17B4', '\u17B5'], + ['\u17B7', '\u17BD'], + '\u17C6', + ['\u17C9', '\u17D3'], + '\u17DD', + ['\u180B', '\u180D'], + '\u18A9', + ['\u1920', '\u1922'], + ['\u1927', '\u1928'], + '\u1932', + ['\u1939', '\u193B'], + ['\u1A17', '\u1A18'], + '\u1A1B', + '\u1A56', + ['\u1A58', '\u1A5E'], + '\u1A60', + '\u1A62', + ['\u1A65', '\u1A6C'], + ['\u1A73', '\u1A7C'], + '\u1A7F', + ['\u1AB0', '\u1ABD'], + ['\u1B00', '\u1B03'], + '\u1B34', + ['\u1B36', '\u1B3A'], + '\u1B3C', + '\u1B42', + ['\u1B6B', '\u1B73'], + ['\u1B80', '\u1B81'], + ['\u1BA2', '\u1BA5'], + ['\u1BA8', '\u1BA9'], + ['\u1BAB', '\u1BAD'], + '\u1BE6', + ['\u1BE8', '\u1BE9'], + '\u1BED', + ['\u1BEF', '\u1BF1'], + ['\u1C2C', '\u1C33'], + ['\u1C36', '\u1C37'], + ['\u1CD0', '\u1CD2'], + ['\u1CD4', '\u1CE0'], + ['\u1CE2', '\u1CE8'], + '\u1CED', + '\u1CF4', + ['\u1CF8', '\u1CF9'], + ['\u1DC0', '\u1DF5'], + ['\u1DFC', '\u1DFF'], + ['\u20D0', '\u20DC'], + '\u20E1', + ['\u20E5', '\u20F0'], + ['\u2CEF', '\u2CF1'], + '\u2D7F', + ['\u2DE0', '\u2DFF'], + ['\u302A', '\u302D'], + ['\u3099', '\u309A'], + '\uA66F', + ['\uA674', '\uA67D'], + ['\uA69E', '\uA69F'], + ['\uA6F0', '\uA6F1'], + '\uA802', + '\uA806', + '\uA80B', + ['\uA825', '\uA826'], + '\uA8C4', + ['\uA8E0', '\uA8F1'], + ['\uA926', '\uA92D'], + ['\uA947', '\uA951'], + ['\uA980', '\uA982'], + '\uA9B3', + ['\uA9B6', '\uA9B9'], + '\uA9BC', + '\uA9E5', + ['\uAA29', '\uAA2E'], + ['\uAA31', '\uAA32'], + ['\uAA35', '\uAA36'], + '\uAA43', + '\uAA4C', + '\uAA7C', + '\uAAB0', + ['\uAAB2', '\uAAB4'], + ['\uAAB7', '\uAAB8'], + ['\uAABE', '\uAABF'], + '\uAAC1', + ['\uAAEC', '\uAAED'], + '\uAAF6', + '\uABE5', + '\uABE8', + '\uABED', + '\uFB1E', + ['\uFE00', '\uFE0F'], + ['\uFE20', '\uFE2F'], + ], + false, + false, + ); + var peg$e51 = peg$classExpectation( + [ + ['0', '9'], + ['\u0660', '\u0669'], + ['\u06F0', '\u06F9'], + ['\u07C0', '\u07C9'], + ['\u0966', '\u096F'], + ['\u09E6', '\u09EF'], + ['\u0A66', '\u0A6F'], + ['\u0AE6', '\u0AEF'], + ['\u0B66', '\u0B6F'], + ['\u0BE6', '\u0BEF'], + ['\u0C66', '\u0C6F'], + ['\u0CE6', '\u0CEF'], + ['\u0D66', '\u0D6F'], + ['\u0DE6', '\u0DEF'], + ['\u0E50', '\u0E59'], + ['\u0ED0', '\u0ED9'], + ['\u0F20', '\u0F29'], + ['\u1040', '\u1049'], + ['\u1090', '\u1099'], + ['\u17E0', '\u17E9'], + ['\u1810', '\u1819'], + ['\u1946', '\u194F'], + ['\u19D0', '\u19D9'], + ['\u1A80', '\u1A89'], + ['\u1A90', '\u1A99'], + ['\u1B50', '\u1B59'], + ['\u1BB0', '\u1BB9'], + ['\u1C40', '\u1C49'], + ['\u1C50', '\u1C59'], + ['\uA620', '\uA629'], + ['\uA8D0', '\uA8D9'], + ['\uA900', '\uA909'], + ['\uA9D0', '\uA9D9'], + ['\uA9F0', '\uA9F9'], + ['\uAA50', '\uAA59'], + ['\uABF0', '\uABF9'], + ['\uFF10', '\uFF19'], + ], + false, + false, + ); + var peg$e52 = peg$classExpectation( + [ + ['\u16EE', '\u16F0'], + ['\u2160', '\u2182'], + ['\u2185', '\u2188'], + '\u3007', + ['\u3021', '\u3029'], + ['\u3038', '\u303A'], + ['\uA6E6', '\uA6EF'], + ], + false, + false, + ); + var peg$e53 = peg$classExpectation( + [ + '_', + ['\u203F', '\u2040'], + '\u2054', + ['\uFE33', '\uFE34'], + ['\uFE4D', '\uFE4F'], + '\uFF3F', + ], + false, + false, + ); + var peg$e54 = peg$classExpectation( + [' ', '\xA0', '\u1680', ['\u2000', '\u200A'], '\u202F', '\u205F', '\u3000'], + false, + false, + ); + var peg$e55 = peg$literalExpectation('emit', false); + var peg$e56 = peg$literalExpectation('revert', false); + var peg$e57 = peg$literalExpectation('abstract', false); + var peg$e58 = peg$literalExpectation('experimental', false); + var peg$e59 = peg$literalExpectation('override', false); + var peg$e60 = peg$literalExpectation('abicoder', false); + var peg$e61 = peg$literalExpectation('external', false); + var peg$e62 = peg$literalExpectation('pure', false); + var peg$e63 = peg$literalExpectation('view', false); + var peg$e64 = peg$literalExpectation('payable', false); + var peg$e65 = peg$literalExpectation('anonymous', false); + var peg$e66 = peg$literalExpectation('as', false); + var peg$e67 = peg$literalExpectation('break', false); + var peg$e68 = peg$literalExpectation('calldata', false); + var peg$e69 = peg$literalExpectation('constant', false); + var peg$e70 = peg$literalExpectation('immutable', false); + var peg$e71 = peg$literalExpectation('continue', false); + var peg$e72 = peg$literalExpectation('contract', false); + var peg$e73 = peg$literalExpectation('constructor', false); + var peg$e74 = peg$literalExpectation('receive', false); + var peg$e75 = peg$literalExpectation('fallback', false); + var peg$e76 = peg$literalExpectation('days', false); + var peg$e77 = peg$literalExpectation('delete', false); + var peg$e78 = peg$literalExpectation('do', false); + var peg$e79 = peg$literalExpectation('else', false); + var peg$e80 = peg$literalExpectation('enum', false); + var peg$e81 = peg$literalExpectation('ether', false); + var peg$e82 = peg$literalExpectation('event', false); + var peg$e83 = peg$literalExpectation('error', false); + var peg$e84 = peg$literalExpectation('false', false); + var peg$e85 = peg$literalExpectation('finney', false); + var peg$e86 = peg$literalExpectation('for', false); + var peg$e87 = peg$literalExpectation('from', false); + var peg$e88 = peg$literalExpectation('function', false); + var peg$e89 = peg$literalExpectation('get', false); + var peg$e90 = peg$literalExpectation('hex', false); + var peg$e91 = peg$literalExpectation('hours', false); + var peg$e92 = peg$literalExpectation('if', false); + var peg$e93 = peg$literalExpectation('try', false); + var peg$e94 = peg$literalExpectation('catch', false); + var peg$e95 = peg$literalExpectation('is', false); + var peg$e96 = peg$literalExpectation('indexed', false); + var peg$e97 = peg$literalExpectation('import', false); + var peg$e98 = peg$literalExpectation('interface', false); + var peg$e99 = peg$literalExpectation('internal', false); + var peg$e100 = peg$literalExpectation('library', false); + var peg$e101 = peg$literalExpectation('mapping', false); + var peg$e102 = peg$literalExpectation('memory', false); + var peg$e103 = peg$literalExpectation('minutes', false); + var peg$e104 = peg$literalExpectation('modifier', false); + var peg$e105 = peg$literalExpectation('new', false); + var peg$e106 = peg$literalExpectation('null', false); + var peg$e107 = peg$literalExpectation('private', false); + var peg$e108 = peg$literalExpectation('pragma', false); + var peg$e109 = peg$literalExpectation('public', false); + var peg$e110 = peg$literalExpectation('return', false); + var peg$e111 = peg$literalExpectation('returns', false); + var peg$e112 = peg$literalExpectation('seconds', false); + var peg$e113 = peg$literalExpectation('set', false); + var peg$e114 = peg$literalExpectation('solidity', false); + var peg$e115 = peg$literalExpectation('storage', false); + var peg$e116 = peg$literalExpectation('struct', false); + var peg$e117 = peg$literalExpectation('super', false); + var peg$e118 = peg$literalExpectation('szabo', false); + var peg$e119 = peg$literalExpectation('this', false); + var peg$e120 = peg$literalExpectation('throw', false); + var peg$e121 = peg$literalExpectation('true', false); + var peg$e122 = peg$literalExpectation('using', false); + var peg$e123 = peg$literalExpectation('var', false); + var peg$e124 = peg$literalExpectation('weeks', false); + var peg$e125 = peg$literalExpectation('wei', false); + var peg$e126 = peg$literalExpectation('while', false); + var peg$e127 = peg$literalExpectation('years', false); + var peg$e128 = peg$literalExpectation(';', false); + var peg$e129 = peg$literalExpectation(',', false); + var peg$e130 = peg$literalExpectation('(', false); + var peg$e131 = peg$literalExpectation(')', false); + var peg$e132 = peg$literalExpectation('[', false); + var peg$e133 = peg$literalExpectation(']', false); + var peg$e134 = peg$literalExpectation('{', false); + var peg$e135 = peg$literalExpectation('}', false); + var peg$e136 = peg$literalExpectation(':', false); + var peg$e137 = peg$literalExpectation('=', false); + var peg$e138 = peg$literalExpectation('=>', false); + var peg$e139 = peg$literalExpectation('++', false); + var peg$e140 = peg$literalExpectation('--', false); + var peg$e141 = peg$literalExpectation('+', false); + var peg$e142 = peg$literalExpectation('-', false); + var peg$e143 = peg$literalExpectation('~', false); + var peg$e144 = peg$literalExpectation('!', false); + var peg$e145 = peg$literalExpectation('*', false); + var peg$e146 = peg$literalExpectation('/', false); + var peg$e147 = peg$literalExpectation('%', false); + var peg$e148 = peg$classExpectation(['+', '='], false, false); + var peg$e149 = peg$classExpectation(['-', '='], false, false); + var peg$e150 = peg$literalExpectation('<<', false); + var peg$e151 = peg$literalExpectation('>>>', false); + var peg$e152 = peg$literalExpectation('>>', false); + var peg$e153 = peg$literalExpectation('<=', false); + var peg$e154 = peg$literalExpectation('>=', false); + var peg$e155 = peg$literalExpectation('<', false); + var peg$e156 = peg$literalExpectation('>', false); + var peg$e157 = peg$literalExpectation('==', false); + var peg$e158 = peg$literalExpectation('!=', false); + var peg$e159 = peg$literalExpectation('&', false); + var peg$e160 = peg$classExpectation(['&', '='], false, false); + var peg$e161 = peg$literalExpectation('^', false); + var peg$e162 = peg$literalExpectation('|', false); + var peg$e163 = peg$classExpectation(['|', '='], false, false); + var peg$e164 = peg$literalExpectation('&&', false); + var peg$e165 = peg$literalExpectation('||', false); + var peg$e166 = peg$literalExpectation('?', false); + var peg$e167 = peg$literalExpectation('*=', false); + var peg$e168 = peg$literalExpectation('/=', false); + var peg$e169 = peg$literalExpectation('%=', false); + var peg$e170 = peg$literalExpectation('+=', false); + var peg$e171 = peg$literalExpectation('-=', false); + var peg$e172 = peg$literalExpectation('<<=', false); + var peg$e173 = peg$literalExpectation('>>=', false); + var peg$e174 = peg$literalExpectation('&=', false); + var peg$e175 = peg$literalExpectation('^=', false); + var peg$e176 = peg$literalExpectation('|=', false); + var peg$e177 = peg$literalExpectation('Error', false); + var peg$e178 = peg$literalExpectation('assembly', false); + var peg$e179 = peg$literalExpectation('->', false); + var peg$e180 = peg$literalExpectation('let', false); + var peg$e181 = peg$literalExpectation(':=', false); + + var peg$f0 = function (program) { + return program; + }; + var peg$f1 = function (name) { + return name; + }; + var peg$f2 = function (head, tail) { + return { + type: 'Identifier', + name: head + tail.join(''), + start: location().start.offset, + end: location().end.offset, + }; + }; + var peg$f3 = function () { + return { + type: 'Identifier', + name: 'address_payable', + start: location().start.offset, + end: location().end.offset, + }; + }; + var peg$f4 = function () { + return { + type: 'Literal', + value: true, + start: location().start.offset, + end: location().end.offset, + }; + }; + var peg$f5 = function () { + return { + type: 'Literal', + value: false, + start: location().start.offset, + end: location().end.offset, + }; + }; + var peg$f6 = function (literal) { + return literal; + }; + var peg$f7 = function (token) { + return token[0]; + }; + var peg$f8 = function (literal, denomination) { + return { + type: 'DenominationLiteral', + literal: literal.value, + denomination: denomination, + start: location().start.offset, + end: location().end.offset, + }; + }; + var peg$f9 = function () { + return { + type: 'Literal', + value: parseFloat(text().replaceAll('_', '')), + start: location().start.offset, + end: location().end.offset, + }; + }; + var peg$f10 = function (digits) { + return { + type: 'Literal', + value: '0x' + digits, + start: location().start.offset, + end: location().end.offset, + }; + }; + var peg$f11 = function (chars) { + return { + type: 'Literal', + value: chars.join(''), + start: location().start.offset, + end: location().end.offset, + }; + }; + var peg$f12 = function (val) { + return { + type: 'HexLiteral', + value: val, + start: location().start.offset, + end: location().end.offset, + }; + }; + var peg$f13 = function () { + return text(); + }; + var peg$f14 = function (sequence) { + return sequence; + }; + var peg$f15 = function () { + return ''; + }; + var peg$f16 = function () { + return '\0'; + }; + var peg$f17 = function () { + return '\b'; + }; + var peg$f18 = function () { + return '\f'; + }; + var peg$f19 = function () { + return '\n'; + }; + var peg$f20 = function () { + return '\r'; + }; + var peg$f21 = function () { + return '\t'; + }; + var peg$f22 = function () { + return '\x0B'; + }; + var peg$f23 = function (digits) { + return String.fromCharCode(parseInt(digits, 16)); + }; + var peg$f24 = function (operator, major, minor, patch) { + if (patch === null) { + patch = 0; + } else { + patch = patch[1]; + } + + if (minor === null) { + minor = 0; + } else { + minor = minor[1]; + } + + return { + type: 'VersionLiteral', + operator: operator, + version: + normalizeVersionLiteral(major) + + '.' + + normalizeVersionLiteral(minor) + + '.' + + normalizeVersionLiteral(patch), + start: location().start.offset, + end: location().end.offset, + }; + }; + var peg$f25 = function () { + return { + type: 'ThisExpression', + start: location().start.offset, + end: location().end.offset, + }; + }; + var peg$f26 = function (expression) { + /* + Need to modify the location here so the position takes into account the "(" & ")". + Else "(a, b)" (for eg) results in incorrect position. + */ + expression.start = location().start.offset; + expression.end = location().end.offset; + + return expression; + }; + var peg$f27 = function (elision) { + return { + type: 'ArrayExpression', + elements: optionalList(extractOptional(elision, 0)), + start: location().start.offset, + end: location().end.offset, + }; + }; + var peg$f28 = function (elements) { + return { + type: 'ArrayExpression', + elements: elements, + start: location().start.offset, + end: location().end.offset, + }; + }; + var peg$f29 = function (elements, elision) { + return { + type: 'ArrayExpression', + elements: elements.concat(optionalList(extractOptional(elision, 0))), + start: location().start.offset, + end: location().end.offset, + }; + }; + var peg$f30 = function (elision, element) { + return optionalList(extractOptional(elision, 0)).concat(element); + }; + var peg$f31 = function (head, elision, element) { + return optionalList(extractOptional(elision, 0)).concat(element); + }; + var peg$f32 = function (head, tail) { + return Array.prototype.concat.apply(head, tail); + }; + var peg$f33 = function (commas) { + return filledArray(commas.length + 1, null); + }; + var peg$f34 = function (callee, args) { + return { + type: 'NewExpression', + callee: callee, + arguments: args, + start: location().start.offset, + end: location().end.offset, + }; + }; + var peg$f35 = function (head, property) { + return { + property: property, + computed: true, + start: location().start.offset, + end: location().end.offset, + }; + }; + var peg$f36 = function (head, property) { + return { + property: property, + computed: false, + start: location().start.offset, + end: location().end.offset, + }; + }; + var peg$f37 = function (head, tail) { + return buildTree(head, tail, function (result, element) { + return { + type: 'MemberExpression', + object: result, + property: element.property, + computed: element.computed, + start: location().start.offset, + end: location().end.offset, + }; + }); + }; + var peg$f38 = function (callee) { + return { + type: 'NewExpression', + callee: callee, + arguments: [], + start: location().start.offset, + end: location().end.offset, + }; + }; + var peg$f39 = function (callee, args) { + return { + type: 'CallExpression', + callee: callee, + arguments: args, + start: location().start.offset, + end: location().end.offset, + }; + }; + var peg$f40 = function (head, args) { + return { + type: 'CallExpression', + arguments: args, + start: location().start.offset, + end: location().end.offset, + }; + }; + var peg$f41 = function (head, property) { + return { + type: 'MemberExpression', + property: property, + computed: true, + start: location().start.offset, + end: location().end.offset, + }; + }; + var peg$f42 = function (head, property) { + return { + type: 'MemberExpression', + property: property, + computed: false, + start: location().start.offset, + end: location().end.offset, + }; + }; + var peg$f43 = function (head, tail) { + return buildTree(head, tail, function (result, element) { + element[TYPES_TO_PROPERTY_NAMES[element.type]] = result; + + // Fix the start position of all nodes (ORIGIN: https://github.com/duaraghav8/Solium/issues/104) + // The MemberExpression node's start property doesnt cover the entire previous code + // eg - "ab.cd()[10]" the node.start points to '[' instead of 'a' + // Same issue with CallExpression + + element.start = location().start.offset; + return element; + }); + }; + var peg$f44 = function (args) { + return optionalList(extractOptional(args, 0)); + }; + var peg$f45 = function (args) { + return optionalList(extractOptional(args, 0)); + }; + var peg$f46 = function (head, tail) { + return buildList(head, tail, 3); + }; + var peg$f47 = function (name, value) { + return { + type: 'NameValueAssignment', + name: name, + value: value, + start: location().start.offset, + end: location().end.offset, + }; + }; + var peg$f48 = function (literal, members, parts) { + return { + type: 'Type', + literal: literal.type == 'Identifier' ? literal.name : literal, + members: optionalList(members).map(function (m) { + return m[1].name; + }), + array_parts: optionalList(parts).map(function (p) { + return p[3] != null ? p[3].value : null; + }), + start: location().start.offset, + end: location().end.offset, + }; + }; + var peg$f49 = function (funcName, modifiers, returns, parts) { + return { + type: 'Type', + literal: 'function', + params: funcName.params, + return_params: returns, + array_parts: optionalList(parts).map(function (p) { + return p[3] != null ? p[3].value : null; + }), + modifiers: modifiers, + start: location().start.offset, + end: location().end.offset, + }; + }; + var peg$f50 = function (modifier) { + if (Array.isArray(modifier)) { + return { + type: 'VisibilitySpecifier', + value: modifier[0], + start: location().start.offset, + end: location().end.offset, + }; + } + + return modifier; + }; + var peg$f51 = function (token) { + return { + type: 'StateMutabilitySpecifier', + value: token[0], + start: location().start.offset, + end: location().end.offset, + }; + }; + var peg$f52 = function (constant, visibility, override) { + return { + visibility: visibility ? visibility[0] : null, + isconstant: constant + ? constant[0] === 'constant' + ? true + : false + : false, + isimmutable: constant + ? constant[0] === 'immutable' + ? true + : false + : false, + isoverride: override ? true : false, + }; + }; + var peg$f53 = function (constant, override, visibility) { + return { + visibility: visibility ? visibility[0] : null, + isconstant: constant + ? constant[0] === 'constant' + ? true + : false + : false, + isimmutable: constant + ? constant[0] === 'immutable' + ? true + : false + : false, + isoverride: override ? true : false, + }; + }; + var peg$f54 = function (override, constant, visibility) { + return { + visibility: visibility ? visibility[0] : null, + isconstant: constant + ? constant[0] === 'constant' + ? true + : false + : false, + isimmutable: constant + ? constant[0] === 'immutable' + ? true + : false + : false, + isoverride: override ? true : false, + }; + }; + var peg$f55 = function (override, visibility, constant) { + return { + visibility: visibility ? visibility[0] : null, + isconstant: constant + ? constant[0] === 'constant' + ? true + : false + : false, + isimmutable: constant + ? constant[0] === 'immutable' + ? true + : false + : false, + isoverride: override ? true : false, + }; + }; + var peg$f56 = function (visibility, override, constant) { + return { + visibility: visibility ? visibility[0] : null, + isconstant: constant + ? constant[0] === 'constant' + ? true + : false + : false, + isimmutable: constant + ? constant[0] === 'immutable' + ? true + : false + : false, + isoverride: override ? true : false, + }; + }; + var peg$f57 = function (visibility, constant, override) { + return { + visibility: visibility ? visibility[0] : null, + isconstant: constant + ? constant[0] === 'constant' + ? true + : false + : false, + isimmutable: constant + ? constant[0] === 'immutable' + ? true + : false + : false, + isoverride: override ? true : false, + }; + }; + var peg$f58 = function (expression) { + return expression; + }; + var peg$f59 = function (type, specifiers, id, value) { + return { + type: 'StateVariableDeclaration', + name: id.name, + literal: type, + visibility: specifiers ? specifiers.visibility : null, + is_constant: specifiers ? specifiers.isconstant : false, + is_immutable: specifiers ? specifiers.isimmutable : false, + is_override: specifiers ? specifiers.isoverride : false, + value: value, + start: location().start.offset, + end: location().end.offset, + }; + }; + var peg$f60 = function (type, storage, id) { + return { + type: 'DeclarativeExpression', + name: id.name, + literal: type, + storage_location: storage ? storage[0] : null, + start: location().start.offset, + end: location().end.offset, + }; + }; + var peg$f61 = function (from, to) { + return { + type: 'MappingExpression', + from: from, + to: to, + start: location().start.offset, + end: location().end.offset, + }; + }; + var peg$f62 = function (argument, operator) { + return { + type: 'UpdateExpression', + operator: operator, + argument: argument, + prefix: false, + start: location().start.offset, + end: location().end.offset, + }; + }; + var peg$f63 = function (operator, argument) { + var type = + operator === '++' || operator === '--' + ? 'UpdateExpression' + : 'UnaryExpression'; + + return { + type: type, + operator: operator, + argument: argument, + prefix: true, + start: location().start.offset, + end: location().end.offset, + }; + }; + var peg$f64 = function (head, tail) { + return buildBinaryExpression(head, tail); + }; + var peg$f65 = function (test, consequent, alternate) { + return { + type: 'ConditionalExpression', + test: test, + consequent: consequent, + alternate: alternate, + start: location().start.offset, + end: location().end.offset, + }; + }; + var peg$f66 = function (left, right) { + return { + type: 'AssignmentExpression', + operator: '=', + left: left, + right: right, + start: location().start.offset, + end: location().end.offset, + }; + }; + var peg$f67 = function (left, operator, right) { + return { + type: 'AssignmentExpression', + operator: operator, + left: left, + right: right, + start: location().start.offset, + end: location().end.offset, + }; + }; + var peg$f68 = function (head, tail) { + if (tail.length < 1) { + return head; + } + + // Below is a hack to successfully parse "(, a, , b, c,,,)" so expressions array only contains a, b & c + // Hack is all we require since we're moving to a new parse very soon anyway :) + + var expressions = buildList(head, tail, 3), + finalExpr = []; + + for (var i = 0; i < expressions.length; i++) { + if (expressions[i] !== null) { + finalExpr.push(expressions[i]); + } + } + + return { + type: 'SequenceExpression', + expressions: finalExpr, + start: location().start.offset, + end: location().end.offset, + }; + }; + var peg$f69 = function (head, tail) { + return buildList(head, tail, 1); + }; + var peg$f70 = function (body, tail) { + return { + type: 'IncompleteStatement', + body: text(), + start: location().start.offset, + end: location().end.offset, + }; + }; + var peg$f71 = function (body, tail) { + return { + type: 'IncompleteStatement', + body: text(), + start: location().start.offset, + end: location().end.offset, + }; + }; + var peg$f72 = function (body) { + return { + type: 'BlockStatement', + body: optionalList(extractOptional(body, 0)), + start: location().start.offset, + end: location().end.offset, + }; + }; + var peg$f73 = function (head, tail) { + return buildList(head, tail, 1); + }; + var peg$f74 = function (declarations) { + return { + type: 'VariableDeclaration', + declarations: declarations, + start: location().start.offset, + end: location().end.offset, + }; + }; + var peg$f75 = function (tuple) { + return { + type: 'VariableDeclarationTuple', + declarations: tuple.declarations, + init: tuple.init, + start: location().start.offset, + end: location().end.offset, + }; + }; + var peg$f76 = function (head, tail, init) { + return { + declarations: buildList(head, tail, 1), + init: extractOptional(init, 1), + }; + }; + var peg$f77 = function (id) { + return { + type: 'VariableDeclarator', + id: id.constructor === Array ? id[1] : id, + init: null, + start: location().start.offset, + end: location().end.offset, + }; + }; + var peg$f78 = function (id, init) { + return { + type: 'VariableDeclarator', + id: id.constructor === Array ? id[1] : id, + init: extractOptional(init, 1), + start: location().start.offset, + end: location().end.offset, + }; + }; + var peg$f79 = function (expression) { + return expression; + }; + var peg$f80 = function () { + return { + type: 'EmptyStatement', + start: location().start.offset, + end: location().end.offset, + }; + }; + var peg$f81 = function (expression) { + return { + type: 'ExpressionStatement', + expression: expression, + start: location().start.offset, + end: location().end.offset, + }; + }; + var peg$f82 = function (tryExpression, tail, tryStatement, catchStatements) { + return { + type: 'TryStatement', + tryExpression: tryExpression, + tryStatement: tryStatement, + catchStatements: catchStatements, + }; + }; + var peg$f83 = function ( + tryExpression, + tail, + tryExpressionReturns, + tryStatement, + catchStatements, + ) { + return { + type: 'TryStatement', + tryExpressionReturns: tryExpressionReturns, + tryExpression: tryExpression, + tryStatement: tryStatement, + catchStatements: catchStatements, + }; + }; + var peg$f84 = function (param, body) { + return { + type: 'CatchClause', + param: param, + body: body, + }; + }; + var peg$f85 = function (body) { + return { + type: 'CatchClause', + body: body, + }; + }; + var peg$f86 = function (test, consequent, alternate) { + return { + type: 'IfStatement', + test: test, + consequent: consequent, + alternate: alternate, + start: location().start.offset, + end: location().end.offset, + }; + }; + var peg$f87 = function (test, consequent) { + return { + type: 'IfStatement', + test: test, + consequent: consequent, + alternate: null, + start: location().start.offset, + end: location().end.offset, + }; + }; + var peg$f88 = function (start_version, end_version) { + return { + type: 'PragmaStatement', + start_version: start_version, + end_version: end_version, + start: location().start.offset, + end: location().end.offset, + }; + }; + var peg$f89 = function (featureName) { + return { + type: 'ExperimentalPragmaStatement', + feature: featureName, + start: location().start.offset, + end: location().end.offset, + }; + }; + var peg$f90 = function (version) { + return { + type: 'AbiCoderPragmaStatement', + version: version, + start: location().start.offset, + end: location().end.offset, + }; + }; + var peg$f91 = function (from, alias) { + return { + type: 'ImportStatement', + from: from.value, + symbols: [], + alias: alias != null ? alias[2].name : null, + start: location().start.offset, + end: location().end.offset, + }; + }; + var peg$f92 = function (symbol, from) { + return { + type: 'ImportStatement', + from: from.value, + symbols: [symbol], + start: location().start.offset, + end: location().end.offset, + }; + }; + var peg$f93 = function (symbols, from) { + return { + type: 'ImportStatement', + from: from.value, + symbols: symbols, + start: location().start.offset, + end: location().end.offset, + }; + }; + var peg$f94 = function (library, type) { + return { + type: 'UsingStatement', + library: library.name, + for: type, + start: location().start.offset, + end: location().end.offset, + }; + }; + var peg$f95 = function (library) { + return { + type: 'UsingStatement', + library: library.name, + for: '*', + start: location().start.offset, + end: location().end.offset, + }; + }; + var peg$f96 = function (callexpr) { + return { + type: 'EmitStatement', + expression: callexpr, + start: location().start.offset, + end: location().end.offset, + }; + }; + var peg$f97 = function (callexpr) { + return { + type: 'RevertStatement', + expression: callexpr, + start: location().start.offset, + end: location().end.offset, + }; + }; + var peg$f98 = function (name, alias) { + return { + type: 'Symbol', + name: name.name, + alias: alias != null ? alias[2].name : name.name, + start: location().start.offset, + end: location().end.offset, + }; + }; + var peg$f99 = function (name, alias) { + return { + type: 'Symbol', + name: '*', + alias: alias[2].name, + start: location().start.offset, + end: location().end.offset, + }; + }; + var peg$f100 = function (body, test) { + return { + type: 'DoWhileStatement', + body: body, + test: test, + start: location().start.offset, + end: location().end.offset, + }; + }; + var peg$f101 = function (test, body) { + return { + type: 'WhileStatement', + test: test, + body: body, + start: location().start.offset, + end: location().end.offset, + }; + }; + var peg$f102 = function (init, test, update, body) { + return { + type: 'ForStatement', + init: extractOptional(init, 0), + test: extractOptional(test, 0), + update: extractOptional(update, 0), + body: body, + start: location().start.offset, + end: location().end.offset, + }; + }; + var peg$f103 = function (declarations, test, update, body) { + return { + type: 'ForStatement', + init: { + type: 'VariableDeclaration', + declarations: declarations, + start: location().start.offset, + end: location().end.offset, + }, + test: extractOptional(test, 0), + update: extractOptional(update, 0), + body: body, + start: location().start.offset, + end: location().end.offset, + }; + }; + var peg$f104 = function (body) { + return { + type: 'InlineAssemblyStatement', + body: body, + start: location().start.offset, + end: location().end.offset, + }; + }; + var peg$f105 = function () { + return { + type: 'PlaceholderStatement', + start: location().start.offset, + end: location().end.offset, + }; + }; + var peg$f106 = function () { + return { + type: 'ContinueStatement', + label: null, + start: location().start.offset, + end: location().end.offset, + }; + }; + var peg$f107 = function (label) { + return { + type: 'ContinueStatement', + label: label, + start: location().start.offset, + end: location().end.offset, + }; + }; + var peg$f108 = function () { + return { + type: 'BreakStatement', + label: null, + start: location().start.offset, + end: location().end.offset, + }; + }; + var peg$f109 = function (label) { + return { + type: 'BreakStatement', + label: label, + start: location().start.offset, + end: location().end.offset, + }; + }; + var peg$f110 = function () { + return { + type: 'ReturnStatement', + argument: null, + start: location().start.offset, + end: location().end.offset, + }; + }; + var peg$f111 = function (argument) { + return { + type: 'ReturnStatement', + argument: argument, + start: location().start.offset, + end: location().end.offset, + }; + }; + var peg$f112 = function () { + return { + type: 'ThrowStatement', + start: location().start.offset, + end: location().end.offset, + }; + }; + var peg$f113 = function (abstract, id, is, body) { + return { + type: 'ContractStatement', + name: id.name, + is: is != null ? is.names : [], + body: optionalList(body), + is_abstract: abstract != null, + start: location().start.offset, + end: location().end.offset, + }; + }; + var peg$f114 = function (id, is, body) { + return { + type: 'InterfaceStatement', + name: id.name, + is: is != null ? is.names : [], + body: optionalList(body), + start: location().start.offset, + end: location().end.offset, + }; + }; + var peg$f115 = function (id, is, body) { + return { + type: 'LibraryStatement', + name: id.name, + is: is != null ? is.names : [], + body: optionalList(body), + start: location().start.offset, + end: location().end.offset, + }; + }; + var peg$f116 = function (modifiers) { + return { + type: 'IsStatement', + names: modifiers, + start: location().start.offset, + end: location().end.offset, + }; + }; + var peg$f117 = function (fnname, isanonymous) { + return { + type: 'ErrorDeclaration', + name: fnname.name, + params: fnname.params, + is_anonymous: isanonymous != null, + start: location().start.offset, + end: location().end.offset, + }; + }; + var peg$f118 = function (fnname, isanonymous) { + return { + type: 'EventDeclaration', + name: fnname.name, + params: fnname.params, + is_anonymous: isanonymous != null, + start: location().start.offset, + end: location().end.offset, + }; + }; + var peg$f119 = function (fnname, names, body) { + return { + type: 'ModifierDeclaration', + name: fnname.name, + params: fnname.params, + modifiers: names, + body: body, + start: location().start.offset, + end: location().end.offset, + }; + }; + var peg$f120 = function (fnname, args, returns, body) { + return { + type: 'FunctionDeclaration', + name: fnname.name, + params: fnname.params, + modifiers: args, + returnParams: returns, + body: body, + is_abstract: false, + start: location().start.offset, + end: location().end.offset, + }; + }; + var peg$f121 = function (fnname, args, returns) { + return { + type: 'FunctionDeclaration', + name: fnname.name, + params: fnname.params, + modifiers: args, + returnParams: returns, + body: null, + is_abstract: true, + start: location().start.offset, + end: location().end.offset, + }; + }; + var peg$f122 = function (fnname, args, body) { + return { + type: 'ConstructorDeclaration', + params: fnname.params, + modifiers: args, + body: body, + start: location().start.offset, + end: location().end.offset, + }; + }; + var peg$f123 = function (fnname, args, body) { + return { + type: 'FallbackDeclaration', + modifiers: args, + body: body, + start: location().start.offset, + end: location().end.offset, + }; + }; + var peg$f124 = function (fnname, args, body) { + return { + type: 'ReceiveDeclaration', + modifiers: args, + body: body, + start: location().start.offset, + end: location().end.offset, + }; + }; + var peg$f125 = function (params) { + return params != null ? params[2] : null; + }; + var peg$f126 = function (returnParams) { + if (returnParams == null) { + return null; + } + + return { + type: 'ReturnParams', + params: returnParams, + start: location().start.offset, + end: location().end.offset, + }; + }; + var peg$f127 = function (id, params) { + return { + type: 'FunctionName', + name: id != null ? id.name : null, + params: params != null ? params[2] : [], + start: location().start.offset, + end: location().end.offset, + }; + }; + var peg$f128 = function (id, params) { + return { + type: 'ModifierName', + name: id != null ? id.name : null, + params: params != null ? params[2] : [], + start: location().start.offset, + end: location().end.offset, + }; + }; + var peg$f129 = function (id, params) { + var p = []; + + if (params != null && params[3] != null) { + p = params[3]; + } + + return { + type: 'ModifierArgument', + name: id != null ? id.name : null, + params: p, + start: location().start.offset, + end: location().end.offset, + }; + }; + var peg$f130 = function (alias, modifier) { + if (alias.length > 0) { + var mergedAlias = alias.reduce(function (result, item) { + return result + item[0].name + item[1]; + }, ''); + + modifier.name = mergedAlias + modifier.name; + modifier.start = alias[0][0].start; + } + + return modifier; + }; + var peg$f131 = function (type, isindexed, isconstant, storage, id) { + return { + type: 'InformalParameter', + literal: type, + id: id ? id.name : null, + is_indexed: isindexed != null, + is_constant: isconstant != null, + storage_location: storage ? storage[0] : null, + start: location().start.offset, + end: location().end.offset, + }; + }; + var peg$f132 = function (body) { + return { + type: 'BlockStatement', + body: optionalList(body), + start: location().start.offset, + end: location().end.offset, + }; + }; + var peg$f133 = function (id, head, tail) { + return { + type: 'EnumDeclaration', + name: id.name, + members: buildList(head, tail, 3).map(function (i) { + return i.name; + }), + start: location().start.offset, + end: location().end.offset, + }; + }; + var peg$f134 = function (id, body) { + return { + type: 'StructDeclaration', + name: id.name, + body: body != null ? body.declarations : null, + start: location().start.offset, + end: location().end.offset, + }; + }; + var peg$f135 = function (head, tail) { + return { + type: 'DeclarativeExpressionList', + declarations: buildList(head, tail, 1), + start: location().start.offset, + end: location().end.offset, + }; + }; + var peg$f136 = function (body) { + return { + type: 'Program', + body: optionalList(body), + start: location().start.offset, + end: location().end.offset, + }; + }; + var peg$f137 = function (items) { + return { + type: 'InlineAssemblyBlock', + items: optionalList(extractList(items, 0)), + start: location().start.offset, + end: location().end.offset, + }; + }; + var peg$f138 = function (head, tail) { + return buildList(head, tail, 3); + }; + var peg$f139 = function (id, params, returns, body) { + return { + type: 'AssemblyFunctionDefinition', + name: id.name, + params: params != null ? params : [], + returnParams: returns != null ? returns[2] : [], + body: body, + start: location().start.offset, + end: location().end.offset, + }; + }; + var peg$f140 = function (names, expression) { + if (expression != null) { + expression = expression[3]; + } + + return { + type: 'AssemblyLocalBinding', + names: names, + expression: expression, + start: location().start.offset, + end: location().end.offset, + }; + }; + var peg$f141 = function (names, expression) { + return { + type: 'AssemblyAssignment', + names: names, + expression: expression, + start: location().start.offset, + end: location().end.offset, + }; + }; + var peg$f142 = function () { + return { + type: 'Identifier', + name: 'return', + start: location().start.offset, + end: location().end.offset, + }; + }; + var peg$f143 = function (name, head, tail) { + return { + type: 'FunctionalAssemblyInstruction', + name: name, + arguments: buildList(head, tail, 2), + start: location().start.offset, + end: location().end.offset, + }; + }; + var peg$f144 = function (name) { + return { + type: 'AssemblyLabel', + name: name, + start: location().start.offset, + end: location().end.offset, + }; + }; + var peg$f145 = function (test, body) { + return { + type: 'AssemblyIf', + test: test, + body: body, + start: location().start.offset, + end: location().end.offset, + }; + }; + var peg$f146 = function (init, test, update, body) { + return { + type: 'AssemblyFor', + init: init, + test: test, + update: update, + body: body, + start: location().start.offset, + end: location().end.offset, + }; + }; + + var peg$currPos = 0; + var peg$savedPos = 0; + var peg$posDetailsCache = [{ line: 1, column: 1 }]; + var peg$maxFailPos = 0; + var peg$maxFailExpected = []; + var peg$silentFails = 0; + + var peg$tracer = + 'tracer' in options ? options.tracer : new peg$DefaultTracer(); + + var peg$result; + + if ('startRule' in options) { + if (!(options.startRule in peg$startRuleFunctions)) { + throw new Error( + 'Can\'t start parsing from rule "' + options.startRule + '".', + ); + } + + peg$startRuleFunction = peg$startRuleFunctions[options.startRule]; + } + + function text() { + return input.substring(peg$savedPos, peg$currPos); + } + + function offset() { + return peg$savedPos; + } + + function range() { + return { + source: peg$source, + start: peg$savedPos, + end: peg$currPos, + }; + } + + function location() { + return peg$computeLocation(peg$savedPos, peg$currPos); + } + + function expected(description, location) { + location = + location !== undefined + ? location + : peg$computeLocation(peg$savedPos, peg$currPos); + + throw peg$buildStructuredError( + [peg$otherExpectation(description)], + input.substring(peg$savedPos, peg$currPos), + location, + ); + } + + function error(message, location) { + location = + location !== undefined + ? location + : peg$computeLocation(peg$savedPos, peg$currPos); + + throw peg$buildSimpleError(message, location); + } + + function peg$literalExpectation(text, ignoreCase) { + return { type: 'literal', text: text, ignoreCase: ignoreCase }; + } + + function peg$classExpectation(parts, inverted, ignoreCase) { + return { + type: 'class', + parts: parts, + inverted: inverted, + ignoreCase: ignoreCase, + }; + } + + function peg$anyExpectation() { + return { type: 'any' }; + } + + function peg$endExpectation() { + return { type: 'end' }; + } + + function peg$otherExpectation(description) { + return { type: 'other', description: description }; + } + + function peg$computePosDetails(pos) { + var details = peg$posDetailsCache[pos]; + var p; + + if (details) { + return details; + } else { + p = pos - 1; + while (!peg$posDetailsCache[p]) { + p--; + } + + details = peg$posDetailsCache[p]; + details = { + line: details.line, + column: details.column, + }; + + while (p < pos) { + if (input.charCodeAt(p) === 10) { + details.line++; + details.column = 1; + } else { + details.column++; + } + + p++; + } + + peg$posDetailsCache[pos] = details; + + return details; + } + } + + function peg$computeLocation(startPos, endPos) { + var startPosDetails = peg$computePosDetails(startPos); + var endPosDetails = peg$computePosDetails(endPos); + + return { + source: peg$source, + start: { + offset: startPos, + line: startPosDetails.line, + column: startPosDetails.column, + }, + end: { + offset: endPos, + line: endPosDetails.line, + column: endPosDetails.column, + }, + }; + } + + function peg$fail(expected) { + if (peg$currPos < peg$maxFailPos) { + return; + } + + if (peg$currPos > peg$maxFailPos) { + peg$maxFailPos = peg$currPos; + peg$maxFailExpected = []; + } + + peg$maxFailExpected.push(expected); + } + + function peg$buildSimpleError(message, location) { + return new peg$SyntaxError(message, null, null, location); + } + + function peg$buildStructuredError(expected, found, location) { + return new peg$SyntaxError( + peg$SyntaxError.buildMessage(expected, found), + expected, + found, + location, + ); + } + + function peg$parseStart() { + var startPos = peg$currPos; + var s0, s1, s2, s3; + + peg$tracer.trace({ + type: 'rule.enter', + rule: 'Start', + location: peg$computeLocation(startPos, startPos), + }); + + s0 = peg$currPos; + s1 = peg$parse__(); + s2 = peg$parseProgram(); + s3 = peg$parse__(); + peg$savedPos = s0; + s0 = peg$f0(s2); + + if (s0 !== peg$FAILED) { + peg$tracer.trace({ + type: 'rule.match', + rule: 'Start', + result: s0, + location: peg$computeLocation(startPos, peg$currPos), + }); + } else { + peg$tracer.trace({ + type: 'rule.fail', + rule: 'Start', + location: peg$computeLocation(startPos, startPos), + }); + } + + return s0; + } + + function peg$parseSourceCharacter() { + var startPos = peg$currPos; + var s0; + + peg$tracer.trace({ + type: 'rule.enter', + rule: 'SourceCharacter', + location: peg$computeLocation(startPos, startPos), + }); + + if (input.length > peg$currPos) { + s0 = input.charAt(peg$currPos); + peg$currPos++; + } else { + s0 = peg$FAILED; + if (peg$silentFails === 0) { + peg$fail(peg$e0); + } + } + + if (s0 !== peg$FAILED) { + peg$tracer.trace({ + type: 'rule.match', + rule: 'SourceCharacter', + result: s0, + location: peg$computeLocation(startPos, peg$currPos), + }); + } else { + peg$tracer.trace({ + type: 'rule.fail', + rule: 'SourceCharacter', + location: peg$computeLocation(startPos, startPos), + }); + } + + return s0; + } + + function peg$parseWhiteSpace() { + var startPos = peg$currPos; + var s0, s1; + + peg$tracer.trace({ + type: 'rule.enter', + rule: 'WhiteSpace', + location: peg$computeLocation(startPos, startPos), + }); + + peg$silentFails++; + if (input.charCodeAt(peg$currPos) === 9) { + s0 = peg$c0; + peg$currPos++; + } else { + s0 = peg$FAILED; + if (peg$silentFails === 0) { + peg$fail(peg$e2); + } + } + if (s0 === peg$FAILED) { + if (input.charCodeAt(peg$currPos) === 11) { + s0 = peg$c1; + peg$currPos++; + } else { + s0 = peg$FAILED; + if (peg$silentFails === 0) { + peg$fail(peg$e3); + } + } + if (s0 === peg$FAILED) { + if (input.charCodeAt(peg$currPos) === 12) { + s0 = peg$c2; + peg$currPos++; + } else { + s0 = peg$FAILED; + if (peg$silentFails === 0) { + peg$fail(peg$e4); + } + } + if (s0 === peg$FAILED) { + if (input.charCodeAt(peg$currPos) === 32) { + s0 = peg$c3; + peg$currPos++; + } else { + s0 = peg$FAILED; + if (peg$silentFails === 0) { + peg$fail(peg$e5); + } + } + if (s0 === peg$FAILED) { + if (input.charCodeAt(peg$currPos) === 160) { + s0 = peg$c4; + peg$currPos++; + } else { + s0 = peg$FAILED; + if (peg$silentFails === 0) { + peg$fail(peg$e6); + } + } + if (s0 === peg$FAILED) { + if (input.charCodeAt(peg$currPos) === 65279) { + s0 = peg$c5; + peg$currPos++; + } else { + s0 = peg$FAILED; + if (peg$silentFails === 0) { + peg$fail(peg$e7); + } + } + if (s0 === peg$FAILED) { + s0 = peg$parseZs(); + } + } + } + } + } + } + peg$silentFails--; + if (s0 === peg$FAILED) { + s1 = peg$FAILED; + if (peg$silentFails === 0) { + peg$fail(peg$e1); + } + } + + if (s0 !== peg$FAILED) { + peg$tracer.trace({ + type: 'rule.match', + rule: 'WhiteSpace', + result: s0, + location: peg$computeLocation(startPos, peg$currPos), + }); + } else { + peg$tracer.trace({ + type: 'rule.fail', + rule: 'WhiteSpace', + location: peg$computeLocation(startPos, startPos), + }); + } + + return s0; + } + + function peg$parseLineTerminator() { + var startPos = peg$currPos; + var s0; + + peg$tracer.trace({ + type: 'rule.enter', + rule: 'LineTerminator', + location: peg$computeLocation(startPos, startPos), + }); + + if (peg$r0.test(input.charAt(peg$currPos))) { + s0 = input.charAt(peg$currPos); + peg$currPos++; + } else { + s0 = peg$FAILED; + if (peg$silentFails === 0) { + peg$fail(peg$e8); + } + } + + if (s0 !== peg$FAILED) { + peg$tracer.trace({ + type: 'rule.match', + rule: 'LineTerminator', + result: s0, + location: peg$computeLocation(startPos, peg$currPos), + }); + } else { + peg$tracer.trace({ + type: 'rule.fail', + rule: 'LineTerminator', + location: peg$computeLocation(startPos, startPos), + }); + } + + return s0; + } + + function peg$parseLineTerminatorSequence() { + var startPos = peg$currPos; + var s0, s1; + + peg$tracer.trace({ + type: 'rule.enter', + rule: 'LineTerminatorSequence', + location: peg$computeLocation(startPos, startPos), + }); + + peg$silentFails++; + if (input.charCodeAt(peg$currPos) === 10) { + s0 = peg$c6; + peg$currPos++; + } else { + s0 = peg$FAILED; + if (peg$silentFails === 0) { + peg$fail(peg$e10); + } + } + if (s0 === peg$FAILED) { + if (input.substr(peg$currPos, 2) === peg$c7) { + s0 = peg$c7; + peg$currPos += 2; + } else { + s0 = peg$FAILED; + if (peg$silentFails === 0) { + peg$fail(peg$e11); + } + } + if (s0 === peg$FAILED) { + if (input.charCodeAt(peg$currPos) === 13) { + s0 = peg$c8; + peg$currPos++; + } else { + s0 = peg$FAILED; + if (peg$silentFails === 0) { + peg$fail(peg$e12); + } + } + if (s0 === peg$FAILED) { + if (input.charCodeAt(peg$currPos) === 8232) { + s0 = peg$c9; + peg$currPos++; + } else { + s0 = peg$FAILED; + if (peg$silentFails === 0) { + peg$fail(peg$e13); + } + } + if (s0 === peg$FAILED) { + if (input.charCodeAt(peg$currPos) === 8233) { + s0 = peg$c10; + peg$currPos++; + } else { + s0 = peg$FAILED; + if (peg$silentFails === 0) { + peg$fail(peg$e14); + } + } + } + } + } + } + peg$silentFails--; + if (s0 === peg$FAILED) { + s1 = peg$FAILED; + if (peg$silentFails === 0) { + peg$fail(peg$e9); + } + } + + if (s0 !== peg$FAILED) { + peg$tracer.trace({ + type: 'rule.match', + rule: 'LineTerminatorSequence', + result: s0, + location: peg$computeLocation(startPos, peg$currPos), + }); + } else { + peg$tracer.trace({ + type: 'rule.fail', + rule: 'LineTerminatorSequence', + location: peg$computeLocation(startPos, startPos), + }); + } + + return s0; + } + + function peg$parseComment() { + var startPos = peg$currPos; + var s0, s1; + + peg$tracer.trace({ + type: 'rule.enter', + rule: 'Comment', + location: peg$computeLocation(startPos, startPos), + }); + + peg$silentFails++; + s0 = peg$parseMultiLineComment(); + if (s0 === peg$FAILED) { + s0 = peg$parseSingleLineComment(); + } + peg$silentFails--; + if (s0 === peg$FAILED) { + s1 = peg$FAILED; + if (peg$silentFails === 0) { + peg$fail(peg$e15); + } + } + + if (s0 !== peg$FAILED) { + peg$tracer.trace({ + type: 'rule.match', + rule: 'Comment', + result: s0, + location: peg$computeLocation(startPos, peg$currPos), + }); + } else { + peg$tracer.trace({ + type: 'rule.fail', + rule: 'Comment', + location: peg$computeLocation(startPos, startPos), + }); + } + + return s0; + } + + function peg$parseMultiLineComment() { + var startPos = peg$currPos; + var s0, s1, s2, s3, s4, s5; + + peg$tracer.trace({ + type: 'rule.enter', + rule: 'MultiLineComment', + location: peg$computeLocation(startPos, startPos), + }); + + s0 = peg$currPos; + if (input.substr(peg$currPos, 2) === peg$c11) { + s1 = peg$c11; + peg$currPos += 2; + } else { + s1 = peg$FAILED; + if (peg$silentFails === 0) { + peg$fail(peg$e16); + } + } + if (s1 !== peg$FAILED) { + s2 = []; + s3 = peg$currPos; + s4 = peg$currPos; + peg$silentFails++; + if (input.substr(peg$currPos, 2) === peg$c12) { + s5 = peg$c12; + peg$currPos += 2; + } else { + s5 = peg$FAILED; + if (peg$silentFails === 0) { + peg$fail(peg$e17); + } + } + peg$silentFails--; + if (s5 === peg$FAILED) { + s4 = undefined; + } else { + peg$currPos = s4; + s4 = peg$FAILED; + } + if (s4 !== peg$FAILED) { + s5 = peg$parseSourceCharacter(); + if (s5 !== peg$FAILED) { + s4 = [s4, s5]; + s3 = s4; + } else { + peg$currPos = s3; + s3 = peg$FAILED; + } + } else { + peg$currPos = s3; + s3 = peg$FAILED; + } + while (s3 !== peg$FAILED) { + s2.push(s3); + s3 = peg$currPos; + s4 = peg$currPos; + peg$silentFails++; + if (input.substr(peg$currPos, 2) === peg$c12) { + s5 = peg$c12; + peg$currPos += 2; + } else { + s5 = peg$FAILED; + if (peg$silentFails === 0) { + peg$fail(peg$e17); + } + } + peg$silentFails--; + if (s5 === peg$FAILED) { + s4 = undefined; + } else { + peg$currPos = s4; + s4 = peg$FAILED; + } + if (s4 !== peg$FAILED) { + s5 = peg$parseSourceCharacter(); + if (s5 !== peg$FAILED) { + s4 = [s4, s5]; + s3 = s4; + } else { + peg$currPos = s3; + s3 = peg$FAILED; + } + } else { + peg$currPos = s3; + s3 = peg$FAILED; + } + } + if (input.substr(peg$currPos, 2) === peg$c12) { + s3 = peg$c12; + peg$currPos += 2; + } else { + s3 = peg$FAILED; + if (peg$silentFails === 0) { + peg$fail(peg$e17); + } + } + if (s3 !== peg$FAILED) { + s1 = [s1, s2, s3]; + s0 = s1; + } else { + peg$currPos = s0; + s0 = peg$FAILED; + } + } else { + peg$currPos = s0; + s0 = peg$FAILED; + } + + if (s0 !== peg$FAILED) { + peg$tracer.trace({ + type: 'rule.match', + rule: 'MultiLineComment', + result: s0, + location: peg$computeLocation(startPos, peg$currPos), + }); + } else { + peg$tracer.trace({ + type: 'rule.fail', + rule: 'MultiLineComment', + location: peg$computeLocation(startPos, startPos), + }); + } + + return s0; + } + + function peg$parseMultiLineCommentNoLineTerminator() { + var startPos = peg$currPos; + var s0, s1, s2, s3, s4, s5; + + peg$tracer.trace({ + type: 'rule.enter', + rule: 'MultiLineCommentNoLineTerminator', + location: peg$computeLocation(startPos, startPos), + }); + + s0 = peg$currPos; + if (input.substr(peg$currPos, 2) === peg$c11) { + s1 = peg$c11; + peg$currPos += 2; + } else { + s1 = peg$FAILED; + if (peg$silentFails === 0) { + peg$fail(peg$e16); + } + } + if (s1 !== peg$FAILED) { + s2 = []; + s3 = peg$currPos; + s4 = peg$currPos; + peg$silentFails++; + if (input.substr(peg$currPos, 2) === peg$c12) { + s5 = peg$c12; + peg$currPos += 2; + } else { + s5 = peg$FAILED; + if (peg$silentFails === 0) { + peg$fail(peg$e17); + } + } + if (s5 === peg$FAILED) { + s5 = peg$parseLineTerminator(); + } + peg$silentFails--; + if (s5 === peg$FAILED) { + s4 = undefined; + } else { + peg$currPos = s4; + s4 = peg$FAILED; + } + if (s4 !== peg$FAILED) { + s5 = peg$parseSourceCharacter(); + if (s5 !== peg$FAILED) { + s4 = [s4, s5]; + s3 = s4; + } else { + peg$currPos = s3; + s3 = peg$FAILED; + } + } else { + peg$currPos = s3; + s3 = peg$FAILED; + } + while (s3 !== peg$FAILED) { + s2.push(s3); + s3 = peg$currPos; + s4 = peg$currPos; + peg$silentFails++; + if (input.substr(peg$currPos, 2) === peg$c12) { + s5 = peg$c12; + peg$currPos += 2; + } else { + s5 = peg$FAILED; + if (peg$silentFails === 0) { + peg$fail(peg$e17); + } + } + if (s5 === peg$FAILED) { + s5 = peg$parseLineTerminator(); + } + peg$silentFails--; + if (s5 === peg$FAILED) { + s4 = undefined; + } else { + peg$currPos = s4; + s4 = peg$FAILED; + } + if (s4 !== peg$FAILED) { + s5 = peg$parseSourceCharacter(); + if (s5 !== peg$FAILED) { + s4 = [s4, s5]; + s3 = s4; + } else { + peg$currPos = s3; + s3 = peg$FAILED; + } + } else { + peg$currPos = s3; + s3 = peg$FAILED; + } + } + if (input.substr(peg$currPos, 2) === peg$c12) { + s3 = peg$c12; + peg$currPos += 2; + } else { + s3 = peg$FAILED; + if (peg$silentFails === 0) { + peg$fail(peg$e17); + } + } + if (s3 !== peg$FAILED) { + s1 = [s1, s2, s3]; + s0 = s1; + } else { + peg$currPos = s0; + s0 = peg$FAILED; + } + } else { + peg$currPos = s0; + s0 = peg$FAILED; + } + + if (s0 !== peg$FAILED) { + peg$tracer.trace({ + type: 'rule.match', + rule: 'MultiLineCommentNoLineTerminator', + result: s0, + location: peg$computeLocation(startPos, peg$currPos), + }); + } else { + peg$tracer.trace({ + type: 'rule.fail', + rule: 'MultiLineCommentNoLineTerminator', + location: peg$computeLocation(startPos, startPos), + }); + } + + return s0; + } + + function peg$parseSingleLineComment() { + var startPos = peg$currPos; + var s0, s1, s2, s3, s4, s5; + + peg$tracer.trace({ + type: 'rule.enter', + rule: 'SingleLineComment', + location: peg$computeLocation(startPos, startPos), + }); + + s0 = peg$currPos; + if (input.substr(peg$currPos, 2) === peg$c13) { + s1 = peg$c13; + peg$currPos += 2; + } else { + s1 = peg$FAILED; + if (peg$silentFails === 0) { + peg$fail(peg$e18); + } + } + if (s1 !== peg$FAILED) { + s2 = []; + s3 = peg$currPos; + s4 = peg$currPos; + peg$silentFails++; + s5 = peg$parseLineTerminator(); + peg$silentFails--; + if (s5 === peg$FAILED) { + s4 = undefined; + } else { + peg$currPos = s4; + s4 = peg$FAILED; + } + if (s4 !== peg$FAILED) { + s5 = peg$parseSourceCharacter(); + if (s5 !== peg$FAILED) { + s4 = [s4, s5]; + s3 = s4; + } else { + peg$currPos = s3; + s3 = peg$FAILED; + } + } else { + peg$currPos = s3; + s3 = peg$FAILED; + } + while (s3 !== peg$FAILED) { + s2.push(s3); + s3 = peg$currPos; + s4 = peg$currPos; + peg$silentFails++; + s5 = peg$parseLineTerminator(); + peg$silentFails--; + if (s5 === peg$FAILED) { + s4 = undefined; + } else { + peg$currPos = s4; + s4 = peg$FAILED; + } + if (s4 !== peg$FAILED) { + s5 = peg$parseSourceCharacter(); + if (s5 !== peg$FAILED) { + s4 = [s4, s5]; + s3 = s4; + } else { + peg$currPos = s3; + s3 = peg$FAILED; + } + } else { + peg$currPos = s3; + s3 = peg$FAILED; + } + } + s1 = [s1, s2]; + s0 = s1; + } else { + peg$currPos = s0; + s0 = peg$FAILED; + } + + if (s0 !== peg$FAILED) { + peg$tracer.trace({ + type: 'rule.match', + rule: 'SingleLineComment', + result: s0, + location: peg$computeLocation(startPos, peg$currPos), + }); + } else { + peg$tracer.trace({ + type: 'rule.fail', + rule: 'SingleLineComment', + location: peg$computeLocation(startPos, startPos), + }); + } + + return s0; + } + + function peg$parseIdentifier() { + var startPos = peg$currPos; + var s0, s1, s2; + + peg$tracer.trace({ + type: 'rule.enter', + rule: 'Identifier', + location: peg$computeLocation(startPos, startPos), + }); + + s0 = peg$currPos; + s1 = peg$currPos; + peg$silentFails++; + s2 = peg$parseReservedWord(); + peg$silentFails--; + if (s2 === peg$FAILED) { + s1 = undefined; + } else { + peg$currPos = s1; + s1 = peg$FAILED; + } + if (s1 !== peg$FAILED) { + s2 = peg$parseIdentifierName(); + if (s2 !== peg$FAILED) { + peg$savedPos = s0; + s0 = peg$f1(s2); + } else { + peg$currPos = s0; + s0 = peg$FAILED; + } + } else { + peg$currPos = s0; + s0 = peg$FAILED; + } + + if (s0 !== peg$FAILED) { + peg$tracer.trace({ + type: 'rule.match', + rule: 'Identifier', + result: s0, + location: peg$computeLocation(startPos, peg$currPos), + }); + } else { + peg$tracer.trace({ + type: 'rule.fail', + rule: 'Identifier', + location: peg$computeLocation(startPos, startPos), + }); + } + + return s0; + } + + function peg$parseIdentifierName() { + var startPos = peg$currPos; + var s0, s1, s2, s3; + + peg$tracer.trace({ + type: 'rule.enter', + rule: 'IdentifierName', + location: peg$computeLocation(startPos, startPos), + }); + + peg$silentFails++; + s0 = peg$currPos; + s1 = peg$parseIdentifierStart(); + if (s1 !== peg$FAILED) { + s2 = []; + s3 = peg$parseIdentifierPart(); + while (s3 !== peg$FAILED) { + s2.push(s3); + s3 = peg$parseIdentifierPart(); + } + peg$savedPos = s0; + s0 = peg$f2(s1, s2); + } else { + peg$currPos = s0; + s0 = peg$FAILED; + } + peg$silentFails--; + if (s0 === peg$FAILED) { + s1 = peg$FAILED; + if (peg$silentFails === 0) { + peg$fail(peg$e19); + } + } + + if (s0 !== peg$FAILED) { + peg$tracer.trace({ + type: 'rule.match', + rule: 'IdentifierName', + result: s0, + location: peg$computeLocation(startPos, peg$currPos), + }); + } else { + peg$tracer.trace({ + type: 'rule.fail', + rule: 'IdentifierName', + location: peg$computeLocation(startPos, startPos), + }); + } + + return s0; + } + + function peg$parseIdentifierStart() { + var startPos = peg$currPos; + var s0; + + peg$tracer.trace({ + type: 'rule.enter', + rule: 'IdentifierStart', + location: peg$computeLocation(startPos, startPos), + }); + + s0 = peg$parseUnicodeLetter(); + if (s0 === peg$FAILED) { + if (input.charCodeAt(peg$currPos) === 36) { + s0 = peg$c14; + peg$currPos++; + } else { + s0 = peg$FAILED; + if (peg$silentFails === 0) { + peg$fail(peg$e20); + } + } + if (s0 === peg$FAILED) { + if (input.charCodeAt(peg$currPos) === 95) { + s0 = peg$c15; + peg$currPos++; + } else { + s0 = peg$FAILED; + if (peg$silentFails === 0) { + peg$fail(peg$e21); + } + } + } + } + + if (s0 !== peg$FAILED) { + peg$tracer.trace({ + type: 'rule.match', + rule: 'IdentifierStart', + result: s0, + location: peg$computeLocation(startPos, peg$currPos), + }); + } else { + peg$tracer.trace({ + type: 'rule.fail', + rule: 'IdentifierStart', + location: peg$computeLocation(startPos, startPos), + }); + } + + return s0; + } + + function peg$parseIdentifierPart() { + var startPos = peg$currPos; + var s0; + + peg$tracer.trace({ + type: 'rule.enter', + rule: 'IdentifierPart', + location: peg$computeLocation(startPos, startPos), + }); + + s0 = peg$parseIdentifierStart(); + if (s0 === peg$FAILED) { + s0 = peg$parseNd(); + } + + if (s0 !== peg$FAILED) { + peg$tracer.trace({ + type: 'rule.match', + rule: 'IdentifierPart', + result: s0, + location: peg$computeLocation(startPos, peg$currPos), + }); + } else { + peg$tracer.trace({ + type: 'rule.fail', + rule: 'IdentifierPart', + location: peg$computeLocation(startPos, startPos), + }); + } + + return s0; + } + + function peg$parseAddressPayable() { + var startPos = peg$currPos; + var s0, s1, s2, s3; + + peg$tracer.trace({ + type: 'rule.enter', + rule: 'AddressPayable', + location: peg$computeLocation(startPos, startPos), + }); + + s0 = peg$currPos; + if (input.substr(peg$currPos, 7) === peg$c16) { + s1 = peg$c16; + peg$currPos += 7; + } else { + s1 = peg$FAILED; + if (peg$silentFails === 0) { + peg$fail(peg$e22); + } + } + if (s1 !== peg$FAILED) { + s2 = peg$parse__(); + s3 = peg$parsePayableToken(); + if (s3 !== peg$FAILED) { + peg$savedPos = s0; + s0 = peg$f3(); + } else { + peg$currPos = s0; + s0 = peg$FAILED; + } + } else { + peg$currPos = s0; + s0 = peg$FAILED; + } + + if (s0 !== peg$FAILED) { + peg$tracer.trace({ + type: 'rule.match', + rule: 'AddressPayable', + result: s0, + location: peg$computeLocation(startPos, peg$currPos), + }); + } else { + peg$tracer.trace({ + type: 'rule.fail', + rule: 'AddressPayable', + location: peg$computeLocation(startPos, startPos), + }); + } + + return s0; + } + + function peg$parseUnicodeLetter() { + var startPos = peg$currPos; + var s0; + + peg$tracer.trace({ + type: 'rule.enter', + rule: 'UnicodeLetter', + location: peg$computeLocation(startPos, startPos), + }); + + s0 = peg$parseLu(); + if (s0 === peg$FAILED) { + s0 = peg$parseLl(); + if (s0 === peg$FAILED) { + s0 = peg$parseLt(); + if (s0 === peg$FAILED) { + s0 = peg$parseLm(); + if (s0 === peg$FAILED) { + s0 = peg$parseLo(); + if (s0 === peg$FAILED) { + s0 = peg$parseNl(); + } + } + } + } + } + + if (s0 !== peg$FAILED) { + peg$tracer.trace({ + type: 'rule.match', + rule: 'UnicodeLetter', + result: s0, + location: peg$computeLocation(startPos, peg$currPos), + }); + } else { + peg$tracer.trace({ + type: 'rule.fail', + rule: 'UnicodeLetter', + location: peg$computeLocation(startPos, startPos), + }); + } + + return s0; + } + + function peg$parseUnicodeCombiningMark() { + var startPos = peg$currPos; + var s0; + + peg$tracer.trace({ + type: 'rule.enter', + rule: 'UnicodeCombiningMark', + location: peg$computeLocation(startPos, startPos), + }); + + s0 = peg$parseMn(); + if (s0 === peg$FAILED) { + s0 = peg$parseMc(); + } + + if (s0 !== peg$FAILED) { + peg$tracer.trace({ + type: 'rule.match', + rule: 'UnicodeCombiningMark', + result: s0, + location: peg$computeLocation(startPos, peg$currPos), + }); + } else { + peg$tracer.trace({ + type: 'rule.fail', + rule: 'UnicodeCombiningMark', + location: peg$computeLocation(startPos, startPos), + }); + } + + return s0; + } + + function peg$parseReservedWord() { + var startPos = peg$currPos; + var s0; + + peg$tracer.trace({ + type: 'rule.enter', + rule: 'ReservedWord', + location: peg$computeLocation(startPos, startPos), + }); + + s0 = peg$parseKeyword(); + if (s0 === peg$FAILED) { + s0 = peg$parseNullToken(); + if (s0 === peg$FAILED) { + s0 = peg$parseBooleanLiteral(); + } + } + + if (s0 !== peg$FAILED) { + peg$tracer.trace({ + type: 'rule.match', + rule: 'ReservedWord', + result: s0, + location: peg$computeLocation(startPos, peg$currPos), + }); + } else { + peg$tracer.trace({ + type: 'rule.fail', + rule: 'ReservedWord', + location: peg$computeLocation(startPos, startPos), + }); + } + + return s0; + } + + function peg$parseKeyword() { + var startPos = peg$currPos; + var s0; + + peg$tracer.trace({ + type: 'rule.enter', + rule: 'Keyword', + location: peg$computeLocation(startPos, startPos), + }); + + s0 = peg$parseBreakToken(); + if (s0 === peg$FAILED) { + s0 = peg$parseContinueToken(); + if (s0 === peg$FAILED) { + s0 = peg$parseContractToken(); + if (s0 === peg$FAILED) { + s0 = peg$parseInterfaceToken(); + if (s0 === peg$FAILED) { + s0 = peg$parseDeleteToken(); + if (s0 === peg$FAILED) { + s0 = peg$parseDoToken(); + if (s0 === peg$FAILED) { + s0 = peg$parseElseToken(); + if (s0 === peg$FAILED) { + s0 = peg$parseForToken(); + if (s0 === peg$FAILED) { + s0 = peg$parseFunctionToken(); + if (s0 === peg$FAILED) { + s0 = peg$parseHexToken(); + if (s0 === peg$FAILED) { + s0 = peg$parseIfToken(); + if (s0 === peg$FAILED) { + s0 = peg$parseImportToken(); + if (s0 === peg$FAILED) { + s0 = peg$parseNewToken(); + if (s0 === peg$FAILED) { + s0 = peg$parsePragmaToken(); + if (s0 === peg$FAILED) { + s0 = peg$parseReturnToken(); + if (s0 === peg$FAILED) { + s0 = peg$parseReturnsToken(); + if (s0 === peg$FAILED) { + s0 = peg$parseThisToken(); + if (s0 === peg$FAILED) { + s0 = peg$parseThrowToken(); + if (s0 === peg$FAILED) { + s0 = peg$parseVarToken(); + if (s0 === peg$FAILED) { + s0 = peg$parseWhileToken(); + if (s0 === peg$FAILED) { + s0 = peg$parseTryToken(); + if (s0 === peg$FAILED) { + s0 = peg$parseCatchToken(); + if (s0 === peg$FAILED) { + s0 = peg$parseEmitToken(); + } + } + } + } + } + } + } + } + } + } + } + } + } + } + } + } + } + } + } + } + } + } + + if (s0 !== peg$FAILED) { + peg$tracer.trace({ + type: 'rule.match', + rule: 'Keyword', + result: s0, + location: peg$computeLocation(startPos, peg$currPos), + }); + } else { + peg$tracer.trace({ + type: 'rule.fail', + rule: 'Keyword', + location: peg$computeLocation(startPos, startPos), + }); + } + + return s0; + } + + function peg$parseLiteral() { + var startPos = peg$currPos; + var s0; + + peg$tracer.trace({ + type: 'rule.enter', + rule: 'Literal', + location: peg$computeLocation(startPos, startPos), + }); + + s0 = peg$parseBooleanLiteral(); + if (s0 === peg$FAILED) { + s0 = peg$parseDenominationLiteral(); + if (s0 === peg$FAILED) { + s0 = peg$parseNumericLiteral(); + if (s0 === peg$FAILED) { + s0 = peg$parseHexStringLiteral(); + if (s0 === peg$FAILED) { + s0 = peg$parseStringLiteral(); + if (s0 === peg$FAILED) { + s0 = peg$parseVersionLiteral(); + } + } + } + } + } + + if (s0 !== peg$FAILED) { + peg$tracer.trace({ + type: 'rule.match', + rule: 'Literal', + result: s0, + location: peg$computeLocation(startPos, peg$currPos), + }); + } else { + peg$tracer.trace({ + type: 'rule.fail', + rule: 'Literal', + location: peg$computeLocation(startPos, startPos), + }); + } + + return s0; + } + + function peg$parseBooleanLiteral() { + var startPos = peg$currPos; + var s0, s1; + + peg$tracer.trace({ + type: 'rule.enter', + rule: 'BooleanLiteral', + location: peg$computeLocation(startPos, startPos), + }); + + s0 = peg$currPos; + s1 = peg$parseTrueToken(); + if (s1 !== peg$FAILED) { + peg$savedPos = s0; + s1 = peg$f4(); + } + s0 = s1; + if (s0 === peg$FAILED) { + s0 = peg$currPos; + s1 = peg$parseFalseToken(); + if (s1 !== peg$FAILED) { + peg$savedPos = s0; + s1 = peg$f5(); + } + s0 = s1; + } + + if (s0 !== peg$FAILED) { + peg$tracer.trace({ + type: 'rule.match', + rule: 'BooleanLiteral', + result: s0, + location: peg$computeLocation(startPos, peg$currPos), + }); + } else { + peg$tracer.trace({ + type: 'rule.fail', + rule: 'BooleanLiteral', + location: peg$computeLocation(startPos, startPos), + }); + } + + return s0; + } + + function peg$parseNumericLiteral() { + var startPos = peg$currPos; + var s0, s1, s2, s3; + + peg$tracer.trace({ + type: 'rule.enter', + rule: 'NumericLiteral', + location: peg$computeLocation(startPos, startPos), + }); + + peg$silentFails++; + s0 = peg$currPos; + s1 = peg$parseHexIntegerLiteral(); + if (s1 !== peg$FAILED) { + s2 = peg$currPos; + peg$silentFails++; + s3 = peg$parseIdentifierStart(); + if (s3 === peg$FAILED) { + s3 = peg$parseDecimalDigit(); + } + peg$silentFails--; + if (s3 === peg$FAILED) { + s2 = undefined; + } else { + peg$currPos = s2; + s2 = peg$FAILED; + } + if (s2 !== peg$FAILED) { + peg$savedPos = s0; + s0 = peg$f6(s1); + } else { + peg$currPos = s0; + s0 = peg$FAILED; + } + } else { + peg$currPos = s0; + s0 = peg$FAILED; + } + if (s0 === peg$FAILED) { + s0 = peg$currPos; + s1 = peg$parseDecimalLiteral(); + if (s1 !== peg$FAILED) { + s2 = peg$currPos; + peg$silentFails++; + s3 = peg$parseIdentifierStart(); + if (s3 === peg$FAILED) { + s3 = peg$parseDecimalDigit(); + } + peg$silentFails--; + if (s3 === peg$FAILED) { + s2 = undefined; + } else { + peg$currPos = s2; + s2 = peg$FAILED; + } + if (s2 !== peg$FAILED) { + peg$savedPos = s0; + s0 = peg$f6(s1); + } else { + peg$currPos = s0; + s0 = peg$FAILED; + } + } else { + peg$currPos = s0; + s0 = peg$FAILED; + } + } + peg$silentFails--; + if (s0 === peg$FAILED) { + s1 = peg$FAILED; + if (peg$silentFails === 0) { + peg$fail(peg$e23); + } + } + + if (s0 !== peg$FAILED) { + peg$tracer.trace({ + type: 'rule.match', + rule: 'NumericLiteral', + result: s0, + location: peg$computeLocation(startPos, peg$currPos), + }); + } else { + peg$tracer.trace({ + type: 'rule.fail', + rule: 'NumericLiteral', + location: peg$computeLocation(startPos, startPos), + }); + } + + return s0; + } + + function peg$parseDenomination() { + var startPos = peg$currPos; + var s0, s1; + + peg$tracer.trace({ + type: 'rule.enter', + rule: 'Denomination', + location: peg$computeLocation(startPos, startPos), + }); + + s0 = peg$currPos; + s1 = peg$parseWeiToken(); + if (s1 === peg$FAILED) { + s1 = peg$parseSzaboToken(); + if (s1 === peg$FAILED) { + s1 = peg$parseFinneyToken(); + if (s1 === peg$FAILED) { + s1 = peg$parseEtherToken(); + if (s1 === peg$FAILED) { + s1 = peg$parseSecondsToken(); + if (s1 === peg$FAILED) { + s1 = peg$parseMinutesToken(); + if (s1 === peg$FAILED) { + s1 = peg$parseHoursToken(); + if (s1 === peg$FAILED) { + s1 = peg$parseDaysToken(); + if (s1 === peg$FAILED) { + s1 = peg$parseWeeksToken(); + if (s1 === peg$FAILED) { + s1 = peg$parseYearsToken(); + } + } + } + } + } + } + } + } + } + if (s1 !== peg$FAILED) { + peg$savedPos = s0; + s1 = peg$f7(s1); + } + s0 = s1; + + if (s0 !== peg$FAILED) { + peg$tracer.trace({ + type: 'rule.match', + rule: 'Denomination', + result: s0, + location: peg$computeLocation(startPos, peg$currPos), + }); + } else { + peg$tracer.trace({ + type: 'rule.fail', + rule: 'Denomination', + location: peg$computeLocation(startPos, startPos), + }); + } + + return s0; + } + + function peg$parseDenominationLiteral() { + var startPos = peg$currPos; + var s0, s1, s2, s3; + + peg$tracer.trace({ + type: 'rule.enter', + rule: 'DenominationLiteral', + location: peg$computeLocation(startPos, startPos), + }); + + s0 = peg$currPos; + s1 = peg$parseNumericLiteral(); + if (s1 !== peg$FAILED) { + s2 = peg$parse__(); + s3 = peg$parseDenomination(); + if (s3 !== peg$FAILED) { + peg$savedPos = s0; + s0 = peg$f8(s1, s3); + } else { + peg$currPos = s0; + s0 = peg$FAILED; + } + } else { + peg$currPos = s0; + s0 = peg$FAILED; + } + + if (s0 !== peg$FAILED) { + peg$tracer.trace({ + type: 'rule.match', + rule: 'DenominationLiteral', + result: s0, + location: peg$computeLocation(startPos, peg$currPos), + }); + } else { + peg$tracer.trace({ + type: 'rule.fail', + rule: 'DenominationLiteral', + location: peg$computeLocation(startPos, startPos), + }); + } + + return s0; + } + + function peg$parseDecimalLiteral() { + var startPos = peg$currPos; + var s0, s1, s2, s3, s4; + + peg$tracer.trace({ + type: 'rule.enter', + rule: 'DecimalLiteral', + location: peg$computeLocation(startPos, startPos), + }); + + s0 = peg$currPos; + s1 = peg$parseDecimalIntegerLiteral(); + if (s1 !== peg$FAILED) { + if (input.charCodeAt(peg$currPos) === 46) { + s2 = peg$c17; + peg$currPos++; + } else { + s2 = peg$FAILED; + if (peg$silentFails === 0) { + peg$fail(peg$e24); + } + } + if (s2 !== peg$FAILED) { + s3 = []; + s4 = peg$parseDecimalDigit(); + while (s4 !== peg$FAILED) { + s3.push(s4); + s4 = peg$parseDecimalDigit(); + } + s4 = peg$parseExponentPart(); + if (s4 === peg$FAILED) { + s4 = null; + } + peg$savedPos = s0; + s0 = peg$f9(); + } else { + peg$currPos = s0; + s0 = peg$FAILED; + } + } else { + peg$currPos = s0; + s0 = peg$FAILED; + } + if (s0 === peg$FAILED) { + s0 = peg$currPos; + if (input.charCodeAt(peg$currPos) === 46) { + s1 = peg$c17; + peg$currPos++; + } else { + s1 = peg$FAILED; + if (peg$silentFails === 0) { + peg$fail(peg$e24); + } + } + if (s1 !== peg$FAILED) { + s2 = []; + s3 = peg$parseDecimalDigit(); + if (s3 !== peg$FAILED) { + while (s3 !== peg$FAILED) { + s2.push(s3); + s3 = peg$parseDecimalDigit(); + } + } else { + s2 = peg$FAILED; + } + if (s2 !== peg$FAILED) { + s3 = peg$parseExponentPart(); + if (s3 === peg$FAILED) { + s3 = null; + } + peg$savedPos = s0; + s0 = peg$f9(); + } else { + peg$currPos = s0; + s0 = peg$FAILED; + } + } else { + peg$currPos = s0; + s0 = peg$FAILED; + } + if (s0 === peg$FAILED) { + s0 = peg$currPos; + s1 = peg$parseDecimalIntegerLiteral(); + if (s1 !== peg$FAILED) { + s2 = peg$parseExponentPart(); + if (s2 === peg$FAILED) { + s2 = null; + } + peg$savedPos = s0; + s0 = peg$f9(); + } else { + peg$currPos = s0; + s0 = peg$FAILED; + } + } + } + + if (s0 !== peg$FAILED) { + peg$tracer.trace({ + type: 'rule.match', + rule: 'DecimalLiteral', + result: s0, + location: peg$computeLocation(startPos, peg$currPos), + }); + } else { + peg$tracer.trace({ + type: 'rule.fail', + rule: 'DecimalLiteral', + location: peg$computeLocation(startPos, startPos), + }); + } + + return s0; + } + + function peg$parseDecimalIntegerLiteral() { + var startPos = peg$currPos; + var s0, s1, s2, s3; + + peg$tracer.trace({ + type: 'rule.enter', + rule: 'DecimalIntegerLiteral', + location: peg$computeLocation(startPos, startPos), + }); + + if (input.charCodeAt(peg$currPos) === 48) { + s0 = peg$c18; + peg$currPos++; + } else { + s0 = peg$FAILED; + if (peg$silentFails === 0) { + peg$fail(peg$e25); + } + } + if (s0 === peg$FAILED) { + s0 = peg$currPos; + s1 = peg$parseNonZeroDigit(); + if (s1 !== peg$FAILED) { + s2 = []; + s3 = peg$parseDecimalDigit(); + while (s3 !== peg$FAILED) { + s2.push(s3); + s3 = peg$parseDecimalDigit(); + } + s1 = [s1, s2]; + s0 = s1; + } else { + peg$currPos = s0; + s0 = peg$FAILED; + } + } + + if (s0 !== peg$FAILED) { + peg$tracer.trace({ + type: 'rule.match', + rule: 'DecimalIntegerLiteral', + result: s0, + location: peg$computeLocation(startPos, peg$currPos), + }); + } else { + peg$tracer.trace({ + type: 'rule.fail', + rule: 'DecimalIntegerLiteral', + location: peg$computeLocation(startPos, startPos), + }); + } + + return s0; + } + + function peg$parseDecimalDigit() { + var startPos = peg$currPos; + var s0; + + peg$tracer.trace({ + type: 'rule.enter', + rule: 'DecimalDigit', + location: peg$computeLocation(startPos, startPos), + }); + + if (peg$r1.test(input.charAt(peg$currPos))) { + s0 = input.charAt(peg$currPos); + peg$currPos++; + } else { + s0 = peg$FAILED; + if (peg$silentFails === 0) { + peg$fail(peg$e26); + } + } + + if (s0 !== peg$FAILED) { + peg$tracer.trace({ + type: 'rule.match', + rule: 'DecimalDigit', + result: s0, + location: peg$computeLocation(startPos, peg$currPos), + }); + } else { + peg$tracer.trace({ + type: 'rule.fail', + rule: 'DecimalDigit', + location: peg$computeLocation(startPos, startPos), + }); + } + + return s0; + } + + function peg$parseNonZeroDigit() { + var startPos = peg$currPos; + var s0; + + peg$tracer.trace({ + type: 'rule.enter', + rule: 'NonZeroDigit', + location: peg$computeLocation(startPos, startPos), + }); + + if (peg$r2.test(input.charAt(peg$currPos))) { + s0 = input.charAt(peg$currPos); + peg$currPos++; + } else { + s0 = peg$FAILED; + if (peg$silentFails === 0) { + peg$fail(peg$e27); + } + } + + if (s0 !== peg$FAILED) { + peg$tracer.trace({ + type: 'rule.match', + rule: 'NonZeroDigit', + result: s0, + location: peg$computeLocation(startPos, peg$currPos), + }); + } else { + peg$tracer.trace({ + type: 'rule.fail', + rule: 'NonZeroDigit', + location: peg$computeLocation(startPos, startPos), + }); + } + + return s0; + } + + function peg$parseExponentPart() { + var startPos = peg$currPos; + var s0, s1, s2; + + peg$tracer.trace({ + type: 'rule.enter', + rule: 'ExponentPart', + location: peg$computeLocation(startPos, startPos), + }); + + s0 = peg$currPos; + s1 = peg$parseExponentIndicator(); + if (s1 !== peg$FAILED) { + s2 = peg$parseSignedInteger(); + if (s2 !== peg$FAILED) { + s1 = [s1, s2]; + s0 = s1; + } else { + peg$currPos = s0; + s0 = peg$FAILED; + } + } else { + peg$currPos = s0; + s0 = peg$FAILED; + } + + if (s0 !== peg$FAILED) { + peg$tracer.trace({ + type: 'rule.match', + rule: 'ExponentPart', + result: s0, + location: peg$computeLocation(startPos, peg$currPos), + }); + } else { + peg$tracer.trace({ + type: 'rule.fail', + rule: 'ExponentPart', + location: peg$computeLocation(startPos, startPos), + }); + } + + return s0; + } + + function peg$parseExponentIndicator() { + var startPos = peg$currPos; + var s0; + + peg$tracer.trace({ + type: 'rule.enter', + rule: 'ExponentIndicator', + location: peg$computeLocation(startPos, startPos), + }); + + if (input.substr(peg$currPos, 1).toLowerCase() === peg$c19) { + s0 = input.charAt(peg$currPos); + peg$currPos++; + } else { + s0 = peg$FAILED; + if (peg$silentFails === 0) { + peg$fail(peg$e28); + } + } + + if (s0 !== peg$FAILED) { + peg$tracer.trace({ + type: 'rule.match', + rule: 'ExponentIndicator', + result: s0, + location: peg$computeLocation(startPos, peg$currPos), + }); + } else { + peg$tracer.trace({ + type: 'rule.fail', + rule: 'ExponentIndicator', + location: peg$computeLocation(startPos, startPos), + }); + } + + return s0; + } + + function peg$parseSignedInteger() { + var startPos = peg$currPos; + var s0, s1, s2, s3; + + peg$tracer.trace({ + type: 'rule.enter', + rule: 'SignedInteger', + location: peg$computeLocation(startPos, startPos), + }); + + s0 = peg$currPos; + if (peg$r3.test(input.charAt(peg$currPos))) { + s1 = input.charAt(peg$currPos); + peg$currPos++; + } else { + s1 = peg$FAILED; + if (peg$silentFails === 0) { + peg$fail(peg$e29); + } + } + if (s1 === peg$FAILED) { + s1 = null; + } + s2 = []; + s3 = peg$parseDecimalDigit(); + if (s3 !== peg$FAILED) { + while (s3 !== peg$FAILED) { + s2.push(s3); + s3 = peg$parseDecimalDigit(); + } + } else { + s2 = peg$FAILED; + } + if (s2 !== peg$FAILED) { + s1 = [s1, s2]; + s0 = s1; + } else { + peg$currPos = s0; + s0 = peg$FAILED; + } + + if (s0 !== peg$FAILED) { + peg$tracer.trace({ + type: 'rule.match', + rule: 'SignedInteger', + result: s0, + location: peg$computeLocation(startPos, peg$currPos), + }); + } else { + peg$tracer.trace({ + type: 'rule.fail', + rule: 'SignedInteger', + location: peg$computeLocation(startPos, startPos), + }); + } + + return s0; + } + + function peg$parseHexIntegerLiteral() { + var startPos = peg$currPos; + var s0, s1, s2, s3, s4; + + peg$tracer.trace({ + type: 'rule.enter', + rule: 'HexIntegerLiteral', + location: peg$computeLocation(startPos, startPos), + }); + + s0 = peg$currPos; + if (input.substr(peg$currPos, 2).toLowerCase() === peg$c20) { + s1 = input.substr(peg$currPos, 2); + peg$currPos += 2; + } else { + s1 = peg$FAILED; + if (peg$silentFails === 0) { + peg$fail(peg$e30); + } + } + if (s1 !== peg$FAILED) { + s2 = peg$currPos; + s3 = []; + s4 = peg$parseHexDigit(); + if (s4 !== peg$FAILED) { + while (s4 !== peg$FAILED) { + s3.push(s4); + s4 = peg$parseHexDigit(); + } + } else { + s3 = peg$FAILED; + } + if (s3 !== peg$FAILED) { + s2 = input.substring(s2, peg$currPos); + } else { + s2 = s3; + } + if (s2 !== peg$FAILED) { + peg$savedPos = s0; + s0 = peg$f10(s2); + } else { + peg$currPos = s0; + s0 = peg$FAILED; + } + } else { + peg$currPos = s0; + s0 = peg$FAILED; + } + + if (s0 !== peg$FAILED) { + peg$tracer.trace({ + type: 'rule.match', + rule: 'HexIntegerLiteral', + result: s0, + location: peg$computeLocation(startPos, peg$currPos), + }); + } else { + peg$tracer.trace({ + type: 'rule.fail', + rule: 'HexIntegerLiteral', + location: peg$computeLocation(startPos, startPos), + }); + } + + return s0; + } + + function peg$parseHexDigit() { + var startPos = peg$currPos; + var s0; + + peg$tracer.trace({ + type: 'rule.enter', + rule: 'HexDigit', + location: peg$computeLocation(startPos, startPos), + }); + + if (peg$r4.test(input.charAt(peg$currPos))) { + s0 = input.charAt(peg$currPos); + peg$currPos++; + } else { + s0 = peg$FAILED; + if (peg$silentFails === 0) { + peg$fail(peg$e31); + } + } + + if (s0 !== peg$FAILED) { + peg$tracer.trace({ + type: 'rule.match', + rule: 'HexDigit', + result: s0, + location: peg$computeLocation(startPos, peg$currPos), + }); + } else { + peg$tracer.trace({ + type: 'rule.fail', + rule: 'HexDigit', + location: peg$computeLocation(startPos, startPos), + }); + } + + return s0; + } + + function peg$parseStringLiteral() { + var startPos = peg$currPos; + var s0, s1, s2, s3; + + peg$tracer.trace({ + type: 'rule.enter', + rule: 'StringLiteral', + location: peg$computeLocation(startPos, startPos), + }); + + peg$silentFails++; + s0 = peg$currPos; + if (input.charCodeAt(peg$currPos) === 34) { + s1 = peg$c21; + peg$currPos++; + } else { + s1 = peg$FAILED; + if (peg$silentFails === 0) { + peg$fail(peg$e33); + } + } + if (s1 !== peg$FAILED) { + s2 = []; + s3 = peg$parseDoubleStringCharacter(); + while (s3 !== peg$FAILED) { + s2.push(s3); + s3 = peg$parseDoubleStringCharacter(); + } + if (input.charCodeAt(peg$currPos) === 34) { + s3 = peg$c21; + peg$currPos++; + } else { + s3 = peg$FAILED; + if (peg$silentFails === 0) { + peg$fail(peg$e33); + } + } + if (s3 !== peg$FAILED) { + peg$savedPos = s0; + s0 = peg$f11(s2); + } else { + peg$currPos = s0; + s0 = peg$FAILED; + } + } else { + peg$currPos = s0; + s0 = peg$FAILED; + } + if (s0 === peg$FAILED) { + s0 = peg$currPos; + if (input.charCodeAt(peg$currPos) === 39) { + s1 = peg$c22; + peg$currPos++; + } else { + s1 = peg$FAILED; + if (peg$silentFails === 0) { + peg$fail(peg$e34); + } + } + if (s1 !== peg$FAILED) { + s2 = []; + s3 = peg$parseSingleStringCharacter(); + while (s3 !== peg$FAILED) { + s2.push(s3); + s3 = peg$parseSingleStringCharacter(); + } + if (input.charCodeAt(peg$currPos) === 39) { + s3 = peg$c22; + peg$currPos++; + } else { + s3 = peg$FAILED; + if (peg$silentFails === 0) { + peg$fail(peg$e34); + } + } + if (s3 !== peg$FAILED) { + peg$savedPos = s0; + s0 = peg$f11(s2); + } else { + peg$currPos = s0; + s0 = peg$FAILED; + } + } else { + peg$currPos = s0; + s0 = peg$FAILED; + } + } + peg$silentFails--; + if (s0 === peg$FAILED) { + s1 = peg$FAILED; + if (peg$silentFails === 0) { + peg$fail(peg$e32); + } + } + + if (s0 !== peg$FAILED) { + peg$tracer.trace({ + type: 'rule.match', + rule: 'StringLiteral', + result: s0, + location: peg$computeLocation(startPos, peg$currPos), + }); + } else { + peg$tracer.trace({ + type: 'rule.fail', + rule: 'StringLiteral', + location: peg$computeLocation(startPos, startPos), + }); + } + + return s0; + } + + function peg$parseHexStringLiteral() { + var startPos = peg$currPos; + var s0, s1, s2; + + peg$tracer.trace({ + type: 'rule.enter', + rule: 'HexStringLiteral', + location: peg$computeLocation(startPos, startPos), + }); + + s0 = peg$currPos; + s1 = peg$parseHexToken(); + if (s1 !== peg$FAILED) { + s2 = peg$parseStringLiteral(); + if (s2 !== peg$FAILED) { + peg$savedPos = s0; + s0 = peg$f12(s2); + } else { + peg$currPos = s0; + s0 = peg$FAILED; + } + } else { + peg$currPos = s0; + s0 = peg$FAILED; + } + + if (s0 !== peg$FAILED) { + peg$tracer.trace({ + type: 'rule.match', + rule: 'HexStringLiteral', + result: s0, + location: peg$computeLocation(startPos, peg$currPos), + }); + } else { + peg$tracer.trace({ + type: 'rule.fail', + rule: 'HexStringLiteral', + location: peg$computeLocation(startPos, startPos), + }); + } + + return s0; + } + + function peg$parseDoubleStringCharacter() { + var startPos = peg$currPos; + var s0, s1, s2; + + peg$tracer.trace({ + type: 'rule.enter', + rule: 'DoubleStringCharacter', + location: peg$computeLocation(startPos, startPos), + }); + + s0 = peg$currPos; + s1 = peg$currPos; + peg$silentFails++; + if (input.charCodeAt(peg$currPos) === 34) { + s2 = peg$c21; + peg$currPos++; + } else { + s2 = peg$FAILED; + if (peg$silentFails === 0) { + peg$fail(peg$e33); + } + } + if (s2 === peg$FAILED) { + if (input.charCodeAt(peg$currPos) === 92) { + s2 = peg$c23; + peg$currPos++; + } else { + s2 = peg$FAILED; + if (peg$silentFails === 0) { + peg$fail(peg$e35); + } + } + if (s2 === peg$FAILED) { + s2 = peg$parseLineTerminator(); + } + } + peg$silentFails--; + if (s2 === peg$FAILED) { + s1 = undefined; + } else { + peg$currPos = s1; + s1 = peg$FAILED; + } + if (s1 !== peg$FAILED) { + s2 = peg$parseSourceCharacter(); + if (s2 !== peg$FAILED) { + peg$savedPos = s0; + s0 = peg$f13(); + } else { + peg$currPos = s0; + s0 = peg$FAILED; + } + } else { + peg$currPos = s0; + s0 = peg$FAILED; + } + if (s0 === peg$FAILED) { + s0 = peg$currPos; + if (input.charCodeAt(peg$currPos) === 92) { + s1 = peg$c23; + peg$currPos++; + } else { + s1 = peg$FAILED; + if (peg$silentFails === 0) { + peg$fail(peg$e35); + } + } + if (s1 !== peg$FAILED) { + s2 = peg$parseEscapeSequence(); + if (s2 !== peg$FAILED) { + peg$savedPos = s0; + s0 = peg$f14(s2); + } else { + peg$currPos = s0; + s0 = peg$FAILED; + } + } else { + peg$currPos = s0; + s0 = peg$FAILED; + } + if (s0 === peg$FAILED) { + s0 = peg$parseLineContinuation(); + } + } + + if (s0 !== peg$FAILED) { + peg$tracer.trace({ + type: 'rule.match', + rule: 'DoubleStringCharacter', + result: s0, + location: peg$computeLocation(startPos, peg$currPos), + }); + } else { + peg$tracer.trace({ + type: 'rule.fail', + rule: 'DoubleStringCharacter', + location: peg$computeLocation(startPos, startPos), + }); + } + + return s0; + } + + function peg$parseSingleStringCharacter() { + var startPos = peg$currPos; + var s0, s1, s2; + + peg$tracer.trace({ + type: 'rule.enter', + rule: 'SingleStringCharacter', + location: peg$computeLocation(startPos, startPos), + }); + + s0 = peg$currPos; + s1 = peg$currPos; + peg$silentFails++; + if (input.charCodeAt(peg$currPos) === 39) { + s2 = peg$c22; + peg$currPos++; + } else { + s2 = peg$FAILED; + if (peg$silentFails === 0) { + peg$fail(peg$e34); + } + } + if (s2 === peg$FAILED) { + if (input.charCodeAt(peg$currPos) === 92) { + s2 = peg$c23; + peg$currPos++; + } else { + s2 = peg$FAILED; + if (peg$silentFails === 0) { + peg$fail(peg$e35); + } + } + if (s2 === peg$FAILED) { + s2 = peg$parseLineTerminator(); + } + } + peg$silentFails--; + if (s2 === peg$FAILED) { + s1 = undefined; + } else { + peg$currPos = s1; + s1 = peg$FAILED; + } + if (s1 !== peg$FAILED) { + s2 = peg$parseSourceCharacter(); + if (s2 !== peg$FAILED) { + peg$savedPos = s0; + s0 = peg$f13(); + } else { + peg$currPos = s0; + s0 = peg$FAILED; + } + } else { + peg$currPos = s0; + s0 = peg$FAILED; + } + if (s0 === peg$FAILED) { + s0 = peg$currPos; + if (input.charCodeAt(peg$currPos) === 92) { + s1 = peg$c23; + peg$currPos++; + } else { + s1 = peg$FAILED; + if (peg$silentFails === 0) { + peg$fail(peg$e35); + } + } + if (s1 !== peg$FAILED) { + s2 = peg$parseEscapeSequence(); + if (s2 !== peg$FAILED) { + peg$savedPos = s0; + s0 = peg$f14(s2); + } else { + peg$currPos = s0; + s0 = peg$FAILED; + } + } else { + peg$currPos = s0; + s0 = peg$FAILED; + } + if (s0 === peg$FAILED) { + s0 = peg$parseLineContinuation(); + } + } + + if (s0 !== peg$FAILED) { + peg$tracer.trace({ + type: 'rule.match', + rule: 'SingleStringCharacter', + result: s0, + location: peg$computeLocation(startPos, peg$currPos), + }); + } else { + peg$tracer.trace({ + type: 'rule.fail', + rule: 'SingleStringCharacter', + location: peg$computeLocation(startPos, startPos), + }); + } + + return s0; + } + + function peg$parseLineContinuation() { + var startPos = peg$currPos; + var s0, s1, s2; + + peg$tracer.trace({ + type: 'rule.enter', + rule: 'LineContinuation', + location: peg$computeLocation(startPos, startPos), + }); + + s0 = peg$currPos; + if (input.charCodeAt(peg$currPos) === 92) { + s1 = peg$c23; + peg$currPos++; + } else { + s1 = peg$FAILED; + if (peg$silentFails === 0) { + peg$fail(peg$e35); + } + } + if (s1 !== peg$FAILED) { + s2 = peg$parseLineTerminatorSequence(); + if (s2 !== peg$FAILED) { + peg$savedPos = s0; + s0 = peg$f15(); + } else { + peg$currPos = s0; + s0 = peg$FAILED; + } + } else { + peg$currPos = s0; + s0 = peg$FAILED; + } + + if (s0 !== peg$FAILED) { + peg$tracer.trace({ + type: 'rule.match', + rule: 'LineContinuation', + result: s0, + location: peg$computeLocation(startPos, peg$currPos), + }); + } else { + peg$tracer.trace({ + type: 'rule.fail', + rule: 'LineContinuation', + location: peg$computeLocation(startPos, startPos), + }); + } + + return s0; + } + + function peg$parseEscapeSequence() { + var startPos = peg$currPos; + var s0, s1, s2, s3; + + peg$tracer.trace({ + type: 'rule.enter', + rule: 'EscapeSequence', + location: peg$computeLocation(startPos, startPos), + }); + + s0 = peg$parseCharacterEscapeSequence(); + if (s0 === peg$FAILED) { + s0 = peg$currPos; + if (input.charCodeAt(peg$currPos) === 48) { + s1 = peg$c18; + peg$currPos++; + } else { + s1 = peg$FAILED; + if (peg$silentFails === 0) { + peg$fail(peg$e25); + } + } + if (s1 !== peg$FAILED) { + s2 = peg$currPos; + peg$silentFails++; + s3 = peg$parseDecimalDigit(); + peg$silentFails--; + if (s3 === peg$FAILED) { + s2 = undefined; + } else { + peg$currPos = s2; + s2 = peg$FAILED; + } + if (s2 !== peg$FAILED) { + peg$savedPos = s0; + s0 = peg$f16(); + } else { + peg$currPos = s0; + s0 = peg$FAILED; + } + } else { + peg$currPos = s0; + s0 = peg$FAILED; + } + if (s0 === peg$FAILED) { + s0 = peg$parseHexEscapeSequence(); + if (s0 === peg$FAILED) { + s0 = peg$parseUnicodeEscapeSequence(); + } + } + } + + if (s0 !== peg$FAILED) { + peg$tracer.trace({ + type: 'rule.match', + rule: 'EscapeSequence', + result: s0, + location: peg$computeLocation(startPos, peg$currPos), + }); + } else { + peg$tracer.trace({ + type: 'rule.fail', + rule: 'EscapeSequence', + location: peg$computeLocation(startPos, startPos), + }); + } + + return s0; + } + + function peg$parseCharacterEscapeSequence() { + var startPos = peg$currPos; + var s0; + + peg$tracer.trace({ + type: 'rule.enter', + rule: 'CharacterEscapeSequence', + location: peg$computeLocation(startPos, startPos), + }); + + s0 = peg$parseSingleEscapeCharacter(); + if (s0 === peg$FAILED) { + s0 = peg$parseNonEscapeCharacter(); + } + + if (s0 !== peg$FAILED) { + peg$tracer.trace({ + type: 'rule.match', + rule: 'CharacterEscapeSequence', + result: s0, + location: peg$computeLocation(startPos, peg$currPos), + }); + } else { + peg$tracer.trace({ + type: 'rule.fail', + rule: 'CharacterEscapeSequence', + location: peg$computeLocation(startPos, startPos), + }); + } + + return s0; + } + + function peg$parseSingleEscapeCharacter() { + var startPos = peg$currPos; + var s0, s1; + + peg$tracer.trace({ + type: 'rule.enter', + rule: 'SingleEscapeCharacter', + location: peg$computeLocation(startPos, startPos), + }); + + if (input.charCodeAt(peg$currPos) === 39) { + s0 = peg$c22; + peg$currPos++; + } else { + s0 = peg$FAILED; + if (peg$silentFails === 0) { + peg$fail(peg$e34); + } + } + if (s0 === peg$FAILED) { + if (input.charCodeAt(peg$currPos) === 34) { + s0 = peg$c21; + peg$currPos++; + } else { + s0 = peg$FAILED; + if (peg$silentFails === 0) { + peg$fail(peg$e33); + } + } + if (s0 === peg$FAILED) { + if (input.charCodeAt(peg$currPos) === 92) { + s0 = peg$c23; + peg$currPos++; + } else { + s0 = peg$FAILED; + if (peg$silentFails === 0) { + peg$fail(peg$e35); + } + } + if (s0 === peg$FAILED) { + s0 = peg$currPos; + if (input.charCodeAt(peg$currPos) === 98) { + s1 = peg$c24; + peg$currPos++; + } else { + s1 = peg$FAILED; + if (peg$silentFails === 0) { + peg$fail(peg$e36); + } + } + if (s1 !== peg$FAILED) { + peg$savedPos = s0; + s1 = peg$f17(); + } + s0 = s1; + if (s0 === peg$FAILED) { + s0 = peg$currPos; + if (input.charCodeAt(peg$currPos) === 102) { + s1 = peg$c25; + peg$currPos++; + } else { + s1 = peg$FAILED; + if (peg$silentFails === 0) { + peg$fail(peg$e37); + } + } + if (s1 !== peg$FAILED) { + peg$savedPos = s0; + s1 = peg$f18(); + } + s0 = s1; + if (s0 === peg$FAILED) { + s0 = peg$currPos; + if (input.charCodeAt(peg$currPos) === 110) { + s1 = peg$c26; + peg$currPos++; + } else { + s1 = peg$FAILED; + if (peg$silentFails === 0) { + peg$fail(peg$e38); + } + } + if (s1 !== peg$FAILED) { + peg$savedPos = s0; + s1 = peg$f19(); + } + s0 = s1; + if (s0 === peg$FAILED) { + s0 = peg$currPos; + if (input.charCodeAt(peg$currPos) === 114) { + s1 = peg$c27; + peg$currPos++; + } else { + s1 = peg$FAILED; + if (peg$silentFails === 0) { + peg$fail(peg$e39); + } + } + if (s1 !== peg$FAILED) { + peg$savedPos = s0; + s1 = peg$f20(); + } + s0 = s1; + if (s0 === peg$FAILED) { + s0 = peg$currPos; + if (input.charCodeAt(peg$currPos) === 116) { + s1 = peg$c28; + peg$currPos++; + } else { + s1 = peg$FAILED; + if (peg$silentFails === 0) { + peg$fail(peg$e40); + } + } + if (s1 !== peg$FAILED) { + peg$savedPos = s0; + s1 = peg$f21(); + } + s0 = s1; + if (s0 === peg$FAILED) { + s0 = peg$currPos; + if (input.charCodeAt(peg$currPos) === 118) { + s1 = peg$c29; + peg$currPos++; + } else { + s1 = peg$FAILED; + if (peg$silentFails === 0) { + peg$fail(peg$e41); + } + } + if (s1 !== peg$FAILED) { + peg$savedPos = s0; + s1 = peg$f22(); + } + s0 = s1; + } + } + } + } + } + } + } + } + + if (s0 !== peg$FAILED) { + peg$tracer.trace({ + type: 'rule.match', + rule: 'SingleEscapeCharacter', + result: s0, + location: peg$computeLocation(startPos, peg$currPos), + }); + } else { + peg$tracer.trace({ + type: 'rule.fail', + rule: 'SingleEscapeCharacter', + location: peg$computeLocation(startPos, startPos), + }); + } + + return s0; + } + + function peg$parseNonEscapeCharacter() { + var startPos = peg$currPos; + var s0, s1, s2; + + peg$tracer.trace({ + type: 'rule.enter', + rule: 'NonEscapeCharacter', + location: peg$computeLocation(startPos, startPos), + }); + + s0 = peg$currPos; + s1 = peg$currPos; + peg$silentFails++; + s2 = peg$parseEscapeCharacter(); + if (s2 === peg$FAILED) { + s2 = peg$parseLineTerminator(); + } + peg$silentFails--; + if (s2 === peg$FAILED) { + s1 = undefined; + } else { + peg$currPos = s1; + s1 = peg$FAILED; + } + if (s1 !== peg$FAILED) { + s2 = peg$parseSourceCharacter(); + if (s2 !== peg$FAILED) { + peg$savedPos = s0; + s0 = peg$f13(); + } else { + peg$currPos = s0; + s0 = peg$FAILED; + } + } else { + peg$currPos = s0; + s0 = peg$FAILED; + } + + if (s0 !== peg$FAILED) { + peg$tracer.trace({ + type: 'rule.match', + rule: 'NonEscapeCharacter', + result: s0, + location: peg$computeLocation(startPos, peg$currPos), + }); + } else { + peg$tracer.trace({ + type: 'rule.fail', + rule: 'NonEscapeCharacter', + location: peg$computeLocation(startPos, startPos), + }); + } + + return s0; + } + + function peg$parseEscapeCharacter() { + var startPos = peg$currPos; + var s0; + + peg$tracer.trace({ + type: 'rule.enter', + rule: 'EscapeCharacter', + location: peg$computeLocation(startPos, startPos), + }); + + s0 = peg$parseSingleEscapeCharacter(); + if (s0 === peg$FAILED) { + s0 = peg$parseDecimalDigit(); + if (s0 === peg$FAILED) { + if (input.charCodeAt(peg$currPos) === 120) { + s0 = peg$c30; + peg$currPos++; + } else { + s0 = peg$FAILED; + if (peg$silentFails === 0) { + peg$fail(peg$e42); + } + } + if (s0 === peg$FAILED) { + if (input.charCodeAt(peg$currPos) === 117) { + s0 = peg$c31; + peg$currPos++; + } else { + s0 = peg$FAILED; + if (peg$silentFails === 0) { + peg$fail(peg$e43); + } + } + } + } + } + + if (s0 !== peg$FAILED) { + peg$tracer.trace({ + type: 'rule.match', + rule: 'EscapeCharacter', + result: s0, + location: peg$computeLocation(startPos, peg$currPos), + }); + } else { + peg$tracer.trace({ + type: 'rule.fail', + rule: 'EscapeCharacter', + location: peg$computeLocation(startPos, startPos), + }); + } + + return s0; + } + + function peg$parseHexEscapeSequence() { + var startPos = peg$currPos; + var s0, s1, s2, s3, s4, s5; + + peg$tracer.trace({ + type: 'rule.enter', + rule: 'HexEscapeSequence', + location: peg$computeLocation(startPos, startPos), + }); + + s0 = peg$currPos; + if (input.charCodeAt(peg$currPos) === 120) { + s1 = peg$c30; + peg$currPos++; + } else { + s1 = peg$FAILED; + if (peg$silentFails === 0) { + peg$fail(peg$e42); + } + } + if (s1 !== peg$FAILED) { + s2 = peg$currPos; + s3 = peg$currPos; + s4 = peg$parseHexDigit(); + if (s4 !== peg$FAILED) { + s5 = peg$parseHexDigit(); + if (s5 !== peg$FAILED) { + s4 = [s4, s5]; + s3 = s4; + } else { + peg$currPos = s3; + s3 = peg$FAILED; + } + } else { + peg$currPos = s3; + s3 = peg$FAILED; + } + if (s3 !== peg$FAILED) { + s2 = input.substring(s2, peg$currPos); + } else { + s2 = s3; + } + if (s2 !== peg$FAILED) { + peg$savedPos = s0; + s0 = peg$f23(s2); + } else { + peg$currPos = s0; + s0 = peg$FAILED; + } + } else { + peg$currPos = s0; + s0 = peg$FAILED; + } + + if (s0 !== peg$FAILED) { + peg$tracer.trace({ + type: 'rule.match', + rule: 'HexEscapeSequence', + result: s0, + location: peg$computeLocation(startPos, peg$currPos), + }); + } else { + peg$tracer.trace({ + type: 'rule.fail', + rule: 'HexEscapeSequence', + location: peg$computeLocation(startPos, startPos), + }); + } + + return s0; + } + + function peg$parseUnicodeEscapeSequence() { + var startPos = peg$currPos; + var s0, s1, s2, s3, s4, s5, s6, s7; + + peg$tracer.trace({ + type: 'rule.enter', + rule: 'UnicodeEscapeSequence', + location: peg$computeLocation(startPos, startPos), + }); + + s0 = peg$currPos; + if (input.charCodeAt(peg$currPos) === 117) { + s1 = peg$c31; + peg$currPos++; + } else { + s1 = peg$FAILED; + if (peg$silentFails === 0) { + peg$fail(peg$e43); + } + } + if (s1 !== peg$FAILED) { + s2 = peg$currPos; + s3 = peg$currPos; + s4 = peg$parseHexDigit(); + if (s4 !== peg$FAILED) { + s5 = peg$parseHexDigit(); + if (s5 !== peg$FAILED) { + s6 = peg$parseHexDigit(); + if (s6 !== peg$FAILED) { + s7 = peg$parseHexDigit(); + if (s7 !== peg$FAILED) { + s4 = [s4, s5, s6, s7]; + s3 = s4; + } else { + peg$currPos = s3; + s3 = peg$FAILED; + } + } else { + peg$currPos = s3; + s3 = peg$FAILED; + } + } else { + peg$currPos = s3; + s3 = peg$FAILED; + } + } else { + peg$currPos = s3; + s3 = peg$FAILED; + } + if (s3 !== peg$FAILED) { + s2 = input.substring(s2, peg$currPos); + } else { + s2 = s3; + } + if (s2 !== peg$FAILED) { + peg$savedPos = s0; + s0 = peg$f23(s2); + } else { + peg$currPos = s0; + s0 = peg$FAILED; + } + } else { + peg$currPos = s0; + s0 = peg$FAILED; + } + + if (s0 !== peg$FAILED) { + peg$tracer.trace({ + type: 'rule.match', + rule: 'UnicodeEscapeSequence', + result: s0, + location: peg$computeLocation(startPos, peg$currPos), + }); + } else { + peg$tracer.trace({ + type: 'rule.fail', + rule: 'UnicodeEscapeSequence', + location: peg$computeLocation(startPos, startPos), + }); + } + + return s0; + } + + function peg$parseVersionLiteral() { + var startPos = peg$currPos; + var s0, s1, s2, s3, s4, s5, s6, s7, s8; + + peg$tracer.trace({ + type: 'rule.enter', + rule: 'VersionLiteral', + location: peg$computeLocation(startPos, startPos), + }); + + s0 = peg$currPos; + s1 = peg$parseRelationalOperator(); + if (s1 === peg$FAILED) { + s1 = peg$parseEqualityPragmaOperator(); + if (s1 === peg$FAILED) { + s1 = peg$parseBitwiseXOROperator(); + if (s1 === peg$FAILED) { + s1 = peg$parseTilde(); + } + } + } + if (s1 === peg$FAILED) { + s1 = null; + } + s2 = peg$parse__(); + if (input.charCodeAt(peg$currPos) === 118) { + s3 = peg$c29; + peg$currPos++; + } else { + s3 = peg$FAILED; + if (peg$silentFails === 0) { + peg$fail(peg$e41); + } + } + if (s3 === peg$FAILED) { + s3 = null; + } + s4 = peg$parseDecimalIntegerLiteral(); + if (s4 !== peg$FAILED) { + s5 = peg$currPos; + if (input.charCodeAt(peg$currPos) === 46) { + s6 = peg$c17; + peg$currPos++; + } else { + s6 = peg$FAILED; + if (peg$silentFails === 0) { + peg$fail(peg$e24); + } + } + if (s6 !== peg$FAILED) { + s7 = peg$parseDecimalIntegerLiteral(); + if (s7 !== peg$FAILED) { + s6 = [s6, s7]; + s5 = s6; + } else { + peg$currPos = s5; + s5 = peg$FAILED; + } + } else { + peg$currPos = s5; + s5 = peg$FAILED; + } + if (s5 === peg$FAILED) { + s5 = null; + } + s6 = peg$currPos; + if (input.charCodeAt(peg$currPos) === 46) { + s7 = peg$c17; + peg$currPos++; + } else { + s7 = peg$FAILED; + if (peg$silentFails === 0) { + peg$fail(peg$e24); + } + } + if (s7 !== peg$FAILED) { + s8 = peg$parseDecimalIntegerLiteral(); + if (s8 !== peg$FAILED) { + s7 = [s7, s8]; + s6 = s7; + } else { + peg$currPos = s6; + s6 = peg$FAILED; + } + } else { + peg$currPos = s6; + s6 = peg$FAILED; + } + if (s6 === peg$FAILED) { + s6 = null; + } + peg$savedPos = s0; + s0 = peg$f24(s1, s4, s5, s6); + } else { + peg$currPos = s0; + s0 = peg$FAILED; + } + + if (s0 !== peg$FAILED) { + peg$tracer.trace({ + type: 'rule.match', + rule: 'VersionLiteral', + result: s0, + location: peg$computeLocation(startPos, peg$currPos), + }); + } else { + peg$tracer.trace({ + type: 'rule.fail', + rule: 'VersionLiteral', + location: peg$computeLocation(startPos, startPos), + }); + } + + return s0; + } + + function peg$parseLl() { + var startPos = peg$currPos; + var s0; + + peg$tracer.trace({ + type: 'rule.enter', + rule: 'Ll', + location: peg$computeLocation(startPos, startPos), + }); + + if (peg$r5.test(input.charAt(peg$currPos))) { + s0 = input.charAt(peg$currPos); + peg$currPos++; + } else { + s0 = peg$FAILED; + if (peg$silentFails === 0) { + peg$fail(peg$e44); + } + } + + if (s0 !== peg$FAILED) { + peg$tracer.trace({ + type: 'rule.match', + rule: 'Ll', + result: s0, + location: peg$computeLocation(startPos, peg$currPos), + }); + } else { + peg$tracer.trace({ + type: 'rule.fail', + rule: 'Ll', + location: peg$computeLocation(startPos, startPos), + }); + } + + return s0; + } + + function peg$parseLm() { + var startPos = peg$currPos; + var s0; + + peg$tracer.trace({ + type: 'rule.enter', + rule: 'Lm', + location: peg$computeLocation(startPos, startPos), + }); + + if (peg$r6.test(input.charAt(peg$currPos))) { + s0 = input.charAt(peg$currPos); + peg$currPos++; + } else { + s0 = peg$FAILED; + if (peg$silentFails === 0) { + peg$fail(peg$e45); + } + } + + if (s0 !== peg$FAILED) { + peg$tracer.trace({ + type: 'rule.match', + rule: 'Lm', + result: s0, + location: peg$computeLocation(startPos, peg$currPos), + }); + } else { + peg$tracer.trace({ + type: 'rule.fail', + rule: 'Lm', + location: peg$computeLocation(startPos, startPos), + }); + } + + return s0; + } + + function peg$parseLo() { + var startPos = peg$currPos; + var s0; + + peg$tracer.trace({ + type: 'rule.enter', + rule: 'Lo', + location: peg$computeLocation(startPos, startPos), + }); + + if (peg$r7.test(input.charAt(peg$currPos))) { + s0 = input.charAt(peg$currPos); + peg$currPos++; + } else { + s0 = peg$FAILED; + if (peg$silentFails === 0) { + peg$fail(peg$e46); + } + } + + if (s0 !== peg$FAILED) { + peg$tracer.trace({ + type: 'rule.match', + rule: 'Lo', + result: s0, + location: peg$computeLocation(startPos, peg$currPos), + }); + } else { + peg$tracer.trace({ + type: 'rule.fail', + rule: 'Lo', + location: peg$computeLocation(startPos, startPos), + }); + } + + return s0; + } + + function peg$parseLt() { + var startPos = peg$currPos; + var s0; + + peg$tracer.trace({ + type: 'rule.enter', + rule: 'Lt', + location: peg$computeLocation(startPos, startPos), + }); + + if (peg$r8.test(input.charAt(peg$currPos))) { + s0 = input.charAt(peg$currPos); + peg$currPos++; + } else { + s0 = peg$FAILED; + if (peg$silentFails === 0) { + peg$fail(peg$e47); + } + } + + if (s0 !== peg$FAILED) { + peg$tracer.trace({ + type: 'rule.match', + rule: 'Lt', + result: s0, + location: peg$computeLocation(startPos, peg$currPos), + }); + } else { + peg$tracer.trace({ + type: 'rule.fail', + rule: 'Lt', + location: peg$computeLocation(startPos, startPos), + }); + } + + return s0; + } + + function peg$parseLu() { + var startPos = peg$currPos; + var s0; + + peg$tracer.trace({ + type: 'rule.enter', + rule: 'Lu', + location: peg$computeLocation(startPos, startPos), + }); + + if (peg$r9.test(input.charAt(peg$currPos))) { + s0 = input.charAt(peg$currPos); + peg$currPos++; + } else { + s0 = peg$FAILED; + if (peg$silentFails === 0) { + peg$fail(peg$e48); + } + } + + if (s0 !== peg$FAILED) { + peg$tracer.trace({ + type: 'rule.match', + rule: 'Lu', + result: s0, + location: peg$computeLocation(startPos, peg$currPos), + }); + } else { + peg$tracer.trace({ + type: 'rule.fail', + rule: 'Lu', + location: peg$computeLocation(startPos, startPos), + }); + } + + return s0; + } + + function peg$parseMc() { + var startPos = peg$currPos; + var s0; + + peg$tracer.trace({ + type: 'rule.enter', + rule: 'Mc', + location: peg$computeLocation(startPos, startPos), + }); + + if (peg$r10.test(input.charAt(peg$currPos))) { + s0 = input.charAt(peg$currPos); + peg$currPos++; + } else { + s0 = peg$FAILED; + if (peg$silentFails === 0) { + peg$fail(peg$e49); + } + } + + if (s0 !== peg$FAILED) { + peg$tracer.trace({ + type: 'rule.match', + rule: 'Mc', + result: s0, + location: peg$computeLocation(startPos, peg$currPos), + }); + } else { + peg$tracer.trace({ + type: 'rule.fail', + rule: 'Mc', + location: peg$computeLocation(startPos, startPos), + }); + } + + return s0; + } + + function peg$parseMn() { + var startPos = peg$currPos; + var s0; + + peg$tracer.trace({ + type: 'rule.enter', + rule: 'Mn', + location: peg$computeLocation(startPos, startPos), + }); + + if (peg$r11.test(input.charAt(peg$currPos))) { + s0 = input.charAt(peg$currPos); + peg$currPos++; + } else { + s0 = peg$FAILED; + if (peg$silentFails === 0) { + peg$fail(peg$e50); + } + } + + if (s0 !== peg$FAILED) { + peg$tracer.trace({ + type: 'rule.match', + rule: 'Mn', + result: s0, + location: peg$computeLocation(startPos, peg$currPos), + }); + } else { + peg$tracer.trace({ + type: 'rule.fail', + rule: 'Mn', + location: peg$computeLocation(startPos, startPos), + }); + } + + return s0; + } + + function peg$parseNd() { + var startPos = peg$currPos; + var s0; + + peg$tracer.trace({ + type: 'rule.enter', + rule: 'Nd', + location: peg$computeLocation(startPos, startPos), + }); + + if (peg$r12.test(input.charAt(peg$currPos))) { + s0 = input.charAt(peg$currPos); + peg$currPos++; + } else { + s0 = peg$FAILED; + if (peg$silentFails === 0) { + peg$fail(peg$e51); + } + } + + if (s0 !== peg$FAILED) { + peg$tracer.trace({ + type: 'rule.match', + rule: 'Nd', + result: s0, + location: peg$computeLocation(startPos, peg$currPos), + }); + } else { + peg$tracer.trace({ + type: 'rule.fail', + rule: 'Nd', + location: peg$computeLocation(startPos, startPos), + }); + } + + return s0; + } + + function peg$parseNl() { + var startPos = peg$currPos; + var s0; + + peg$tracer.trace({ + type: 'rule.enter', + rule: 'Nl', + location: peg$computeLocation(startPos, startPos), + }); + + if (peg$r13.test(input.charAt(peg$currPos))) { + s0 = input.charAt(peg$currPos); + peg$currPos++; + } else { + s0 = peg$FAILED; + if (peg$silentFails === 0) { + peg$fail(peg$e52); + } + } + + if (s0 !== peg$FAILED) { + peg$tracer.trace({ + type: 'rule.match', + rule: 'Nl', + result: s0, + location: peg$computeLocation(startPos, peg$currPos), + }); + } else { + peg$tracer.trace({ + type: 'rule.fail', + rule: 'Nl', + location: peg$computeLocation(startPos, startPos), + }); + } + + return s0; + } + + function peg$parsePc() { + var startPos = peg$currPos; + var s0; + + peg$tracer.trace({ + type: 'rule.enter', + rule: 'Pc', + location: peg$computeLocation(startPos, startPos), + }); + + if (peg$r14.test(input.charAt(peg$currPos))) { + s0 = input.charAt(peg$currPos); + peg$currPos++; + } else { + s0 = peg$FAILED; + if (peg$silentFails === 0) { + peg$fail(peg$e53); + } + } + + if (s0 !== peg$FAILED) { + peg$tracer.trace({ + type: 'rule.match', + rule: 'Pc', + result: s0, + location: peg$computeLocation(startPos, peg$currPos), + }); + } else { + peg$tracer.trace({ + type: 'rule.fail', + rule: 'Pc', + location: peg$computeLocation(startPos, startPos), + }); + } + + return s0; + } + + function peg$parseZs() { + var startPos = peg$currPos; + var s0; + + peg$tracer.trace({ + type: 'rule.enter', + rule: 'Zs', + location: peg$computeLocation(startPos, startPos), + }); + + if (peg$r15.test(input.charAt(peg$currPos))) { + s0 = input.charAt(peg$currPos); + peg$currPos++; + } else { + s0 = peg$FAILED; + if (peg$silentFails === 0) { + peg$fail(peg$e54); + } + } + + if (s0 !== peg$FAILED) { + peg$tracer.trace({ + type: 'rule.match', + rule: 'Zs', + result: s0, + location: peg$computeLocation(startPos, peg$currPos), + }); + } else { + peg$tracer.trace({ + type: 'rule.fail', + rule: 'Zs', + location: peg$computeLocation(startPos, startPos), + }); + } + + return s0; + } + + function peg$parseEmitToken() { + var startPos = peg$currPos; + var s0, s1, s2, s3; + + peg$tracer.trace({ + type: 'rule.enter', + rule: 'EmitToken', + location: peg$computeLocation(startPos, startPos), + }); + + s0 = peg$currPos; + if (input.substr(peg$currPos, 4) === peg$c32) { + s1 = peg$c32; + peg$currPos += 4; + } else { + s1 = peg$FAILED; + if (peg$silentFails === 0) { + peg$fail(peg$e55); + } + } + if (s1 !== peg$FAILED) { + s2 = peg$currPos; + peg$silentFails++; + s3 = peg$parseIdentifierPart(); + peg$silentFails--; + if (s3 === peg$FAILED) { + s2 = undefined; + } else { + peg$currPos = s2; + s2 = peg$FAILED; + } + if (s2 !== peg$FAILED) { + s1 = [s1, s2]; + s0 = s1; + } else { + peg$currPos = s0; + s0 = peg$FAILED; + } + } else { + peg$currPos = s0; + s0 = peg$FAILED; + } + + if (s0 !== peg$FAILED) { + peg$tracer.trace({ + type: 'rule.match', + rule: 'EmitToken', + result: s0, + location: peg$computeLocation(startPos, peg$currPos), + }); + } else { + peg$tracer.trace({ + type: 'rule.fail', + rule: 'EmitToken', + location: peg$computeLocation(startPos, startPos), + }); + } + + return s0; + } + + function peg$parseRevertToken() { + var startPos = peg$currPos; + var s0, s1, s2, s3; + + peg$tracer.trace({ + type: 'rule.enter', + rule: 'RevertToken', + location: peg$computeLocation(startPos, startPos), + }); + + s0 = peg$currPos; + if (input.substr(peg$currPos, 6) === peg$c33) { + s1 = peg$c33; + peg$currPos += 6; + } else { + s1 = peg$FAILED; + if (peg$silentFails === 0) { + peg$fail(peg$e56); + } + } + if (s1 !== peg$FAILED) { + s2 = peg$currPos; + peg$silentFails++; + s3 = peg$parseIdentifierPart(); + peg$silentFails--; + if (s3 === peg$FAILED) { + s2 = undefined; + } else { + peg$currPos = s2; + s2 = peg$FAILED; + } + if (s2 !== peg$FAILED) { + s1 = [s1, s2]; + s0 = s1; + } else { + peg$currPos = s0; + s0 = peg$FAILED; + } + } else { + peg$currPos = s0; + s0 = peg$FAILED; + } + + if (s0 !== peg$FAILED) { + peg$tracer.trace({ + type: 'rule.match', + rule: 'RevertToken', + result: s0, + location: peg$computeLocation(startPos, peg$currPos), + }); + } else { + peg$tracer.trace({ + type: 'rule.fail', + rule: 'RevertToken', + location: peg$computeLocation(startPos, startPos), + }); + } + + return s0; + } + + function peg$parseAbstractToken() { + var startPos = peg$currPos; + var s0, s1, s2, s3; + + peg$tracer.trace({ + type: 'rule.enter', + rule: 'AbstractToken', + location: peg$computeLocation(startPos, startPos), + }); + + s0 = peg$currPos; + if (input.substr(peg$currPos, 8) === peg$c34) { + s1 = peg$c34; + peg$currPos += 8; + } else { + s1 = peg$FAILED; + if (peg$silentFails === 0) { + peg$fail(peg$e57); + } + } + if (s1 !== peg$FAILED) { + s2 = peg$currPos; + peg$silentFails++; + s3 = peg$parseIdentifierPart(); + peg$silentFails--; + if (s3 === peg$FAILED) { + s2 = undefined; + } else { + peg$currPos = s2; + s2 = peg$FAILED; + } + if (s2 !== peg$FAILED) { + s1 = [s1, s2]; + s0 = s1; + } else { + peg$currPos = s0; + s0 = peg$FAILED; + } + } else { + peg$currPos = s0; + s0 = peg$FAILED; + } + + if (s0 !== peg$FAILED) { + peg$tracer.trace({ + type: 'rule.match', + rule: 'AbstractToken', + result: s0, + location: peg$computeLocation(startPos, peg$currPos), + }); + } else { + peg$tracer.trace({ + type: 'rule.fail', + rule: 'AbstractToken', + location: peg$computeLocation(startPos, startPos), + }); + } + + return s0; + } + + function peg$parseExperimentalToken() { + var startPos = peg$currPos; + var s0, s1, s2, s3; + + peg$tracer.trace({ + type: 'rule.enter', + rule: 'ExperimentalToken', + location: peg$computeLocation(startPos, startPos), + }); + + s0 = peg$currPos; + if (input.substr(peg$currPos, 12) === peg$c35) { + s1 = peg$c35; + peg$currPos += 12; + } else { + s1 = peg$FAILED; + if (peg$silentFails === 0) { + peg$fail(peg$e58); + } + } + if (s1 !== peg$FAILED) { + s2 = peg$currPos; + peg$silentFails++; + s3 = peg$parseIdentifierPart(); + peg$silentFails--; + if (s3 === peg$FAILED) { + s2 = undefined; + } else { + peg$currPos = s2; + s2 = peg$FAILED; + } + if (s2 !== peg$FAILED) { + s1 = [s1, s2]; + s0 = s1; + } else { + peg$currPos = s0; + s0 = peg$FAILED; + } + } else { + peg$currPos = s0; + s0 = peg$FAILED; + } + + if (s0 !== peg$FAILED) { + peg$tracer.trace({ + type: 'rule.match', + rule: 'ExperimentalToken', + result: s0, + location: peg$computeLocation(startPos, peg$currPos), + }); + } else { + peg$tracer.trace({ + type: 'rule.fail', + rule: 'ExperimentalToken', + location: peg$computeLocation(startPos, startPos), + }); + } + + return s0; + } + + function peg$parseOverrideToken() { + var startPos = peg$currPos; + var s0, s1, s2, s3; + + peg$tracer.trace({ + type: 'rule.enter', + rule: 'OverrideToken', + location: peg$computeLocation(startPos, startPos), + }); + + s0 = peg$currPos; + if (input.substr(peg$currPos, 8) === peg$c36) { + s1 = peg$c36; + peg$currPos += 8; + } else { + s1 = peg$FAILED; + if (peg$silentFails === 0) { + peg$fail(peg$e59); + } + } + if (s1 !== peg$FAILED) { + s2 = peg$currPos; + peg$silentFails++; + s3 = peg$parseIdentifierPart(); + peg$silentFails--; + if (s3 === peg$FAILED) { + s2 = undefined; + } else { + peg$currPos = s2; + s2 = peg$FAILED; + } + if (s2 !== peg$FAILED) { + s1 = [s1, s2]; + s0 = s1; + } else { + peg$currPos = s0; + s0 = peg$FAILED; + } + } else { + peg$currPos = s0; + s0 = peg$FAILED; + } + + if (s0 !== peg$FAILED) { + peg$tracer.trace({ + type: 'rule.match', + rule: 'OverrideToken', + result: s0, + location: peg$computeLocation(startPos, peg$currPos), + }); + } else { + peg$tracer.trace({ + type: 'rule.fail', + rule: 'OverrideToken', + location: peg$computeLocation(startPos, startPos), + }); + } + + return s0; + } + + function peg$parseAbiCoderToken() { + var startPos = peg$currPos; + var s0, s1, s2, s3; + + peg$tracer.trace({ + type: 'rule.enter', + rule: 'AbiCoderToken', + location: peg$computeLocation(startPos, startPos), + }); + + s0 = peg$currPos; + if (input.substr(peg$currPos, 8) === peg$c37) { + s1 = peg$c37; + peg$currPos += 8; + } else { + s1 = peg$FAILED; + if (peg$silentFails === 0) { + peg$fail(peg$e60); + } + } + if (s1 !== peg$FAILED) { + s2 = peg$currPos; + peg$silentFails++; + s3 = peg$parseIdentifierPart(); + peg$silentFails--; + if (s3 === peg$FAILED) { + s2 = undefined; + } else { + peg$currPos = s2; + s2 = peg$FAILED; + } + if (s2 !== peg$FAILED) { + s1 = [s1, s2]; + s0 = s1; + } else { + peg$currPos = s0; + s0 = peg$FAILED; + } + } else { + peg$currPos = s0; + s0 = peg$FAILED; + } + + if (s0 !== peg$FAILED) { + peg$tracer.trace({ + type: 'rule.match', + rule: 'AbiCoderToken', + result: s0, + location: peg$computeLocation(startPos, peg$currPos), + }); + } else { + peg$tracer.trace({ + type: 'rule.fail', + rule: 'AbiCoderToken', + location: peg$computeLocation(startPos, startPos), + }); + } + + return s0; + } + + function peg$parseExternalToken() { + var startPos = peg$currPos; + var s0, s1, s2, s3; + + peg$tracer.trace({ + type: 'rule.enter', + rule: 'ExternalToken', + location: peg$computeLocation(startPos, startPos), + }); + + s0 = peg$currPos; + if (input.substr(peg$currPos, 8) === peg$c38) { + s1 = peg$c38; + peg$currPos += 8; + } else { + s1 = peg$FAILED; + if (peg$silentFails === 0) { + peg$fail(peg$e61); + } + } + if (s1 !== peg$FAILED) { + s2 = peg$currPos; + peg$silentFails++; + s3 = peg$parseIdentifierPart(); + peg$silentFails--; + if (s3 === peg$FAILED) { + s2 = undefined; + } else { + peg$currPos = s2; + s2 = peg$FAILED; + } + if (s2 !== peg$FAILED) { + s1 = [s1, s2]; + s0 = s1; + } else { + peg$currPos = s0; + s0 = peg$FAILED; + } + } else { + peg$currPos = s0; + s0 = peg$FAILED; + } + + if (s0 !== peg$FAILED) { + peg$tracer.trace({ + type: 'rule.match', + rule: 'ExternalToken', + result: s0, + location: peg$computeLocation(startPos, peg$currPos), + }); + } else { + peg$tracer.trace({ + type: 'rule.fail', + rule: 'ExternalToken', + location: peg$computeLocation(startPos, startPos), + }); + } + + return s0; + } + + function peg$parsePureToken() { + var startPos = peg$currPos; + var s0, s1, s2, s3; + + peg$tracer.trace({ + type: 'rule.enter', + rule: 'PureToken', + location: peg$computeLocation(startPos, startPos), + }); + + s0 = peg$currPos; + if (input.substr(peg$currPos, 4) === peg$c39) { + s1 = peg$c39; + peg$currPos += 4; + } else { + s1 = peg$FAILED; + if (peg$silentFails === 0) { + peg$fail(peg$e62); + } + } + if (s1 !== peg$FAILED) { + s2 = peg$currPos; + peg$silentFails++; + s3 = peg$parseIdentifierPart(); + peg$silentFails--; + if (s3 === peg$FAILED) { + s2 = undefined; + } else { + peg$currPos = s2; + s2 = peg$FAILED; + } + if (s2 !== peg$FAILED) { + s1 = [s1, s2]; + s0 = s1; + } else { + peg$currPos = s0; + s0 = peg$FAILED; + } + } else { + peg$currPos = s0; + s0 = peg$FAILED; + } + + if (s0 !== peg$FAILED) { + peg$tracer.trace({ + type: 'rule.match', + rule: 'PureToken', + result: s0, + location: peg$computeLocation(startPos, peg$currPos), + }); + } else { + peg$tracer.trace({ + type: 'rule.fail', + rule: 'PureToken', + location: peg$computeLocation(startPos, startPos), + }); + } + + return s0; + } + + function peg$parseViewToken() { + var startPos = peg$currPos; + var s0, s1, s2, s3; + + peg$tracer.trace({ + type: 'rule.enter', + rule: 'ViewToken', + location: peg$computeLocation(startPos, startPos), + }); + + s0 = peg$currPos; + if (input.substr(peg$currPos, 4) === peg$c40) { + s1 = peg$c40; + peg$currPos += 4; + } else { + s1 = peg$FAILED; + if (peg$silentFails === 0) { + peg$fail(peg$e63); + } + } + if (s1 !== peg$FAILED) { + s2 = peg$currPos; + peg$silentFails++; + s3 = peg$parseIdentifierPart(); + peg$silentFails--; + if (s3 === peg$FAILED) { + s2 = undefined; + } else { + peg$currPos = s2; + s2 = peg$FAILED; + } + if (s2 !== peg$FAILED) { + s1 = [s1, s2]; + s0 = s1; + } else { + peg$currPos = s0; + s0 = peg$FAILED; + } + } else { + peg$currPos = s0; + s0 = peg$FAILED; + } + + if (s0 !== peg$FAILED) { + peg$tracer.trace({ + type: 'rule.match', + rule: 'ViewToken', + result: s0, + location: peg$computeLocation(startPos, peg$currPos), + }); + } else { + peg$tracer.trace({ + type: 'rule.fail', + rule: 'ViewToken', + location: peg$computeLocation(startPos, startPos), + }); + } + + return s0; + } + + function peg$parsePayableToken() { + var startPos = peg$currPos; + var s0, s1, s2, s3; + + peg$tracer.trace({ + type: 'rule.enter', + rule: 'PayableToken', + location: peg$computeLocation(startPos, startPos), + }); + + s0 = peg$currPos; + if (input.substr(peg$currPos, 7) === peg$c41) { + s1 = peg$c41; + peg$currPos += 7; + } else { + s1 = peg$FAILED; + if (peg$silentFails === 0) { + peg$fail(peg$e64); + } + } + if (s1 !== peg$FAILED) { + s2 = peg$currPos; + peg$silentFails++; + s3 = peg$parseIdentifierPart(); + peg$silentFails--; + if (s3 === peg$FAILED) { + s2 = undefined; + } else { + peg$currPos = s2; + s2 = peg$FAILED; + } + if (s2 !== peg$FAILED) { + s1 = [s1, s2]; + s0 = s1; + } else { + peg$currPos = s0; + s0 = peg$FAILED; + } + } else { + peg$currPos = s0; + s0 = peg$FAILED; + } + + if (s0 !== peg$FAILED) { + peg$tracer.trace({ + type: 'rule.match', + rule: 'PayableToken', + result: s0, + location: peg$computeLocation(startPos, peg$currPos), + }); + } else { + peg$tracer.trace({ + type: 'rule.fail', + rule: 'PayableToken', + location: peg$computeLocation(startPos, startPos), + }); + } + + return s0; + } + + function peg$parseAnonymousToken() { + var startPos = peg$currPos; + var s0, s1, s2, s3; + + peg$tracer.trace({ + type: 'rule.enter', + rule: 'AnonymousToken', + location: peg$computeLocation(startPos, startPos), + }); + + s0 = peg$currPos; + if (input.substr(peg$currPos, 9) === peg$c42) { + s1 = peg$c42; + peg$currPos += 9; + } else { + s1 = peg$FAILED; + if (peg$silentFails === 0) { + peg$fail(peg$e65); + } + } + if (s1 !== peg$FAILED) { + s2 = peg$currPos; + peg$silentFails++; + s3 = peg$parseIdentifierPart(); + peg$silentFails--; + if (s3 === peg$FAILED) { + s2 = undefined; + } else { + peg$currPos = s2; + s2 = peg$FAILED; + } + if (s2 !== peg$FAILED) { + s1 = [s1, s2]; + s0 = s1; + } else { + peg$currPos = s0; + s0 = peg$FAILED; + } + } else { + peg$currPos = s0; + s0 = peg$FAILED; + } + + if (s0 !== peg$FAILED) { + peg$tracer.trace({ + type: 'rule.match', + rule: 'AnonymousToken', + result: s0, + location: peg$computeLocation(startPos, peg$currPos), + }); + } else { + peg$tracer.trace({ + type: 'rule.fail', + rule: 'AnonymousToken', + location: peg$computeLocation(startPos, startPos), + }); + } + + return s0; + } + + function peg$parseAsToken() { + var startPos = peg$currPos; + var s0, s1, s2, s3; + + peg$tracer.trace({ + type: 'rule.enter', + rule: 'AsToken', + location: peg$computeLocation(startPos, startPos), + }); + + s0 = peg$currPos; + if (input.substr(peg$currPos, 2) === peg$c43) { + s1 = peg$c43; + peg$currPos += 2; + } else { + s1 = peg$FAILED; + if (peg$silentFails === 0) { + peg$fail(peg$e66); + } + } + if (s1 !== peg$FAILED) { + s2 = peg$currPos; + peg$silentFails++; + s3 = peg$parseIdentifierPart(); + peg$silentFails--; + if (s3 === peg$FAILED) { + s2 = undefined; + } else { + peg$currPos = s2; + s2 = peg$FAILED; + } + if (s2 !== peg$FAILED) { + s1 = [s1, s2]; + s0 = s1; + } else { + peg$currPos = s0; + s0 = peg$FAILED; + } + } else { + peg$currPos = s0; + s0 = peg$FAILED; + } + + if (s0 !== peg$FAILED) { + peg$tracer.trace({ + type: 'rule.match', + rule: 'AsToken', + result: s0, + location: peg$computeLocation(startPos, peg$currPos), + }); + } else { + peg$tracer.trace({ + type: 'rule.fail', + rule: 'AsToken', + location: peg$computeLocation(startPos, startPos), + }); + } + + return s0; + } + + function peg$parseBreakToken() { + var startPos = peg$currPos; + var s0, s1, s2, s3; + + peg$tracer.trace({ + type: 'rule.enter', + rule: 'BreakToken', + location: peg$computeLocation(startPos, startPos), + }); + + s0 = peg$currPos; + if (input.substr(peg$currPos, 5) === peg$c44) { + s1 = peg$c44; + peg$currPos += 5; + } else { + s1 = peg$FAILED; + if (peg$silentFails === 0) { + peg$fail(peg$e67); + } + } + if (s1 !== peg$FAILED) { + s2 = peg$currPos; + peg$silentFails++; + s3 = peg$parseIdentifierPart(); + peg$silentFails--; + if (s3 === peg$FAILED) { + s2 = undefined; + } else { + peg$currPos = s2; + s2 = peg$FAILED; + } + if (s2 !== peg$FAILED) { + s1 = [s1, s2]; + s0 = s1; + } else { + peg$currPos = s0; + s0 = peg$FAILED; + } + } else { + peg$currPos = s0; + s0 = peg$FAILED; + } + + if (s0 !== peg$FAILED) { + peg$tracer.trace({ + type: 'rule.match', + rule: 'BreakToken', + result: s0, + location: peg$computeLocation(startPos, peg$currPos), + }); + } else { + peg$tracer.trace({ + type: 'rule.fail', + rule: 'BreakToken', + location: peg$computeLocation(startPos, startPos), + }); + } + + return s0; + } + + function peg$parseCalldataToken() { + var startPos = peg$currPos; + var s0, s1, s2, s3; + + peg$tracer.trace({ + type: 'rule.enter', + rule: 'CalldataToken', + location: peg$computeLocation(startPos, startPos), + }); + + s0 = peg$currPos; + if (input.substr(peg$currPos, 8) === peg$c45) { + s1 = peg$c45; + peg$currPos += 8; + } else { + s1 = peg$FAILED; + if (peg$silentFails === 0) { + peg$fail(peg$e68); + } + } + if (s1 !== peg$FAILED) { + s2 = peg$currPos; + peg$silentFails++; + s3 = peg$parseIdentifierPart(); + peg$silentFails--; + if (s3 === peg$FAILED) { + s2 = undefined; + } else { + peg$currPos = s2; + s2 = peg$FAILED; + } + if (s2 !== peg$FAILED) { + s1 = [s1, s2]; + s0 = s1; + } else { + peg$currPos = s0; + s0 = peg$FAILED; + } + } else { + peg$currPos = s0; + s0 = peg$FAILED; + } + + if (s0 !== peg$FAILED) { + peg$tracer.trace({ + type: 'rule.match', + rule: 'CalldataToken', + result: s0, + location: peg$computeLocation(startPos, peg$currPos), + }); + } else { + peg$tracer.trace({ + type: 'rule.fail', + rule: 'CalldataToken', + location: peg$computeLocation(startPos, startPos), + }); + } + + return s0; + } + + function peg$parseConstantToken() { + var startPos = peg$currPos; + var s0, s1, s2, s3; + + peg$tracer.trace({ + type: 'rule.enter', + rule: 'ConstantToken', + location: peg$computeLocation(startPos, startPos), + }); + + s0 = peg$currPos; + if (input.substr(peg$currPos, 8) === peg$c46) { + s1 = peg$c46; + peg$currPos += 8; + } else { + s1 = peg$FAILED; + if (peg$silentFails === 0) { + peg$fail(peg$e69); + } + } + if (s1 !== peg$FAILED) { + s2 = peg$currPos; + peg$silentFails++; + s3 = peg$parseIdentifierPart(); + peg$silentFails--; + if (s3 === peg$FAILED) { + s2 = undefined; + } else { + peg$currPos = s2; + s2 = peg$FAILED; + } + if (s2 !== peg$FAILED) { + s1 = [s1, s2]; + s0 = s1; + } else { + peg$currPos = s0; + s0 = peg$FAILED; + } + } else { + peg$currPos = s0; + s0 = peg$FAILED; + } + + if (s0 !== peg$FAILED) { + peg$tracer.trace({ + type: 'rule.match', + rule: 'ConstantToken', + result: s0, + location: peg$computeLocation(startPos, peg$currPos), + }); + } else { + peg$tracer.trace({ + type: 'rule.fail', + rule: 'ConstantToken', + location: peg$computeLocation(startPos, startPos), + }); + } + + return s0; + } + + function peg$parseImmutableToken() { + var startPos = peg$currPos; + var s0, s1, s2, s3; + + peg$tracer.trace({ + type: 'rule.enter', + rule: 'ImmutableToken', + location: peg$computeLocation(startPos, startPos), + }); + + s0 = peg$currPos; + if (input.substr(peg$currPos, 9) === peg$c47) { + s1 = peg$c47; + peg$currPos += 9; + } else { + s1 = peg$FAILED; + if (peg$silentFails === 0) { + peg$fail(peg$e70); + } + } + if (s1 !== peg$FAILED) { + s2 = peg$currPos; + peg$silentFails++; + s3 = peg$parseIdentifierPart(); + peg$silentFails--; + if (s3 === peg$FAILED) { + s2 = undefined; + } else { + peg$currPos = s2; + s2 = peg$FAILED; + } + if (s2 !== peg$FAILED) { + s1 = [s1, s2]; + s0 = s1; + } else { + peg$currPos = s0; + s0 = peg$FAILED; + } + } else { + peg$currPos = s0; + s0 = peg$FAILED; + } + + if (s0 !== peg$FAILED) { + peg$tracer.trace({ + type: 'rule.match', + rule: 'ImmutableToken', + result: s0, + location: peg$computeLocation(startPos, peg$currPos), + }); + } else { + peg$tracer.trace({ + type: 'rule.fail', + rule: 'ImmutableToken', + location: peg$computeLocation(startPos, startPos), + }); + } + + return s0; + } + + function peg$parseContinueToken() { + var startPos = peg$currPos; + var s0, s1, s2, s3; + + peg$tracer.trace({ + type: 'rule.enter', + rule: 'ContinueToken', + location: peg$computeLocation(startPos, startPos), + }); + + s0 = peg$currPos; + if (input.substr(peg$currPos, 8) === peg$c48) { + s1 = peg$c48; + peg$currPos += 8; + } else { + s1 = peg$FAILED; + if (peg$silentFails === 0) { + peg$fail(peg$e71); + } + } + if (s1 !== peg$FAILED) { + s2 = peg$currPos; + peg$silentFails++; + s3 = peg$parseIdentifierPart(); + peg$silentFails--; + if (s3 === peg$FAILED) { + s2 = undefined; + } else { + peg$currPos = s2; + s2 = peg$FAILED; + } + if (s2 !== peg$FAILED) { + s1 = [s1, s2]; + s0 = s1; + } else { + peg$currPos = s0; + s0 = peg$FAILED; + } + } else { + peg$currPos = s0; + s0 = peg$FAILED; + } + + if (s0 !== peg$FAILED) { + peg$tracer.trace({ + type: 'rule.match', + rule: 'ContinueToken', + result: s0, + location: peg$computeLocation(startPos, peg$currPos), + }); + } else { + peg$tracer.trace({ + type: 'rule.fail', + rule: 'ContinueToken', + location: peg$computeLocation(startPos, startPos), + }); + } + + return s0; + } + + function peg$parseContractToken() { + var startPos = peg$currPos; + var s0, s1, s2, s3; + + peg$tracer.trace({ + type: 'rule.enter', + rule: 'ContractToken', + location: peg$computeLocation(startPos, startPos), + }); + + s0 = peg$currPos; + if (input.substr(peg$currPos, 8) === peg$c49) { + s1 = peg$c49; + peg$currPos += 8; + } else { + s1 = peg$FAILED; + if (peg$silentFails === 0) { + peg$fail(peg$e72); + } + } + if (s1 !== peg$FAILED) { + s2 = peg$currPos; + peg$silentFails++; + s3 = peg$parseIdentifierPart(); + peg$silentFails--; + if (s3 === peg$FAILED) { + s2 = undefined; + } else { + peg$currPos = s2; + s2 = peg$FAILED; + } + if (s2 !== peg$FAILED) { + s1 = [s1, s2]; + s0 = s1; + } else { + peg$currPos = s0; + s0 = peg$FAILED; + } + } else { + peg$currPos = s0; + s0 = peg$FAILED; + } + + if (s0 !== peg$FAILED) { + peg$tracer.trace({ + type: 'rule.match', + rule: 'ContractToken', + result: s0, + location: peg$computeLocation(startPos, peg$currPos), + }); + } else { + peg$tracer.trace({ + type: 'rule.fail', + rule: 'ContractToken', + location: peg$computeLocation(startPos, startPos), + }); + } + + return s0; + } + + function peg$parseConstructorToken() { + var startPos = peg$currPos; + var s0, s1, s2, s3; + + peg$tracer.trace({ + type: 'rule.enter', + rule: 'ConstructorToken', + location: peg$computeLocation(startPos, startPos), + }); + + s0 = peg$currPos; + if (input.substr(peg$currPos, 11) === peg$c50) { + s1 = peg$c50; + peg$currPos += 11; + } else { + s1 = peg$FAILED; + if (peg$silentFails === 0) { + peg$fail(peg$e73); + } + } + if (s1 !== peg$FAILED) { + s2 = peg$currPos; + peg$silentFails++; + s3 = peg$parseIdentifierPart(); + peg$silentFails--; + if (s3 === peg$FAILED) { + s2 = undefined; + } else { + peg$currPos = s2; + s2 = peg$FAILED; + } + if (s2 !== peg$FAILED) { + s1 = [s1, s2]; + s0 = s1; + } else { + peg$currPos = s0; + s0 = peg$FAILED; + } + } else { + peg$currPos = s0; + s0 = peg$FAILED; + } + + if (s0 !== peg$FAILED) { + peg$tracer.trace({ + type: 'rule.match', + rule: 'ConstructorToken', + result: s0, + location: peg$computeLocation(startPos, peg$currPos), + }); + } else { + peg$tracer.trace({ + type: 'rule.fail', + rule: 'ConstructorToken', + location: peg$computeLocation(startPos, startPos), + }); + } + + return s0; + } + + function peg$parseReceiveToken() { + var startPos = peg$currPos; + var s0, s1, s2, s3; + + peg$tracer.trace({ + type: 'rule.enter', + rule: 'ReceiveToken', + location: peg$computeLocation(startPos, startPos), + }); + + s0 = peg$currPos; + if (input.substr(peg$currPos, 7) === peg$c51) { + s1 = peg$c51; + peg$currPos += 7; + } else { + s1 = peg$FAILED; + if (peg$silentFails === 0) { + peg$fail(peg$e74); + } + } + if (s1 !== peg$FAILED) { + s2 = peg$currPos; + peg$silentFails++; + s3 = peg$parseIdentifierPart(); + peg$silentFails--; + if (s3 === peg$FAILED) { + s2 = undefined; + } else { + peg$currPos = s2; + s2 = peg$FAILED; + } + if (s2 !== peg$FAILED) { + s1 = [s1, s2]; + s0 = s1; + } else { + peg$currPos = s0; + s0 = peg$FAILED; + } + } else { + peg$currPos = s0; + s0 = peg$FAILED; + } + + if (s0 !== peg$FAILED) { + peg$tracer.trace({ + type: 'rule.match', + rule: 'ReceiveToken', + result: s0, + location: peg$computeLocation(startPos, peg$currPos), + }); + } else { + peg$tracer.trace({ + type: 'rule.fail', + rule: 'ReceiveToken', + location: peg$computeLocation(startPos, startPos), + }); + } + + return s0; + } + + function peg$parseFallbackToken() { + var startPos = peg$currPos; + var s0, s1, s2, s3; + + peg$tracer.trace({ + type: 'rule.enter', + rule: 'FallbackToken', + location: peg$computeLocation(startPos, startPos), + }); + + s0 = peg$currPos; + if (input.substr(peg$currPos, 8) === peg$c52) { + s1 = peg$c52; + peg$currPos += 8; + } else { + s1 = peg$FAILED; + if (peg$silentFails === 0) { + peg$fail(peg$e75); + } + } + if (s1 !== peg$FAILED) { + s2 = peg$currPos; + peg$silentFails++; + s3 = peg$parseIdentifierPart(); + peg$silentFails--; + if (s3 === peg$FAILED) { + s2 = undefined; + } else { + peg$currPos = s2; + s2 = peg$FAILED; + } + if (s2 !== peg$FAILED) { + s1 = [s1, s2]; + s0 = s1; + } else { + peg$currPos = s0; + s0 = peg$FAILED; + } + } else { + peg$currPos = s0; + s0 = peg$FAILED; + } + + if (s0 !== peg$FAILED) { + peg$tracer.trace({ + type: 'rule.match', + rule: 'FallbackToken', + result: s0, + location: peg$computeLocation(startPos, peg$currPos), + }); + } else { + peg$tracer.trace({ + type: 'rule.fail', + rule: 'FallbackToken', + location: peg$computeLocation(startPos, startPos), + }); + } + + return s0; + } + + function peg$parseDaysToken() { + var startPos = peg$currPos; + var s0, s1, s2, s3; + + peg$tracer.trace({ + type: 'rule.enter', + rule: 'DaysToken', + location: peg$computeLocation(startPos, startPos), + }); + + s0 = peg$currPos; + if (input.substr(peg$currPos, 4) === peg$c53) { + s1 = peg$c53; + peg$currPos += 4; + } else { + s1 = peg$FAILED; + if (peg$silentFails === 0) { + peg$fail(peg$e76); + } + } + if (s1 !== peg$FAILED) { + s2 = peg$currPos; + peg$silentFails++; + s3 = peg$parseIdentifierPart(); + peg$silentFails--; + if (s3 === peg$FAILED) { + s2 = undefined; + } else { + peg$currPos = s2; + s2 = peg$FAILED; + } + if (s2 !== peg$FAILED) { + s1 = [s1, s2]; + s0 = s1; + } else { + peg$currPos = s0; + s0 = peg$FAILED; + } + } else { + peg$currPos = s0; + s0 = peg$FAILED; + } + + if (s0 !== peg$FAILED) { + peg$tracer.trace({ + type: 'rule.match', + rule: 'DaysToken', + result: s0, + location: peg$computeLocation(startPos, peg$currPos), + }); + } else { + peg$tracer.trace({ + type: 'rule.fail', + rule: 'DaysToken', + location: peg$computeLocation(startPos, startPos), + }); + } + + return s0; + } + + function peg$parseDeleteToken() { + var startPos = peg$currPos; + var s0, s1, s2, s3; + + peg$tracer.trace({ + type: 'rule.enter', + rule: 'DeleteToken', + location: peg$computeLocation(startPos, startPos), + }); + + s0 = peg$currPos; + if (input.substr(peg$currPos, 6) === peg$c54) { + s1 = peg$c54; + peg$currPos += 6; + } else { + s1 = peg$FAILED; + if (peg$silentFails === 0) { + peg$fail(peg$e77); + } + } + if (s1 !== peg$FAILED) { + s2 = peg$currPos; + peg$silentFails++; + s3 = peg$parseIdentifierPart(); + peg$silentFails--; + if (s3 === peg$FAILED) { + s2 = undefined; + } else { + peg$currPos = s2; + s2 = peg$FAILED; + } + if (s2 !== peg$FAILED) { + s1 = [s1, s2]; + s0 = s1; + } else { + peg$currPos = s0; + s0 = peg$FAILED; + } + } else { + peg$currPos = s0; + s0 = peg$FAILED; + } + + if (s0 !== peg$FAILED) { + peg$tracer.trace({ + type: 'rule.match', + rule: 'DeleteToken', + result: s0, + location: peg$computeLocation(startPos, peg$currPos), + }); + } else { + peg$tracer.trace({ + type: 'rule.fail', + rule: 'DeleteToken', + location: peg$computeLocation(startPos, startPos), + }); + } + + return s0; + } + + function peg$parseDoToken() { + var startPos = peg$currPos; + var s0, s1, s2, s3; + + peg$tracer.trace({ + type: 'rule.enter', + rule: 'DoToken', + location: peg$computeLocation(startPos, startPos), + }); + + s0 = peg$currPos; + if (input.substr(peg$currPos, 2) === peg$c55) { + s1 = peg$c55; + peg$currPos += 2; + } else { + s1 = peg$FAILED; + if (peg$silentFails === 0) { + peg$fail(peg$e78); + } + } + if (s1 !== peg$FAILED) { + s2 = peg$currPos; + peg$silentFails++; + s3 = peg$parseIdentifierPart(); + peg$silentFails--; + if (s3 === peg$FAILED) { + s2 = undefined; + } else { + peg$currPos = s2; + s2 = peg$FAILED; + } + if (s2 !== peg$FAILED) { + s1 = [s1, s2]; + s0 = s1; + } else { + peg$currPos = s0; + s0 = peg$FAILED; + } + } else { + peg$currPos = s0; + s0 = peg$FAILED; + } + + if (s0 !== peg$FAILED) { + peg$tracer.trace({ + type: 'rule.match', + rule: 'DoToken', + result: s0, + location: peg$computeLocation(startPos, peg$currPos), + }); + } else { + peg$tracer.trace({ + type: 'rule.fail', + rule: 'DoToken', + location: peg$computeLocation(startPos, startPos), + }); + } + + return s0; + } + + function peg$parseElseToken() { + var startPos = peg$currPos; + var s0, s1, s2, s3; + + peg$tracer.trace({ + type: 'rule.enter', + rule: 'ElseToken', + location: peg$computeLocation(startPos, startPos), + }); + + s0 = peg$currPos; + if (input.substr(peg$currPos, 4) === peg$c56) { + s1 = peg$c56; + peg$currPos += 4; + } else { + s1 = peg$FAILED; + if (peg$silentFails === 0) { + peg$fail(peg$e79); + } + } + if (s1 !== peg$FAILED) { + s2 = peg$currPos; + peg$silentFails++; + s3 = peg$parseIdentifierPart(); + peg$silentFails--; + if (s3 === peg$FAILED) { + s2 = undefined; + } else { + peg$currPos = s2; + s2 = peg$FAILED; + } + if (s2 !== peg$FAILED) { + s1 = [s1, s2]; + s0 = s1; + } else { + peg$currPos = s0; + s0 = peg$FAILED; + } + } else { + peg$currPos = s0; + s0 = peg$FAILED; + } + + if (s0 !== peg$FAILED) { + peg$tracer.trace({ + type: 'rule.match', + rule: 'ElseToken', + result: s0, + location: peg$computeLocation(startPos, peg$currPos), + }); + } else { + peg$tracer.trace({ + type: 'rule.fail', + rule: 'ElseToken', + location: peg$computeLocation(startPos, startPos), + }); + } + + return s0; + } + + function peg$parseEnumToken() { + var startPos = peg$currPos; + var s0, s1, s2, s3; + + peg$tracer.trace({ + type: 'rule.enter', + rule: 'EnumToken', + location: peg$computeLocation(startPos, startPos), + }); + + s0 = peg$currPos; + if (input.substr(peg$currPos, 4) === peg$c57) { + s1 = peg$c57; + peg$currPos += 4; + } else { + s1 = peg$FAILED; + if (peg$silentFails === 0) { + peg$fail(peg$e80); + } + } + if (s1 !== peg$FAILED) { + s2 = peg$currPos; + peg$silentFails++; + s3 = peg$parseIdentifierPart(); + peg$silentFails--; + if (s3 === peg$FAILED) { + s2 = undefined; + } else { + peg$currPos = s2; + s2 = peg$FAILED; + } + if (s2 !== peg$FAILED) { + s1 = [s1, s2]; + s0 = s1; + } else { + peg$currPos = s0; + s0 = peg$FAILED; + } + } else { + peg$currPos = s0; + s0 = peg$FAILED; + } + + if (s0 !== peg$FAILED) { + peg$tracer.trace({ + type: 'rule.match', + rule: 'EnumToken', + result: s0, + location: peg$computeLocation(startPos, peg$currPos), + }); + } else { + peg$tracer.trace({ + type: 'rule.fail', + rule: 'EnumToken', + location: peg$computeLocation(startPos, startPos), + }); + } + + return s0; + } + + function peg$parseEtherToken() { + var startPos = peg$currPos; + var s0, s1, s2, s3; + + peg$tracer.trace({ + type: 'rule.enter', + rule: 'EtherToken', + location: peg$computeLocation(startPos, startPos), + }); + + s0 = peg$currPos; + if (input.substr(peg$currPos, 5) === peg$c58) { + s1 = peg$c58; + peg$currPos += 5; + } else { + s1 = peg$FAILED; + if (peg$silentFails === 0) { + peg$fail(peg$e81); + } + } + if (s1 !== peg$FAILED) { + s2 = peg$currPos; + peg$silentFails++; + s3 = peg$parseIdentifierPart(); + peg$silentFails--; + if (s3 === peg$FAILED) { + s2 = undefined; + } else { + peg$currPos = s2; + s2 = peg$FAILED; + } + if (s2 !== peg$FAILED) { + s1 = [s1, s2]; + s0 = s1; + } else { + peg$currPos = s0; + s0 = peg$FAILED; + } + } else { + peg$currPos = s0; + s0 = peg$FAILED; + } + + if (s0 !== peg$FAILED) { + peg$tracer.trace({ + type: 'rule.match', + rule: 'EtherToken', + result: s0, + location: peg$computeLocation(startPos, peg$currPos), + }); + } else { + peg$tracer.trace({ + type: 'rule.fail', + rule: 'EtherToken', + location: peg$computeLocation(startPos, startPos), + }); + } + + return s0; + } + + function peg$parseEventToken() { + var startPos = peg$currPos; + var s0, s1, s2, s3; + + peg$tracer.trace({ + type: 'rule.enter', + rule: 'EventToken', + location: peg$computeLocation(startPos, startPos), + }); + + s0 = peg$currPos; + if (input.substr(peg$currPos, 5) === peg$c59) { + s1 = peg$c59; + peg$currPos += 5; + } else { + s1 = peg$FAILED; + if (peg$silentFails === 0) { + peg$fail(peg$e82); + } + } + if (s1 !== peg$FAILED) { + s2 = peg$currPos; + peg$silentFails++; + s3 = peg$parseIdentifierPart(); + peg$silentFails--; + if (s3 === peg$FAILED) { + s2 = undefined; + } else { + peg$currPos = s2; + s2 = peg$FAILED; + } + if (s2 !== peg$FAILED) { + s1 = [s1, s2]; + s0 = s1; + } else { + peg$currPos = s0; + s0 = peg$FAILED; + } + } else { + peg$currPos = s0; + s0 = peg$FAILED; + } + + if (s0 !== peg$FAILED) { + peg$tracer.trace({ + type: 'rule.match', + rule: 'EventToken', + result: s0, + location: peg$computeLocation(startPos, peg$currPos), + }); + } else { + peg$tracer.trace({ + type: 'rule.fail', + rule: 'EventToken', + location: peg$computeLocation(startPos, startPos), + }); + } + + return s0; + } + + function peg$parseErrorToken() { + var startPos = peg$currPos; + var s0, s1, s2, s3; + + peg$tracer.trace({ + type: 'rule.enter', + rule: 'ErrorToken', + location: peg$computeLocation(startPos, startPos), + }); + + s0 = peg$currPos; + if (input.substr(peg$currPos, 5) === peg$c60) { + s1 = peg$c60; + peg$currPos += 5; + } else { + s1 = peg$FAILED; + if (peg$silentFails === 0) { + peg$fail(peg$e83); + } + } + if (s1 !== peg$FAILED) { + s2 = peg$currPos; + peg$silentFails++; + s3 = peg$parseIdentifierPart(); + peg$silentFails--; + if (s3 === peg$FAILED) { + s2 = undefined; + } else { + peg$currPos = s2; + s2 = peg$FAILED; + } + if (s2 !== peg$FAILED) { + s1 = [s1, s2]; + s0 = s1; + } else { + peg$currPos = s0; + s0 = peg$FAILED; + } + } else { + peg$currPos = s0; + s0 = peg$FAILED; + } + + if (s0 !== peg$FAILED) { + peg$tracer.trace({ + type: 'rule.match', + rule: 'ErrorToken', + result: s0, + location: peg$computeLocation(startPos, peg$currPos), + }); + } else { + peg$tracer.trace({ + type: 'rule.fail', + rule: 'ErrorToken', + location: peg$computeLocation(startPos, startPos), + }); + } + + return s0; + } + + function peg$parseFalseToken() { + var startPos = peg$currPos; + var s0, s1, s2, s3; + + peg$tracer.trace({ + type: 'rule.enter', + rule: 'FalseToken', + location: peg$computeLocation(startPos, startPos), + }); + + s0 = peg$currPos; + if (input.substr(peg$currPos, 5) === peg$c61) { + s1 = peg$c61; + peg$currPos += 5; + } else { + s1 = peg$FAILED; + if (peg$silentFails === 0) { + peg$fail(peg$e84); + } + } + if (s1 !== peg$FAILED) { + s2 = peg$currPos; + peg$silentFails++; + s3 = peg$parseIdentifierPart(); + peg$silentFails--; + if (s3 === peg$FAILED) { + s2 = undefined; + } else { + peg$currPos = s2; + s2 = peg$FAILED; + } + if (s2 !== peg$FAILED) { + s1 = [s1, s2]; + s0 = s1; + } else { + peg$currPos = s0; + s0 = peg$FAILED; + } + } else { + peg$currPos = s0; + s0 = peg$FAILED; + } + + if (s0 !== peg$FAILED) { + peg$tracer.trace({ + type: 'rule.match', + rule: 'FalseToken', + result: s0, + location: peg$computeLocation(startPos, peg$currPos), + }); + } else { + peg$tracer.trace({ + type: 'rule.fail', + rule: 'FalseToken', + location: peg$computeLocation(startPos, startPos), + }); + } + + return s0; + } + + function peg$parseFinneyToken() { + var startPos = peg$currPos; + var s0, s1, s2, s3; + + peg$tracer.trace({ + type: 'rule.enter', + rule: 'FinneyToken', + location: peg$computeLocation(startPos, startPos), + }); + + s0 = peg$currPos; + if (input.substr(peg$currPos, 6) === peg$c62) { + s1 = peg$c62; + peg$currPos += 6; + } else { + s1 = peg$FAILED; + if (peg$silentFails === 0) { + peg$fail(peg$e85); + } + } + if (s1 !== peg$FAILED) { + s2 = peg$currPos; + peg$silentFails++; + s3 = peg$parseIdentifierPart(); + peg$silentFails--; + if (s3 === peg$FAILED) { + s2 = undefined; + } else { + peg$currPos = s2; + s2 = peg$FAILED; + } + if (s2 !== peg$FAILED) { + s1 = [s1, s2]; + s0 = s1; + } else { + peg$currPos = s0; + s0 = peg$FAILED; + } + } else { + peg$currPos = s0; + s0 = peg$FAILED; + } + + if (s0 !== peg$FAILED) { + peg$tracer.trace({ + type: 'rule.match', + rule: 'FinneyToken', + result: s0, + location: peg$computeLocation(startPos, peg$currPos), + }); + } else { + peg$tracer.trace({ + type: 'rule.fail', + rule: 'FinneyToken', + location: peg$computeLocation(startPos, startPos), + }); + } + + return s0; + } + + function peg$parseForToken() { + var startPos = peg$currPos; + var s0, s1, s2, s3; + + peg$tracer.trace({ + type: 'rule.enter', + rule: 'ForToken', + location: peg$computeLocation(startPos, startPos), + }); + + s0 = peg$currPos; + if (input.substr(peg$currPos, 3) === peg$c63) { + s1 = peg$c63; + peg$currPos += 3; + } else { + s1 = peg$FAILED; + if (peg$silentFails === 0) { + peg$fail(peg$e86); + } + } + if (s1 !== peg$FAILED) { + s2 = peg$currPos; + peg$silentFails++; + s3 = peg$parseIdentifierPart(); + peg$silentFails--; + if (s3 === peg$FAILED) { + s2 = undefined; + } else { + peg$currPos = s2; + s2 = peg$FAILED; + } + if (s2 !== peg$FAILED) { + s1 = [s1, s2]; + s0 = s1; + } else { + peg$currPos = s0; + s0 = peg$FAILED; + } + } else { + peg$currPos = s0; + s0 = peg$FAILED; + } + + if (s0 !== peg$FAILED) { + peg$tracer.trace({ + type: 'rule.match', + rule: 'ForToken', + result: s0, + location: peg$computeLocation(startPos, peg$currPos), + }); + } else { + peg$tracer.trace({ + type: 'rule.fail', + rule: 'ForToken', + location: peg$computeLocation(startPos, startPos), + }); + } + + return s0; + } + + function peg$parseFromToken() { + var startPos = peg$currPos; + var s0, s1, s2, s3; + + peg$tracer.trace({ + type: 'rule.enter', + rule: 'FromToken', + location: peg$computeLocation(startPos, startPos), + }); + + s0 = peg$currPos; + if (input.substr(peg$currPos, 4) === peg$c64) { + s1 = peg$c64; + peg$currPos += 4; + } else { + s1 = peg$FAILED; + if (peg$silentFails === 0) { + peg$fail(peg$e87); + } + } + if (s1 !== peg$FAILED) { + s2 = peg$currPos; + peg$silentFails++; + s3 = peg$parseIdentifierPart(); + peg$silentFails--; + if (s3 === peg$FAILED) { + s2 = undefined; + } else { + peg$currPos = s2; + s2 = peg$FAILED; + } + if (s2 !== peg$FAILED) { + s1 = [s1, s2]; + s0 = s1; + } else { + peg$currPos = s0; + s0 = peg$FAILED; + } + } else { + peg$currPos = s0; + s0 = peg$FAILED; + } + + if (s0 !== peg$FAILED) { + peg$tracer.trace({ + type: 'rule.match', + rule: 'FromToken', + result: s0, + location: peg$computeLocation(startPos, peg$currPos), + }); + } else { + peg$tracer.trace({ + type: 'rule.fail', + rule: 'FromToken', + location: peg$computeLocation(startPos, startPos), + }); + } + + return s0; + } + + function peg$parseFunctionToken() { + var startPos = peg$currPos; + var s0, s1, s2, s3; + + peg$tracer.trace({ + type: 'rule.enter', + rule: 'FunctionToken', + location: peg$computeLocation(startPos, startPos), + }); + + s0 = peg$currPos; + if (input.substr(peg$currPos, 8) === peg$c65) { + s1 = peg$c65; + peg$currPos += 8; + } else { + s1 = peg$FAILED; + if (peg$silentFails === 0) { + peg$fail(peg$e88); + } + } + if (s1 !== peg$FAILED) { + s2 = peg$currPos; + peg$silentFails++; + s3 = peg$parseIdentifierPart(); + peg$silentFails--; + if (s3 === peg$FAILED) { + s2 = undefined; + } else { + peg$currPos = s2; + s2 = peg$FAILED; + } + if (s2 !== peg$FAILED) { + s1 = [s1, s2]; + s0 = s1; + } else { + peg$currPos = s0; + s0 = peg$FAILED; + } + } else { + peg$currPos = s0; + s0 = peg$FAILED; + } + + if (s0 !== peg$FAILED) { + peg$tracer.trace({ + type: 'rule.match', + rule: 'FunctionToken', + result: s0, + location: peg$computeLocation(startPos, peg$currPos), + }); + } else { + peg$tracer.trace({ + type: 'rule.fail', + rule: 'FunctionToken', + location: peg$computeLocation(startPos, startPos), + }); + } + + return s0; + } + + function peg$parseGetToken() { + var startPos = peg$currPos; + var s0, s1, s2, s3; + + peg$tracer.trace({ + type: 'rule.enter', + rule: 'GetToken', + location: peg$computeLocation(startPos, startPos), + }); + + s0 = peg$currPos; + if (input.substr(peg$currPos, 3) === peg$c66) { + s1 = peg$c66; + peg$currPos += 3; + } else { + s1 = peg$FAILED; + if (peg$silentFails === 0) { + peg$fail(peg$e89); + } + } + if (s1 !== peg$FAILED) { + s2 = peg$currPos; + peg$silentFails++; + s3 = peg$parseIdentifierPart(); + peg$silentFails--; + if (s3 === peg$FAILED) { + s2 = undefined; + } else { + peg$currPos = s2; + s2 = peg$FAILED; + } + if (s2 !== peg$FAILED) { + s1 = [s1, s2]; + s0 = s1; + } else { + peg$currPos = s0; + s0 = peg$FAILED; + } + } else { + peg$currPos = s0; + s0 = peg$FAILED; + } + + if (s0 !== peg$FAILED) { + peg$tracer.trace({ + type: 'rule.match', + rule: 'GetToken', + result: s0, + location: peg$computeLocation(startPos, peg$currPos), + }); + } else { + peg$tracer.trace({ + type: 'rule.fail', + rule: 'GetToken', + location: peg$computeLocation(startPos, startPos), + }); + } + + return s0; + } + + function peg$parseHexToken() { + var startPos = peg$currPos; + var s0, s1, s2, s3; + + peg$tracer.trace({ + type: 'rule.enter', + rule: 'HexToken', + location: peg$computeLocation(startPos, startPos), + }); + + s0 = peg$currPos; + if (input.substr(peg$currPos, 3) === peg$c67) { + s1 = peg$c67; + peg$currPos += 3; + } else { + s1 = peg$FAILED; + if (peg$silentFails === 0) { + peg$fail(peg$e90); + } + } + if (s1 !== peg$FAILED) { + s2 = peg$currPos; + peg$silentFails++; + s3 = peg$parseIdentifierPart(); + peg$silentFails--; + if (s3 === peg$FAILED) { + s2 = undefined; + } else { + peg$currPos = s2; + s2 = peg$FAILED; + } + if (s2 !== peg$FAILED) { + s1 = [s1, s2]; + s0 = s1; + } else { + peg$currPos = s0; + s0 = peg$FAILED; + } + } else { + peg$currPos = s0; + s0 = peg$FAILED; + } + + if (s0 !== peg$FAILED) { + peg$tracer.trace({ + type: 'rule.match', + rule: 'HexToken', + result: s0, + location: peg$computeLocation(startPos, peg$currPos), + }); + } else { + peg$tracer.trace({ + type: 'rule.fail', + rule: 'HexToken', + location: peg$computeLocation(startPos, startPos), + }); + } + + return s0; + } + + function peg$parseHoursToken() { + var startPos = peg$currPos; + var s0, s1, s2, s3; + + peg$tracer.trace({ + type: 'rule.enter', + rule: 'HoursToken', + location: peg$computeLocation(startPos, startPos), + }); + + s0 = peg$currPos; + if (input.substr(peg$currPos, 5) === peg$c68) { + s1 = peg$c68; + peg$currPos += 5; + } else { + s1 = peg$FAILED; + if (peg$silentFails === 0) { + peg$fail(peg$e91); + } + } + if (s1 !== peg$FAILED) { + s2 = peg$currPos; + peg$silentFails++; + s3 = peg$parseIdentifierPart(); + peg$silentFails--; + if (s3 === peg$FAILED) { + s2 = undefined; + } else { + peg$currPos = s2; + s2 = peg$FAILED; + } + if (s2 !== peg$FAILED) { + s1 = [s1, s2]; + s0 = s1; + } else { + peg$currPos = s0; + s0 = peg$FAILED; + } + } else { + peg$currPos = s0; + s0 = peg$FAILED; + } + + if (s0 !== peg$FAILED) { + peg$tracer.trace({ + type: 'rule.match', + rule: 'HoursToken', + result: s0, + location: peg$computeLocation(startPos, peg$currPos), + }); + } else { + peg$tracer.trace({ + type: 'rule.fail', + rule: 'HoursToken', + location: peg$computeLocation(startPos, startPos), + }); + } + + return s0; + } + + function peg$parseIfToken() { + var startPos = peg$currPos; + var s0, s1, s2, s3; + + peg$tracer.trace({ + type: 'rule.enter', + rule: 'IfToken', + location: peg$computeLocation(startPos, startPos), + }); + + s0 = peg$currPos; + if (input.substr(peg$currPos, 2) === peg$c69) { + s1 = peg$c69; + peg$currPos += 2; + } else { + s1 = peg$FAILED; + if (peg$silentFails === 0) { + peg$fail(peg$e92); + } + } + if (s1 !== peg$FAILED) { + s2 = peg$currPos; + peg$silentFails++; + s3 = peg$parseIdentifierPart(); + peg$silentFails--; + if (s3 === peg$FAILED) { + s2 = undefined; + } else { + peg$currPos = s2; + s2 = peg$FAILED; + } + if (s2 !== peg$FAILED) { + s1 = [s1, s2]; + s0 = s1; + } else { + peg$currPos = s0; + s0 = peg$FAILED; + } + } else { + peg$currPos = s0; + s0 = peg$FAILED; + } + + if (s0 !== peg$FAILED) { + peg$tracer.trace({ + type: 'rule.match', + rule: 'IfToken', + result: s0, + location: peg$computeLocation(startPos, peg$currPos), + }); + } else { + peg$tracer.trace({ + type: 'rule.fail', + rule: 'IfToken', + location: peg$computeLocation(startPos, startPos), + }); + } + + return s0; + } + + function peg$parseTryToken() { + var startPos = peg$currPos; + var s0, s1, s2, s3; + + peg$tracer.trace({ + type: 'rule.enter', + rule: 'TryToken', + location: peg$computeLocation(startPos, startPos), + }); + + s0 = peg$currPos; + if (input.substr(peg$currPos, 3) === peg$c70) { + s1 = peg$c70; + peg$currPos += 3; + } else { + s1 = peg$FAILED; + if (peg$silentFails === 0) { + peg$fail(peg$e93); + } + } + if (s1 !== peg$FAILED) { + s2 = peg$currPos; + peg$silentFails++; + s3 = peg$parseIdentifierPart(); + peg$silentFails--; + if (s3 === peg$FAILED) { + s2 = undefined; + } else { + peg$currPos = s2; + s2 = peg$FAILED; + } + if (s2 !== peg$FAILED) { + s1 = [s1, s2]; + s0 = s1; + } else { + peg$currPos = s0; + s0 = peg$FAILED; + } + } else { + peg$currPos = s0; + s0 = peg$FAILED; + } + + if (s0 !== peg$FAILED) { + peg$tracer.trace({ + type: 'rule.match', + rule: 'TryToken', + result: s0, + location: peg$computeLocation(startPos, peg$currPos), + }); + } else { + peg$tracer.trace({ + type: 'rule.fail', + rule: 'TryToken', + location: peg$computeLocation(startPos, startPos), + }); + } + + return s0; + } + + function peg$parseCatchToken() { + var startPos = peg$currPos; + var s0, s1, s2, s3; + + peg$tracer.trace({ + type: 'rule.enter', + rule: 'CatchToken', + location: peg$computeLocation(startPos, startPos), + }); + + s0 = peg$currPos; + if (input.substr(peg$currPos, 5) === peg$c71) { + s1 = peg$c71; + peg$currPos += 5; + } else { + s1 = peg$FAILED; + if (peg$silentFails === 0) { + peg$fail(peg$e94); + } + } + if (s1 !== peg$FAILED) { + s2 = peg$currPos; + peg$silentFails++; + s3 = peg$parseIdentifierPart(); + peg$silentFails--; + if (s3 === peg$FAILED) { + s2 = undefined; + } else { + peg$currPos = s2; + s2 = peg$FAILED; + } + if (s2 !== peg$FAILED) { + s1 = [s1, s2]; + s0 = s1; + } else { + peg$currPos = s0; + s0 = peg$FAILED; + } + } else { + peg$currPos = s0; + s0 = peg$FAILED; + } + + if (s0 !== peg$FAILED) { + peg$tracer.trace({ + type: 'rule.match', + rule: 'CatchToken', + result: s0, + location: peg$computeLocation(startPos, peg$currPos), + }); + } else { + peg$tracer.trace({ + type: 'rule.fail', + rule: 'CatchToken', + location: peg$computeLocation(startPos, startPos), + }); + } + + return s0; + } + + function peg$parseIsToken() { + var startPos = peg$currPos; + var s0, s1, s2, s3; + + peg$tracer.trace({ + type: 'rule.enter', + rule: 'IsToken', + location: peg$computeLocation(startPos, startPos), + }); + + s0 = peg$currPos; + if (input.substr(peg$currPos, 2) === peg$c72) { + s1 = peg$c72; + peg$currPos += 2; + } else { + s1 = peg$FAILED; + if (peg$silentFails === 0) { + peg$fail(peg$e95); + } + } + if (s1 !== peg$FAILED) { + s2 = peg$currPos; + peg$silentFails++; + s3 = peg$parseIdentifierPart(); + peg$silentFails--; + if (s3 === peg$FAILED) { + s2 = undefined; + } else { + peg$currPos = s2; + s2 = peg$FAILED; + } + if (s2 !== peg$FAILED) { + s1 = [s1, s2]; + s0 = s1; + } else { + peg$currPos = s0; + s0 = peg$FAILED; + } + } else { + peg$currPos = s0; + s0 = peg$FAILED; + } + + if (s0 !== peg$FAILED) { + peg$tracer.trace({ + type: 'rule.match', + rule: 'IsToken', + result: s0, + location: peg$computeLocation(startPos, peg$currPos), + }); + } else { + peg$tracer.trace({ + type: 'rule.fail', + rule: 'IsToken', + location: peg$computeLocation(startPos, startPos), + }); + } + + return s0; + } + + function peg$parseIndexedToken() { + var startPos = peg$currPos; + var s0, s1, s2, s3; + + peg$tracer.trace({ + type: 'rule.enter', + rule: 'IndexedToken', + location: peg$computeLocation(startPos, startPos), + }); + + s0 = peg$currPos; + if (input.substr(peg$currPos, 7) === peg$c73) { + s1 = peg$c73; + peg$currPos += 7; + } else { + s1 = peg$FAILED; + if (peg$silentFails === 0) { + peg$fail(peg$e96); + } + } + if (s1 !== peg$FAILED) { + s2 = peg$currPos; + peg$silentFails++; + s3 = peg$parseIdentifierPart(); + peg$silentFails--; + if (s3 === peg$FAILED) { + s2 = undefined; + } else { + peg$currPos = s2; + s2 = peg$FAILED; + } + if (s2 !== peg$FAILED) { + s1 = [s1, s2]; + s0 = s1; + } else { + peg$currPos = s0; + s0 = peg$FAILED; + } + } else { + peg$currPos = s0; + s0 = peg$FAILED; + } + + if (s0 !== peg$FAILED) { + peg$tracer.trace({ + type: 'rule.match', + rule: 'IndexedToken', + result: s0, + location: peg$computeLocation(startPos, peg$currPos), + }); + } else { + peg$tracer.trace({ + type: 'rule.fail', + rule: 'IndexedToken', + location: peg$computeLocation(startPos, startPos), + }); + } + + return s0; + } + + function peg$parseImportToken() { + var startPos = peg$currPos; + var s0, s1, s2, s3; + + peg$tracer.trace({ + type: 'rule.enter', + rule: 'ImportToken', + location: peg$computeLocation(startPos, startPos), + }); + + s0 = peg$currPos; + if (input.substr(peg$currPos, 6) === peg$c74) { + s1 = peg$c74; + peg$currPos += 6; + } else { + s1 = peg$FAILED; + if (peg$silentFails === 0) { + peg$fail(peg$e97); + } + } + if (s1 !== peg$FAILED) { + s2 = peg$currPos; + peg$silentFails++; + s3 = peg$parseIdentifierPart(); + peg$silentFails--; + if (s3 === peg$FAILED) { + s2 = undefined; + } else { + peg$currPos = s2; + s2 = peg$FAILED; + } + if (s2 !== peg$FAILED) { + s1 = [s1, s2]; + s0 = s1; + } else { + peg$currPos = s0; + s0 = peg$FAILED; + } + } else { + peg$currPos = s0; + s0 = peg$FAILED; + } + + if (s0 !== peg$FAILED) { + peg$tracer.trace({ + type: 'rule.match', + rule: 'ImportToken', + result: s0, + location: peg$computeLocation(startPos, peg$currPos), + }); + } else { + peg$tracer.trace({ + type: 'rule.fail', + rule: 'ImportToken', + location: peg$computeLocation(startPos, startPos), + }); + } + + return s0; + } + + function peg$parseInterfaceToken() { + var startPos = peg$currPos; + var s0, s1, s2, s3; + + peg$tracer.trace({ + type: 'rule.enter', + rule: 'InterfaceToken', + location: peg$computeLocation(startPos, startPos), + }); + + s0 = peg$currPos; + if (input.substr(peg$currPos, 9) === peg$c75) { + s1 = peg$c75; + peg$currPos += 9; + } else { + s1 = peg$FAILED; + if (peg$silentFails === 0) { + peg$fail(peg$e98); + } + } + if (s1 !== peg$FAILED) { + s2 = peg$currPos; + peg$silentFails++; + s3 = peg$parseIdentifierPart(); + peg$silentFails--; + if (s3 === peg$FAILED) { + s2 = undefined; + } else { + peg$currPos = s2; + s2 = peg$FAILED; + } + if (s2 !== peg$FAILED) { + s1 = [s1, s2]; + s0 = s1; + } else { + peg$currPos = s0; + s0 = peg$FAILED; + } + } else { + peg$currPos = s0; + s0 = peg$FAILED; + } + + if (s0 !== peg$FAILED) { + peg$tracer.trace({ + type: 'rule.match', + rule: 'InterfaceToken', + result: s0, + location: peg$computeLocation(startPos, peg$currPos), + }); + } else { + peg$tracer.trace({ + type: 'rule.fail', + rule: 'InterfaceToken', + location: peg$computeLocation(startPos, startPos), + }); + } + + return s0; + } + + function peg$parseInternalToken() { + var startPos = peg$currPos; + var s0, s1, s2, s3; + + peg$tracer.trace({ + type: 'rule.enter', + rule: 'InternalToken', + location: peg$computeLocation(startPos, startPos), + }); + + s0 = peg$currPos; + if (input.substr(peg$currPos, 8) === peg$c76) { + s1 = peg$c76; + peg$currPos += 8; + } else { + s1 = peg$FAILED; + if (peg$silentFails === 0) { + peg$fail(peg$e99); + } + } + if (s1 !== peg$FAILED) { + s2 = peg$currPos; + peg$silentFails++; + s3 = peg$parseIdentifierPart(); + peg$silentFails--; + if (s3 === peg$FAILED) { + s2 = undefined; + } else { + peg$currPos = s2; + s2 = peg$FAILED; + } + if (s2 !== peg$FAILED) { + s1 = [s1, s2]; + s0 = s1; + } else { + peg$currPos = s0; + s0 = peg$FAILED; + } + } else { + peg$currPos = s0; + s0 = peg$FAILED; + } + + if (s0 !== peg$FAILED) { + peg$tracer.trace({ + type: 'rule.match', + rule: 'InternalToken', + result: s0, + location: peg$computeLocation(startPos, peg$currPos), + }); + } else { + peg$tracer.trace({ + type: 'rule.fail', + rule: 'InternalToken', + location: peg$computeLocation(startPos, startPos), + }); + } + + return s0; + } + + function peg$parseLibraryToken() { + var startPos = peg$currPos; + var s0, s1, s2, s3; + + peg$tracer.trace({ + type: 'rule.enter', + rule: 'LibraryToken', + location: peg$computeLocation(startPos, startPos), + }); + + s0 = peg$currPos; + if (input.substr(peg$currPos, 7) === peg$c77) { + s1 = peg$c77; + peg$currPos += 7; + } else { + s1 = peg$FAILED; + if (peg$silentFails === 0) { + peg$fail(peg$e100); + } + } + if (s1 !== peg$FAILED) { + s2 = peg$currPos; + peg$silentFails++; + s3 = peg$parseIdentifierPart(); + peg$silentFails--; + if (s3 === peg$FAILED) { + s2 = undefined; + } else { + peg$currPos = s2; + s2 = peg$FAILED; + } + if (s2 !== peg$FAILED) { + s1 = [s1, s2]; + s0 = s1; + } else { + peg$currPos = s0; + s0 = peg$FAILED; + } + } else { + peg$currPos = s0; + s0 = peg$FAILED; + } + + if (s0 !== peg$FAILED) { + peg$tracer.trace({ + type: 'rule.match', + rule: 'LibraryToken', + result: s0, + location: peg$computeLocation(startPos, peg$currPos), + }); + } else { + peg$tracer.trace({ + type: 'rule.fail', + rule: 'LibraryToken', + location: peg$computeLocation(startPos, startPos), + }); + } + + return s0; + } + + function peg$parseMappingToken() { + var startPos = peg$currPos; + var s0, s1, s2, s3; + + peg$tracer.trace({ + type: 'rule.enter', + rule: 'MappingToken', + location: peg$computeLocation(startPos, startPos), + }); + + s0 = peg$currPos; + if (input.substr(peg$currPos, 7) === peg$c78) { + s1 = peg$c78; + peg$currPos += 7; + } else { + s1 = peg$FAILED; + if (peg$silentFails === 0) { + peg$fail(peg$e101); + } + } + if (s1 !== peg$FAILED) { + s2 = peg$currPos; + peg$silentFails++; + s3 = peg$parseIdentifierPart(); + peg$silentFails--; + if (s3 === peg$FAILED) { + s2 = undefined; + } else { + peg$currPos = s2; + s2 = peg$FAILED; + } + if (s2 !== peg$FAILED) { + s1 = [s1, s2]; + s0 = s1; + } else { + peg$currPos = s0; + s0 = peg$FAILED; + } + } else { + peg$currPos = s0; + s0 = peg$FAILED; + } + + if (s0 !== peg$FAILED) { + peg$tracer.trace({ + type: 'rule.match', + rule: 'MappingToken', + result: s0, + location: peg$computeLocation(startPos, peg$currPos), + }); + } else { + peg$tracer.trace({ + type: 'rule.fail', + rule: 'MappingToken', + location: peg$computeLocation(startPos, startPos), + }); + } + + return s0; + } + + function peg$parseMemoryToken() { + var startPos = peg$currPos; + var s0, s1, s2, s3; + + peg$tracer.trace({ + type: 'rule.enter', + rule: 'MemoryToken', + location: peg$computeLocation(startPos, startPos), + }); + + s0 = peg$currPos; + if (input.substr(peg$currPos, 6) === peg$c79) { + s1 = peg$c79; + peg$currPos += 6; + } else { + s1 = peg$FAILED; + if (peg$silentFails === 0) { + peg$fail(peg$e102); + } + } + if (s1 !== peg$FAILED) { + s2 = peg$currPos; + peg$silentFails++; + s3 = peg$parseIdentifierPart(); + peg$silentFails--; + if (s3 === peg$FAILED) { + s2 = undefined; + } else { + peg$currPos = s2; + s2 = peg$FAILED; + } + if (s2 !== peg$FAILED) { + s1 = [s1, s2]; + s0 = s1; + } else { + peg$currPos = s0; + s0 = peg$FAILED; + } + } else { + peg$currPos = s0; + s0 = peg$FAILED; + } + + if (s0 !== peg$FAILED) { + peg$tracer.trace({ + type: 'rule.match', + rule: 'MemoryToken', + result: s0, + location: peg$computeLocation(startPos, peg$currPos), + }); + } else { + peg$tracer.trace({ + type: 'rule.fail', + rule: 'MemoryToken', + location: peg$computeLocation(startPos, startPos), + }); + } + + return s0; + } + + function peg$parseMinutesToken() { + var startPos = peg$currPos; + var s0, s1, s2, s3; + + peg$tracer.trace({ + type: 'rule.enter', + rule: 'MinutesToken', + location: peg$computeLocation(startPos, startPos), + }); + + s0 = peg$currPos; + if (input.substr(peg$currPos, 7) === peg$c80) { + s1 = peg$c80; + peg$currPos += 7; + } else { + s1 = peg$FAILED; + if (peg$silentFails === 0) { + peg$fail(peg$e103); + } + } + if (s1 !== peg$FAILED) { + s2 = peg$currPos; + peg$silentFails++; + s3 = peg$parseIdentifierPart(); + peg$silentFails--; + if (s3 === peg$FAILED) { + s2 = undefined; + } else { + peg$currPos = s2; + s2 = peg$FAILED; + } + if (s2 !== peg$FAILED) { + s1 = [s1, s2]; + s0 = s1; + } else { + peg$currPos = s0; + s0 = peg$FAILED; + } + } else { + peg$currPos = s0; + s0 = peg$FAILED; + } + + if (s0 !== peg$FAILED) { + peg$tracer.trace({ + type: 'rule.match', + rule: 'MinutesToken', + result: s0, + location: peg$computeLocation(startPos, peg$currPos), + }); + } else { + peg$tracer.trace({ + type: 'rule.fail', + rule: 'MinutesToken', + location: peg$computeLocation(startPos, startPos), + }); + } + + return s0; + } + + function peg$parseModifierToken() { + var startPos = peg$currPos; + var s0, s1, s2, s3; + + peg$tracer.trace({ + type: 'rule.enter', + rule: 'ModifierToken', + location: peg$computeLocation(startPos, startPos), + }); + + s0 = peg$currPos; + if (input.substr(peg$currPos, 8) === peg$c81) { + s1 = peg$c81; + peg$currPos += 8; + } else { + s1 = peg$FAILED; + if (peg$silentFails === 0) { + peg$fail(peg$e104); + } + } + if (s1 !== peg$FAILED) { + s2 = peg$currPos; + peg$silentFails++; + s3 = peg$parseIdentifierPart(); + peg$silentFails--; + if (s3 === peg$FAILED) { + s2 = undefined; + } else { + peg$currPos = s2; + s2 = peg$FAILED; + } + if (s2 !== peg$FAILED) { + s1 = [s1, s2]; + s0 = s1; + } else { + peg$currPos = s0; + s0 = peg$FAILED; + } + } else { + peg$currPos = s0; + s0 = peg$FAILED; + } + + if (s0 !== peg$FAILED) { + peg$tracer.trace({ + type: 'rule.match', + rule: 'ModifierToken', + result: s0, + location: peg$computeLocation(startPos, peg$currPos), + }); + } else { + peg$tracer.trace({ + type: 'rule.fail', + rule: 'ModifierToken', + location: peg$computeLocation(startPos, startPos), + }); + } + + return s0; + } + + function peg$parseNewToken() { + var startPos = peg$currPos; + var s0, s1, s2, s3; + + peg$tracer.trace({ + type: 'rule.enter', + rule: 'NewToken', + location: peg$computeLocation(startPos, startPos), + }); + + s0 = peg$currPos; + if (input.substr(peg$currPos, 3) === peg$c82) { + s1 = peg$c82; + peg$currPos += 3; + } else { + s1 = peg$FAILED; + if (peg$silentFails === 0) { + peg$fail(peg$e105); + } + } + if (s1 !== peg$FAILED) { + s2 = peg$currPos; + peg$silentFails++; + s3 = peg$parseIdentifierPart(); + peg$silentFails--; + if (s3 === peg$FAILED) { + s2 = undefined; + } else { + peg$currPos = s2; + s2 = peg$FAILED; + } + if (s2 !== peg$FAILED) { + s1 = [s1, s2]; + s0 = s1; + } else { + peg$currPos = s0; + s0 = peg$FAILED; + } + } else { + peg$currPos = s0; + s0 = peg$FAILED; + } + + if (s0 !== peg$FAILED) { + peg$tracer.trace({ + type: 'rule.match', + rule: 'NewToken', + result: s0, + location: peg$computeLocation(startPos, peg$currPos), + }); + } else { + peg$tracer.trace({ + type: 'rule.fail', + rule: 'NewToken', + location: peg$computeLocation(startPos, startPos), + }); + } + + return s0; + } + + function peg$parseNullToken() { + var startPos = peg$currPos; + var s0, s1, s2, s3; + + peg$tracer.trace({ + type: 'rule.enter', + rule: 'NullToken', + location: peg$computeLocation(startPos, startPos), + }); + + s0 = peg$currPos; + if (input.substr(peg$currPos, 4) === peg$c83) { + s1 = peg$c83; + peg$currPos += 4; + } else { + s1 = peg$FAILED; + if (peg$silentFails === 0) { + peg$fail(peg$e106); + } + } + if (s1 !== peg$FAILED) { + s2 = peg$currPos; + peg$silentFails++; + s3 = peg$parseIdentifierPart(); + peg$silentFails--; + if (s3 === peg$FAILED) { + s2 = undefined; + } else { + peg$currPos = s2; + s2 = peg$FAILED; + } + if (s2 !== peg$FAILED) { + s1 = [s1, s2]; + s0 = s1; + } else { + peg$currPos = s0; + s0 = peg$FAILED; + } + } else { + peg$currPos = s0; + s0 = peg$FAILED; + } + + if (s0 !== peg$FAILED) { + peg$tracer.trace({ + type: 'rule.match', + rule: 'NullToken', + result: s0, + location: peg$computeLocation(startPos, peg$currPos), + }); + } else { + peg$tracer.trace({ + type: 'rule.fail', + rule: 'NullToken', + location: peg$computeLocation(startPos, startPos), + }); + } + + return s0; + } + + function peg$parsePrivateToken() { + var startPos = peg$currPos; + var s0, s1, s2, s3; + + peg$tracer.trace({ + type: 'rule.enter', + rule: 'PrivateToken', + location: peg$computeLocation(startPos, startPos), + }); + + s0 = peg$currPos; + if (input.substr(peg$currPos, 7) === peg$c84) { + s1 = peg$c84; + peg$currPos += 7; + } else { + s1 = peg$FAILED; + if (peg$silentFails === 0) { + peg$fail(peg$e107); + } + } + if (s1 !== peg$FAILED) { + s2 = peg$currPos; + peg$silentFails++; + s3 = peg$parseIdentifierPart(); + peg$silentFails--; + if (s3 === peg$FAILED) { + s2 = undefined; + } else { + peg$currPos = s2; + s2 = peg$FAILED; + } + if (s2 !== peg$FAILED) { + s1 = [s1, s2]; + s0 = s1; + } else { + peg$currPos = s0; + s0 = peg$FAILED; + } + } else { + peg$currPos = s0; + s0 = peg$FAILED; + } + + if (s0 !== peg$FAILED) { + peg$tracer.trace({ + type: 'rule.match', + rule: 'PrivateToken', + result: s0, + location: peg$computeLocation(startPos, peg$currPos), + }); + } else { + peg$tracer.trace({ + type: 'rule.fail', + rule: 'PrivateToken', + location: peg$computeLocation(startPos, startPos), + }); + } + + return s0; + } + + function peg$parsePragmaToken() { + var startPos = peg$currPos; + var s0, s1, s2, s3; + + peg$tracer.trace({ + type: 'rule.enter', + rule: 'PragmaToken', + location: peg$computeLocation(startPos, startPos), + }); + + s0 = peg$currPos; + if (input.substr(peg$currPos, 6) === peg$c85) { + s1 = peg$c85; + peg$currPos += 6; + } else { + s1 = peg$FAILED; + if (peg$silentFails === 0) { + peg$fail(peg$e108); + } + } + if (s1 !== peg$FAILED) { + s2 = peg$currPos; + peg$silentFails++; + s3 = peg$parseIdentifierPart(); + peg$silentFails--; + if (s3 === peg$FAILED) { + s2 = undefined; + } else { + peg$currPos = s2; + s2 = peg$FAILED; + } + if (s2 !== peg$FAILED) { + s1 = [s1, s2]; + s0 = s1; + } else { + peg$currPos = s0; + s0 = peg$FAILED; + } + } else { + peg$currPos = s0; + s0 = peg$FAILED; + } + + if (s0 !== peg$FAILED) { + peg$tracer.trace({ + type: 'rule.match', + rule: 'PragmaToken', + result: s0, + location: peg$computeLocation(startPos, peg$currPos), + }); + } else { + peg$tracer.trace({ + type: 'rule.fail', + rule: 'PragmaToken', + location: peg$computeLocation(startPos, startPos), + }); + } + + return s0; + } + + function peg$parsePublicToken() { + var startPos = peg$currPos; + var s0, s1, s2, s3; + + peg$tracer.trace({ + type: 'rule.enter', + rule: 'PublicToken', + location: peg$computeLocation(startPos, startPos), + }); + + s0 = peg$currPos; + if (input.substr(peg$currPos, 6) === peg$c86) { + s1 = peg$c86; + peg$currPos += 6; + } else { + s1 = peg$FAILED; + if (peg$silentFails === 0) { + peg$fail(peg$e109); + } + } + if (s1 !== peg$FAILED) { + s2 = peg$currPos; + peg$silentFails++; + s3 = peg$parseIdentifierPart(); + peg$silentFails--; + if (s3 === peg$FAILED) { + s2 = undefined; + } else { + peg$currPos = s2; + s2 = peg$FAILED; + } + if (s2 !== peg$FAILED) { + s1 = [s1, s2]; + s0 = s1; + } else { + peg$currPos = s0; + s0 = peg$FAILED; + } + } else { + peg$currPos = s0; + s0 = peg$FAILED; + } + + if (s0 !== peg$FAILED) { + peg$tracer.trace({ + type: 'rule.match', + rule: 'PublicToken', + result: s0, + location: peg$computeLocation(startPos, peg$currPos), + }); + } else { + peg$tracer.trace({ + type: 'rule.fail', + rule: 'PublicToken', + location: peg$computeLocation(startPos, startPos), + }); + } + + return s0; + } + + function peg$parseReturnToken() { + var startPos = peg$currPos; + var s0, s1, s2, s3; + + peg$tracer.trace({ + type: 'rule.enter', + rule: 'ReturnToken', + location: peg$computeLocation(startPos, startPos), + }); + + s0 = peg$currPos; + if (input.substr(peg$currPos, 6) === peg$c87) { + s1 = peg$c87; + peg$currPos += 6; + } else { + s1 = peg$FAILED; + if (peg$silentFails === 0) { + peg$fail(peg$e110); + } + } + if (s1 !== peg$FAILED) { + s2 = peg$currPos; + peg$silentFails++; + s3 = peg$parseIdentifierPart(); + peg$silentFails--; + if (s3 === peg$FAILED) { + s2 = undefined; + } else { + peg$currPos = s2; + s2 = peg$FAILED; + } + if (s2 !== peg$FAILED) { + s1 = [s1, s2]; + s0 = s1; + } else { + peg$currPos = s0; + s0 = peg$FAILED; + } + } else { + peg$currPos = s0; + s0 = peg$FAILED; + } + + if (s0 !== peg$FAILED) { + peg$tracer.trace({ + type: 'rule.match', + rule: 'ReturnToken', + result: s0, + location: peg$computeLocation(startPos, peg$currPos), + }); + } else { + peg$tracer.trace({ + type: 'rule.fail', + rule: 'ReturnToken', + location: peg$computeLocation(startPos, startPos), + }); + } + + return s0; + } + + function peg$parseReturnsToken() { + var startPos = peg$currPos; + var s0, s1, s2, s3; + + peg$tracer.trace({ + type: 'rule.enter', + rule: 'ReturnsToken', + location: peg$computeLocation(startPos, startPos), + }); + + s0 = peg$currPos; + if (input.substr(peg$currPos, 7) === peg$c88) { + s1 = peg$c88; + peg$currPos += 7; + } else { + s1 = peg$FAILED; + if (peg$silentFails === 0) { + peg$fail(peg$e111); + } + } + if (s1 !== peg$FAILED) { + s2 = peg$currPos; + peg$silentFails++; + s3 = peg$parseIdentifierPart(); + peg$silentFails--; + if (s3 === peg$FAILED) { + s2 = undefined; + } else { + peg$currPos = s2; + s2 = peg$FAILED; + } + if (s2 !== peg$FAILED) { + s1 = [s1, s2]; + s0 = s1; + } else { + peg$currPos = s0; + s0 = peg$FAILED; + } + } else { + peg$currPos = s0; + s0 = peg$FAILED; + } + + if (s0 !== peg$FAILED) { + peg$tracer.trace({ + type: 'rule.match', + rule: 'ReturnsToken', + result: s0, + location: peg$computeLocation(startPos, peg$currPos), + }); + } else { + peg$tracer.trace({ + type: 'rule.fail', + rule: 'ReturnsToken', + location: peg$computeLocation(startPos, startPos), + }); + } + + return s0; + } + + function peg$parseSecondsToken() { + var startPos = peg$currPos; + var s0, s1, s2, s3; + + peg$tracer.trace({ + type: 'rule.enter', + rule: 'SecondsToken', + location: peg$computeLocation(startPos, startPos), + }); + + s0 = peg$currPos; + if (input.substr(peg$currPos, 7) === peg$c89) { + s1 = peg$c89; + peg$currPos += 7; + } else { + s1 = peg$FAILED; + if (peg$silentFails === 0) { + peg$fail(peg$e112); + } + } + if (s1 !== peg$FAILED) { + s2 = peg$currPos; + peg$silentFails++; + s3 = peg$parseIdentifierPart(); + peg$silentFails--; + if (s3 === peg$FAILED) { + s2 = undefined; + } else { + peg$currPos = s2; + s2 = peg$FAILED; + } + if (s2 !== peg$FAILED) { + s1 = [s1, s2]; + s0 = s1; + } else { + peg$currPos = s0; + s0 = peg$FAILED; + } + } else { + peg$currPos = s0; + s0 = peg$FAILED; + } + + if (s0 !== peg$FAILED) { + peg$tracer.trace({ + type: 'rule.match', + rule: 'SecondsToken', + result: s0, + location: peg$computeLocation(startPos, peg$currPos), + }); + } else { + peg$tracer.trace({ + type: 'rule.fail', + rule: 'SecondsToken', + location: peg$computeLocation(startPos, startPos), + }); + } + + return s0; + } + + function peg$parseSetToken() { + var startPos = peg$currPos; + var s0, s1, s2, s3; + + peg$tracer.trace({ + type: 'rule.enter', + rule: 'SetToken', + location: peg$computeLocation(startPos, startPos), + }); + + s0 = peg$currPos; + if (input.substr(peg$currPos, 3) === peg$c90) { + s1 = peg$c90; + peg$currPos += 3; + } else { + s1 = peg$FAILED; + if (peg$silentFails === 0) { + peg$fail(peg$e113); + } + } + if (s1 !== peg$FAILED) { + s2 = peg$currPos; + peg$silentFails++; + s3 = peg$parseIdentifierPart(); + peg$silentFails--; + if (s3 === peg$FAILED) { + s2 = undefined; + } else { + peg$currPos = s2; + s2 = peg$FAILED; + } + if (s2 !== peg$FAILED) { + s1 = [s1, s2]; + s0 = s1; + } else { + peg$currPos = s0; + s0 = peg$FAILED; + } + } else { + peg$currPos = s0; + s0 = peg$FAILED; + } + + if (s0 !== peg$FAILED) { + peg$tracer.trace({ + type: 'rule.match', + rule: 'SetToken', + result: s0, + location: peg$computeLocation(startPos, peg$currPos), + }); + } else { + peg$tracer.trace({ + type: 'rule.fail', + rule: 'SetToken', + location: peg$computeLocation(startPos, startPos), + }); + } + + return s0; + } + + function peg$parseSolidityToken() { + var startPos = peg$currPos; + var s0, s1, s2, s3; + + peg$tracer.trace({ + type: 'rule.enter', + rule: 'SolidityToken', + location: peg$computeLocation(startPos, startPos), + }); + + s0 = peg$currPos; + if (input.substr(peg$currPos, 8) === peg$c91) { + s1 = peg$c91; + peg$currPos += 8; + } else { + s1 = peg$FAILED; + if (peg$silentFails === 0) { + peg$fail(peg$e114); + } + } + if (s1 !== peg$FAILED) { + s2 = peg$currPos; + peg$silentFails++; + s3 = peg$parseIdentifierPart(); + peg$silentFails--; + if (s3 === peg$FAILED) { + s2 = undefined; + } else { + peg$currPos = s2; + s2 = peg$FAILED; + } + if (s2 !== peg$FAILED) { + s1 = [s1, s2]; + s0 = s1; + } else { + peg$currPos = s0; + s0 = peg$FAILED; + } + } else { + peg$currPos = s0; + s0 = peg$FAILED; + } + + if (s0 !== peg$FAILED) { + peg$tracer.trace({ + type: 'rule.match', + rule: 'SolidityToken', + result: s0, + location: peg$computeLocation(startPos, peg$currPos), + }); + } else { + peg$tracer.trace({ + type: 'rule.fail', + rule: 'SolidityToken', + location: peg$computeLocation(startPos, startPos), + }); + } + + return s0; + } + + function peg$parseStorageToken() { + var startPos = peg$currPos; + var s0, s1, s2, s3; + + peg$tracer.trace({ + type: 'rule.enter', + rule: 'StorageToken', + location: peg$computeLocation(startPos, startPos), + }); + + s0 = peg$currPos; + if (input.substr(peg$currPos, 7) === peg$c92) { + s1 = peg$c92; + peg$currPos += 7; + } else { + s1 = peg$FAILED; + if (peg$silentFails === 0) { + peg$fail(peg$e115); + } + } + if (s1 !== peg$FAILED) { + s2 = peg$currPos; + peg$silentFails++; + s3 = peg$parseIdentifierPart(); + peg$silentFails--; + if (s3 === peg$FAILED) { + s2 = undefined; + } else { + peg$currPos = s2; + s2 = peg$FAILED; + } + if (s2 !== peg$FAILED) { + s1 = [s1, s2]; + s0 = s1; + } else { + peg$currPos = s0; + s0 = peg$FAILED; + } + } else { + peg$currPos = s0; + s0 = peg$FAILED; + } + + if (s0 !== peg$FAILED) { + peg$tracer.trace({ + type: 'rule.match', + rule: 'StorageToken', + result: s0, + location: peg$computeLocation(startPos, peg$currPos), + }); + } else { + peg$tracer.trace({ + type: 'rule.fail', + rule: 'StorageToken', + location: peg$computeLocation(startPos, startPos), + }); + } + + return s0; + } + + function peg$parseStructToken() { + var startPos = peg$currPos; + var s0, s1, s2, s3; + + peg$tracer.trace({ + type: 'rule.enter', + rule: 'StructToken', + location: peg$computeLocation(startPos, startPos), + }); + + s0 = peg$currPos; + if (input.substr(peg$currPos, 6) === peg$c93) { + s1 = peg$c93; + peg$currPos += 6; + } else { + s1 = peg$FAILED; + if (peg$silentFails === 0) { + peg$fail(peg$e116); + } + } + if (s1 !== peg$FAILED) { + s2 = peg$currPos; + peg$silentFails++; + s3 = peg$parseIdentifierPart(); + peg$silentFails--; + if (s3 === peg$FAILED) { + s2 = undefined; + } else { + peg$currPos = s2; + s2 = peg$FAILED; + } + if (s2 !== peg$FAILED) { + s1 = [s1, s2]; + s0 = s1; + } else { + peg$currPos = s0; + s0 = peg$FAILED; + } + } else { + peg$currPos = s0; + s0 = peg$FAILED; + } + + if (s0 !== peg$FAILED) { + peg$tracer.trace({ + type: 'rule.match', + rule: 'StructToken', + result: s0, + location: peg$computeLocation(startPos, peg$currPos), + }); + } else { + peg$tracer.trace({ + type: 'rule.fail', + rule: 'StructToken', + location: peg$computeLocation(startPos, startPos), + }); + } + + return s0; + } + + function peg$parseSuperToken() { + var startPos = peg$currPos; + var s0, s1, s2, s3; + + peg$tracer.trace({ + type: 'rule.enter', + rule: 'SuperToken', + location: peg$computeLocation(startPos, startPos), + }); + + s0 = peg$currPos; + if (input.substr(peg$currPos, 5) === peg$c94) { + s1 = peg$c94; + peg$currPos += 5; + } else { + s1 = peg$FAILED; + if (peg$silentFails === 0) { + peg$fail(peg$e117); + } + } + if (s1 !== peg$FAILED) { + s2 = peg$currPos; + peg$silentFails++; + s3 = peg$parseIdentifierPart(); + peg$silentFails--; + if (s3 === peg$FAILED) { + s2 = undefined; + } else { + peg$currPos = s2; + s2 = peg$FAILED; + } + if (s2 !== peg$FAILED) { + s1 = [s1, s2]; + s0 = s1; + } else { + peg$currPos = s0; + s0 = peg$FAILED; + } + } else { + peg$currPos = s0; + s0 = peg$FAILED; + } + + if (s0 !== peg$FAILED) { + peg$tracer.trace({ + type: 'rule.match', + rule: 'SuperToken', + result: s0, + location: peg$computeLocation(startPos, peg$currPos), + }); + } else { + peg$tracer.trace({ + type: 'rule.fail', + rule: 'SuperToken', + location: peg$computeLocation(startPos, startPos), + }); + } + + return s0; + } + + function peg$parseSzaboToken() { + var startPos = peg$currPos; + var s0, s1, s2, s3; + + peg$tracer.trace({ + type: 'rule.enter', + rule: 'SzaboToken', + location: peg$computeLocation(startPos, startPos), + }); + + s0 = peg$currPos; + if (input.substr(peg$currPos, 5) === peg$c95) { + s1 = peg$c95; + peg$currPos += 5; + } else { + s1 = peg$FAILED; + if (peg$silentFails === 0) { + peg$fail(peg$e118); + } + } + if (s1 !== peg$FAILED) { + s2 = peg$currPos; + peg$silentFails++; + s3 = peg$parseIdentifierPart(); + peg$silentFails--; + if (s3 === peg$FAILED) { + s2 = undefined; + } else { + peg$currPos = s2; + s2 = peg$FAILED; + } + if (s2 !== peg$FAILED) { + s1 = [s1, s2]; + s0 = s1; + } else { + peg$currPos = s0; + s0 = peg$FAILED; + } + } else { + peg$currPos = s0; + s0 = peg$FAILED; + } + + if (s0 !== peg$FAILED) { + peg$tracer.trace({ + type: 'rule.match', + rule: 'SzaboToken', + result: s0, + location: peg$computeLocation(startPos, peg$currPos), + }); + } else { + peg$tracer.trace({ + type: 'rule.fail', + rule: 'SzaboToken', + location: peg$computeLocation(startPos, startPos), + }); + } + + return s0; + } + + function peg$parseThisToken() { + var startPos = peg$currPos; + var s0, s1, s2, s3; + + peg$tracer.trace({ + type: 'rule.enter', + rule: 'ThisToken', + location: peg$computeLocation(startPos, startPos), + }); + + s0 = peg$currPos; + if (input.substr(peg$currPos, 4) === peg$c96) { + s1 = peg$c96; + peg$currPos += 4; + } else { + s1 = peg$FAILED; + if (peg$silentFails === 0) { + peg$fail(peg$e119); + } + } + if (s1 !== peg$FAILED) { + s2 = peg$currPos; + peg$silentFails++; + s3 = peg$parseIdentifierPart(); + peg$silentFails--; + if (s3 === peg$FAILED) { + s2 = undefined; + } else { + peg$currPos = s2; + s2 = peg$FAILED; + } + if (s2 !== peg$FAILED) { + s1 = [s1, s2]; + s0 = s1; + } else { + peg$currPos = s0; + s0 = peg$FAILED; + } + } else { + peg$currPos = s0; + s0 = peg$FAILED; + } + + if (s0 !== peg$FAILED) { + peg$tracer.trace({ + type: 'rule.match', + rule: 'ThisToken', + result: s0, + location: peg$computeLocation(startPos, peg$currPos), + }); + } else { + peg$tracer.trace({ + type: 'rule.fail', + rule: 'ThisToken', + location: peg$computeLocation(startPos, startPos), + }); + } + + return s0; + } + + function peg$parseThrowToken() { + var startPos = peg$currPos; + var s0, s1, s2, s3; + + peg$tracer.trace({ + type: 'rule.enter', + rule: 'ThrowToken', + location: peg$computeLocation(startPos, startPos), + }); + + s0 = peg$currPos; + if (input.substr(peg$currPos, 5) === peg$c97) { + s1 = peg$c97; + peg$currPos += 5; + } else { + s1 = peg$FAILED; + if (peg$silentFails === 0) { + peg$fail(peg$e120); + } + } + if (s1 !== peg$FAILED) { + s2 = peg$currPos; + peg$silentFails++; + s3 = peg$parseIdentifierPart(); + peg$silentFails--; + if (s3 === peg$FAILED) { + s2 = undefined; + } else { + peg$currPos = s2; + s2 = peg$FAILED; + } + if (s2 !== peg$FAILED) { + s1 = [s1, s2]; + s0 = s1; + } else { + peg$currPos = s0; + s0 = peg$FAILED; + } + } else { + peg$currPos = s0; + s0 = peg$FAILED; + } + + if (s0 !== peg$FAILED) { + peg$tracer.trace({ + type: 'rule.match', + rule: 'ThrowToken', + result: s0, + location: peg$computeLocation(startPos, peg$currPos), + }); + } else { + peg$tracer.trace({ + type: 'rule.fail', + rule: 'ThrowToken', + location: peg$computeLocation(startPos, startPos), + }); + } + + return s0; + } + + function peg$parseTrueToken() { + var startPos = peg$currPos; + var s0, s1, s2, s3; + + peg$tracer.trace({ + type: 'rule.enter', + rule: 'TrueToken', + location: peg$computeLocation(startPos, startPos), + }); + + s0 = peg$currPos; + if (input.substr(peg$currPos, 4) === peg$c98) { + s1 = peg$c98; + peg$currPos += 4; + } else { + s1 = peg$FAILED; + if (peg$silentFails === 0) { + peg$fail(peg$e121); + } + } + if (s1 !== peg$FAILED) { + s2 = peg$currPos; + peg$silentFails++; + s3 = peg$parseIdentifierPart(); + peg$silentFails--; + if (s3 === peg$FAILED) { + s2 = undefined; + } else { + peg$currPos = s2; + s2 = peg$FAILED; + } + if (s2 !== peg$FAILED) { + s1 = [s1, s2]; + s0 = s1; + } else { + peg$currPos = s0; + s0 = peg$FAILED; + } + } else { + peg$currPos = s0; + s0 = peg$FAILED; + } + + if (s0 !== peg$FAILED) { + peg$tracer.trace({ + type: 'rule.match', + rule: 'TrueToken', + result: s0, + location: peg$computeLocation(startPos, peg$currPos), + }); + } else { + peg$tracer.trace({ + type: 'rule.fail', + rule: 'TrueToken', + location: peg$computeLocation(startPos, startPos), + }); + } + + return s0; + } + + function peg$parseUsingToken() { + var startPos = peg$currPos; + var s0, s1, s2, s3; + + peg$tracer.trace({ + type: 'rule.enter', + rule: 'UsingToken', + location: peg$computeLocation(startPos, startPos), + }); + + s0 = peg$currPos; + if (input.substr(peg$currPos, 5) === peg$c99) { + s1 = peg$c99; + peg$currPos += 5; + } else { + s1 = peg$FAILED; + if (peg$silentFails === 0) { + peg$fail(peg$e122); + } + } + if (s1 !== peg$FAILED) { + s2 = peg$currPos; + peg$silentFails++; + s3 = peg$parseIdentifierPart(); + peg$silentFails--; + if (s3 === peg$FAILED) { + s2 = undefined; + } else { + peg$currPos = s2; + s2 = peg$FAILED; + } + if (s2 !== peg$FAILED) { + s1 = [s1, s2]; + s0 = s1; + } else { + peg$currPos = s0; + s0 = peg$FAILED; + } + } else { + peg$currPos = s0; + s0 = peg$FAILED; + } + + if (s0 !== peg$FAILED) { + peg$tracer.trace({ + type: 'rule.match', + rule: 'UsingToken', + result: s0, + location: peg$computeLocation(startPos, peg$currPos), + }); + } else { + peg$tracer.trace({ + type: 'rule.fail', + rule: 'UsingToken', + location: peg$computeLocation(startPos, startPos), + }); + } + + return s0; + } + + function peg$parseVarToken() { + var startPos = peg$currPos; + var s0, s1, s2, s3; + + peg$tracer.trace({ + type: 'rule.enter', + rule: 'VarToken', + location: peg$computeLocation(startPos, startPos), + }); + + s0 = peg$currPos; + if (input.substr(peg$currPos, 3) === peg$c100) { + s1 = peg$c100; + peg$currPos += 3; + } else { + s1 = peg$FAILED; + if (peg$silentFails === 0) { + peg$fail(peg$e123); + } + } + if (s1 !== peg$FAILED) { + s2 = peg$currPos; + peg$silentFails++; + s3 = peg$parseIdentifierPart(); + peg$silentFails--; + if (s3 === peg$FAILED) { + s2 = undefined; + } else { + peg$currPos = s2; + s2 = peg$FAILED; + } + if (s2 !== peg$FAILED) { + s1 = [s1, s2]; + s0 = s1; + } else { + peg$currPos = s0; + s0 = peg$FAILED; + } + } else { + peg$currPos = s0; + s0 = peg$FAILED; + } + + if (s0 !== peg$FAILED) { + peg$tracer.trace({ + type: 'rule.match', + rule: 'VarToken', + result: s0, + location: peg$computeLocation(startPos, peg$currPos), + }); + } else { + peg$tracer.trace({ + type: 'rule.fail', + rule: 'VarToken', + location: peg$computeLocation(startPos, startPos), + }); + } + + return s0; + } + + function peg$parseWeeksToken() { + var startPos = peg$currPos; + var s0, s1, s2, s3; + + peg$tracer.trace({ + type: 'rule.enter', + rule: 'WeeksToken', + location: peg$computeLocation(startPos, startPos), + }); + + s0 = peg$currPos; + if (input.substr(peg$currPos, 5) === peg$c101) { + s1 = peg$c101; + peg$currPos += 5; + } else { + s1 = peg$FAILED; + if (peg$silentFails === 0) { + peg$fail(peg$e124); + } + } + if (s1 !== peg$FAILED) { + s2 = peg$currPos; + peg$silentFails++; + s3 = peg$parseIdentifierPart(); + peg$silentFails--; + if (s3 === peg$FAILED) { + s2 = undefined; + } else { + peg$currPos = s2; + s2 = peg$FAILED; + } + if (s2 !== peg$FAILED) { + s1 = [s1, s2]; + s0 = s1; + } else { + peg$currPos = s0; + s0 = peg$FAILED; + } + } else { + peg$currPos = s0; + s0 = peg$FAILED; + } + + if (s0 !== peg$FAILED) { + peg$tracer.trace({ + type: 'rule.match', + rule: 'WeeksToken', + result: s0, + location: peg$computeLocation(startPos, peg$currPos), + }); + } else { + peg$tracer.trace({ + type: 'rule.fail', + rule: 'WeeksToken', + location: peg$computeLocation(startPos, startPos), + }); + } + + return s0; + } + + function peg$parseWeiToken() { + var startPos = peg$currPos; + var s0, s1, s2, s3; + + peg$tracer.trace({ + type: 'rule.enter', + rule: 'WeiToken', + location: peg$computeLocation(startPos, startPos), + }); + + s0 = peg$currPos; + if (input.substr(peg$currPos, 3) === peg$c102) { + s1 = peg$c102; + peg$currPos += 3; + } else { + s1 = peg$FAILED; + if (peg$silentFails === 0) { + peg$fail(peg$e125); + } + } + if (s1 !== peg$FAILED) { + s2 = peg$currPos; + peg$silentFails++; + s3 = peg$parseIdentifierPart(); + peg$silentFails--; + if (s3 === peg$FAILED) { + s2 = undefined; + } else { + peg$currPos = s2; + s2 = peg$FAILED; + } + if (s2 !== peg$FAILED) { + s1 = [s1, s2]; + s0 = s1; + } else { + peg$currPos = s0; + s0 = peg$FAILED; + } + } else { + peg$currPos = s0; + s0 = peg$FAILED; + } + + if (s0 !== peg$FAILED) { + peg$tracer.trace({ + type: 'rule.match', + rule: 'WeiToken', + result: s0, + location: peg$computeLocation(startPos, peg$currPos), + }); + } else { + peg$tracer.trace({ + type: 'rule.fail', + rule: 'WeiToken', + location: peg$computeLocation(startPos, startPos), + }); + } + + return s0; + } + + function peg$parseWhileToken() { + var startPos = peg$currPos; + var s0, s1, s2, s3; + + peg$tracer.trace({ + type: 'rule.enter', + rule: 'WhileToken', + location: peg$computeLocation(startPos, startPos), + }); + + s0 = peg$currPos; + if (input.substr(peg$currPos, 5) === peg$c103) { + s1 = peg$c103; + peg$currPos += 5; + } else { + s1 = peg$FAILED; + if (peg$silentFails === 0) { + peg$fail(peg$e126); + } + } + if (s1 !== peg$FAILED) { + s2 = peg$currPos; + peg$silentFails++; + s3 = peg$parseIdentifierPart(); + peg$silentFails--; + if (s3 === peg$FAILED) { + s2 = undefined; + } else { + peg$currPos = s2; + s2 = peg$FAILED; + } + if (s2 !== peg$FAILED) { + s1 = [s1, s2]; + s0 = s1; + } else { + peg$currPos = s0; + s0 = peg$FAILED; + } + } else { + peg$currPos = s0; + s0 = peg$FAILED; + } + + if (s0 !== peg$FAILED) { + peg$tracer.trace({ + type: 'rule.match', + rule: 'WhileToken', + result: s0, + location: peg$computeLocation(startPos, peg$currPos), + }); + } else { + peg$tracer.trace({ + type: 'rule.fail', + rule: 'WhileToken', + location: peg$computeLocation(startPos, startPos), + }); + } + + return s0; + } + + function peg$parseYearsToken() { + var startPos = peg$currPos; + var s0, s1, s2, s3; + + peg$tracer.trace({ + type: 'rule.enter', + rule: 'YearsToken', + location: peg$computeLocation(startPos, startPos), + }); + + s0 = peg$currPos; + if (input.substr(peg$currPos, 5) === peg$c104) { + s1 = peg$c104; + peg$currPos += 5; + } else { + s1 = peg$FAILED; + if (peg$silentFails === 0) { + peg$fail(peg$e127); + } + } + if (s1 !== peg$FAILED) { + s2 = peg$currPos; + peg$silentFails++; + s3 = peg$parseIdentifierPart(); + peg$silentFails--; + if (s3 === peg$FAILED) { + s2 = undefined; + } else { + peg$currPos = s2; + s2 = peg$FAILED; + } + if (s2 !== peg$FAILED) { + s1 = [s1, s2]; + s0 = s1; + } else { + peg$currPos = s0; + s0 = peg$FAILED; + } + } else { + peg$currPos = s0; + s0 = peg$FAILED; + } + + if (s0 !== peg$FAILED) { + peg$tracer.trace({ + type: 'rule.match', + rule: 'YearsToken', + result: s0, + location: peg$computeLocation(startPos, peg$currPos), + }); + } else { + peg$tracer.trace({ + type: 'rule.fail', + rule: 'YearsToken', + location: peg$computeLocation(startPos, startPos), + }); + } + + return s0; + } + + function peg$parse__() { + var startPos = peg$currPos; + var s0, s1; + + peg$tracer.trace({ + type: 'rule.enter', + rule: '__', + location: peg$computeLocation(startPos, startPos), + }); + + s0 = []; + s1 = peg$parseWhiteSpace(); + if (s1 === peg$FAILED) { + s1 = peg$parseLineTerminatorSequence(); + if (s1 === peg$FAILED) { + s1 = peg$parseComment(); + } + } + while (s1 !== peg$FAILED) { + s0.push(s1); + s1 = peg$parseWhiteSpace(); + if (s1 === peg$FAILED) { + s1 = peg$parseLineTerminatorSequence(); + if (s1 === peg$FAILED) { + s1 = peg$parseComment(); + } + } + } + + if (s0 !== peg$FAILED) { + peg$tracer.trace({ + type: 'rule.match', + rule: '__', + result: s0, + location: peg$computeLocation(startPos, peg$currPos), + }); + } else { + peg$tracer.trace({ + type: 'rule.fail', + rule: '__', + location: peg$computeLocation(startPos, startPos), + }); + } + + return s0; + } + + function peg$parse_() { + var startPos = peg$currPos; + var s0, s1; + + peg$tracer.trace({ + type: 'rule.enter', + rule: '_', + location: peg$computeLocation(startPos, startPos), + }); + + s0 = []; + s1 = peg$parseWhiteSpace(); + if (s1 === peg$FAILED) { + s1 = peg$parseMultiLineCommentNoLineTerminator(); + } + while (s1 !== peg$FAILED) { + s0.push(s1); + s1 = peg$parseWhiteSpace(); + if (s1 === peg$FAILED) { + s1 = peg$parseMultiLineCommentNoLineTerminator(); + } + } + + if (s0 !== peg$FAILED) { + peg$tracer.trace({ + type: 'rule.match', + rule: '_', + result: s0, + location: peg$computeLocation(startPos, peg$currPos), + }); + } else { + peg$tracer.trace({ + type: 'rule.fail', + rule: '_', + location: peg$computeLocation(startPos, startPos), + }); + } + + return s0; + } + + function peg$parseEOS() { + var startPos = peg$currPos; + var s0, s1, s2; + + peg$tracer.trace({ + type: 'rule.enter', + rule: 'EOS', + location: peg$computeLocation(startPos, startPos), + }); + + s0 = peg$currPos; + s1 = peg$parse__(); + if (input.charCodeAt(peg$currPos) === 59) { + s2 = peg$c105; + peg$currPos++; + } else { + s2 = peg$FAILED; + if (peg$silentFails === 0) { + peg$fail(peg$e128); + } + } + if (s2 !== peg$FAILED) { + s1 = [s1, s2]; + s0 = s1; + } else { + peg$currPos = s0; + s0 = peg$FAILED; + } + + if (s0 !== peg$FAILED) { + peg$tracer.trace({ + type: 'rule.match', + rule: 'EOS', + result: s0, + location: peg$computeLocation(startPos, peg$currPos), + }); + } else { + peg$tracer.trace({ + type: 'rule.fail', + rule: 'EOS', + location: peg$computeLocation(startPos, startPos), + }); + } + + return s0; + } + + function peg$parseEOF() { + var startPos = peg$currPos; + var s0, s1; + + peg$tracer.trace({ + type: 'rule.enter', + rule: 'EOF', + location: peg$computeLocation(startPos, startPos), + }); + + s0 = peg$currPos; + peg$silentFails++; + if (input.length > peg$currPos) { + s1 = input.charAt(peg$currPos); + peg$currPos++; + } else { + s1 = peg$FAILED; + if (peg$silentFails === 0) { + peg$fail(peg$e0); + } + } + peg$silentFails--; + if (s1 === peg$FAILED) { + s0 = undefined; + } else { + peg$currPos = s0; + s0 = peg$FAILED; + } + + if (s0 !== peg$FAILED) { + peg$tracer.trace({ + type: 'rule.match', + rule: 'EOF', + result: s0, + location: peg$computeLocation(startPos, peg$currPos), + }); + } else { + peg$tracer.trace({ + type: 'rule.fail', + rule: 'EOF', + location: peg$computeLocation(startPos, startPos), + }); + } + + return s0; + } + + function peg$parseComma() { + var startPos = peg$currPos; + var s0, s1, s2, s3; + + peg$tracer.trace({ + type: 'rule.enter', + rule: 'Comma', + location: peg$computeLocation(startPos, startPos), + }); + + s0 = peg$currPos; + s1 = peg$parse__(); + if (input.charCodeAt(peg$currPos) === 44) { + s2 = peg$c106; + peg$currPos++; + } else { + s2 = peg$FAILED; + if (peg$silentFails === 0) { + peg$fail(peg$e129); + } + } + if (s2 !== peg$FAILED) { + s3 = peg$parse__(); + s1 = [s1, s2, s3]; + s0 = s1; + } else { + peg$currPos = s0; + s0 = peg$FAILED; + } + + if (s0 !== peg$FAILED) { + peg$tracer.trace({ + type: 'rule.match', + rule: 'Comma', + result: s0, + location: peg$computeLocation(startPos, peg$currPos), + }); + } else { + peg$tracer.trace({ + type: 'rule.fail', + rule: 'Comma', + location: peg$computeLocation(startPos, startPos), + }); + } + + return s0; + } + + function peg$parsePrimaryExpression() { + var startPos = peg$currPos; + var s0, s1, s2, s3, s4, s5; + + peg$tracer.trace({ + type: 'rule.enter', + rule: 'PrimaryExpression', + location: peg$computeLocation(startPos, startPos), + }); + + s0 = peg$currPos; + s1 = peg$parseThisToken(); + if (s1 !== peg$FAILED) { + peg$savedPos = s0; + s1 = peg$f25(); + } + s0 = s1; + if (s0 === peg$FAILED) { + s0 = peg$parseIdentifier(); + if (s0 === peg$FAILED) { + s0 = peg$parseLiteral(); + if (s0 === peg$FAILED) { + s0 = peg$parseArrayLiteral(); + if (s0 === peg$FAILED) { + s0 = peg$currPos; + if (input.charCodeAt(peg$currPos) === 40) { + s1 = peg$c107; + peg$currPos++; + } else { + s1 = peg$FAILED; + if (peg$silentFails === 0) { + peg$fail(peg$e130); + } + } + if (s1 !== peg$FAILED) { + s2 = peg$parse__(); + s3 = peg$parseExpression(); + if (s3 !== peg$FAILED) { + s4 = peg$parse__(); + if (input.charCodeAt(peg$currPos) === 41) { + s5 = peg$c108; + peg$currPos++; + } else { + s5 = peg$FAILED; + if (peg$silentFails === 0) { + peg$fail(peg$e131); + } + } + if (s5 !== peg$FAILED) { + peg$savedPos = s0; + s0 = peg$f26(s3); + } else { + peg$currPos = s0; + s0 = peg$FAILED; + } + } else { + peg$currPos = s0; + s0 = peg$FAILED; + } + } else { + peg$currPos = s0; + s0 = peg$FAILED; + } + } + } + } + } + + if (s0 !== peg$FAILED) { + peg$tracer.trace({ + type: 'rule.match', + rule: 'PrimaryExpression', + result: s0, + location: peg$computeLocation(startPos, peg$currPos), + }); + } else { + peg$tracer.trace({ + type: 'rule.fail', + rule: 'PrimaryExpression', + location: peg$computeLocation(startPos, startPos), + }); + } + + return s0; + } + + function peg$parseArrayLiteral() { + var startPos = peg$currPos; + var s0, s1, s2, s3, s4, s5, s6, s7, s8, s9; + + peg$tracer.trace({ + type: 'rule.enter', + rule: 'ArrayLiteral', + location: peg$computeLocation(startPos, startPos), + }); + + s0 = peg$currPos; + if (input.charCodeAt(peg$currPos) === 91) { + s1 = peg$c109; + peg$currPos++; + } else { + s1 = peg$FAILED; + if (peg$silentFails === 0) { + peg$fail(peg$e132); + } + } + if (s1 !== peg$FAILED) { + s2 = peg$parse__(); + s3 = peg$currPos; + s4 = peg$parseElision(); + if (s4 !== peg$FAILED) { + s5 = peg$parse__(); + s4 = [s4, s5]; + s3 = s4; + } else { + peg$currPos = s3; + s3 = peg$FAILED; + } + if (s3 === peg$FAILED) { + s3 = null; + } + if (input.charCodeAt(peg$currPos) === 93) { + s4 = peg$c110; + peg$currPos++; + } else { + s4 = peg$FAILED; + if (peg$silentFails === 0) { + peg$fail(peg$e133); + } + } + if (s4 !== peg$FAILED) { + peg$savedPos = s0; + s0 = peg$f27(s3); + } else { + peg$currPos = s0; + s0 = peg$FAILED; + } + } else { + peg$currPos = s0; + s0 = peg$FAILED; + } + if (s0 === peg$FAILED) { + s0 = peg$currPos; + if (input.charCodeAt(peg$currPos) === 91) { + s1 = peg$c109; + peg$currPos++; + } else { + s1 = peg$FAILED; + if (peg$silentFails === 0) { + peg$fail(peg$e132); + } + } + if (s1 !== peg$FAILED) { + s2 = peg$parse__(); + s3 = peg$parseElementList(); + if (s3 !== peg$FAILED) { + s4 = peg$parse__(); + if (input.charCodeAt(peg$currPos) === 93) { + s5 = peg$c110; + peg$currPos++; + } else { + s5 = peg$FAILED; + if (peg$silentFails === 0) { + peg$fail(peg$e133); + } + } + if (s5 !== peg$FAILED) { + peg$savedPos = s0; + s0 = peg$f28(s3); + } else { + peg$currPos = s0; + s0 = peg$FAILED; + } + } else { + peg$currPos = s0; + s0 = peg$FAILED; + } + } else { + peg$currPos = s0; + s0 = peg$FAILED; + } + if (s0 === peg$FAILED) { + s0 = peg$currPos; + if (input.charCodeAt(peg$currPos) === 91) { + s1 = peg$c109; + peg$currPos++; + } else { + s1 = peg$FAILED; + if (peg$silentFails === 0) { + peg$fail(peg$e132); + } + } + if (s1 !== peg$FAILED) { + s2 = peg$parse__(); + s3 = peg$parseElementList(); + if (s3 !== peg$FAILED) { + s4 = peg$parse__(); + if (input.charCodeAt(peg$currPos) === 44) { + s5 = peg$c106; + peg$currPos++; + } else { + s5 = peg$FAILED; + if (peg$silentFails === 0) { + peg$fail(peg$e129); + } + } + if (s5 !== peg$FAILED) { + s6 = peg$parse__(); + s7 = peg$currPos; + s8 = peg$parseElision(); + if (s8 !== peg$FAILED) { + s9 = peg$parse__(); + s8 = [s8, s9]; + s7 = s8; + } else { + peg$currPos = s7; + s7 = peg$FAILED; + } + if (s7 === peg$FAILED) { + s7 = null; + } + if (input.charCodeAt(peg$currPos) === 93) { + s8 = peg$c110; + peg$currPos++; + } else { + s8 = peg$FAILED; + if (peg$silentFails === 0) { + peg$fail(peg$e133); + } + } + if (s8 !== peg$FAILED) { + peg$savedPos = s0; + s0 = peg$f29(s3, s7); + } else { + peg$currPos = s0; + s0 = peg$FAILED; + } + } else { + peg$currPos = s0; + s0 = peg$FAILED; + } + } else { + peg$currPos = s0; + s0 = peg$FAILED; + } + } else { + peg$currPos = s0; + s0 = peg$FAILED; + } + } + } + + if (s0 !== peg$FAILED) { + peg$tracer.trace({ + type: 'rule.match', + rule: 'ArrayLiteral', + result: s0, + location: peg$computeLocation(startPos, peg$currPos), + }); + } else { + peg$tracer.trace({ + type: 'rule.fail', + rule: 'ArrayLiteral', + location: peg$computeLocation(startPos, startPos), + }); + } + + return s0; + } + + function peg$parseElementList() { + var startPos = peg$currPos; + var s0, s1, s2, s3, s4, s5, s6, s7, s8, s9; + + peg$tracer.trace({ + type: 'rule.enter', + rule: 'ElementList', + location: peg$computeLocation(startPos, startPos), + }); + + s0 = peg$currPos; + s1 = peg$currPos; + s2 = peg$currPos; + s3 = peg$parseElision(); + if (s3 !== peg$FAILED) { + s4 = peg$parse__(); + s3 = [s3, s4]; + s2 = s3; + } else { + peg$currPos = s2; + s2 = peg$FAILED; + } + if (s2 === peg$FAILED) { + s2 = null; + } + s3 = peg$parseAssignmentExpression(); + if (s3 !== peg$FAILED) { + peg$savedPos = s1; + s1 = peg$f30(s2, s3); + } else { + peg$currPos = s1; + s1 = peg$FAILED; + } + if (s1 !== peg$FAILED) { + s2 = []; + s3 = peg$currPos; + s4 = peg$parse__(); + if (input.charCodeAt(peg$currPos) === 44) { + s5 = peg$c106; + peg$currPos++; + } else { + s5 = peg$FAILED; + if (peg$silentFails === 0) { + peg$fail(peg$e129); + } + } + if (s5 !== peg$FAILED) { + s6 = peg$parse__(); + s7 = peg$currPos; + s8 = peg$parseElision(); + if (s8 !== peg$FAILED) { + s9 = peg$parse__(); + s8 = [s8, s9]; + s7 = s8; + } else { + peg$currPos = s7; + s7 = peg$FAILED; + } + if (s7 === peg$FAILED) { + s7 = null; + } + s8 = peg$parseAssignmentExpression(); + if (s8 !== peg$FAILED) { + peg$savedPos = s3; + s3 = peg$f31(s1, s7, s8); + } else { + peg$currPos = s3; + s3 = peg$FAILED; + } + } else { + peg$currPos = s3; + s3 = peg$FAILED; + } + while (s3 !== peg$FAILED) { + s2.push(s3); + s3 = peg$currPos; + s4 = peg$parse__(); + if (input.charCodeAt(peg$currPos) === 44) { + s5 = peg$c106; + peg$currPos++; + } else { + s5 = peg$FAILED; + if (peg$silentFails === 0) { + peg$fail(peg$e129); + } + } + if (s5 !== peg$FAILED) { + s6 = peg$parse__(); + s7 = peg$currPos; + s8 = peg$parseElision(); + if (s8 !== peg$FAILED) { + s9 = peg$parse__(); + s8 = [s8, s9]; + s7 = s8; + } else { + peg$currPos = s7; + s7 = peg$FAILED; + } + if (s7 === peg$FAILED) { + s7 = null; + } + s8 = peg$parseAssignmentExpression(); + if (s8 !== peg$FAILED) { + peg$savedPos = s3; + s3 = peg$f31(s1, s7, s8); + } else { + peg$currPos = s3; + s3 = peg$FAILED; + } + } else { + peg$currPos = s3; + s3 = peg$FAILED; + } + } + peg$savedPos = s0; + s0 = peg$f32(s1, s2); + } else { + peg$currPos = s0; + s0 = peg$FAILED; + } + + if (s0 !== peg$FAILED) { + peg$tracer.trace({ + type: 'rule.match', + rule: 'ElementList', + result: s0, + location: peg$computeLocation(startPos, peg$currPos), + }); + } else { + peg$tracer.trace({ + type: 'rule.fail', + rule: 'ElementList', + location: peg$computeLocation(startPos, startPos), + }); + } + + return s0; + } + + function peg$parseElision() { + var startPos = peg$currPos; + var s0, s1, s2, s3, s4, s5; + + peg$tracer.trace({ + type: 'rule.enter', + rule: 'Elision', + location: peg$computeLocation(startPos, startPos), + }); + + s0 = peg$currPos; + if (input.charCodeAt(peg$currPos) === 44) { + s1 = peg$c106; + peg$currPos++; + } else { + s1 = peg$FAILED; + if (peg$silentFails === 0) { + peg$fail(peg$e129); + } + } + if (s1 !== peg$FAILED) { + s2 = []; + s3 = peg$currPos; + s4 = peg$parse__(); + if (input.charCodeAt(peg$currPos) === 44) { + s5 = peg$c106; + peg$currPos++; + } else { + s5 = peg$FAILED; + if (peg$silentFails === 0) { + peg$fail(peg$e129); + } + } + if (s5 !== peg$FAILED) { + s4 = [s4, s5]; + s3 = s4; + } else { + peg$currPos = s3; + s3 = peg$FAILED; + } + while (s3 !== peg$FAILED) { + s2.push(s3); + s3 = peg$currPos; + s4 = peg$parse__(); + if (input.charCodeAt(peg$currPos) === 44) { + s5 = peg$c106; + peg$currPos++; + } else { + s5 = peg$FAILED; + if (peg$silentFails === 0) { + peg$fail(peg$e129); + } + } + if (s5 !== peg$FAILED) { + s4 = [s4, s5]; + s3 = s4; + } else { + peg$currPos = s3; + s3 = peg$FAILED; + } + } + peg$savedPos = s0; + s0 = peg$f33(s2); + } else { + peg$currPos = s0; + s0 = peg$FAILED; + } + + if (s0 !== peg$FAILED) { + peg$tracer.trace({ + type: 'rule.match', + rule: 'Elision', + result: s0, + location: peg$computeLocation(startPos, peg$currPos), + }); + } else { + peg$tracer.trace({ + type: 'rule.fail', + rule: 'Elision', + location: peg$computeLocation(startPos, startPos), + }); + } + + return s0; + } + + function peg$parseMemberExpression() { + var startPos = peg$currPos; + var s0, s1, s2, s3, s4, s5, s6, s7, s8, s9; + + peg$tracer.trace({ + type: 'rule.enter', + rule: 'MemberExpression', + location: peg$computeLocation(startPos, startPos), + }); + + s0 = peg$currPos; + s1 = peg$parsePrimaryExpression(); + if (s1 === peg$FAILED) { + s1 = peg$currPos; + s2 = peg$parseNewToken(); + if (s2 !== peg$FAILED) { + s3 = peg$parse__(); + s4 = peg$parseType(); + if (s4 !== peg$FAILED) { + s5 = peg$parse__(); + s6 = peg$parseArguments(); + if (s6 !== peg$FAILED) { + peg$savedPos = s1; + s1 = peg$f34(s4, s6); + } else { + peg$currPos = s1; + s1 = peg$FAILED; + } + } else { + peg$currPos = s1; + s1 = peg$FAILED; + } + } else { + peg$currPos = s1; + s1 = peg$FAILED; + } + } + if (s1 !== peg$FAILED) { + s2 = []; + s3 = peg$currPos; + s4 = peg$parse__(); + if (input.charCodeAt(peg$currPos) === 91) { + s5 = peg$c109; + peg$currPos++; + } else { + s5 = peg$FAILED; + if (peg$silentFails === 0) { + peg$fail(peg$e132); + } + } + if (s5 !== peg$FAILED) { + s6 = peg$parse__(); + s7 = peg$parseExpression(); + if (s7 !== peg$FAILED) { + s8 = peg$parse__(); + if (input.charCodeAt(peg$currPos) === 93) { + s9 = peg$c110; + peg$currPos++; + } else { + s9 = peg$FAILED; + if (peg$silentFails === 0) { + peg$fail(peg$e133); + } + } + if (s9 !== peg$FAILED) { + peg$savedPos = s3; + s3 = peg$f35(s1, s7); + } else { + peg$currPos = s3; + s3 = peg$FAILED; + } + } else { + peg$currPos = s3; + s3 = peg$FAILED; + } + } else { + peg$currPos = s3; + s3 = peg$FAILED; + } + if (s3 === peg$FAILED) { + s3 = peg$currPos; + s4 = peg$parse__(); + if (input.charCodeAt(peg$currPos) === 46) { + s5 = peg$c17; + peg$currPos++; + } else { + s5 = peg$FAILED; + if (peg$silentFails === 0) { + peg$fail(peg$e24); + } + } + if (s5 !== peg$FAILED) { + s6 = peg$parse__(); + s7 = peg$parseIdentifierName(); + if (s7 !== peg$FAILED) { + peg$savedPos = s3; + s3 = peg$f36(s1, s7); + } else { + peg$currPos = s3; + s3 = peg$FAILED; + } + } else { + peg$currPos = s3; + s3 = peg$FAILED; + } + } + while (s3 !== peg$FAILED) { + s2.push(s3); + s3 = peg$currPos; + s4 = peg$parse__(); + if (input.charCodeAt(peg$currPos) === 91) { + s5 = peg$c109; + peg$currPos++; + } else { + s5 = peg$FAILED; + if (peg$silentFails === 0) { + peg$fail(peg$e132); + } + } + if (s5 !== peg$FAILED) { + s6 = peg$parse__(); + s7 = peg$parseExpression(); + if (s7 !== peg$FAILED) { + s8 = peg$parse__(); + if (input.charCodeAt(peg$currPos) === 93) { + s9 = peg$c110; + peg$currPos++; + } else { + s9 = peg$FAILED; + if (peg$silentFails === 0) { + peg$fail(peg$e133); + } + } + if (s9 !== peg$FAILED) { + peg$savedPos = s3; + s3 = peg$f35(s1, s7); + } else { + peg$currPos = s3; + s3 = peg$FAILED; + } + } else { + peg$currPos = s3; + s3 = peg$FAILED; + } + } else { + peg$currPos = s3; + s3 = peg$FAILED; + } + if (s3 === peg$FAILED) { + s3 = peg$currPos; + s4 = peg$parse__(); + if (input.charCodeAt(peg$currPos) === 46) { + s5 = peg$c17; + peg$currPos++; + } else { + s5 = peg$FAILED; + if (peg$silentFails === 0) { + peg$fail(peg$e24); + } + } + if (s5 !== peg$FAILED) { + s6 = peg$parse__(); + s7 = peg$parseIdentifierName(); + if (s7 !== peg$FAILED) { + peg$savedPos = s3; + s3 = peg$f36(s1, s7); + } else { + peg$currPos = s3; + s3 = peg$FAILED; + } + } else { + peg$currPos = s3; + s3 = peg$FAILED; + } + } + } + peg$savedPos = s0; + s0 = peg$f37(s1, s2); + } else { + peg$currPos = s0; + s0 = peg$FAILED; + } + + if (s0 !== peg$FAILED) { + peg$tracer.trace({ + type: 'rule.match', + rule: 'MemberExpression', + result: s0, + location: peg$computeLocation(startPos, peg$currPos), + }); + } else { + peg$tracer.trace({ + type: 'rule.fail', + rule: 'MemberExpression', + location: peg$computeLocation(startPos, startPos), + }); + } + + return s0; + } + + function peg$parseNewExpression() { + var startPos = peg$currPos; + var s0, s1, s2, s3; + + peg$tracer.trace({ + type: 'rule.enter', + rule: 'NewExpression', + location: peg$computeLocation(startPos, startPos), + }); + + s0 = peg$parseMemberExpression(); + if (s0 === peg$FAILED) { + s0 = peg$currPos; + s1 = peg$parseNewToken(); + if (s1 !== peg$FAILED) { + s2 = peg$parse__(); + s3 = peg$parseNewExpression(); + if (s3 !== peg$FAILED) { + peg$savedPos = s0; + s0 = peg$f38(s3); + } else { + peg$currPos = s0; + s0 = peg$FAILED; + } + } else { + peg$currPos = s0; + s0 = peg$FAILED; + } + } + + if (s0 !== peg$FAILED) { + peg$tracer.trace({ + type: 'rule.match', + rule: 'NewExpression', + result: s0, + location: peg$computeLocation(startPos, peg$currPos), + }); + } else { + peg$tracer.trace({ + type: 'rule.fail', + rule: 'NewExpression', + location: peg$computeLocation(startPos, startPos), + }); + } + + return s0; + } + + function peg$parseCallExpression() { + var startPos = peg$currPos; + var s0, s1, s2, s3, s4, s5, s6, s7, s8, s9; + + peg$tracer.trace({ + type: 'rule.enter', + rule: 'CallExpression', + location: peg$computeLocation(startPos, startPos), + }); + + s0 = peg$currPos; + s1 = peg$currPos; + s2 = peg$parseMemberExpression(); + if (s2 !== peg$FAILED) { + s3 = peg$parse__(); + s4 = peg$parseArguments(); + if (s4 !== peg$FAILED) { + peg$savedPos = s1; + s1 = peg$f39(s2, s4); + } else { + peg$currPos = s1; + s1 = peg$FAILED; + } + } else { + peg$currPos = s1; + s1 = peg$FAILED; + } + if (s1 !== peg$FAILED) { + s2 = []; + s3 = peg$currPos; + s4 = peg$parse__(); + s5 = peg$parseArguments(); + if (s5 !== peg$FAILED) { + peg$savedPos = s3; + s3 = peg$f40(s1, s5); + } else { + peg$currPos = s3; + s3 = peg$FAILED; + } + if (s3 === peg$FAILED) { + s3 = peg$currPos; + s4 = peg$parse__(); + if (input.charCodeAt(peg$currPos) === 91) { + s5 = peg$c109; + peg$currPos++; + } else { + s5 = peg$FAILED; + if (peg$silentFails === 0) { + peg$fail(peg$e132); + } + } + if (s5 !== peg$FAILED) { + s6 = peg$parse__(); + s7 = peg$parseExpression(); + if (s7 !== peg$FAILED) { + s8 = peg$parse__(); + if (input.charCodeAt(peg$currPos) === 93) { + s9 = peg$c110; + peg$currPos++; + } else { + s9 = peg$FAILED; + if (peg$silentFails === 0) { + peg$fail(peg$e133); + } + } + if (s9 !== peg$FAILED) { + peg$savedPos = s3; + s3 = peg$f41(s1, s7); + } else { + peg$currPos = s3; + s3 = peg$FAILED; + } + } else { + peg$currPos = s3; + s3 = peg$FAILED; + } + } else { + peg$currPos = s3; + s3 = peg$FAILED; + } + if (s3 === peg$FAILED) { + s3 = peg$currPos; + s4 = peg$parse__(); + if (input.charCodeAt(peg$currPos) === 46) { + s5 = peg$c17; + peg$currPos++; + } else { + s5 = peg$FAILED; + if (peg$silentFails === 0) { + peg$fail(peg$e24); + } + } + if (s5 !== peg$FAILED) { + s6 = peg$parse__(); + s7 = peg$parseIdentifierName(); + if (s7 !== peg$FAILED) { + peg$savedPos = s3; + s3 = peg$f42(s1, s7); + } else { + peg$currPos = s3; + s3 = peg$FAILED; + } + } else { + peg$currPos = s3; + s3 = peg$FAILED; + } + } + } + while (s3 !== peg$FAILED) { + s2.push(s3); + s3 = peg$currPos; + s4 = peg$parse__(); + s5 = peg$parseArguments(); + if (s5 !== peg$FAILED) { + peg$savedPos = s3; + s3 = peg$f40(s1, s5); + } else { + peg$currPos = s3; + s3 = peg$FAILED; + } + if (s3 === peg$FAILED) { + s3 = peg$currPos; + s4 = peg$parse__(); + if (input.charCodeAt(peg$currPos) === 91) { + s5 = peg$c109; + peg$currPos++; + } else { + s5 = peg$FAILED; + if (peg$silentFails === 0) { + peg$fail(peg$e132); + } + } + if (s5 !== peg$FAILED) { + s6 = peg$parse__(); + s7 = peg$parseExpression(); + if (s7 !== peg$FAILED) { + s8 = peg$parse__(); + if (input.charCodeAt(peg$currPos) === 93) { + s9 = peg$c110; + peg$currPos++; + } else { + s9 = peg$FAILED; + if (peg$silentFails === 0) { + peg$fail(peg$e133); + } + } + if (s9 !== peg$FAILED) { + peg$savedPos = s3; + s3 = peg$f41(s1, s7); + } else { + peg$currPos = s3; + s3 = peg$FAILED; + } + } else { + peg$currPos = s3; + s3 = peg$FAILED; + } + } else { + peg$currPos = s3; + s3 = peg$FAILED; + } + if (s3 === peg$FAILED) { + s3 = peg$currPos; + s4 = peg$parse__(); + if (input.charCodeAt(peg$currPos) === 46) { + s5 = peg$c17; + peg$currPos++; + } else { + s5 = peg$FAILED; + if (peg$silentFails === 0) { + peg$fail(peg$e24); + } + } + if (s5 !== peg$FAILED) { + s6 = peg$parse__(); + s7 = peg$parseIdentifierName(); + if (s7 !== peg$FAILED) { + peg$savedPos = s3; + s3 = peg$f42(s1, s7); + } else { + peg$currPos = s3; + s3 = peg$FAILED; + } + } else { + peg$currPos = s3; + s3 = peg$FAILED; + } + } + } + } + peg$savedPos = s0; + s0 = peg$f43(s1, s2); + } else { + peg$currPos = s0; + s0 = peg$FAILED; + } + + if (s0 !== peg$FAILED) { + peg$tracer.trace({ + type: 'rule.match', + rule: 'CallExpression', + result: s0, + location: peg$computeLocation(startPos, peg$currPos), + }); + } else { + peg$tracer.trace({ + type: 'rule.fail', + rule: 'CallExpression', + location: peg$computeLocation(startPos, startPos), + }); + } + + return s0; + } + + function peg$parseArguments() { + var startPos = peg$currPos; + var s0, s1, s2, s3, s4, s5, s6, s7, s8, s9; + + peg$tracer.trace({ + type: 'rule.enter', + rule: 'Arguments', + location: peg$computeLocation(startPos, startPos), + }); + + s0 = peg$currPos; + if (input.charCodeAt(peg$currPos) === 40) { + s1 = peg$c107; + peg$currPos++; + } else { + s1 = peg$FAILED; + if (peg$silentFails === 0) { + peg$fail(peg$e130); + } + } + if (s1 !== peg$FAILED) { + s2 = peg$parse__(); + s3 = peg$currPos; + s4 = peg$parseArgumentList(); + if (s4 !== peg$FAILED) { + s5 = peg$parse__(); + s4 = [s4, s5]; + s3 = s4; + } else { + peg$currPos = s3; + s3 = peg$FAILED; + } + if (s3 === peg$FAILED) { + s3 = null; + } + if (input.charCodeAt(peg$currPos) === 41) { + s4 = peg$c108; + peg$currPos++; + } else { + s4 = peg$FAILED; + if (peg$silentFails === 0) { + peg$fail(peg$e131); + } + } + if (s4 !== peg$FAILED) { + peg$savedPos = s0; + s0 = peg$f44(s3); + } else { + peg$currPos = s0; + s0 = peg$FAILED; + } + } else { + peg$currPos = s0; + s0 = peg$FAILED; + } + if (s0 === peg$FAILED) { + s0 = peg$currPos; + if (input.charCodeAt(peg$currPos) === 40) { + s1 = peg$c107; + peg$currPos++; + } else { + s1 = peg$FAILED; + if (peg$silentFails === 0) { + peg$fail(peg$e130); + } + } + if (s1 !== peg$FAILED) { + s2 = peg$parse__(); + if (input.charCodeAt(peg$currPos) === 123) { + s3 = peg$c111; + peg$currPos++; + } else { + s3 = peg$FAILED; + if (peg$silentFails === 0) { + peg$fail(peg$e134); + } + } + if (s3 !== peg$FAILED) { + s4 = peg$parse__(); + s5 = peg$currPos; + s6 = peg$parseNameValueList(); + if (s6 !== peg$FAILED) { + s7 = peg$currPos; + s8 = peg$parse__(); + if (input.charCodeAt(peg$currPos) === 44) { + s9 = peg$c106; + peg$currPos++; + } else { + s9 = peg$FAILED; + if (peg$silentFails === 0) { + peg$fail(peg$e129); + } + } + if (s9 !== peg$FAILED) { + s8 = [s8, s9]; + s7 = s8; + } else { + peg$currPos = s7; + s7 = peg$FAILED; + } + if (s7 === peg$FAILED) { + s7 = null; + } + s6 = [s6, s7]; + s5 = s6; + } else { + peg$currPos = s5; + s5 = peg$FAILED; + } + if (s5 === peg$FAILED) { + s5 = null; + } + s6 = peg$parse__(); + if (input.charCodeAt(peg$currPos) === 125) { + s7 = peg$c112; + peg$currPos++; + } else { + s7 = peg$FAILED; + if (peg$silentFails === 0) { + peg$fail(peg$e135); + } + } + if (s7 !== peg$FAILED) { + s8 = peg$parse__(); + if (input.charCodeAt(peg$currPos) === 41) { + s9 = peg$c108; + peg$currPos++; + } else { + s9 = peg$FAILED; + if (peg$silentFails === 0) { + peg$fail(peg$e131); + } + } + if (s9 !== peg$FAILED) { + peg$savedPos = s0; + s0 = peg$f44(s5); + } else { + peg$currPos = s0; + s0 = peg$FAILED; + } + } else { + peg$currPos = s0; + s0 = peg$FAILED; + } + } else { + peg$currPos = s0; + s0 = peg$FAILED; + } + } else { + peg$currPos = s0; + s0 = peg$FAILED; + } + if (s0 === peg$FAILED) { + s0 = peg$currPos; + if (input.charCodeAt(peg$currPos) === 123) { + s1 = peg$c111; + peg$currPos++; + } else { + s1 = peg$FAILED; + if (peg$silentFails === 0) { + peg$fail(peg$e134); + } + } + if (s1 !== peg$FAILED) { + s2 = peg$parse__(); + s3 = peg$currPos; + s4 = peg$parseNameValueList(); + if (s4 !== peg$FAILED) { + s5 = peg$currPos; + s6 = peg$parse__(); + if (input.charCodeAt(peg$currPos) === 44) { + s7 = peg$c106; + peg$currPos++; + } else { + s7 = peg$FAILED; + if (peg$silentFails === 0) { + peg$fail(peg$e129); + } + } + if (s7 !== peg$FAILED) { + s6 = [s6, s7]; + s5 = s6; + } else { + peg$currPos = s5; + s5 = peg$FAILED; + } + if (s5 === peg$FAILED) { + s5 = null; + } + s4 = [s4, s5]; + s3 = s4; + } else { + peg$currPos = s3; + s3 = peg$FAILED; + } + if (s3 === peg$FAILED) { + s3 = null; + } + s4 = peg$parse__(); + if (input.charCodeAt(peg$currPos) === 125) { + s5 = peg$c112; + peg$currPos++; + } else { + s5 = peg$FAILED; + if (peg$silentFails === 0) { + peg$fail(peg$e135); + } + } + if (s5 !== peg$FAILED) { + peg$savedPos = s0; + s0 = peg$f45(s3); + } else { + peg$currPos = s0; + s0 = peg$FAILED; + } + } else { + peg$currPos = s0; + s0 = peg$FAILED; + } + } + } + + if (s0 !== peg$FAILED) { + peg$tracer.trace({ + type: 'rule.match', + rule: 'Arguments', + result: s0, + location: peg$computeLocation(startPos, peg$currPos), + }); + } else { + peg$tracer.trace({ + type: 'rule.fail', + rule: 'Arguments', + location: peg$computeLocation(startPos, startPos), + }); + } + + return s0; + } + + function peg$parseArgumentList() { + var startPos = peg$currPos; + var s0, s1, s2, s3, s4, s5, s6, s7; + + peg$tracer.trace({ + type: 'rule.enter', + rule: 'ArgumentList', + location: peg$computeLocation(startPos, startPos), + }); + + s0 = peg$currPos; + s1 = peg$parseAssignmentExpression(); + if (s1 !== peg$FAILED) { + s2 = []; + s3 = peg$currPos; + s4 = peg$parse__(); + if (input.charCodeAt(peg$currPos) === 44) { + s5 = peg$c106; + peg$currPos++; + } else { + s5 = peg$FAILED; + if (peg$silentFails === 0) { + peg$fail(peg$e129); + } + } + if (s5 !== peg$FAILED) { + s6 = peg$parse__(); + s7 = peg$parseAssignmentExpression(); + if (s7 !== peg$FAILED) { + s4 = [s4, s5, s6, s7]; + s3 = s4; + } else { + peg$currPos = s3; + s3 = peg$FAILED; + } + } else { + peg$currPos = s3; + s3 = peg$FAILED; + } + while (s3 !== peg$FAILED) { + s2.push(s3); + s3 = peg$currPos; + s4 = peg$parse__(); + if (input.charCodeAt(peg$currPos) === 44) { + s5 = peg$c106; + peg$currPos++; + } else { + s5 = peg$FAILED; + if (peg$silentFails === 0) { + peg$fail(peg$e129); + } + } + if (s5 !== peg$FAILED) { + s6 = peg$parse__(); + s7 = peg$parseAssignmentExpression(); + if (s7 !== peg$FAILED) { + s4 = [s4, s5, s6, s7]; + s3 = s4; + } else { + peg$currPos = s3; + s3 = peg$FAILED; + } + } else { + peg$currPos = s3; + s3 = peg$FAILED; + } + } + peg$savedPos = s0; + s0 = peg$f46(s1, s2); + } else { + peg$currPos = s0; + s0 = peg$FAILED; + } + + if (s0 !== peg$FAILED) { + peg$tracer.trace({ + type: 'rule.match', + rule: 'ArgumentList', + result: s0, + location: peg$computeLocation(startPos, peg$currPos), + }); + } else { + peg$tracer.trace({ + type: 'rule.fail', + rule: 'ArgumentList', + location: peg$computeLocation(startPos, startPos), + }); + } + + return s0; + } + + function peg$parseNameValueList() { + var startPos = peg$currPos; + var s0, s1, s2, s3, s4, s5, s6, s7; + + peg$tracer.trace({ + type: 'rule.enter', + rule: 'NameValueList', + location: peg$computeLocation(startPos, startPos), + }); + + s0 = peg$currPos; + s1 = peg$parseNameValueAssignment(); + if (s1 !== peg$FAILED) { + s2 = []; + s3 = peg$currPos; + s4 = peg$parse__(); + if (input.charCodeAt(peg$currPos) === 44) { + s5 = peg$c106; + peg$currPos++; + } else { + s5 = peg$FAILED; + if (peg$silentFails === 0) { + peg$fail(peg$e129); + } + } + if (s5 !== peg$FAILED) { + s6 = peg$parse__(); + s7 = peg$parseNameValueAssignment(); + if (s7 !== peg$FAILED) { + s4 = [s4, s5, s6, s7]; + s3 = s4; + } else { + peg$currPos = s3; + s3 = peg$FAILED; + } + } else { + peg$currPos = s3; + s3 = peg$FAILED; + } + while (s3 !== peg$FAILED) { + s2.push(s3); + s3 = peg$currPos; + s4 = peg$parse__(); + if (input.charCodeAt(peg$currPos) === 44) { + s5 = peg$c106; + peg$currPos++; + } else { + s5 = peg$FAILED; + if (peg$silentFails === 0) { + peg$fail(peg$e129); + } + } + if (s5 !== peg$FAILED) { + s6 = peg$parse__(); + s7 = peg$parseNameValueAssignment(); + if (s7 !== peg$FAILED) { + s4 = [s4, s5, s6, s7]; + s3 = s4; + } else { + peg$currPos = s3; + s3 = peg$FAILED; + } + } else { + peg$currPos = s3; + s3 = peg$FAILED; + } + } + peg$savedPos = s0; + s0 = peg$f46(s1, s2); + } else { + peg$currPos = s0; + s0 = peg$FAILED; + } + + if (s0 !== peg$FAILED) { + peg$tracer.trace({ + type: 'rule.match', + rule: 'NameValueList', + result: s0, + location: peg$computeLocation(startPos, peg$currPos), + }); + } else { + peg$tracer.trace({ + type: 'rule.fail', + rule: 'NameValueList', + location: peg$computeLocation(startPos, startPos), + }); + } + + return s0; + } + + function peg$parseNameValueAssignment() { + var startPos = peg$currPos; + var s0, s1, s2, s3, s4, s5, s6; + + peg$tracer.trace({ + type: 'rule.enter', + rule: 'NameValueAssignment', + location: peg$computeLocation(startPos, startPos), + }); + + s0 = peg$currPos; + s1 = peg$parseIdentifier(); + if (s1 !== peg$FAILED) { + s2 = peg$parse__(); + if (input.charCodeAt(peg$currPos) === 58) { + s3 = peg$c113; + peg$currPos++; + } else { + s3 = peg$FAILED; + if (peg$silentFails === 0) { + peg$fail(peg$e136); + } + } + if (s3 !== peg$FAILED) { + s4 = peg$parse__(); + s5 = peg$parseAssignmentExpression(); + if (s5 !== peg$FAILED) { + s6 = peg$parse__(); + peg$savedPos = s0; + s0 = peg$f47(s1, s5); + } else { + peg$currPos = s0; + s0 = peg$FAILED; + } + } else { + peg$currPos = s0; + s0 = peg$FAILED; + } + } else { + peg$currPos = s0; + s0 = peg$FAILED; + } + + if (s0 !== peg$FAILED) { + peg$tracer.trace({ + type: 'rule.match', + rule: 'NameValueAssignment', + result: s0, + location: peg$computeLocation(startPos, peg$currPos), + }); + } else { + peg$tracer.trace({ + type: 'rule.fail', + rule: 'NameValueAssignment', + location: peg$computeLocation(startPos, startPos), + }); + } + + return s0; + } + + function peg$parseLeftHandSideExpression() { + var startPos = peg$currPos; + var s0; + + peg$tracer.trace({ + type: 'rule.enter', + rule: 'LeftHandSideExpression', + location: peg$computeLocation(startPos, startPos), + }); + + s0 = peg$parseDeclarativeExpression(); + if (s0 === peg$FAILED) { + s0 = peg$parseCallExpression(); + if (s0 === peg$FAILED) { + s0 = peg$parseNewExpression(); + } + } + + if (s0 !== peg$FAILED) { + peg$tracer.trace({ + type: 'rule.match', + rule: 'LeftHandSideExpression', + result: s0, + location: peg$computeLocation(startPos, peg$currPos), + }); + } else { + peg$tracer.trace({ + type: 'rule.fail', + rule: 'LeftHandSideExpression', + location: peg$computeLocation(startPos, startPos), + }); + } + + return s0; + } + + function peg$parseType() { + var startPos = peg$currPos; + var s0, + s1, + s2, + s3, + s4, + s5, + s6, + s7, + s8, + s9, + s10, + s11, + s12, + s13, + s14, + s15, + s16; + + peg$tracer.trace({ + type: 'rule.enter', + rule: 'Type', + location: peg$computeLocation(startPos, startPos), + }); + + s0 = peg$currPos; + s1 = peg$parseMapping(); + if (s1 === peg$FAILED) { + s1 = peg$parseAddressPayable(); + if (s1 === peg$FAILED) { + s1 = peg$parseIdentifier(); + } + } + if (s1 !== peg$FAILED) { + s2 = []; + s3 = peg$currPos; + if (input.charCodeAt(peg$currPos) === 46) { + s4 = peg$c17; + peg$currPos++; + } else { + s4 = peg$FAILED; + if (peg$silentFails === 0) { + peg$fail(peg$e24); + } + } + if (s4 !== peg$FAILED) { + s5 = peg$parseIdentifier(); + if (s5 !== peg$FAILED) { + s4 = [s4, s5]; + s3 = s4; + } else { + peg$currPos = s3; + s3 = peg$FAILED; + } + } else { + peg$currPos = s3; + s3 = peg$FAILED; + } + while (s3 !== peg$FAILED) { + s2.push(s3); + s3 = peg$currPos; + if (input.charCodeAt(peg$currPos) === 46) { + s4 = peg$c17; + peg$currPos++; + } else { + s4 = peg$FAILED; + if (peg$silentFails === 0) { + peg$fail(peg$e24); + } + } + if (s4 !== peg$FAILED) { + s5 = peg$parseIdentifier(); + if (s5 !== peg$FAILED) { + s4 = [s4, s5]; + s3 = s4; + } else { + peg$currPos = s3; + s3 = peg$FAILED; + } + } else { + peg$currPos = s3; + s3 = peg$FAILED; + } + } + s3 = []; + s4 = peg$currPos; + s5 = peg$parse__(); + if (input.charCodeAt(peg$currPos) === 91) { + s6 = peg$c109; + peg$currPos++; + } else { + s6 = peg$FAILED; + if (peg$silentFails === 0) { + peg$fail(peg$e132); + } + } + if (s6 !== peg$FAILED) { + s7 = peg$parse__(); + s8 = peg$parseExpression(); + s9 = peg$parse__(); + if (input.charCodeAt(peg$currPos) === 93) { + s10 = peg$c110; + peg$currPos++; + } else { + s10 = peg$FAILED; + if (peg$silentFails === 0) { + peg$fail(peg$e133); + } + } + if (s10 !== peg$FAILED) { + s5 = [s5, s6, s7, s8, s9, s10]; + s4 = s5; + } else { + peg$currPos = s4; + s4 = peg$FAILED; + } + } else { + peg$currPos = s4; + s4 = peg$FAILED; + } + while (s4 !== peg$FAILED) { + s3.push(s4); + s4 = peg$currPos; + s5 = peg$parse__(); + if (input.charCodeAt(peg$currPos) === 91) { + s6 = peg$c109; + peg$currPos++; + } else { + s6 = peg$FAILED; + if (peg$silentFails === 0) { + peg$fail(peg$e132); + } + } + if (s6 !== peg$FAILED) { + s7 = peg$parse__(); + s8 = peg$parseExpression(); + s9 = peg$parse__(); + if (input.charCodeAt(peg$currPos) === 93) { + s10 = peg$c110; + peg$currPos++; + } else { + s10 = peg$FAILED; + if (peg$silentFails === 0) { + peg$fail(peg$e133); + } + } + if (s10 !== peg$FAILED) { + s5 = [s5, s6, s7, s8, s9, s10]; + s4 = s5; + } else { + peg$currPos = s4; + s4 = peg$FAILED; + } + } else { + peg$currPos = s4; + s4 = peg$FAILED; + } + } + peg$savedPos = s0; + s0 = peg$f48(s1, s2, s3); + } else { + peg$currPos = s0; + s0 = peg$FAILED; + } + if (s0 === peg$FAILED) { + s0 = peg$currPos; + s1 = peg$parseFunctionToken(); + if (s1 !== peg$FAILED) { + s2 = peg$parse__(); + s3 = peg$parseFunctionName(); + if (s3 !== peg$FAILED) { + s4 = peg$parse__(); + s5 = peg$parseFunctionTypeModifierList(); + if (s5 === peg$FAILED) { + s5 = null; + } + s6 = peg$parse__(); + s7 = peg$parseReturnsDeclarations(); + s8 = peg$parse__(); + s9 = []; + s10 = peg$currPos; + s11 = peg$parse__(); + if (input.charCodeAt(peg$currPos) === 91) { + s12 = peg$c109; + peg$currPos++; + } else { + s12 = peg$FAILED; + if (peg$silentFails === 0) { + peg$fail(peg$e132); + } + } + if (s12 !== peg$FAILED) { + s13 = peg$parse__(); + s14 = peg$parseExpression(); + s15 = peg$parse__(); + if (input.charCodeAt(peg$currPos) === 93) { + s16 = peg$c110; + peg$currPos++; + } else { + s16 = peg$FAILED; + if (peg$silentFails === 0) { + peg$fail(peg$e133); + } + } + if (s16 !== peg$FAILED) { + s11 = [s11, s12, s13, s14, s15, s16]; + s10 = s11; + } else { + peg$currPos = s10; + s10 = peg$FAILED; + } + } else { + peg$currPos = s10; + s10 = peg$FAILED; + } + while (s10 !== peg$FAILED) { + s9.push(s10); + s10 = peg$currPos; + s11 = peg$parse__(); + if (input.charCodeAt(peg$currPos) === 91) { + s12 = peg$c109; + peg$currPos++; + } else { + s12 = peg$FAILED; + if (peg$silentFails === 0) { + peg$fail(peg$e132); + } + } + if (s12 !== peg$FAILED) { + s13 = peg$parse__(); + s14 = peg$parseExpression(); + s15 = peg$parse__(); + if (input.charCodeAt(peg$currPos) === 93) { + s16 = peg$c110; + peg$currPos++; + } else { + s16 = peg$FAILED; + if (peg$silentFails === 0) { + peg$fail(peg$e133); + } + } + if (s16 !== peg$FAILED) { + s11 = [s11, s12, s13, s14, s15, s16]; + s10 = s11; + } else { + peg$currPos = s10; + s10 = peg$FAILED; + } + } else { + peg$currPos = s10; + s10 = peg$FAILED; + } + } + peg$savedPos = s0; + s0 = peg$f49(s3, s5, s7, s9); + } else { + peg$currPos = s0; + s0 = peg$FAILED; + } + } else { + peg$currPos = s0; + s0 = peg$FAILED; + } + } + + if (s0 !== peg$FAILED) { + peg$tracer.trace({ + type: 'rule.match', + rule: 'Type', + result: s0, + location: peg$computeLocation(startPos, peg$currPos), + }); + } else { + peg$tracer.trace({ + type: 'rule.fail', + rule: 'Type', + location: peg$computeLocation(startPos, startPos), + }); + } + + return s0; + } + + function peg$parseFunctionTypeModifier() { + var startPos = peg$currPos; + var s0, s1; + + peg$tracer.trace({ + type: 'rule.enter', + rule: 'FunctionTypeModifier', + location: peg$computeLocation(startPos, startPos), + }); + + s0 = peg$currPos; + s1 = peg$parseInternalToken(); + if (s1 === peg$FAILED) { + s1 = peg$parseExternalToken(); + if (s1 === peg$FAILED) { + s1 = peg$parseStateMutabilitySpecifier(); + } + } + if (s1 !== peg$FAILED) { + peg$savedPos = s0; + s1 = peg$f50(s1); + } + s0 = s1; + + if (s0 !== peg$FAILED) { + peg$tracer.trace({ + type: 'rule.match', + rule: 'FunctionTypeModifier', + result: s0, + location: peg$computeLocation(startPos, peg$currPos), + }); + } else { + peg$tracer.trace({ + type: 'rule.fail', + rule: 'FunctionTypeModifier', + location: peg$computeLocation(startPos, startPos), + }); + } + + return s0; + } + + function peg$parseStateMutabilitySpecifier() { + var startPos = peg$currPos; + var s0, s1; + + peg$tracer.trace({ + type: 'rule.enter', + rule: 'StateMutabilitySpecifier', + location: peg$computeLocation(startPos, startPos), + }); + + s0 = peg$currPos; + s1 = peg$parseConstantToken(); + if (s1 === peg$FAILED) { + s1 = peg$parsePureToken(); + if (s1 === peg$FAILED) { + s1 = peg$parseViewToken(); + if (s1 === peg$FAILED) { + s1 = peg$parsePayableToken(); + } + } + } + if (s1 !== peg$FAILED) { + peg$savedPos = s0; + s1 = peg$f51(s1); + } + s0 = s1; + + if (s0 !== peg$FAILED) { + peg$tracer.trace({ + type: 'rule.match', + rule: 'StateMutabilitySpecifier', + result: s0, + location: peg$computeLocation(startPos, peg$currPos), + }); + } else { + peg$tracer.trace({ + type: 'rule.fail', + rule: 'StateMutabilitySpecifier', + location: peg$computeLocation(startPos, startPos), + }); + } + + return s0; + } + + function peg$parseVisibilitySpecifier() { + var startPos = peg$currPos; + var s0; + + peg$tracer.trace({ + type: 'rule.enter', + rule: 'VisibilitySpecifier', + location: peg$computeLocation(startPos, startPos), + }); + + s0 = peg$parsePublicToken(); + if (s0 === peg$FAILED) { + s0 = peg$parsePrivateToken(); + if (s0 === peg$FAILED) { + s0 = peg$parseInternalToken(); + } + } + + if (s0 !== peg$FAILED) { + peg$tracer.trace({ + type: 'rule.match', + rule: 'VisibilitySpecifier', + result: s0, + location: peg$computeLocation(startPos, peg$currPos), + }); + } else { + peg$tracer.trace({ + type: 'rule.fail', + rule: 'VisibilitySpecifier', + location: peg$computeLocation(startPos, startPos), + }); + } + + return s0; + } + + function peg$parseStorageLocationSpecifier() { + var startPos = peg$currPos; + var s0; + + peg$tracer.trace({ + type: 'rule.enter', + rule: 'StorageLocationSpecifier', + location: peg$computeLocation(startPos, startPos), + }); + + s0 = peg$parseStorageToken(); + if (s0 === peg$FAILED) { + s0 = peg$parseMemoryToken(); + if (s0 === peg$FAILED) { + s0 = peg$parseCalldataToken(); + } + } + + if (s0 !== peg$FAILED) { + peg$tracer.trace({ + type: 'rule.match', + rule: 'StorageLocationSpecifier', + result: s0, + location: peg$computeLocation(startPos, peg$currPos), + }); + } else { + peg$tracer.trace({ + type: 'rule.fail', + rule: 'StorageLocationSpecifier', + location: peg$computeLocation(startPos, startPos), + }); + } + + return s0; + } + + function peg$parseStateVariableSpecifiers() { + var startPos = peg$currPos; + var s0, s1, s2, s3, s4, s5, s6; + + peg$tracer.trace({ + type: 'rule.enter', + rule: 'StateVariableSpecifiers', + location: peg$computeLocation(startPos, startPos), + }); + + s0 = peg$currPos; + s1 = peg$parseConstantToken(); + if (s1 === peg$FAILED) { + s1 = peg$parseImmutableToken(); + } + if (s1 !== peg$FAILED) { + s2 = peg$parse__(); + s3 = peg$parseVisibilitySpecifier(); + if (s3 !== peg$FAILED) { + s4 = peg$parse__(); + s5 = peg$parseOverrideToken(); + if (s5 === peg$FAILED) { + s5 = null; + } + s6 = peg$parse__(); + peg$savedPos = s0; + s0 = peg$f52(s1, s3, s5); + } else { + peg$currPos = s0; + s0 = peg$FAILED; + } + } else { + peg$currPos = s0; + s0 = peg$FAILED; + } + if (s0 === peg$FAILED) { + s0 = peg$currPos; + s1 = peg$parseConstantToken(); + if (s1 === peg$FAILED) { + s1 = peg$parseImmutableToken(); + } + if (s1 !== peg$FAILED) { + s2 = peg$parse__(); + s3 = peg$parseOverrideToken(); + if (s3 === peg$FAILED) { + s3 = null; + } + s4 = peg$parse__(); + s5 = peg$parseVisibilitySpecifier(); + if (s5 === peg$FAILED) { + s5 = null; + } + s6 = peg$parse__(); + peg$savedPos = s0; + s0 = peg$f53(s1, s3, s5); + } else { + peg$currPos = s0; + s0 = peg$FAILED; + } + if (s0 === peg$FAILED) { + s0 = peg$currPos; + s1 = peg$parseOverrideToken(); + if (s1 !== peg$FAILED) { + s2 = peg$parse__(); + s3 = peg$parseConstantToken(); + if (s3 === peg$FAILED) { + s3 = peg$parseImmutableToken(); + } + if (s3 !== peg$FAILED) { + s4 = peg$parse__(); + s5 = peg$parseVisibilitySpecifier(); + if (s5 === peg$FAILED) { + s5 = null; + } + s6 = peg$parse__(); + peg$savedPos = s0; + s0 = peg$f54(s1, s3, s5); + } else { + peg$currPos = s0; + s0 = peg$FAILED; + } + } else { + peg$currPos = s0; + s0 = peg$FAILED; + } + if (s0 === peg$FAILED) { + s0 = peg$currPos; + s1 = peg$parseOverrideToken(); + if (s1 !== peg$FAILED) { + s2 = peg$parse__(); + s3 = peg$parseVisibilitySpecifier(); + if (s3 === peg$FAILED) { + s3 = null; + } + s4 = peg$parse__(); + s5 = peg$parseConstantToken(); + if (s5 === peg$FAILED) { + s5 = peg$parseImmutableToken(); + } + if (s5 === peg$FAILED) { + s5 = null; + } + s6 = peg$parse__(); + peg$savedPos = s0; + s0 = peg$f55(s1, s3, s5); + } else { + peg$currPos = s0; + s0 = peg$FAILED; + } + if (s0 === peg$FAILED) { + s0 = peg$currPos; + s1 = peg$parseVisibilitySpecifier(); + if (s1 !== peg$FAILED) { + s2 = peg$parse__(); + s3 = peg$parseOverrideToken(); + if (s3 !== peg$FAILED) { + s4 = peg$parse__(); + s5 = peg$parseConstantToken(); + if (s5 === peg$FAILED) { + s5 = peg$parseImmutableToken(); + } + if (s5 === peg$FAILED) { + s5 = null; + } + s6 = peg$parse__(); + peg$savedPos = s0; + s0 = peg$f56(s1, s3, s5); + } else { + peg$currPos = s0; + s0 = peg$FAILED; + } + } else { + peg$currPos = s0; + s0 = peg$FAILED; + } + if (s0 === peg$FAILED) { + s0 = peg$currPos; + s1 = peg$parseVisibilitySpecifier(); + if (s1 !== peg$FAILED) { + s2 = peg$parse__(); + s3 = peg$parseConstantToken(); + if (s3 === peg$FAILED) { + s3 = peg$parseImmutableToken(); + } + if (s3 === peg$FAILED) { + s3 = null; + } + s4 = peg$parse__(); + s5 = peg$parseOverrideToken(); + if (s5 === peg$FAILED) { + s5 = null; + } + s6 = peg$parse__(); + peg$savedPos = s0; + s0 = peg$f57(s1, s3, s5); + } else { + peg$currPos = s0; + s0 = peg$FAILED; + } + } + } + } + } + } + + if (s0 !== peg$FAILED) { + peg$tracer.trace({ + type: 'rule.match', + rule: 'StateVariableSpecifiers', + result: s0, + location: peg$computeLocation(startPos, peg$currPos), + }); + } else { + peg$tracer.trace({ + type: 'rule.fail', + rule: 'StateVariableSpecifiers', + location: peg$computeLocation(startPos, startPos), + }); + } + + return s0; + } + + function peg$parseStateVariableValue() { + var startPos = peg$currPos; + var s0, s1, s2, s3; + + peg$tracer.trace({ + type: 'rule.enter', + rule: 'StateVariableValue', + location: peg$computeLocation(startPos, startPos), + }); + + s0 = peg$currPos; + if (input.charCodeAt(peg$currPos) === 61) { + s1 = peg$c114; + peg$currPos++; + } else { + s1 = peg$FAILED; + if (peg$silentFails === 0) { + peg$fail(peg$e137); + } + } + if (s1 !== peg$FAILED) { + s2 = peg$parse__(); + s3 = peg$parseExpression(); + peg$savedPos = s0; + s0 = peg$f58(s3); + } else { + peg$currPos = s0; + s0 = peg$FAILED; + } + + if (s0 !== peg$FAILED) { + peg$tracer.trace({ + type: 'rule.match', + rule: 'StateVariableValue', + result: s0, + location: peg$computeLocation(startPos, peg$currPos), + }); + } else { + peg$tracer.trace({ + type: 'rule.fail', + rule: 'StateVariableValue', + location: peg$computeLocation(startPos, startPos), + }); + } + + return s0; + } + + function peg$parseStateVariableDeclaration() { + var startPos = peg$currPos; + var s0, s1, s2, s3, s4, s5, s6, s7, s8, s9; + + peg$tracer.trace({ + type: 'rule.enter', + rule: 'StateVariableDeclaration', + location: peg$computeLocation(startPos, startPos), + }); + + s0 = peg$currPos; + s1 = peg$parseType(); + if (s1 !== peg$FAILED) { + s2 = peg$parse__(); + s3 = peg$parseStateVariableSpecifiers(); + if (s3 === peg$FAILED) { + s3 = null; + } + s4 = peg$parse__(); + s5 = peg$parseIdentifier(); + if (s5 !== peg$FAILED) { + s6 = peg$parse__(); + s7 = peg$parseStateVariableValue(); + if (s7 === peg$FAILED) { + s7 = null; + } + s8 = peg$parse__(); + s9 = peg$parseEOS(); + if (s9 !== peg$FAILED) { + peg$savedPos = s0; + s0 = peg$f59(s1, s3, s5, s7); + } else { + peg$currPos = s0; + s0 = peg$FAILED; + } + } else { + peg$currPos = s0; + s0 = peg$FAILED; + } + } else { + peg$currPos = s0; + s0 = peg$FAILED; + } + + if (s0 !== peg$FAILED) { + peg$tracer.trace({ + type: 'rule.match', + rule: 'StateVariableDeclaration', + result: s0, + location: peg$computeLocation(startPos, peg$currPos), + }); + } else { + peg$tracer.trace({ + type: 'rule.fail', + rule: 'StateVariableDeclaration', + location: peg$computeLocation(startPos, startPos), + }); + } + + return s0; + } + + function peg$parseDeclarativeExpression() { + var startPos = peg$currPos; + var s0, s1, s2, s3, s4, s5; + + peg$tracer.trace({ + type: 'rule.enter', + rule: 'DeclarativeExpression', + location: peg$computeLocation(startPos, startPos), + }); + + s0 = peg$currPos; + s1 = peg$parseType(); + if (s1 !== peg$FAILED) { + s2 = peg$parse__(); + s3 = peg$parseStorageLocationSpecifier(); + if (s3 === peg$FAILED) { + s3 = null; + } + s4 = peg$parse__(); + s5 = peg$parseIdentifier(); + if (s5 !== peg$FAILED) { + peg$savedPos = s0; + s0 = peg$f60(s1, s3, s5); + } else { + peg$currPos = s0; + s0 = peg$FAILED; + } + } else { + peg$currPos = s0; + s0 = peg$FAILED; + } + + if (s0 !== peg$FAILED) { + peg$tracer.trace({ + type: 'rule.match', + rule: 'DeclarativeExpression', + result: s0, + location: peg$computeLocation(startPos, peg$currPos), + }); + } else { + peg$tracer.trace({ + type: 'rule.fail', + rule: 'DeclarativeExpression', + location: peg$computeLocation(startPos, startPos), + }); + } + + return s0; + } + + function peg$parseMapping() { + var startPos = peg$currPos; + var s0, s1, s2, s3, s4, s5, s6, s7, s8, s9, s10, s11; + + peg$tracer.trace({ + type: 'rule.enter', + rule: 'Mapping', + location: peg$computeLocation(startPos, startPos), + }); + + s0 = peg$currPos; + s1 = peg$parseMappingToken(); + if (s1 !== peg$FAILED) { + s2 = peg$parse__(); + if (input.charCodeAt(peg$currPos) === 40) { + s3 = peg$c107; + peg$currPos++; + } else { + s3 = peg$FAILED; + if (peg$silentFails === 0) { + peg$fail(peg$e130); + } + } + if (s3 !== peg$FAILED) { + s4 = peg$parse__(); + s5 = peg$parseType(); + if (s5 !== peg$FAILED) { + s6 = peg$parse__(); + if (input.substr(peg$currPos, 2) === peg$c115) { + s7 = peg$c115; + peg$currPos += 2; + } else { + s7 = peg$FAILED; + if (peg$silentFails === 0) { + peg$fail(peg$e138); + } + } + if (s7 !== peg$FAILED) { + s8 = peg$parse__(); + s9 = peg$parseType(); + if (s9 !== peg$FAILED) { + s10 = peg$parse__(); + if (input.charCodeAt(peg$currPos) === 41) { + s11 = peg$c108; + peg$currPos++; + } else { + s11 = peg$FAILED; + if (peg$silentFails === 0) { + peg$fail(peg$e131); + } + } + if (s11 !== peg$FAILED) { + peg$savedPos = s0; + s0 = peg$f61(s5, s9); + } else { + peg$currPos = s0; + s0 = peg$FAILED; + } + } else { + peg$currPos = s0; + s0 = peg$FAILED; + } + } else { + peg$currPos = s0; + s0 = peg$FAILED; + } + } else { + peg$currPos = s0; + s0 = peg$FAILED; + } + } else { + peg$currPos = s0; + s0 = peg$FAILED; + } + } else { + peg$currPos = s0; + s0 = peg$FAILED; + } + + if (s0 !== peg$FAILED) { + peg$tracer.trace({ + type: 'rule.match', + rule: 'Mapping', + result: s0, + location: peg$computeLocation(startPos, peg$currPos), + }); + } else { + peg$tracer.trace({ + type: 'rule.fail', + rule: 'Mapping', + location: peg$computeLocation(startPos, startPos), + }); + } + + return s0; + } + + function peg$parsePostfixExpression() { + var startPos = peg$currPos; + var s0, s1, s2, s3; + + peg$tracer.trace({ + type: 'rule.enter', + rule: 'PostfixExpression', + location: peg$computeLocation(startPos, startPos), + }); + + s0 = peg$currPos; + s1 = peg$parseLeftHandSideExpression(); + if (s1 !== peg$FAILED) { + s2 = peg$parse_(); + s3 = peg$parsePostfixOperator(); + if (s3 !== peg$FAILED) { + peg$savedPos = s0; + s0 = peg$f62(s1, s3); + } else { + peg$currPos = s0; + s0 = peg$FAILED; + } + } else { + peg$currPos = s0; + s0 = peg$FAILED; + } + if (s0 === peg$FAILED) { + s0 = peg$parseLeftHandSideExpression(); + } + + if (s0 !== peg$FAILED) { + peg$tracer.trace({ + type: 'rule.match', + rule: 'PostfixExpression', + result: s0, + location: peg$computeLocation(startPos, peg$currPos), + }); + } else { + peg$tracer.trace({ + type: 'rule.fail', + rule: 'PostfixExpression', + location: peg$computeLocation(startPos, startPos), + }); + } + + return s0; + } + + function peg$parsePostfixOperator() { + var startPos = peg$currPos; + var s0; + + peg$tracer.trace({ + type: 'rule.enter', + rule: 'PostfixOperator', + location: peg$computeLocation(startPos, startPos), + }); + + if (input.substr(peg$currPos, 2) === peg$c116) { + s0 = peg$c116; + peg$currPos += 2; + } else { + s0 = peg$FAILED; + if (peg$silentFails === 0) { + peg$fail(peg$e139); + } + } + if (s0 === peg$FAILED) { + if (input.substr(peg$currPos, 2) === peg$c117) { + s0 = peg$c117; + peg$currPos += 2; + } else { + s0 = peg$FAILED; + if (peg$silentFails === 0) { + peg$fail(peg$e140); + } + } + } + + if (s0 !== peg$FAILED) { + peg$tracer.trace({ + type: 'rule.match', + rule: 'PostfixOperator', + result: s0, + location: peg$computeLocation(startPos, peg$currPos), + }); + } else { + peg$tracer.trace({ + type: 'rule.fail', + rule: 'PostfixOperator', + location: peg$computeLocation(startPos, startPos), + }); + } + + return s0; + } + + function peg$parseUnaryExpression() { + var startPos = peg$currPos; + var s0, s1, s2, s3; + + peg$tracer.trace({ + type: 'rule.enter', + rule: 'UnaryExpression', + location: peg$computeLocation(startPos, startPos), + }); + + s0 = peg$parsePostfixExpression(); + if (s0 === peg$FAILED) { + s0 = peg$currPos; + s1 = peg$parseUnaryOperator(); + if (s1 !== peg$FAILED) { + s2 = peg$parse__(); + s3 = peg$parseUnaryExpression(); + if (s3 !== peg$FAILED) { + peg$savedPos = s0; + s0 = peg$f63(s1, s3); + } else { + peg$currPos = s0; + s0 = peg$FAILED; + } + } else { + peg$currPos = s0; + s0 = peg$FAILED; + } + } + + if (s0 !== peg$FAILED) { + peg$tracer.trace({ + type: 'rule.match', + rule: 'UnaryExpression', + result: s0, + location: peg$computeLocation(startPos, peg$currPos), + }); + } else { + peg$tracer.trace({ + type: 'rule.fail', + rule: 'UnaryExpression', + location: peg$computeLocation(startPos, startPos), + }); + } + + return s0; + } + + function peg$parseUnaryOperator() { + var startPos = peg$currPos; + var s0, s1, s2, s3, s4; + + peg$tracer.trace({ + type: 'rule.enter', + rule: 'UnaryOperator', + location: peg$computeLocation(startPos, startPos), + }); + + s0 = peg$currPos; + s1 = peg$parseDeleteToken(); + if (s1 !== peg$FAILED) { + s0 = input.substring(s0, peg$currPos); + } else { + s0 = s1; + } + if (s0 === peg$FAILED) { + if (input.substr(peg$currPos, 2) === peg$c116) { + s0 = peg$c116; + peg$currPos += 2; + } else { + s0 = peg$FAILED; + if (peg$silentFails === 0) { + peg$fail(peg$e139); + } + } + if (s0 === peg$FAILED) { + if (input.substr(peg$currPos, 2) === peg$c117) { + s0 = peg$c117; + peg$currPos += 2; + } else { + s0 = peg$FAILED; + if (peg$silentFails === 0) { + peg$fail(peg$e140); + } + } + if (s0 === peg$FAILED) { + s0 = peg$currPos; + s1 = peg$currPos; + if (input.charCodeAt(peg$currPos) === 43) { + s2 = peg$c118; + peg$currPos++; + } else { + s2 = peg$FAILED; + if (peg$silentFails === 0) { + peg$fail(peg$e141); + } + } + if (s2 !== peg$FAILED) { + s3 = peg$currPos; + peg$silentFails++; + if (input.charCodeAt(peg$currPos) === 61) { + s4 = peg$c114; + peg$currPos++; + } else { + s4 = peg$FAILED; + if (peg$silentFails === 0) { + peg$fail(peg$e137); + } + } + peg$silentFails--; + if (s4 === peg$FAILED) { + s3 = undefined; + } else { + peg$currPos = s3; + s3 = peg$FAILED; + } + if (s3 !== peg$FAILED) { + s2 = [s2, s3]; + s1 = s2; + } else { + peg$currPos = s1; + s1 = peg$FAILED; + } + } else { + peg$currPos = s1; + s1 = peg$FAILED; + } + if (s1 !== peg$FAILED) { + s0 = input.substring(s0, peg$currPos); + } else { + s0 = s1; + } + if (s0 === peg$FAILED) { + s0 = peg$currPos; + s1 = peg$currPos; + if (input.charCodeAt(peg$currPos) === 45) { + s2 = peg$c119; + peg$currPos++; + } else { + s2 = peg$FAILED; + if (peg$silentFails === 0) { + peg$fail(peg$e142); + } + } + if (s2 !== peg$FAILED) { + s3 = peg$currPos; + peg$silentFails++; + if (input.charCodeAt(peg$currPos) === 61) { + s4 = peg$c114; + peg$currPos++; + } else { + s4 = peg$FAILED; + if (peg$silentFails === 0) { + peg$fail(peg$e137); + } + } + peg$silentFails--; + if (s4 === peg$FAILED) { + s3 = undefined; + } else { + peg$currPos = s3; + s3 = peg$FAILED; + } + if (s3 !== peg$FAILED) { + s2 = [s2, s3]; + s1 = s2; + } else { + peg$currPos = s1; + s1 = peg$FAILED; + } + } else { + peg$currPos = s1; + s1 = peg$FAILED; + } + if (s1 !== peg$FAILED) { + s0 = input.substring(s0, peg$currPos); + } else { + s0 = s1; + } + if (s0 === peg$FAILED) { + if (input.charCodeAt(peg$currPos) === 126) { + s0 = peg$c120; + peg$currPos++; + } else { + s0 = peg$FAILED; + if (peg$silentFails === 0) { + peg$fail(peg$e143); + } + } + if (s0 === peg$FAILED) { + if (input.charCodeAt(peg$currPos) === 33) { + s0 = peg$c121; + peg$currPos++; + } else { + s0 = peg$FAILED; + if (peg$silentFails === 0) { + peg$fail(peg$e144); + } + } + } + } + } + } + } + } + + if (s0 !== peg$FAILED) { + peg$tracer.trace({ + type: 'rule.match', + rule: 'UnaryOperator', + result: s0, + location: peg$computeLocation(startPos, peg$currPos), + }); + } else { + peg$tracer.trace({ + type: 'rule.fail', + rule: 'UnaryOperator', + location: peg$computeLocation(startPos, startPos), + }); + } + + return s0; + } + + function peg$parseMultiplicativeExpression() { + var startPos = peg$currPos; + var s0, s1, s2, s3, s4, s5, s6, s7; + + peg$tracer.trace({ + type: 'rule.enter', + rule: 'MultiplicativeExpression', + location: peg$computeLocation(startPos, startPos), + }); + + s0 = peg$currPos; + s1 = peg$parseUnaryExpression(); + if (s1 !== peg$FAILED) { + s2 = []; + s3 = peg$currPos; + s4 = peg$parse__(); + s5 = peg$parseMultiplicativeOperator(); + if (s5 !== peg$FAILED) { + s6 = peg$parse__(); + s7 = peg$parseUnaryExpression(); + if (s7 !== peg$FAILED) { + s4 = [s4, s5, s6, s7]; + s3 = s4; + } else { + peg$currPos = s3; + s3 = peg$FAILED; + } + } else { + peg$currPos = s3; + s3 = peg$FAILED; + } + while (s3 !== peg$FAILED) { + s2.push(s3); + s3 = peg$currPos; + s4 = peg$parse__(); + s5 = peg$parseMultiplicativeOperator(); + if (s5 !== peg$FAILED) { + s6 = peg$parse__(); + s7 = peg$parseUnaryExpression(); + if (s7 !== peg$FAILED) { + s4 = [s4, s5, s6, s7]; + s3 = s4; + } else { + peg$currPos = s3; + s3 = peg$FAILED; + } + } else { + peg$currPos = s3; + s3 = peg$FAILED; + } + } + peg$savedPos = s0; + s0 = peg$f64(s1, s2); + } else { + peg$currPos = s0; + s0 = peg$FAILED; + } + + if (s0 !== peg$FAILED) { + peg$tracer.trace({ + type: 'rule.match', + rule: 'MultiplicativeExpression', + result: s0, + location: peg$computeLocation(startPos, peg$currPos), + }); + } else { + peg$tracer.trace({ + type: 'rule.fail', + rule: 'MultiplicativeExpression', + location: peg$computeLocation(startPos, startPos), + }); + } + + return s0; + } + + function peg$parseMultiplicativeOperator() { + var startPos = peg$currPos; + var s0, s1, s2, s3, s4, s5; + + peg$tracer.trace({ + type: 'rule.enter', + rule: 'MultiplicativeOperator', + location: peg$computeLocation(startPos, startPos), + }); + + s0 = peg$currPos; + s1 = peg$currPos; + if (input.charCodeAt(peg$currPos) === 42) { + s2 = peg$c122; + peg$currPos++; + } else { + s2 = peg$FAILED; + if (peg$silentFails === 0) { + peg$fail(peg$e145); + } + } + if (s2 !== peg$FAILED) { + if (input.charCodeAt(peg$currPos) === 42) { + s3 = peg$c122; + peg$currPos++; + } else { + s3 = peg$FAILED; + if (peg$silentFails === 0) { + peg$fail(peg$e145); + } + } + if (s3 === peg$FAILED) { + s3 = null; + } + s4 = peg$currPos; + peg$silentFails++; + if (input.charCodeAt(peg$currPos) === 61) { + s5 = peg$c114; + peg$currPos++; + } else { + s5 = peg$FAILED; + if (peg$silentFails === 0) { + peg$fail(peg$e137); + } + } + peg$silentFails--; + if (s5 === peg$FAILED) { + s4 = undefined; + } else { + peg$currPos = s4; + s4 = peg$FAILED; + } + if (s4 !== peg$FAILED) { + s2 = [s2, s3, s4]; + s1 = s2; + } else { + peg$currPos = s1; + s1 = peg$FAILED; + } + } else { + peg$currPos = s1; + s1 = peg$FAILED; + } + if (s1 !== peg$FAILED) { + s0 = input.substring(s0, peg$currPos); + } else { + s0 = s1; + } + if (s0 === peg$FAILED) { + s0 = peg$currPos; + s1 = peg$currPos; + if (input.charCodeAt(peg$currPos) === 47) { + s2 = peg$c123; + peg$currPos++; + } else { + s2 = peg$FAILED; + if (peg$silentFails === 0) { + peg$fail(peg$e146); + } + } + if (s2 !== peg$FAILED) { + s3 = peg$currPos; + peg$silentFails++; + if (input.charCodeAt(peg$currPos) === 61) { + s4 = peg$c114; + peg$currPos++; + } else { + s4 = peg$FAILED; + if (peg$silentFails === 0) { + peg$fail(peg$e137); + } + } + peg$silentFails--; + if (s4 === peg$FAILED) { + s3 = undefined; + } else { + peg$currPos = s3; + s3 = peg$FAILED; + } + if (s3 !== peg$FAILED) { + s2 = [s2, s3]; + s1 = s2; + } else { + peg$currPos = s1; + s1 = peg$FAILED; + } + } else { + peg$currPos = s1; + s1 = peg$FAILED; + } + if (s1 !== peg$FAILED) { + s0 = input.substring(s0, peg$currPos); + } else { + s0 = s1; + } + if (s0 === peg$FAILED) { + s0 = peg$currPos; + s1 = peg$currPos; + if (input.charCodeAt(peg$currPos) === 37) { + s2 = peg$c124; + peg$currPos++; + } else { + s2 = peg$FAILED; + if (peg$silentFails === 0) { + peg$fail(peg$e147); + } + } + if (s2 !== peg$FAILED) { + s3 = peg$currPos; + peg$silentFails++; + if (input.charCodeAt(peg$currPos) === 61) { + s4 = peg$c114; + peg$currPos++; + } else { + s4 = peg$FAILED; + if (peg$silentFails === 0) { + peg$fail(peg$e137); + } + } + peg$silentFails--; + if (s4 === peg$FAILED) { + s3 = undefined; + } else { + peg$currPos = s3; + s3 = peg$FAILED; + } + if (s3 !== peg$FAILED) { + s2 = [s2, s3]; + s1 = s2; + } else { + peg$currPos = s1; + s1 = peg$FAILED; + } + } else { + peg$currPos = s1; + s1 = peg$FAILED; + } + if (s1 !== peg$FAILED) { + s0 = input.substring(s0, peg$currPos); + } else { + s0 = s1; + } + } + } + + if (s0 !== peg$FAILED) { + peg$tracer.trace({ + type: 'rule.match', + rule: 'MultiplicativeOperator', + result: s0, + location: peg$computeLocation(startPos, peg$currPos), + }); + } else { + peg$tracer.trace({ + type: 'rule.fail', + rule: 'MultiplicativeOperator', + location: peg$computeLocation(startPos, startPos), + }); + } + + return s0; + } + + function peg$parseAdditiveExpression() { + var startPos = peg$currPos; + var s0, s1, s2, s3, s4, s5, s6, s7; + + peg$tracer.trace({ + type: 'rule.enter', + rule: 'AdditiveExpression', + location: peg$computeLocation(startPos, startPos), + }); + + s0 = peg$currPos; + s1 = peg$parseMultiplicativeExpression(); + if (s1 !== peg$FAILED) { + s2 = []; + s3 = peg$currPos; + s4 = peg$parse__(); + s5 = peg$parseAdditiveOperator(); + if (s5 !== peg$FAILED) { + s6 = peg$parse__(); + s7 = peg$parseMultiplicativeExpression(); + if (s7 !== peg$FAILED) { + s4 = [s4, s5, s6, s7]; + s3 = s4; + } else { + peg$currPos = s3; + s3 = peg$FAILED; + } + } else { + peg$currPos = s3; + s3 = peg$FAILED; + } + while (s3 !== peg$FAILED) { + s2.push(s3); + s3 = peg$currPos; + s4 = peg$parse__(); + s5 = peg$parseAdditiveOperator(); + if (s5 !== peg$FAILED) { + s6 = peg$parse__(); + s7 = peg$parseMultiplicativeExpression(); + if (s7 !== peg$FAILED) { + s4 = [s4, s5, s6, s7]; + s3 = s4; + } else { + peg$currPos = s3; + s3 = peg$FAILED; + } + } else { + peg$currPos = s3; + s3 = peg$FAILED; + } + } + peg$savedPos = s0; + s0 = peg$f64(s1, s2); + } else { + peg$currPos = s0; + s0 = peg$FAILED; + } + + if (s0 !== peg$FAILED) { + peg$tracer.trace({ + type: 'rule.match', + rule: 'AdditiveExpression', + result: s0, + location: peg$computeLocation(startPos, peg$currPos), + }); + } else { + peg$tracer.trace({ + type: 'rule.fail', + rule: 'AdditiveExpression', + location: peg$computeLocation(startPos, startPos), + }); + } + + return s0; + } + + function peg$parseAdditiveOperator() { + var startPos = peg$currPos; + var s0, s1, s2, s3, s4; + + peg$tracer.trace({ + type: 'rule.enter', + rule: 'AdditiveOperator', + location: peg$computeLocation(startPos, startPos), + }); + + s0 = peg$currPos; + s1 = peg$currPos; + if (input.charCodeAt(peg$currPos) === 43) { + s2 = peg$c118; + peg$currPos++; + } else { + s2 = peg$FAILED; + if (peg$silentFails === 0) { + peg$fail(peg$e141); + } + } + if (s2 !== peg$FAILED) { + s3 = peg$currPos; + peg$silentFails++; + if (peg$r16.test(input.charAt(peg$currPos))) { + s4 = input.charAt(peg$currPos); + peg$currPos++; + } else { + s4 = peg$FAILED; + if (peg$silentFails === 0) { + peg$fail(peg$e148); + } + } + peg$silentFails--; + if (s4 === peg$FAILED) { + s3 = undefined; + } else { + peg$currPos = s3; + s3 = peg$FAILED; + } + if (s3 !== peg$FAILED) { + s2 = [s2, s3]; + s1 = s2; + } else { + peg$currPos = s1; + s1 = peg$FAILED; + } + } else { + peg$currPos = s1; + s1 = peg$FAILED; + } + if (s1 !== peg$FAILED) { + s0 = input.substring(s0, peg$currPos); + } else { + s0 = s1; + } + if (s0 === peg$FAILED) { + s0 = peg$currPos; + s1 = peg$currPos; + if (input.charCodeAt(peg$currPos) === 45) { + s2 = peg$c119; + peg$currPos++; + } else { + s2 = peg$FAILED; + if (peg$silentFails === 0) { + peg$fail(peg$e142); + } + } + if (s2 !== peg$FAILED) { + s3 = peg$currPos; + peg$silentFails++; + if (peg$r17.test(input.charAt(peg$currPos))) { + s4 = input.charAt(peg$currPos); + peg$currPos++; + } else { + s4 = peg$FAILED; + if (peg$silentFails === 0) { + peg$fail(peg$e149); + } + } + peg$silentFails--; + if (s4 === peg$FAILED) { + s3 = undefined; + } else { + peg$currPos = s3; + s3 = peg$FAILED; + } + if (s3 !== peg$FAILED) { + s2 = [s2, s3]; + s1 = s2; + } else { + peg$currPos = s1; + s1 = peg$FAILED; + } + } else { + peg$currPos = s1; + s1 = peg$FAILED; + } + if (s1 !== peg$FAILED) { + s0 = input.substring(s0, peg$currPos); + } else { + s0 = s1; + } + } + + if (s0 !== peg$FAILED) { + peg$tracer.trace({ + type: 'rule.match', + rule: 'AdditiveOperator', + result: s0, + location: peg$computeLocation(startPos, peg$currPos), + }); + } else { + peg$tracer.trace({ + type: 'rule.fail', + rule: 'AdditiveOperator', + location: peg$computeLocation(startPos, startPos), + }); + } + + return s0; + } + + function peg$parseShiftExpression() { + var startPos = peg$currPos; + var s0, s1, s2, s3, s4, s5, s6, s7; + + peg$tracer.trace({ + type: 'rule.enter', + rule: 'ShiftExpression', + location: peg$computeLocation(startPos, startPos), + }); + + s0 = peg$currPos; + s1 = peg$parseAdditiveExpression(); + if (s1 !== peg$FAILED) { + s2 = []; + s3 = peg$currPos; + s4 = peg$parse__(); + s5 = peg$parseShiftOperator(); + if (s5 !== peg$FAILED) { + s6 = peg$parse__(); + s7 = peg$parseAdditiveExpression(); + if (s7 !== peg$FAILED) { + s4 = [s4, s5, s6, s7]; + s3 = s4; + } else { + peg$currPos = s3; + s3 = peg$FAILED; + } + } else { + peg$currPos = s3; + s3 = peg$FAILED; + } + while (s3 !== peg$FAILED) { + s2.push(s3); + s3 = peg$currPos; + s4 = peg$parse__(); + s5 = peg$parseShiftOperator(); + if (s5 !== peg$FAILED) { + s6 = peg$parse__(); + s7 = peg$parseAdditiveExpression(); + if (s7 !== peg$FAILED) { + s4 = [s4, s5, s6, s7]; + s3 = s4; + } else { + peg$currPos = s3; + s3 = peg$FAILED; + } + } else { + peg$currPos = s3; + s3 = peg$FAILED; + } + } + peg$savedPos = s0; + s0 = peg$f64(s1, s2); + } else { + peg$currPos = s0; + s0 = peg$FAILED; + } + + if (s0 !== peg$FAILED) { + peg$tracer.trace({ + type: 'rule.match', + rule: 'ShiftExpression', + result: s0, + location: peg$computeLocation(startPos, peg$currPos), + }); + } else { + peg$tracer.trace({ + type: 'rule.fail', + rule: 'ShiftExpression', + location: peg$computeLocation(startPos, startPos), + }); + } + + return s0; + } + + function peg$parseShiftOperator() { + var startPos = peg$currPos; + var s0, s1, s2, s3, s4; + + peg$tracer.trace({ + type: 'rule.enter', + rule: 'ShiftOperator', + location: peg$computeLocation(startPos, startPos), + }); + + s0 = peg$currPos; + s1 = peg$currPos; + if (input.substr(peg$currPos, 2) === peg$c125) { + s2 = peg$c125; + peg$currPos += 2; + } else { + s2 = peg$FAILED; + if (peg$silentFails === 0) { + peg$fail(peg$e150); + } + } + if (s2 !== peg$FAILED) { + s3 = peg$currPos; + peg$silentFails++; + if (input.charCodeAt(peg$currPos) === 61) { + s4 = peg$c114; + peg$currPos++; + } else { + s4 = peg$FAILED; + if (peg$silentFails === 0) { + peg$fail(peg$e137); + } + } + peg$silentFails--; + if (s4 === peg$FAILED) { + s3 = undefined; + } else { + peg$currPos = s3; + s3 = peg$FAILED; + } + if (s3 !== peg$FAILED) { + s2 = [s2, s3]; + s1 = s2; + } else { + peg$currPos = s1; + s1 = peg$FAILED; + } + } else { + peg$currPos = s1; + s1 = peg$FAILED; + } + if (s1 !== peg$FAILED) { + s0 = input.substring(s0, peg$currPos); + } else { + s0 = s1; + } + if (s0 === peg$FAILED) { + s0 = peg$currPos; + s1 = peg$currPos; + if (input.substr(peg$currPos, 3) === peg$c126) { + s2 = peg$c126; + peg$currPos += 3; + } else { + s2 = peg$FAILED; + if (peg$silentFails === 0) { + peg$fail(peg$e151); + } + } + if (s2 !== peg$FAILED) { + s3 = peg$currPos; + peg$silentFails++; + if (input.charCodeAt(peg$currPos) === 61) { + s4 = peg$c114; + peg$currPos++; + } else { + s4 = peg$FAILED; + if (peg$silentFails === 0) { + peg$fail(peg$e137); + } + } + peg$silentFails--; + if (s4 === peg$FAILED) { + s3 = undefined; + } else { + peg$currPos = s3; + s3 = peg$FAILED; + } + if (s3 !== peg$FAILED) { + s2 = [s2, s3]; + s1 = s2; + } else { + peg$currPos = s1; + s1 = peg$FAILED; + } + } else { + peg$currPos = s1; + s1 = peg$FAILED; + } + if (s1 !== peg$FAILED) { + s0 = input.substring(s0, peg$currPos); + } else { + s0 = s1; + } + if (s0 === peg$FAILED) { + s0 = peg$currPos; + s1 = peg$currPos; + if (input.substr(peg$currPos, 2) === peg$c127) { + s2 = peg$c127; + peg$currPos += 2; + } else { + s2 = peg$FAILED; + if (peg$silentFails === 0) { + peg$fail(peg$e152); + } + } + if (s2 !== peg$FAILED) { + s3 = peg$currPos; + peg$silentFails++; + if (input.charCodeAt(peg$currPos) === 61) { + s4 = peg$c114; + peg$currPos++; + } else { + s4 = peg$FAILED; + if (peg$silentFails === 0) { + peg$fail(peg$e137); + } + } + peg$silentFails--; + if (s4 === peg$FAILED) { + s3 = undefined; + } else { + peg$currPos = s3; + s3 = peg$FAILED; + } + if (s3 !== peg$FAILED) { + s2 = [s2, s3]; + s1 = s2; + } else { + peg$currPos = s1; + s1 = peg$FAILED; + } + } else { + peg$currPos = s1; + s1 = peg$FAILED; + } + if (s1 !== peg$FAILED) { + s0 = input.substring(s0, peg$currPos); + } else { + s0 = s1; + } + } + } + + if (s0 !== peg$FAILED) { + peg$tracer.trace({ + type: 'rule.match', + rule: 'ShiftOperator', + result: s0, + location: peg$computeLocation(startPos, peg$currPos), + }); + } else { + peg$tracer.trace({ + type: 'rule.fail', + rule: 'ShiftOperator', + location: peg$computeLocation(startPos, startPos), + }); + } + + return s0; + } + + function peg$parseRelationalExpression() { + var startPos = peg$currPos; + var s0, s1, s2, s3, s4, s5, s6, s7; + + peg$tracer.trace({ + type: 'rule.enter', + rule: 'RelationalExpression', + location: peg$computeLocation(startPos, startPos), + }); + + s0 = peg$currPos; + s1 = peg$parseShiftExpression(); + if (s1 !== peg$FAILED) { + s2 = []; + s3 = peg$currPos; + s4 = peg$parse__(); + s5 = peg$parseRelationalOperator(); + if (s5 !== peg$FAILED) { + s6 = peg$parse__(); + s7 = peg$parseShiftExpression(); + if (s7 !== peg$FAILED) { + s4 = [s4, s5, s6, s7]; + s3 = s4; + } else { + peg$currPos = s3; + s3 = peg$FAILED; + } + } else { + peg$currPos = s3; + s3 = peg$FAILED; + } + while (s3 !== peg$FAILED) { + s2.push(s3); + s3 = peg$currPos; + s4 = peg$parse__(); + s5 = peg$parseRelationalOperator(); + if (s5 !== peg$FAILED) { + s6 = peg$parse__(); + s7 = peg$parseShiftExpression(); + if (s7 !== peg$FAILED) { + s4 = [s4, s5, s6, s7]; + s3 = s4; + } else { + peg$currPos = s3; + s3 = peg$FAILED; + } + } else { + peg$currPos = s3; + s3 = peg$FAILED; + } + } + peg$savedPos = s0; + s0 = peg$f64(s1, s2); + } else { + peg$currPos = s0; + s0 = peg$FAILED; + } + + if (s0 !== peg$FAILED) { + peg$tracer.trace({ + type: 'rule.match', + rule: 'RelationalExpression', + result: s0, + location: peg$computeLocation(startPos, peg$currPos), + }); + } else { + peg$tracer.trace({ + type: 'rule.fail', + rule: 'RelationalExpression', + location: peg$computeLocation(startPos, startPos), + }); + } + + return s0; + } + + function peg$parseRelationalOperator() { + var startPos = peg$currPos; + var s0, s1, s2, s3, s4; + + peg$tracer.trace({ + type: 'rule.enter', + rule: 'RelationalOperator', + location: peg$computeLocation(startPos, startPos), + }); + + if (input.substr(peg$currPos, 2) === peg$c128) { + s0 = peg$c128; + peg$currPos += 2; + } else { + s0 = peg$FAILED; + if (peg$silentFails === 0) { + peg$fail(peg$e153); + } + } + if (s0 === peg$FAILED) { + if (input.substr(peg$currPos, 2) === peg$c129) { + s0 = peg$c129; + peg$currPos += 2; + } else { + s0 = peg$FAILED; + if (peg$silentFails === 0) { + peg$fail(peg$e154); + } + } + if (s0 === peg$FAILED) { + s0 = peg$currPos; + s1 = peg$currPos; + if (input.charCodeAt(peg$currPos) === 60) { + s2 = peg$c130; + peg$currPos++; + } else { + s2 = peg$FAILED; + if (peg$silentFails === 0) { + peg$fail(peg$e155); + } + } + if (s2 !== peg$FAILED) { + s3 = peg$currPos; + peg$silentFails++; + if (input.charCodeAt(peg$currPos) === 60) { + s4 = peg$c130; + peg$currPos++; + } else { + s4 = peg$FAILED; + if (peg$silentFails === 0) { + peg$fail(peg$e155); + } + } + peg$silentFails--; + if (s4 === peg$FAILED) { + s3 = undefined; + } else { + peg$currPos = s3; + s3 = peg$FAILED; + } + if (s3 !== peg$FAILED) { + s2 = [s2, s3]; + s1 = s2; + } else { + peg$currPos = s1; + s1 = peg$FAILED; + } + } else { + peg$currPos = s1; + s1 = peg$FAILED; + } + if (s1 !== peg$FAILED) { + s0 = input.substring(s0, peg$currPos); + } else { + s0 = s1; + } + if (s0 === peg$FAILED) { + s0 = peg$currPos; + s1 = peg$currPos; + if (input.charCodeAt(peg$currPos) === 62) { + s2 = peg$c131; + peg$currPos++; + } else { + s2 = peg$FAILED; + if (peg$silentFails === 0) { + peg$fail(peg$e156); + } + } + if (s2 !== peg$FAILED) { + s3 = peg$currPos; + peg$silentFails++; + if (input.charCodeAt(peg$currPos) === 62) { + s4 = peg$c131; + peg$currPos++; + } else { + s4 = peg$FAILED; + if (peg$silentFails === 0) { + peg$fail(peg$e156); + } + } + peg$silentFails--; + if (s4 === peg$FAILED) { + s3 = undefined; + } else { + peg$currPos = s3; + s3 = peg$FAILED; + } + if (s3 !== peg$FAILED) { + s2 = [s2, s3]; + s1 = s2; + } else { + peg$currPos = s1; + s1 = peg$FAILED; + } + } else { + peg$currPos = s1; + s1 = peg$FAILED; + } + if (s1 !== peg$FAILED) { + s0 = input.substring(s0, peg$currPos); + } else { + s0 = s1; + } + } + } + } + + if (s0 !== peg$FAILED) { + peg$tracer.trace({ + type: 'rule.match', + rule: 'RelationalOperator', + result: s0, + location: peg$computeLocation(startPos, peg$currPos), + }); + } else { + peg$tracer.trace({ + type: 'rule.fail', + rule: 'RelationalOperator', + location: peg$computeLocation(startPos, startPos), + }); + } + + return s0; + } + + function peg$parseEqualityExpression() { + var startPos = peg$currPos; + var s0, s1, s2, s3, s4, s5, s6, s7; + + peg$tracer.trace({ + type: 'rule.enter', + rule: 'EqualityExpression', + location: peg$computeLocation(startPos, startPos), + }); + + s0 = peg$currPos; + s1 = peg$parseRelationalExpression(); + if (s1 !== peg$FAILED) { + s2 = []; + s3 = peg$currPos; + s4 = peg$parse__(); + s5 = peg$parseEqualityOperator(); + if (s5 !== peg$FAILED) { + s6 = peg$parse__(); + s7 = peg$parseRelationalExpression(); + if (s7 !== peg$FAILED) { + s4 = [s4, s5, s6, s7]; + s3 = s4; + } else { + peg$currPos = s3; + s3 = peg$FAILED; + } + } else { + peg$currPos = s3; + s3 = peg$FAILED; + } + while (s3 !== peg$FAILED) { + s2.push(s3); + s3 = peg$currPos; + s4 = peg$parse__(); + s5 = peg$parseEqualityOperator(); + if (s5 !== peg$FAILED) { + s6 = peg$parse__(); + s7 = peg$parseRelationalExpression(); + if (s7 !== peg$FAILED) { + s4 = [s4, s5, s6, s7]; + s3 = s4; + } else { + peg$currPos = s3; + s3 = peg$FAILED; + } + } else { + peg$currPos = s3; + s3 = peg$FAILED; + } + } + peg$savedPos = s0; + s0 = peg$f64(s1, s2); + } else { + peg$currPos = s0; + s0 = peg$FAILED; + } + + if (s0 !== peg$FAILED) { + peg$tracer.trace({ + type: 'rule.match', + rule: 'EqualityExpression', + result: s0, + location: peg$computeLocation(startPos, peg$currPos), + }); + } else { + peg$tracer.trace({ + type: 'rule.fail', + rule: 'EqualityExpression', + location: peg$computeLocation(startPos, startPos), + }); + } + + return s0; + } + + function peg$parseEqualityOperator() { + var startPos = peg$currPos; + var s0; + + peg$tracer.trace({ + type: 'rule.enter', + rule: 'EqualityOperator', + location: peg$computeLocation(startPos, startPos), + }); + + if (input.substr(peg$currPos, 2) === peg$c132) { + s0 = peg$c132; + peg$currPos += 2; + } else { + s0 = peg$FAILED; + if (peg$silentFails === 0) { + peg$fail(peg$e157); + } + } + if (s0 === peg$FAILED) { + if (input.substr(peg$currPos, 2) === peg$c133) { + s0 = peg$c133; + peg$currPos += 2; + } else { + s0 = peg$FAILED; + if (peg$silentFails === 0) { + peg$fail(peg$e158); + } + } + } + + if (s0 !== peg$FAILED) { + peg$tracer.trace({ + type: 'rule.match', + rule: 'EqualityOperator', + result: s0, + location: peg$computeLocation(startPos, peg$currPos), + }); + } else { + peg$tracer.trace({ + type: 'rule.fail', + rule: 'EqualityOperator', + location: peg$computeLocation(startPos, startPos), + }); + } + + return s0; + } + + function peg$parseEqualityPragmaOperator() { + var startPos = peg$currPos; + var s0; + + peg$tracer.trace({ + type: 'rule.enter', + rule: 'EqualityPragmaOperator', + location: peg$computeLocation(startPos, startPos), + }); + + if (input.charCodeAt(peg$currPos) === 61) { + s0 = peg$c114; + peg$currPos++; + } else { + s0 = peg$FAILED; + if (peg$silentFails === 0) { + peg$fail(peg$e137); + } + } + + if (s0 !== peg$FAILED) { + peg$tracer.trace({ + type: 'rule.match', + rule: 'EqualityPragmaOperator', + result: s0, + location: peg$computeLocation(startPos, peg$currPos), + }); + } else { + peg$tracer.trace({ + type: 'rule.fail', + rule: 'EqualityPragmaOperator', + location: peg$computeLocation(startPos, startPos), + }); + } + + return s0; + } + + function peg$parseTilde() { + var startPos = peg$currPos; + var s0; + + peg$tracer.trace({ + type: 'rule.enter', + rule: 'Tilde', + location: peg$computeLocation(startPos, startPos), + }); + + if (input.charCodeAt(peg$currPos) === 126) { + s0 = peg$c120; + peg$currPos++; + } else { + s0 = peg$FAILED; + if (peg$silentFails === 0) { + peg$fail(peg$e143); + } + } + + if (s0 !== peg$FAILED) { + peg$tracer.trace({ + type: 'rule.match', + rule: 'Tilde', + result: s0, + location: peg$computeLocation(startPos, peg$currPos), + }); + } else { + peg$tracer.trace({ + type: 'rule.fail', + rule: 'Tilde', + location: peg$computeLocation(startPos, startPos), + }); + } + + return s0; + } + + function peg$parseBitwiseANDExpression() { + var startPos = peg$currPos; + var s0, s1, s2, s3, s4, s5, s6, s7; + + peg$tracer.trace({ + type: 'rule.enter', + rule: 'BitwiseANDExpression', + location: peg$computeLocation(startPos, startPos), + }); + + s0 = peg$currPos; + s1 = peg$parseEqualityExpression(); + if (s1 !== peg$FAILED) { + s2 = []; + s3 = peg$currPos; + s4 = peg$parse__(); + s5 = peg$parseBitwiseANDOperator(); + if (s5 !== peg$FAILED) { + s6 = peg$parse__(); + s7 = peg$parseEqualityExpression(); + if (s7 !== peg$FAILED) { + s4 = [s4, s5, s6, s7]; + s3 = s4; + } else { + peg$currPos = s3; + s3 = peg$FAILED; + } + } else { + peg$currPos = s3; + s3 = peg$FAILED; + } + while (s3 !== peg$FAILED) { + s2.push(s3); + s3 = peg$currPos; + s4 = peg$parse__(); + s5 = peg$parseBitwiseANDOperator(); + if (s5 !== peg$FAILED) { + s6 = peg$parse__(); + s7 = peg$parseEqualityExpression(); + if (s7 !== peg$FAILED) { + s4 = [s4, s5, s6, s7]; + s3 = s4; + } else { + peg$currPos = s3; + s3 = peg$FAILED; + } + } else { + peg$currPos = s3; + s3 = peg$FAILED; + } + } + peg$savedPos = s0; + s0 = peg$f64(s1, s2); + } else { + peg$currPos = s0; + s0 = peg$FAILED; + } + + if (s0 !== peg$FAILED) { + peg$tracer.trace({ + type: 'rule.match', + rule: 'BitwiseANDExpression', + result: s0, + location: peg$computeLocation(startPos, peg$currPos), + }); + } else { + peg$tracer.trace({ + type: 'rule.fail', + rule: 'BitwiseANDExpression', + location: peg$computeLocation(startPos, startPos), + }); + } + + return s0; + } + + function peg$parseBitwiseANDOperator() { + var startPos = peg$currPos; + var s0, s1, s2, s3, s4; + + peg$tracer.trace({ + type: 'rule.enter', + rule: 'BitwiseANDOperator', + location: peg$computeLocation(startPos, startPos), + }); + + s0 = peg$currPos; + s1 = peg$currPos; + if (input.charCodeAt(peg$currPos) === 38) { + s2 = peg$c134; + peg$currPos++; + } else { + s2 = peg$FAILED; + if (peg$silentFails === 0) { + peg$fail(peg$e159); + } + } + if (s2 !== peg$FAILED) { + s3 = peg$currPos; + peg$silentFails++; + if (peg$r18.test(input.charAt(peg$currPos))) { + s4 = input.charAt(peg$currPos); + peg$currPos++; + } else { + s4 = peg$FAILED; + if (peg$silentFails === 0) { + peg$fail(peg$e160); + } + } + peg$silentFails--; + if (s4 === peg$FAILED) { + s3 = undefined; + } else { + peg$currPos = s3; + s3 = peg$FAILED; + } + if (s3 !== peg$FAILED) { + s2 = [s2, s3]; + s1 = s2; + } else { + peg$currPos = s1; + s1 = peg$FAILED; + } + } else { + peg$currPos = s1; + s1 = peg$FAILED; + } + if (s1 !== peg$FAILED) { + s0 = input.substring(s0, peg$currPos); + } else { + s0 = s1; + } + + if (s0 !== peg$FAILED) { + peg$tracer.trace({ + type: 'rule.match', + rule: 'BitwiseANDOperator', + result: s0, + location: peg$computeLocation(startPos, peg$currPos), + }); + } else { + peg$tracer.trace({ + type: 'rule.fail', + rule: 'BitwiseANDOperator', + location: peg$computeLocation(startPos, startPos), + }); + } + + return s0; + } + + function peg$parseBitwiseXORExpression() { + var startPos = peg$currPos; + var s0, s1, s2, s3, s4, s5, s6, s7; + + peg$tracer.trace({ + type: 'rule.enter', + rule: 'BitwiseXORExpression', + location: peg$computeLocation(startPos, startPos), + }); + + s0 = peg$currPos; + s1 = peg$parseBitwiseANDExpression(); + if (s1 !== peg$FAILED) { + s2 = []; + s3 = peg$currPos; + s4 = peg$parse__(); + s5 = peg$parseBitwiseXOROperator(); + if (s5 !== peg$FAILED) { + s6 = peg$parse__(); + s7 = peg$parseBitwiseANDExpression(); + if (s7 !== peg$FAILED) { + s4 = [s4, s5, s6, s7]; + s3 = s4; + } else { + peg$currPos = s3; + s3 = peg$FAILED; + } + } else { + peg$currPos = s3; + s3 = peg$FAILED; + } + while (s3 !== peg$FAILED) { + s2.push(s3); + s3 = peg$currPos; + s4 = peg$parse__(); + s5 = peg$parseBitwiseXOROperator(); + if (s5 !== peg$FAILED) { + s6 = peg$parse__(); + s7 = peg$parseBitwiseANDExpression(); + if (s7 !== peg$FAILED) { + s4 = [s4, s5, s6, s7]; + s3 = s4; + } else { + peg$currPos = s3; + s3 = peg$FAILED; + } + } else { + peg$currPos = s3; + s3 = peg$FAILED; + } + } + peg$savedPos = s0; + s0 = peg$f64(s1, s2); + } else { + peg$currPos = s0; + s0 = peg$FAILED; + } + + if (s0 !== peg$FAILED) { + peg$tracer.trace({ + type: 'rule.match', + rule: 'BitwiseXORExpression', + result: s0, + location: peg$computeLocation(startPos, peg$currPos), + }); + } else { + peg$tracer.trace({ + type: 'rule.fail', + rule: 'BitwiseXORExpression', + location: peg$computeLocation(startPos, startPos), + }); + } + + return s0; + } + + function peg$parseBitwiseXOROperator() { + var startPos = peg$currPos; + var s0, s1, s2, s3, s4; + + peg$tracer.trace({ + type: 'rule.enter', + rule: 'BitwiseXOROperator', + location: peg$computeLocation(startPos, startPos), + }); + + s0 = peg$currPos; + s1 = peg$currPos; + if (input.charCodeAt(peg$currPos) === 94) { + s2 = peg$c135; + peg$currPos++; + } else { + s2 = peg$FAILED; + if (peg$silentFails === 0) { + peg$fail(peg$e161); + } + } + if (s2 !== peg$FAILED) { + s3 = peg$currPos; + peg$silentFails++; + if (input.charCodeAt(peg$currPos) === 61) { + s4 = peg$c114; + peg$currPos++; + } else { + s4 = peg$FAILED; + if (peg$silentFails === 0) { + peg$fail(peg$e137); + } + } + peg$silentFails--; + if (s4 === peg$FAILED) { + s3 = undefined; + } else { + peg$currPos = s3; + s3 = peg$FAILED; + } + if (s3 !== peg$FAILED) { + s2 = [s2, s3]; + s1 = s2; + } else { + peg$currPos = s1; + s1 = peg$FAILED; + } + } else { + peg$currPos = s1; + s1 = peg$FAILED; + } + if (s1 !== peg$FAILED) { + s0 = input.substring(s0, peg$currPos); + } else { + s0 = s1; + } + + if (s0 !== peg$FAILED) { + peg$tracer.trace({ + type: 'rule.match', + rule: 'BitwiseXOROperator', + result: s0, + location: peg$computeLocation(startPos, peg$currPos), + }); + } else { + peg$tracer.trace({ + type: 'rule.fail', + rule: 'BitwiseXOROperator', + location: peg$computeLocation(startPos, startPos), + }); + } + + return s0; + } + + function peg$parseBitwiseORExpression() { + var startPos = peg$currPos; + var s0, s1, s2, s3, s4, s5, s6, s7; + + peg$tracer.trace({ + type: 'rule.enter', + rule: 'BitwiseORExpression', + location: peg$computeLocation(startPos, startPos), + }); + + s0 = peg$currPos; + s1 = peg$parseBitwiseXORExpression(); + if (s1 !== peg$FAILED) { + s2 = []; + s3 = peg$currPos; + s4 = peg$parse__(); + s5 = peg$parseBitwiseOROperator(); + if (s5 !== peg$FAILED) { + s6 = peg$parse__(); + s7 = peg$parseBitwiseXORExpression(); + if (s7 !== peg$FAILED) { + s4 = [s4, s5, s6, s7]; + s3 = s4; + } else { + peg$currPos = s3; + s3 = peg$FAILED; + } + } else { + peg$currPos = s3; + s3 = peg$FAILED; + } + while (s3 !== peg$FAILED) { + s2.push(s3); + s3 = peg$currPos; + s4 = peg$parse__(); + s5 = peg$parseBitwiseOROperator(); + if (s5 !== peg$FAILED) { + s6 = peg$parse__(); + s7 = peg$parseBitwiseXORExpression(); + if (s7 !== peg$FAILED) { + s4 = [s4, s5, s6, s7]; + s3 = s4; + } else { + peg$currPos = s3; + s3 = peg$FAILED; + } + } else { + peg$currPos = s3; + s3 = peg$FAILED; + } + } + peg$savedPos = s0; + s0 = peg$f64(s1, s2); + } else { + peg$currPos = s0; + s0 = peg$FAILED; + } + + if (s0 !== peg$FAILED) { + peg$tracer.trace({ + type: 'rule.match', + rule: 'BitwiseORExpression', + result: s0, + location: peg$computeLocation(startPos, peg$currPos), + }); + } else { + peg$tracer.trace({ + type: 'rule.fail', + rule: 'BitwiseORExpression', + location: peg$computeLocation(startPos, startPos), + }); + } + + return s0; + } + + function peg$parseBitwiseOROperator() { + var startPos = peg$currPos; + var s0, s1, s2, s3, s4; + + peg$tracer.trace({ + type: 'rule.enter', + rule: 'BitwiseOROperator', + location: peg$computeLocation(startPos, startPos), + }); + + s0 = peg$currPos; + s1 = peg$currPos; + if (input.charCodeAt(peg$currPos) === 124) { + s2 = peg$c136; + peg$currPos++; + } else { + s2 = peg$FAILED; + if (peg$silentFails === 0) { + peg$fail(peg$e162); + } + } + if (s2 !== peg$FAILED) { + s3 = peg$currPos; + peg$silentFails++; + if (peg$r19.test(input.charAt(peg$currPos))) { + s4 = input.charAt(peg$currPos); + peg$currPos++; + } else { + s4 = peg$FAILED; + if (peg$silentFails === 0) { + peg$fail(peg$e163); + } + } + peg$silentFails--; + if (s4 === peg$FAILED) { + s3 = undefined; + } else { + peg$currPos = s3; + s3 = peg$FAILED; + } + if (s3 !== peg$FAILED) { + s2 = [s2, s3]; + s1 = s2; + } else { + peg$currPos = s1; + s1 = peg$FAILED; + } + } else { + peg$currPos = s1; + s1 = peg$FAILED; + } + if (s1 !== peg$FAILED) { + s0 = input.substring(s0, peg$currPos); + } else { + s0 = s1; + } + + if (s0 !== peg$FAILED) { + peg$tracer.trace({ + type: 'rule.match', + rule: 'BitwiseOROperator', + result: s0, + location: peg$computeLocation(startPos, peg$currPos), + }); + } else { + peg$tracer.trace({ + type: 'rule.fail', + rule: 'BitwiseOROperator', + location: peg$computeLocation(startPos, startPos), + }); + } + + return s0; + } + + function peg$parseLogicalANDExpression() { + var startPos = peg$currPos; + var s0, s1, s2, s3, s4, s5, s6, s7; + + peg$tracer.trace({ + type: 'rule.enter', + rule: 'LogicalANDExpression', + location: peg$computeLocation(startPos, startPos), + }); + + s0 = peg$currPos; + s1 = peg$parseBitwiseORExpression(); + if (s1 !== peg$FAILED) { + s2 = []; + s3 = peg$currPos; + s4 = peg$parse__(); + s5 = peg$parseLogicalANDOperator(); + if (s5 !== peg$FAILED) { + s6 = peg$parse__(); + s7 = peg$parseBitwiseORExpression(); + if (s7 !== peg$FAILED) { + s4 = [s4, s5, s6, s7]; + s3 = s4; + } else { + peg$currPos = s3; + s3 = peg$FAILED; + } + } else { + peg$currPos = s3; + s3 = peg$FAILED; + } + while (s3 !== peg$FAILED) { + s2.push(s3); + s3 = peg$currPos; + s4 = peg$parse__(); + s5 = peg$parseLogicalANDOperator(); + if (s5 !== peg$FAILED) { + s6 = peg$parse__(); + s7 = peg$parseBitwiseORExpression(); + if (s7 !== peg$FAILED) { + s4 = [s4, s5, s6, s7]; + s3 = s4; + } else { + peg$currPos = s3; + s3 = peg$FAILED; + } + } else { + peg$currPos = s3; + s3 = peg$FAILED; + } + } + peg$savedPos = s0; + s0 = peg$f64(s1, s2); + } else { + peg$currPos = s0; + s0 = peg$FAILED; + } + + if (s0 !== peg$FAILED) { + peg$tracer.trace({ + type: 'rule.match', + rule: 'LogicalANDExpression', + result: s0, + location: peg$computeLocation(startPos, peg$currPos), + }); + } else { + peg$tracer.trace({ + type: 'rule.fail', + rule: 'LogicalANDExpression', + location: peg$computeLocation(startPos, startPos), + }); + } + + return s0; + } + + function peg$parseLogicalANDOperator() { + var startPos = peg$currPos; + var s0; + + peg$tracer.trace({ + type: 'rule.enter', + rule: 'LogicalANDOperator', + location: peg$computeLocation(startPos, startPos), + }); + + if (input.substr(peg$currPos, 2) === peg$c137) { + s0 = peg$c137; + peg$currPos += 2; + } else { + s0 = peg$FAILED; + if (peg$silentFails === 0) { + peg$fail(peg$e164); + } + } + + if (s0 !== peg$FAILED) { + peg$tracer.trace({ + type: 'rule.match', + rule: 'LogicalANDOperator', + result: s0, + location: peg$computeLocation(startPos, peg$currPos), + }); + } else { + peg$tracer.trace({ + type: 'rule.fail', + rule: 'LogicalANDOperator', + location: peg$computeLocation(startPos, startPos), + }); + } + + return s0; + } + + function peg$parseLogicalORExpression() { + var startPos = peg$currPos; + var s0, s1, s2, s3, s4, s5, s6, s7; + + peg$tracer.trace({ + type: 'rule.enter', + rule: 'LogicalORExpression', + location: peg$computeLocation(startPos, startPos), + }); + + s0 = peg$currPos; + s1 = peg$parseLogicalANDExpression(); + if (s1 !== peg$FAILED) { + s2 = []; + s3 = peg$currPos; + s4 = peg$parse__(); + s5 = peg$parseLogicalOROperator(); + if (s5 !== peg$FAILED) { + s6 = peg$parse__(); + s7 = peg$parseLogicalANDExpression(); + if (s7 !== peg$FAILED) { + s4 = [s4, s5, s6, s7]; + s3 = s4; + } else { + peg$currPos = s3; + s3 = peg$FAILED; + } + } else { + peg$currPos = s3; + s3 = peg$FAILED; + } + while (s3 !== peg$FAILED) { + s2.push(s3); + s3 = peg$currPos; + s4 = peg$parse__(); + s5 = peg$parseLogicalOROperator(); + if (s5 !== peg$FAILED) { + s6 = peg$parse__(); + s7 = peg$parseLogicalANDExpression(); + if (s7 !== peg$FAILED) { + s4 = [s4, s5, s6, s7]; + s3 = s4; + } else { + peg$currPos = s3; + s3 = peg$FAILED; + } + } else { + peg$currPos = s3; + s3 = peg$FAILED; + } + } + peg$savedPos = s0; + s0 = peg$f64(s1, s2); + } else { + peg$currPos = s0; + s0 = peg$FAILED; + } + + if (s0 !== peg$FAILED) { + peg$tracer.trace({ + type: 'rule.match', + rule: 'LogicalORExpression', + result: s0, + location: peg$computeLocation(startPos, peg$currPos), + }); + } else { + peg$tracer.trace({ + type: 'rule.fail', + rule: 'LogicalORExpression', + location: peg$computeLocation(startPos, startPos), + }); + } + + return s0; + } + + function peg$parseLogicalOROperator() { + var startPos = peg$currPos; + var s0; + + peg$tracer.trace({ + type: 'rule.enter', + rule: 'LogicalOROperator', + location: peg$computeLocation(startPos, startPos), + }); + + if (input.substr(peg$currPos, 2) === peg$c138) { + s0 = peg$c138; + peg$currPos += 2; + } else { + s0 = peg$FAILED; + if (peg$silentFails === 0) { + peg$fail(peg$e165); + } + } + + if (s0 !== peg$FAILED) { + peg$tracer.trace({ + type: 'rule.match', + rule: 'LogicalOROperator', + result: s0, + location: peg$computeLocation(startPos, peg$currPos), + }); + } else { + peg$tracer.trace({ + type: 'rule.fail', + rule: 'LogicalOROperator', + location: peg$computeLocation(startPos, startPos), + }); + } + + return s0; + } + + function peg$parseConditionalExpression() { + var startPos = peg$currPos; + var s0, s1, s2, s3, s4, s5, s6, s7, s8, s9; + + peg$tracer.trace({ + type: 'rule.enter', + rule: 'ConditionalExpression', + location: peg$computeLocation(startPos, startPos), + }); + + s0 = peg$currPos; + s1 = peg$parseLogicalORExpression(); + if (s1 !== peg$FAILED) { + s2 = peg$parse__(); + if (input.charCodeAt(peg$currPos) === 63) { + s3 = peg$c139; + peg$currPos++; + } else { + s3 = peg$FAILED; + if (peg$silentFails === 0) { + peg$fail(peg$e166); + } + } + if (s3 !== peg$FAILED) { + s4 = peg$parse__(); + s5 = peg$parseAssignmentExpression(); + if (s5 !== peg$FAILED) { + s6 = peg$parse__(); + if (input.charCodeAt(peg$currPos) === 58) { + s7 = peg$c113; + peg$currPos++; + } else { + s7 = peg$FAILED; + if (peg$silentFails === 0) { + peg$fail(peg$e136); + } + } + if (s7 !== peg$FAILED) { + s8 = peg$parse__(); + s9 = peg$parseAssignmentExpression(); + if (s9 !== peg$FAILED) { + peg$savedPos = s0; + s0 = peg$f65(s1, s5, s9); + } else { + peg$currPos = s0; + s0 = peg$FAILED; + } + } else { + peg$currPos = s0; + s0 = peg$FAILED; + } + } else { + peg$currPos = s0; + s0 = peg$FAILED; + } + } else { + peg$currPos = s0; + s0 = peg$FAILED; + } + } else { + peg$currPos = s0; + s0 = peg$FAILED; + } + if (s0 === peg$FAILED) { + s0 = peg$parseLogicalORExpression(); + } + + if (s0 !== peg$FAILED) { + peg$tracer.trace({ + type: 'rule.match', + rule: 'ConditionalExpression', + result: s0, + location: peg$computeLocation(startPos, peg$currPos), + }); + } else { + peg$tracer.trace({ + type: 'rule.fail', + rule: 'ConditionalExpression', + location: peg$computeLocation(startPos, startPos), + }); + } + + return s0; + } + + function peg$parseAssignmentExpression() { + var startPos = peg$currPos; + var s0, s1, s2, s3, s4, s5, s6; + + peg$tracer.trace({ + type: 'rule.enter', + rule: 'AssignmentExpression', + location: peg$computeLocation(startPos, startPos), + }); + + s0 = peg$currPos; + s1 = peg$parseLeftHandSideExpression(); + if (s1 !== peg$FAILED) { + s2 = peg$parse__(); + if (input.charCodeAt(peg$currPos) === 61) { + s3 = peg$c114; + peg$currPos++; + } else { + s3 = peg$FAILED; + if (peg$silentFails === 0) { + peg$fail(peg$e137); + } + } + if (s3 !== peg$FAILED) { + s4 = peg$currPos; + peg$silentFails++; + if (input.charCodeAt(peg$currPos) === 61) { + s5 = peg$c114; + peg$currPos++; + } else { + s5 = peg$FAILED; + if (peg$silentFails === 0) { + peg$fail(peg$e137); + } + } + peg$silentFails--; + if (s5 === peg$FAILED) { + s4 = undefined; + } else { + peg$currPos = s4; + s4 = peg$FAILED; + } + if (s4 !== peg$FAILED) { + s5 = peg$parse__(); + s6 = peg$parseAssignmentExpression(); + if (s6 !== peg$FAILED) { + peg$savedPos = s0; + s0 = peg$f66(s1, s6); + } else { + peg$currPos = s0; + s0 = peg$FAILED; + } + } else { + peg$currPos = s0; + s0 = peg$FAILED; + } + } else { + peg$currPos = s0; + s0 = peg$FAILED; + } + } else { + peg$currPos = s0; + s0 = peg$FAILED; + } + if (s0 === peg$FAILED) { + s0 = peg$currPos; + s1 = peg$parseLeftHandSideExpression(); + if (s1 !== peg$FAILED) { + s2 = peg$parse__(); + s3 = peg$parseAssignmentOperator(); + if (s3 !== peg$FAILED) { + s4 = peg$parse__(); + s5 = peg$parseAssignmentExpression(); + if (s5 !== peg$FAILED) { + peg$savedPos = s0; + s0 = peg$f67(s1, s3, s5); + } else { + peg$currPos = s0; + s0 = peg$FAILED; + } + } else { + peg$currPos = s0; + s0 = peg$FAILED; + } + } else { + peg$currPos = s0; + s0 = peg$FAILED; + } + if (s0 === peg$FAILED) { + s0 = peg$parseConditionalExpression(); + } + } + + if (s0 !== peg$FAILED) { + peg$tracer.trace({ + type: 'rule.match', + rule: 'AssignmentExpression', + result: s0, + location: peg$computeLocation(startPos, peg$currPos), + }); + } else { + peg$tracer.trace({ + type: 'rule.fail', + rule: 'AssignmentExpression', + location: peg$computeLocation(startPos, startPos), + }); + } + + return s0; + } + + function peg$parseAssignmentOperator() { + var startPos = peg$currPos; + var s0; + + peg$tracer.trace({ + type: 'rule.enter', + rule: 'AssignmentOperator', + location: peg$computeLocation(startPos, startPos), + }); + + if (input.substr(peg$currPos, 2) === peg$c140) { + s0 = peg$c140; + peg$currPos += 2; + } else { + s0 = peg$FAILED; + if (peg$silentFails === 0) { + peg$fail(peg$e167); + } + } + if (s0 === peg$FAILED) { + if (input.substr(peg$currPos, 2) === peg$c141) { + s0 = peg$c141; + peg$currPos += 2; + } else { + s0 = peg$FAILED; + if (peg$silentFails === 0) { + peg$fail(peg$e168); + } + } + if (s0 === peg$FAILED) { + if (input.substr(peg$currPos, 2) === peg$c142) { + s0 = peg$c142; + peg$currPos += 2; + } else { + s0 = peg$FAILED; + if (peg$silentFails === 0) { + peg$fail(peg$e169); + } + } + if (s0 === peg$FAILED) { + if (input.substr(peg$currPos, 2) === peg$c143) { + s0 = peg$c143; + peg$currPos += 2; + } else { + s0 = peg$FAILED; + if (peg$silentFails === 0) { + peg$fail(peg$e170); + } + } + if (s0 === peg$FAILED) { + if (input.substr(peg$currPos, 2) === peg$c144) { + s0 = peg$c144; + peg$currPos += 2; + } else { + s0 = peg$FAILED; + if (peg$silentFails === 0) { + peg$fail(peg$e171); + } + } + if (s0 === peg$FAILED) { + if (input.substr(peg$currPos, 3) === peg$c145) { + s0 = peg$c145; + peg$currPos += 3; + } else { + s0 = peg$FAILED; + if (peg$silentFails === 0) { + peg$fail(peg$e172); + } + } + if (s0 === peg$FAILED) { + if (input.substr(peg$currPos, 3) === peg$c146) { + s0 = peg$c146; + peg$currPos += 3; + } else { + s0 = peg$FAILED; + if (peg$silentFails === 0) { + peg$fail(peg$e173); + } + } + if (s0 === peg$FAILED) { + if (input.substr(peg$currPos, 2) === peg$c147) { + s0 = peg$c147; + peg$currPos += 2; + } else { + s0 = peg$FAILED; + if (peg$silentFails === 0) { + peg$fail(peg$e174); + } + } + if (s0 === peg$FAILED) { + if (input.substr(peg$currPos, 2) === peg$c148) { + s0 = peg$c148; + peg$currPos += 2; + } else { + s0 = peg$FAILED; + if (peg$silentFails === 0) { + peg$fail(peg$e175); + } + } + if (s0 === peg$FAILED) { + if (input.substr(peg$currPos, 2) === peg$c149) { + s0 = peg$c149; + peg$currPos += 2; + } else { + s0 = peg$FAILED; + if (peg$silentFails === 0) { + peg$fail(peg$e176); + } + } + } + } + } + } + } + } + } + } + } + + if (s0 !== peg$FAILED) { + peg$tracer.trace({ + type: 'rule.match', + rule: 'AssignmentOperator', + result: s0, + location: peg$computeLocation(startPos, peg$currPos), + }); + } else { + peg$tracer.trace({ + type: 'rule.fail', + rule: 'AssignmentOperator', + location: peg$computeLocation(startPos, startPos), + }); + } + + return s0; + } + + function peg$parseExpression() { + var startPos = peg$currPos; + var s0, s1, s2, s3, s4, s5, s6, s7; + + peg$tracer.trace({ + type: 'rule.enter', + rule: 'Expression', + location: peg$computeLocation(startPos, startPos), + }); + + s0 = peg$currPos; + s1 = peg$parseAssignmentExpression(); + if (s1 === peg$FAILED) { + s1 = null; + } + s2 = []; + s3 = peg$currPos; + s4 = peg$parse__(); + if (input.charCodeAt(peg$currPos) === 44) { + s5 = peg$c106; + peg$currPos++; + } else { + s5 = peg$FAILED; + if (peg$silentFails === 0) { + peg$fail(peg$e129); + } + } + if (s5 !== peg$FAILED) { + s6 = peg$parse__(); + s7 = peg$parseAssignmentExpression(); + if (s7 === peg$FAILED) { + s7 = null; + } + s4 = [s4, s5, s6, s7]; + s3 = s4; + } else { + peg$currPos = s3; + s3 = peg$FAILED; + } + while (s3 !== peg$FAILED) { + s2.push(s3); + s3 = peg$currPos; + s4 = peg$parse__(); + if (input.charCodeAt(peg$currPos) === 44) { + s5 = peg$c106; + peg$currPos++; + } else { + s5 = peg$FAILED; + if (peg$silentFails === 0) { + peg$fail(peg$e129); + } + } + if (s5 !== peg$FAILED) { + s6 = peg$parse__(); + s7 = peg$parseAssignmentExpression(); + if (s7 === peg$FAILED) { + s7 = null; + } + s4 = [s4, s5, s6, s7]; + s3 = s4; + } else { + peg$currPos = s3; + s3 = peg$FAILED; + } + } + peg$savedPos = s0; + s0 = peg$f68(s1, s2); + + if (s0 !== peg$FAILED) { + peg$tracer.trace({ + type: 'rule.match', + rule: 'Expression', + result: s0, + location: peg$computeLocation(startPos, peg$currPos), + }); + } else { + peg$tracer.trace({ + type: 'rule.fail', + rule: 'Expression', + location: peg$computeLocation(startPos, startPos), + }); + } + + return s0; + } + + function peg$parseStatements() { + var startPos = peg$currPos; + var s0, s1, s2, s3, s4, s5; + + peg$tracer.trace({ + type: 'rule.enter', + rule: 'Statements', + location: peg$computeLocation(startPos, startPos), + }); + + s0 = peg$currPos; + s1 = peg$parseStatement(); + if (s1 !== peg$FAILED) { + s2 = []; + s3 = peg$currPos; + s4 = peg$parse__(); + s5 = peg$parseStatement(); + if (s5 !== peg$FAILED) { + s4 = [s4, s5]; + s3 = s4; + } else { + peg$currPos = s3; + s3 = peg$FAILED; + } + while (s3 !== peg$FAILED) { + s2.push(s3); + s3 = peg$currPos; + s4 = peg$parse__(); + s5 = peg$parseStatement(); + if (s5 !== peg$FAILED) { + s4 = [s4, s5]; + s3 = s4; + } else { + peg$currPos = s3; + s3 = peg$FAILED; + } + } + peg$savedPos = s0; + s0 = peg$f69(s1, s2); + } else { + peg$currPos = s0; + s0 = peg$FAILED; + } + + if (s0 !== peg$FAILED) { + peg$tracer.trace({ + type: 'rule.match', + rule: 'Statements', + result: s0, + location: peg$computeLocation(startPos, peg$currPos), + }); + } else { + peg$tracer.trace({ + type: 'rule.fail', + rule: 'Statements', + location: peg$computeLocation(startPos, startPos), + }); + } + + return s0; + } + + function peg$parseStatement() { + var startPos = peg$currPos; + var s0; + + peg$tracer.trace({ + type: 'rule.enter', + rule: 'Statement', + location: peg$computeLocation(startPos, startPos), + }); + + s0 = peg$parseBlock(); + if (s0 === peg$FAILED) { + s0 = peg$parseVariableStatement(); + if (s0 === peg$FAILED) { + s0 = peg$parseEmptyStatement(); + if (s0 === peg$FAILED) { + s0 = peg$parseExpressionStatement(); + if (s0 === peg$FAILED) { + s0 = peg$parsePlaceholderStatement(); + if (s0 === peg$FAILED) { + s0 = peg$parseIfStatement(); + if (s0 === peg$FAILED) { + s0 = peg$parseTryStatement(); + if (s0 === peg$FAILED) { + s0 = peg$parseIterationStatement(); + if (s0 === peg$FAILED) { + s0 = peg$parseInlineAssemblyStatement(); + if (s0 === peg$FAILED) { + s0 = peg$parseContinueStatement(); + if (s0 === peg$FAILED) { + s0 = peg$parseBreakStatement(); + if (s0 === peg$FAILED) { + s0 = peg$parseReturnStatement(); + if (s0 === peg$FAILED) { + s0 = peg$parseThrowStatement(); + if (s0 === peg$FAILED) { + s0 = peg$parseUsingStatement(); + if (s0 === peg$FAILED) { + s0 = peg$parseEmitStatement(); + if (s0 === peg$FAILED) { + s0 = peg$parseRevertStatement(); + if (s0 === peg$FAILED) { + s0 = peg$parseIncompleteBlock(); + } + } + } + } + } + } + } + } + } + } + } + } + } + } + } + } + + if (s0 !== peg$FAILED) { + peg$tracer.trace({ + type: 'rule.match', + rule: 'Statement', + result: s0, + location: peg$computeLocation(startPos, peg$currPos), + }); + } else { + peg$tracer.trace({ + type: 'rule.fail', + rule: 'Statement', + location: peg$computeLocation(startPos, startPos), + }); + } + + return s0; + } + + function peg$parseIncompleteBlock() { + var startPos = peg$currPos; + var s0, s1, s2, s3, s4, s5, s6, s7, s8, s9, s10, s11, s12, s13; + + peg$tracer.trace({ + type: 'rule.enter', + rule: 'IncompleteBlock', + location: peg$computeLocation(startPos, startPos), + }); + + s0 = peg$currPos; + s1 = peg$currPos; + peg$silentFails++; + s2 = peg$parseTryStatement(); + if (s2 === peg$FAILED) { + s2 = peg$parseBlock(); + if (s2 === peg$FAILED) { + s2 = peg$parseVariableStatement(); + if (s2 === peg$FAILED) { + s2 = peg$parseEmptyStatement(); + if (s2 === peg$FAILED) { + s2 = peg$parseExpressionStatement(); + if (s2 === peg$FAILED) { + s2 = peg$parsePlaceholderStatement(); + if (s2 === peg$FAILED) { + s2 = peg$parseIfStatement(); + if (s2 === peg$FAILED) { + s2 = peg$parseCatchStatement(); + if (s2 === peg$FAILED) { + s2 = peg$parseIterationStatement(); + if (s2 === peg$FAILED) { + s2 = peg$parseInlineAssemblyStatement(); + if (s2 === peg$FAILED) { + s2 = peg$parseContinueStatement(); + if (s2 === peg$FAILED) { + s2 = peg$parseBreakStatement(); + if (s2 === peg$FAILED) { + s2 = peg$parseReturnStatement(); + if (s2 === peg$FAILED) { + s2 = peg$parseThrowStatement(); + if (s2 === peg$FAILED) { + s2 = peg$parseUsingStatement(); + if (s2 === peg$FAILED) { + s2 = peg$parseEmitStatement(); + if (s2 === peg$FAILED) { + s2 = peg$parseRevertStatement(); + } + } + } + } + } + } + } + } + } + } + } + } + } + } + } + } + peg$silentFails--; + if (s2 === peg$FAILED) { + s1 = undefined; + } else { + peg$currPos = s1; + s1 = peg$FAILED; + } + if (s1 !== peg$FAILED) { + s2 = peg$parse__(); + s3 = peg$parseEmitToken(); + if (s3 !== peg$FAILED) { + s4 = peg$parse__(); + s5 = peg$parsePrimaryExpression(); + if (s5 !== peg$FAILED) { + s6 = []; + s7 = peg$currPos; + if (input.charCodeAt(peg$currPos) === 46) { + s8 = peg$c17; + peg$currPos++; + } else { + s8 = peg$FAILED; + if (peg$silentFails === 0) { + peg$fail(peg$e24); + } + } + if (s8 === peg$FAILED) { + s8 = peg$currPos; + s9 = peg$parse__(); + if (input.charCodeAt(peg$currPos) === 61) { + s10 = peg$c114; + peg$currPos++; + } else { + s10 = peg$FAILED; + if (peg$silentFails === 0) { + peg$fail(peg$e137); + } + } + if (s10 !== peg$FAILED) { + s11 = peg$parse__(); + s9 = [s9, s10, s11]; + s8 = s9; + } else { + peg$currPos = s8; + s8 = peg$FAILED; + } + if (s8 === peg$FAILED) { + s8 = peg$currPos; + s9 = peg$parse__(); + if (input.charCodeAt(peg$currPos) === 61) { + s10 = peg$c114; + peg$currPos++; + } else { + s10 = peg$FAILED; + if (peg$silentFails === 0) { + peg$fail(peg$e137); + } + } + if (s10 !== peg$FAILED) { + s11 = peg$parse__(); + s12 = peg$parseNewToken(); + if (s12 !== peg$FAILED) { + s13 = peg$parse__(); + s9 = [s9, s10, s11, s12, s13]; + s8 = s9; + } else { + peg$currPos = s8; + s8 = peg$FAILED; + } + } else { + peg$currPos = s8; + s8 = peg$FAILED; + } + } + } + if (s8 !== peg$FAILED) { + s9 = peg$parseIdentifier(); + if (s9 === peg$FAILED) { + s9 = null; + } + s8 = [s8, s9]; + s7 = s8; + } else { + peg$currPos = s7; + s7 = peg$FAILED; + } + while (s7 !== peg$FAILED) { + s6.push(s7); + s7 = peg$currPos; + if (input.charCodeAt(peg$currPos) === 46) { + s8 = peg$c17; + peg$currPos++; + } else { + s8 = peg$FAILED; + if (peg$silentFails === 0) { + peg$fail(peg$e24); + } + } + if (s8 === peg$FAILED) { + s8 = peg$currPos; + s9 = peg$parse__(); + if (input.charCodeAt(peg$currPos) === 61) { + s10 = peg$c114; + peg$currPos++; + } else { + s10 = peg$FAILED; + if (peg$silentFails === 0) { + peg$fail(peg$e137); + } + } + if (s10 !== peg$FAILED) { + s11 = peg$parse__(); + s9 = [s9, s10, s11]; + s8 = s9; + } else { + peg$currPos = s8; + s8 = peg$FAILED; + } + if (s8 === peg$FAILED) { + s8 = peg$currPos; + s9 = peg$parse__(); + if (input.charCodeAt(peg$currPos) === 61) { + s10 = peg$c114; + peg$currPos++; + } else { + s10 = peg$FAILED; + if (peg$silentFails === 0) { + peg$fail(peg$e137); + } + } + if (s10 !== peg$FAILED) { + s11 = peg$parse__(); + s12 = peg$parseNewToken(); + if (s12 !== peg$FAILED) { + s13 = peg$parse__(); + s9 = [s9, s10, s11, s12, s13]; + s8 = s9; + } else { + peg$currPos = s8; + s8 = peg$FAILED; + } + } else { + peg$currPos = s8; + s8 = peg$FAILED; + } + } + } + if (s8 !== peg$FAILED) { + s9 = peg$parseIdentifier(); + if (s9 === peg$FAILED) { + s9 = null; + } + s8 = [s8, s9]; + s7 = s8; + } else { + peg$currPos = s7; + s7 = peg$FAILED; + } + } + s7 = peg$parse__(); + peg$savedPos = s0; + s0 = peg$f70(s3, s6); + } else { + peg$currPos = s0; + s0 = peg$FAILED; + } + } else { + peg$currPos = s0; + s0 = peg$FAILED; + } + } else { + peg$currPos = s0; + s0 = peg$FAILED; + } + if (s0 === peg$FAILED) { + s0 = peg$currPos; + s1 = peg$parse__(); + s2 = peg$parseReturnToken(); + if (s2 !== peg$FAILED) { + s3 = peg$parse__(); + s4 = peg$parsePrimaryExpression(); + if (s4 !== peg$FAILED) { + s5 = []; + s6 = peg$currPos; + if (input.charCodeAt(peg$currPos) === 46) { + s7 = peg$c17; + peg$currPos++; + } else { + s7 = peg$FAILED; + if (peg$silentFails === 0) { + peg$fail(peg$e24); + } + } + if (s7 === peg$FAILED) { + s7 = peg$currPos; + s8 = peg$parse__(); + if (input.charCodeAt(peg$currPos) === 61) { + s9 = peg$c114; + peg$currPos++; + } else { + s9 = peg$FAILED; + if (peg$silentFails === 0) { + peg$fail(peg$e137); + } + } + if (s9 !== peg$FAILED) { + s10 = peg$parse__(); + s8 = [s8, s9, s10]; + s7 = s8; + } else { + peg$currPos = s7; + s7 = peg$FAILED; + } + if (s7 === peg$FAILED) { + s7 = peg$currPos; + s8 = peg$parse__(); + if (input.charCodeAt(peg$currPos) === 61) { + s9 = peg$c114; + peg$currPos++; + } else { + s9 = peg$FAILED; + if (peg$silentFails === 0) { + peg$fail(peg$e137); + } + } + if (s9 !== peg$FAILED) { + s10 = peg$parse__(); + s11 = peg$parseNewToken(); + if (s11 !== peg$FAILED) { + s12 = peg$parse__(); + s8 = [s8, s9, s10, s11, s12]; + s7 = s8; + } else { + peg$currPos = s7; + s7 = peg$FAILED; + } + } else { + peg$currPos = s7; + s7 = peg$FAILED; + } + } + } + if (s7 !== peg$FAILED) { + s8 = peg$parseIdentifier(); + if (s8 === peg$FAILED) { + s8 = null; + } + s7 = [s7, s8]; + s6 = s7; + } else { + peg$currPos = s6; + s6 = peg$FAILED; + } + while (s6 !== peg$FAILED) { + s5.push(s6); + s6 = peg$currPos; + if (input.charCodeAt(peg$currPos) === 46) { + s7 = peg$c17; + peg$currPos++; + } else { + s7 = peg$FAILED; + if (peg$silentFails === 0) { + peg$fail(peg$e24); + } + } + if (s7 === peg$FAILED) { + s7 = peg$currPos; + s8 = peg$parse__(); + if (input.charCodeAt(peg$currPos) === 61) { + s9 = peg$c114; + peg$currPos++; + } else { + s9 = peg$FAILED; + if (peg$silentFails === 0) { + peg$fail(peg$e137); + } + } + if (s9 !== peg$FAILED) { + s10 = peg$parse__(); + s8 = [s8, s9, s10]; + s7 = s8; + } else { + peg$currPos = s7; + s7 = peg$FAILED; + } + if (s7 === peg$FAILED) { + s7 = peg$currPos; + s8 = peg$parse__(); + if (input.charCodeAt(peg$currPos) === 61) { + s9 = peg$c114; + peg$currPos++; + } else { + s9 = peg$FAILED; + if (peg$silentFails === 0) { + peg$fail(peg$e137); + } + } + if (s9 !== peg$FAILED) { + s10 = peg$parse__(); + s11 = peg$parseNewToken(); + if (s11 !== peg$FAILED) { + s12 = peg$parse__(); + s8 = [s8, s9, s10, s11, s12]; + s7 = s8; + } else { + peg$currPos = s7; + s7 = peg$FAILED; + } + } else { + peg$currPos = s7; + s7 = peg$FAILED; + } + } + } + if (s7 !== peg$FAILED) { + s8 = peg$parseIdentifier(); + if (s8 === peg$FAILED) { + s8 = null; + } + s7 = [s7, s8]; + s6 = s7; + } else { + peg$currPos = s6; + s6 = peg$FAILED; + } + } + s6 = peg$parse__(); + peg$savedPos = s0; + s0 = peg$f71(s2, s5); + } else { + peg$currPos = s0; + s0 = peg$FAILED; + } + } else { + peg$currPos = s0; + s0 = peg$FAILED; + } + if (s0 === peg$FAILED) { + s0 = peg$currPos; + s1 = peg$parse__(); + s2 = peg$parsePrimaryExpression(); + if (s2 !== peg$FAILED) { + s3 = []; + s4 = peg$currPos; + if (input.charCodeAt(peg$currPos) === 46) { + s5 = peg$c17; + peg$currPos++; + } else { + s5 = peg$FAILED; + if (peg$silentFails === 0) { + peg$fail(peg$e24); + } + } + if (s5 === peg$FAILED) { + s5 = peg$currPos; + s6 = peg$parse__(); + if (input.charCodeAt(peg$currPos) === 61) { + s7 = peg$c114; + peg$currPos++; + } else { + s7 = peg$FAILED; + if (peg$silentFails === 0) { + peg$fail(peg$e137); + } + } + if (s7 !== peg$FAILED) { + s8 = peg$parse__(); + s6 = [s6, s7, s8]; + s5 = s6; + } else { + peg$currPos = s5; + s5 = peg$FAILED; + } + if (s5 === peg$FAILED) { + s5 = peg$currPos; + s6 = peg$parse__(); + if (input.charCodeAt(peg$currPos) === 61) { + s7 = peg$c114; + peg$currPos++; + } else { + s7 = peg$FAILED; + if (peg$silentFails === 0) { + peg$fail(peg$e137); + } + } + if (s7 !== peg$FAILED) { + s8 = peg$parse__(); + s9 = peg$parseNewToken(); + if (s9 !== peg$FAILED) { + s10 = peg$parse__(); + s6 = [s6, s7, s8, s9, s10]; + s5 = s6; + } else { + peg$currPos = s5; + s5 = peg$FAILED; + } + } else { + peg$currPos = s5; + s5 = peg$FAILED; + } + } + } + if (s5 !== peg$FAILED) { + s6 = peg$parseIdentifier(); + if (s6 === peg$FAILED) { + s6 = null; + } + s5 = [s5, s6]; + s4 = s5; + } else { + peg$currPos = s4; + s4 = peg$FAILED; + } + while (s4 !== peg$FAILED) { + s3.push(s4); + s4 = peg$currPos; + if (input.charCodeAt(peg$currPos) === 46) { + s5 = peg$c17; + peg$currPos++; + } else { + s5 = peg$FAILED; + if (peg$silentFails === 0) { + peg$fail(peg$e24); + } + } + if (s5 === peg$FAILED) { + s5 = peg$currPos; + s6 = peg$parse__(); + if (input.charCodeAt(peg$currPos) === 61) { + s7 = peg$c114; + peg$currPos++; + } else { + s7 = peg$FAILED; + if (peg$silentFails === 0) { + peg$fail(peg$e137); + } + } + if (s7 !== peg$FAILED) { + s8 = peg$parse__(); + s6 = [s6, s7, s8]; + s5 = s6; + } else { + peg$currPos = s5; + s5 = peg$FAILED; + } + if (s5 === peg$FAILED) { + s5 = peg$currPos; + s6 = peg$parse__(); + if (input.charCodeAt(peg$currPos) === 61) { + s7 = peg$c114; + peg$currPos++; + } else { + s7 = peg$FAILED; + if (peg$silentFails === 0) { + peg$fail(peg$e137); + } + } + if (s7 !== peg$FAILED) { + s8 = peg$parse__(); + s9 = peg$parseNewToken(); + if (s9 !== peg$FAILED) { + s10 = peg$parse__(); + s6 = [s6, s7, s8, s9, s10]; + s5 = s6; + } else { + peg$currPos = s5; + s5 = peg$FAILED; + } + } else { + peg$currPos = s5; + s5 = peg$FAILED; + } + } + } + if (s5 !== peg$FAILED) { + s6 = peg$parseIdentifier(); + if (s6 === peg$FAILED) { + s6 = null; + } + s5 = [s5, s6]; + s4 = s5; + } else { + peg$currPos = s4; + s4 = peg$FAILED; + } + } + s4 = peg$parse__(); + peg$savedPos = s0; + s0 = peg$f70(s2, s3); + } else { + peg$currPos = s0; + s0 = peg$FAILED; + } + } + } + + if (s0 !== peg$FAILED) { + peg$tracer.trace({ + type: 'rule.match', + rule: 'IncompleteBlock', + result: s0, + location: peg$computeLocation(startPos, peg$currPos), + }); + } else { + peg$tracer.trace({ + type: 'rule.fail', + rule: 'IncompleteBlock', + location: peg$computeLocation(startPos, startPos), + }); + } + + return s0; + } + + function peg$parseBlock() { + var startPos = peg$currPos; + var s0, s1, s2, s3, s4, s5; + + peg$tracer.trace({ + type: 'rule.enter', + rule: 'Block', + location: peg$computeLocation(startPos, startPos), + }); + + s0 = peg$currPos; + if (input.charCodeAt(peg$currPos) === 123) { + s1 = peg$c111; + peg$currPos++; + } else { + s1 = peg$FAILED; + if (peg$silentFails === 0) { + peg$fail(peg$e134); + } + } + if (s1 !== peg$FAILED) { + s2 = peg$parse__(); + s3 = peg$currPos; + s4 = peg$parseStatementList(); + if (s4 !== peg$FAILED) { + s5 = peg$parse__(); + s4 = [s4, s5]; + s3 = s4; + } else { + peg$currPos = s3; + s3 = peg$FAILED; + } + if (s3 === peg$FAILED) { + s3 = null; + } + if (input.charCodeAt(peg$currPos) === 125) { + s4 = peg$c112; + peg$currPos++; + } else { + s4 = peg$FAILED; + if (peg$silentFails === 0) { + peg$fail(peg$e135); + } + } + if (s4 !== peg$FAILED) { + peg$savedPos = s0; + s0 = peg$f72(s3); + } else { + peg$currPos = s0; + s0 = peg$FAILED; + } + } else { + peg$currPos = s0; + s0 = peg$FAILED; + } + + if (s0 !== peg$FAILED) { + peg$tracer.trace({ + type: 'rule.match', + rule: 'Block', + result: s0, + location: peg$computeLocation(startPos, peg$currPos), + }); + } else { + peg$tracer.trace({ + type: 'rule.fail', + rule: 'Block', + location: peg$computeLocation(startPos, startPos), + }); + } + + return s0; + } + + function peg$parseStatementList() { + var startPos = peg$currPos; + var s0, s1, s2, s3, s4, s5; + + peg$tracer.trace({ + type: 'rule.enter', + rule: 'StatementList', + location: peg$computeLocation(startPos, startPos), + }); + + s0 = peg$currPos; + s1 = peg$parseStatement(); + if (s1 !== peg$FAILED) { + s2 = []; + s3 = peg$currPos; + s4 = peg$parse__(); + s5 = peg$parseStatement(); + if (s5 !== peg$FAILED) { + s4 = [s4, s5]; + s3 = s4; + } else { + peg$currPos = s3; + s3 = peg$FAILED; + } + while (s3 !== peg$FAILED) { + s2.push(s3); + s3 = peg$currPos; + s4 = peg$parse__(); + s5 = peg$parseStatement(); + if (s5 !== peg$FAILED) { + s4 = [s4, s5]; + s3 = s4; + } else { + peg$currPos = s3; + s3 = peg$FAILED; + } + } + peg$savedPos = s0; + s0 = peg$f73(s1, s2); + } else { + peg$currPos = s0; + s0 = peg$FAILED; + } + + if (s0 !== peg$FAILED) { + peg$tracer.trace({ + type: 'rule.match', + rule: 'StatementList', + result: s0, + location: peg$computeLocation(startPos, peg$currPos), + }); + } else { + peg$tracer.trace({ + type: 'rule.fail', + rule: 'StatementList', + location: peg$computeLocation(startPos, startPos), + }); + } + + return s0; + } + + function peg$parseVariableStatement() { + var startPos = peg$currPos; + var s0, s1, s2, s3, s4; + + peg$tracer.trace({ + type: 'rule.enter', + rule: 'VariableStatement', + location: peg$computeLocation(startPos, startPos), + }); + + s0 = peg$currPos; + s1 = peg$parseVarToken(); + if (s1 !== peg$FAILED) { + s2 = peg$parse__(); + s3 = peg$parseVariableDeclarationList(); + if (s3 !== peg$FAILED) { + s4 = peg$parseEOS(); + if (s4 !== peg$FAILED) { + peg$savedPos = s0; + s0 = peg$f74(s3); + } else { + peg$currPos = s0; + s0 = peg$FAILED; + } + } else { + peg$currPos = s0; + s0 = peg$FAILED; + } + } else { + peg$currPos = s0; + s0 = peg$FAILED; + } + if (s0 === peg$FAILED) { + s0 = peg$currPos; + s1 = peg$parseVarToken(); + if (s1 !== peg$FAILED) { + s2 = peg$parse__(); + s3 = peg$parseVariableDeclarationTuple(); + if (s3 !== peg$FAILED) { + s4 = peg$parseEOS(); + if (s4 !== peg$FAILED) { + peg$savedPos = s0; + s0 = peg$f75(s3); + } else { + peg$currPos = s0; + s0 = peg$FAILED; + } + } else { + peg$currPos = s0; + s0 = peg$FAILED; + } + } else { + peg$currPos = s0; + s0 = peg$FAILED; + } + } + + if (s0 !== peg$FAILED) { + peg$tracer.trace({ + type: 'rule.match', + rule: 'VariableStatement', + result: s0, + location: peg$computeLocation(startPos, peg$currPos), + }); + } else { + peg$tracer.trace({ + type: 'rule.fail', + rule: 'VariableStatement', + location: peg$computeLocation(startPos, startPos), + }); + } + + return s0; + } + + function peg$parseVariableDeclarationTuple() { + var startPos = peg$currPos; + var s0, s1, s2, s3, s4, s5, s6, s7, s8, s9, s10, s11; + + peg$tracer.trace({ + type: 'rule.enter', + rule: 'VariableDeclarationTuple', + location: peg$computeLocation(startPos, startPos), + }); + + s0 = peg$currPos; + if (input.charCodeAt(peg$currPos) === 40) { + s1 = peg$c107; + peg$currPos++; + } else { + s1 = peg$FAILED; + if (peg$silentFails === 0) { + peg$fail(peg$e130); + } + } + if (s1 !== peg$FAILED) { + s2 = []; + s3 = peg$parseComma(); + while (s3 !== peg$FAILED) { + s2.push(s3); + s3 = peg$parseComma(); + } + s3 = peg$parse__(); + s4 = peg$parseVariableDeclarationNoInit(); + if (s4 !== peg$FAILED) { + s5 = []; + s6 = peg$currPos; + s7 = []; + s8 = peg$parseComma(); + if (s8 !== peg$FAILED) { + while (s8 !== peg$FAILED) { + s7.push(s8); + s8 = peg$parseComma(); + } + } else { + s7 = peg$FAILED; + } + if (s7 !== peg$FAILED) { + s8 = peg$parseVariableDeclarationNoInit(); + if (s8 !== peg$FAILED) { + s7 = [s7, s8]; + s6 = s7; + } else { + peg$currPos = s6; + s6 = peg$FAILED; + } + } else { + peg$currPos = s6; + s6 = peg$FAILED; + } + while (s6 !== peg$FAILED) { + s5.push(s6); + s6 = peg$currPos; + s7 = []; + s8 = peg$parseComma(); + if (s8 !== peg$FAILED) { + while (s8 !== peg$FAILED) { + s7.push(s8); + s8 = peg$parseComma(); + } + } else { + s7 = peg$FAILED; + } + if (s7 !== peg$FAILED) { + s8 = peg$parseVariableDeclarationNoInit(); + if (s8 !== peg$FAILED) { + s7 = [s7, s8]; + s6 = s7; + } else { + peg$currPos = s6; + s6 = peg$FAILED; + } + } else { + peg$currPos = s6; + s6 = peg$FAILED; + } + } + s6 = peg$parse__(); + s7 = []; + s8 = peg$parseComma(); + while (s8 !== peg$FAILED) { + s7.push(s8); + s8 = peg$parseComma(); + } + if (input.charCodeAt(peg$currPos) === 41) { + s8 = peg$c108; + peg$currPos++; + } else { + s8 = peg$FAILED; + if (peg$silentFails === 0) { + peg$fail(peg$e131); + } + } + if (s8 !== peg$FAILED) { + s9 = peg$currPos; + s10 = peg$parse__(); + s11 = peg$parseInitialiser(); + if (s11 !== peg$FAILED) { + s10 = [s10, s11]; + s9 = s10; + } else { + peg$currPos = s9; + s9 = peg$FAILED; + } + if (s9 !== peg$FAILED) { + peg$savedPos = s0; + s0 = peg$f76(s4, s5, s9); + } else { + peg$currPos = s0; + s0 = peg$FAILED; + } + } else { + peg$currPos = s0; + s0 = peg$FAILED; + } + } else { + peg$currPos = s0; + s0 = peg$FAILED; + } + } else { + peg$currPos = s0; + s0 = peg$FAILED; + } + + if (s0 !== peg$FAILED) { + peg$tracer.trace({ + type: 'rule.match', + rule: 'VariableDeclarationTuple', + result: s0, + location: peg$computeLocation(startPos, peg$currPos), + }); + } else { + peg$tracer.trace({ + type: 'rule.fail', + rule: 'VariableDeclarationTuple', + location: peg$computeLocation(startPos, startPos), + }); + } + + return s0; + } + + function peg$parseVariableDeclarationNoInit() { + var startPos = peg$currPos; + var s0, s1; + + peg$tracer.trace({ + type: 'rule.enter', + rule: 'VariableDeclarationNoInit', + location: peg$computeLocation(startPos, startPos), + }); + + s0 = peg$currPos; + s1 = peg$parseIdentifier(); + if (s1 !== peg$FAILED) { + peg$savedPos = s0; + s1 = peg$f77(s1); + } + s0 = s1; + + if (s0 !== peg$FAILED) { + peg$tracer.trace({ + type: 'rule.match', + rule: 'VariableDeclarationNoInit', + result: s0, + location: peg$computeLocation(startPos, peg$currPos), + }); + } else { + peg$tracer.trace({ + type: 'rule.fail', + rule: 'VariableDeclarationNoInit', + location: peg$computeLocation(startPos, startPos), + }); + } + + return s0; + } + + function peg$parseVariableDeclarationList() { + var startPos = peg$currPos; + var s0, s1, s2, s3, s4, s5, s6, s7; + + peg$tracer.trace({ + type: 'rule.enter', + rule: 'VariableDeclarationList', + location: peg$computeLocation(startPos, startPos), + }); + + s0 = peg$currPos; + s1 = peg$parseVariableDeclaration(); + if (s1 !== peg$FAILED) { + s2 = []; + s3 = peg$currPos; + s4 = peg$parse__(); + if (input.charCodeAt(peg$currPos) === 44) { + s5 = peg$c106; + peg$currPos++; + } else { + s5 = peg$FAILED; + if (peg$silentFails === 0) { + peg$fail(peg$e129); + } + } + if (s5 !== peg$FAILED) { + s6 = peg$parse__(); + s7 = peg$parseVariableDeclaration(); + if (s7 !== peg$FAILED) { + s4 = [s4, s5, s6, s7]; + s3 = s4; + } else { + peg$currPos = s3; + s3 = peg$FAILED; + } + } else { + peg$currPos = s3; + s3 = peg$FAILED; + } + while (s3 !== peg$FAILED) { + s2.push(s3); + s3 = peg$currPos; + s4 = peg$parse__(); + if (input.charCodeAt(peg$currPos) === 44) { + s5 = peg$c106; + peg$currPos++; + } else { + s5 = peg$FAILED; + if (peg$silentFails === 0) { + peg$fail(peg$e129); + } + } + if (s5 !== peg$FAILED) { + s6 = peg$parse__(); + s7 = peg$parseVariableDeclaration(); + if (s7 !== peg$FAILED) { + s4 = [s4, s5, s6, s7]; + s3 = s4; + } else { + peg$currPos = s3; + s3 = peg$FAILED; + } + } else { + peg$currPos = s3; + s3 = peg$FAILED; + } + } + peg$savedPos = s0; + s0 = peg$f46(s1, s2); + } else { + peg$currPos = s0; + s0 = peg$FAILED; + } + + if (s0 !== peg$FAILED) { + peg$tracer.trace({ + type: 'rule.match', + rule: 'VariableDeclarationList', + result: s0, + location: peg$computeLocation(startPos, peg$currPos), + }); + } else { + peg$tracer.trace({ + type: 'rule.fail', + rule: 'VariableDeclarationList', + location: peg$computeLocation(startPos, startPos), + }); + } + + return s0; + } + + function peg$parseVariableDeclaration() { + var startPos = peg$currPos; + var s0, s1, s2, s3, s4; + + peg$tracer.trace({ + type: 'rule.enter', + rule: 'VariableDeclaration', + location: peg$computeLocation(startPos, startPos), + }); + + s0 = peg$currPos; + s1 = peg$parseIdentifier(); + if (s1 === peg$FAILED) { + s1 = peg$currPos; + if (input.charCodeAt(peg$currPos) === 40) { + s2 = peg$c107; + peg$currPos++; + } else { + s2 = peg$FAILED; + if (peg$silentFails === 0) { + peg$fail(peg$e130); + } + } + if (s2 !== peg$FAILED) { + s3 = peg$parseIdentifier(); + if (s3 !== peg$FAILED) { + if (input.charCodeAt(peg$currPos) === 41) { + s4 = peg$c108; + peg$currPos++; + } else { + s4 = peg$FAILED; + if (peg$silentFails === 0) { + peg$fail(peg$e131); + } + } + if (s4 !== peg$FAILED) { + s2 = [s2, s3, s4]; + s1 = s2; + } else { + peg$currPos = s1; + s1 = peg$FAILED; + } + } else { + peg$currPos = s1; + s1 = peg$FAILED; + } + } else { + peg$currPos = s1; + s1 = peg$FAILED; + } + } + if (s1 !== peg$FAILED) { + s2 = peg$currPos; + s3 = peg$parse__(); + s4 = peg$parseInitialiser(); + if (s4 !== peg$FAILED) { + s3 = [s3, s4]; + s2 = s3; + } else { + peg$currPos = s2; + s2 = peg$FAILED; + } + if (s2 === peg$FAILED) { + s2 = null; + } + peg$savedPos = s0; + s0 = peg$f78(s1, s2); + } else { + peg$currPos = s0; + s0 = peg$FAILED; + } + + if (s0 !== peg$FAILED) { + peg$tracer.trace({ + type: 'rule.match', + rule: 'VariableDeclaration', + result: s0, + location: peg$computeLocation(startPos, peg$currPos), + }); + } else { + peg$tracer.trace({ + type: 'rule.fail', + rule: 'VariableDeclaration', + location: peg$computeLocation(startPos, startPos), + }); + } + + return s0; + } + + function peg$parseInitialiser() { + var startPos = peg$currPos; + var s0, s1, s2, s3, s4; + + peg$tracer.trace({ + type: 'rule.enter', + rule: 'Initialiser', + location: peg$computeLocation(startPos, startPos), + }); + + s0 = peg$currPos; + if (input.charCodeAt(peg$currPos) === 61) { + s1 = peg$c114; + peg$currPos++; + } else { + s1 = peg$FAILED; + if (peg$silentFails === 0) { + peg$fail(peg$e137); + } + } + if (s1 !== peg$FAILED) { + s2 = peg$currPos; + peg$silentFails++; + if (input.charCodeAt(peg$currPos) === 61) { + s3 = peg$c114; + peg$currPos++; + } else { + s3 = peg$FAILED; + if (peg$silentFails === 0) { + peg$fail(peg$e137); + } + } + peg$silentFails--; + if (s3 === peg$FAILED) { + s2 = undefined; + } else { + peg$currPos = s2; + s2 = peg$FAILED; + } + if (s2 !== peg$FAILED) { + s3 = peg$parse__(); + s4 = peg$parseAssignmentExpression(); + if (s4 !== peg$FAILED) { + peg$savedPos = s0; + s0 = peg$f79(s4); + } else { + peg$currPos = s0; + s0 = peg$FAILED; + } + } else { + peg$currPos = s0; + s0 = peg$FAILED; + } + } else { + peg$currPos = s0; + s0 = peg$FAILED; + } + + if (s0 !== peg$FAILED) { + peg$tracer.trace({ + type: 'rule.match', + rule: 'Initialiser', + result: s0, + location: peg$computeLocation(startPos, peg$currPos), + }); + } else { + peg$tracer.trace({ + type: 'rule.fail', + rule: 'Initialiser', + location: peg$computeLocation(startPos, startPos), + }); + } + + return s0; + } + + function peg$parseEmptyStatement() { + var startPos = peg$currPos; + var s0, s1; + + peg$tracer.trace({ + type: 'rule.enter', + rule: 'EmptyStatement', + location: peg$computeLocation(startPos, startPos), + }); + + s0 = peg$currPos; + if (input.charCodeAt(peg$currPos) === 59) { + s1 = peg$c105; + peg$currPos++; + } else { + s1 = peg$FAILED; + if (peg$silentFails === 0) { + peg$fail(peg$e128); + } + } + if (s1 !== peg$FAILED) { + peg$savedPos = s0; + s1 = peg$f80(); + } + s0 = s1; + + if (s0 !== peg$FAILED) { + peg$tracer.trace({ + type: 'rule.match', + rule: 'EmptyStatement', + result: s0, + location: peg$computeLocation(startPos, peg$currPos), + }); + } else { + peg$tracer.trace({ + type: 'rule.fail', + rule: 'EmptyStatement', + location: peg$computeLocation(startPos, startPos), + }); + } + + return s0; + } + + function peg$parseExpressionStatement() { + var startPos = peg$currPos; + var s0, s1, s2, s3; + + peg$tracer.trace({ + type: 'rule.enter', + rule: 'ExpressionStatement', + location: peg$computeLocation(startPos, startPos), + }); + + s0 = peg$currPos; + s1 = peg$currPos; + peg$silentFails++; + if (input.charCodeAt(peg$currPos) === 123) { + s2 = peg$c111; + peg$currPos++; + } else { + s2 = peg$FAILED; + if (peg$silentFails === 0) { + peg$fail(peg$e134); + } + } + if (s2 === peg$FAILED) { + s2 = peg$parseContractToken(); + if (s2 === peg$FAILED) { + s2 = peg$parseInterfaceToken(); + if (s2 === peg$FAILED) { + s2 = peg$parseLibraryToken(); + if (s2 === peg$FAILED) { + s2 = peg$parseStructToken(); + if (s2 === peg$FAILED) { + s2 = peg$parseEnumToken(); + } + } + } + } + } + peg$silentFails--; + if (s2 === peg$FAILED) { + s1 = undefined; + } else { + peg$currPos = s1; + s1 = peg$FAILED; + } + if (s1 !== peg$FAILED) { + s2 = peg$parseExpression(); + s3 = peg$parseEOS(); + if (s3 !== peg$FAILED) { + peg$savedPos = s0; + s0 = peg$f81(s2); + } else { + peg$currPos = s0; + s0 = peg$FAILED; + } + } else { + peg$currPos = s0; + s0 = peg$FAILED; + } + + if (s0 !== peg$FAILED) { + peg$tracer.trace({ + type: 'rule.match', + rule: 'ExpressionStatement', + result: s0, + location: peg$computeLocation(startPos, peg$currPos), + }); + } else { + peg$tracer.trace({ + type: 'rule.fail', + rule: 'ExpressionStatement', + location: peg$computeLocation(startPos, startPos), + }); + } + + return s0; + } + + function peg$parseTryStatement() { + var startPos = peg$currPos; + var s0, s1, s2, s3, s4, s5, s6, s7, s8, s9, s10, s11; + + peg$tracer.trace({ + type: 'rule.enter', + rule: 'TryStatement', + location: peg$computeLocation(startPos, startPos), + }); + + s0 = peg$currPos; + s1 = peg$parseTryToken(); + if (s1 !== peg$FAILED) { + s2 = peg$parse__(); + s3 = peg$parseExpression(); + s4 = []; + s5 = peg$currPos; + if (input.charCodeAt(peg$currPos) === 46) { + s6 = peg$c17; + peg$currPos++; + } else { + s6 = peg$FAILED; + if (peg$silentFails === 0) { + peg$fail(peg$e24); + } + } + if (s6 === peg$FAILED) { + s6 = peg$currPos; + s7 = peg$parse__(); + if (input.charCodeAt(peg$currPos) === 61) { + s8 = peg$c114; + peg$currPos++; + } else { + s8 = peg$FAILED; + if (peg$silentFails === 0) { + peg$fail(peg$e137); + } + } + if (s8 !== peg$FAILED) { + s9 = peg$parse__(); + s7 = [s7, s8, s9]; + s6 = s7; + } else { + peg$currPos = s6; + s6 = peg$FAILED; + } + if (s6 === peg$FAILED) { + s6 = peg$currPos; + s7 = peg$parse__(); + if (input.charCodeAt(peg$currPos) === 61) { + s8 = peg$c114; + peg$currPos++; + } else { + s8 = peg$FAILED; + if (peg$silentFails === 0) { + peg$fail(peg$e137); + } + } + if (s8 !== peg$FAILED) { + s9 = peg$parse__(); + s10 = peg$parseNewToken(); + if (s10 !== peg$FAILED) { + s11 = peg$parse__(); + s7 = [s7, s8, s9, s10, s11]; + s6 = s7; + } else { + peg$currPos = s6; + s6 = peg$FAILED; + } + } else { + peg$currPos = s6; + s6 = peg$FAILED; + } + } + } + if (s6 !== peg$FAILED) { + s7 = peg$parseIdentifier(); + if (s7 === peg$FAILED) { + s7 = null; + } + s6 = [s6, s7]; + s5 = s6; + } else { + peg$currPos = s5; + s5 = peg$FAILED; + } + while (s5 !== peg$FAILED) { + s4.push(s5); + s5 = peg$currPos; + if (input.charCodeAt(peg$currPos) === 46) { + s6 = peg$c17; + peg$currPos++; + } else { + s6 = peg$FAILED; + if (peg$silentFails === 0) { + peg$fail(peg$e24); + } + } + if (s6 === peg$FAILED) { + s6 = peg$currPos; + s7 = peg$parse__(); + if (input.charCodeAt(peg$currPos) === 61) { + s8 = peg$c114; + peg$currPos++; + } else { + s8 = peg$FAILED; + if (peg$silentFails === 0) { + peg$fail(peg$e137); + } + } + if (s8 !== peg$FAILED) { + s9 = peg$parse__(); + s7 = [s7, s8, s9]; + s6 = s7; + } else { + peg$currPos = s6; + s6 = peg$FAILED; + } + if (s6 === peg$FAILED) { + s6 = peg$currPos; + s7 = peg$parse__(); + if (input.charCodeAt(peg$currPos) === 61) { + s8 = peg$c114; + peg$currPos++; + } else { + s8 = peg$FAILED; + if (peg$silentFails === 0) { + peg$fail(peg$e137); + } + } + if (s8 !== peg$FAILED) { + s9 = peg$parse__(); + s10 = peg$parseNewToken(); + if (s10 !== peg$FAILED) { + s11 = peg$parse__(); + s7 = [s7, s8, s9, s10, s11]; + s6 = s7; + } else { + peg$currPos = s6; + s6 = peg$FAILED; + } + } else { + peg$currPos = s6; + s6 = peg$FAILED; + } + } + } + if (s6 !== peg$FAILED) { + s7 = peg$parseIdentifier(); + if (s7 === peg$FAILED) { + s7 = null; + } + s6 = [s6, s7]; + s5 = s6; + } else { + peg$currPos = s5; + s5 = peg$FAILED; + } + } + s5 = peg$parse__(); + s6 = peg$parseStatement(); + if (s6 !== peg$FAILED) { + s7 = peg$parse__(); + s8 = []; + s9 = peg$parseCatchStatements(); + while (s9 !== peg$FAILED) { + s8.push(s9); + s9 = peg$parseCatchStatements(); + } + peg$savedPos = s0; + s0 = peg$f82(s3, s4, s6, s8); + } else { + peg$currPos = s0; + s0 = peg$FAILED; + } + } else { + peg$currPos = s0; + s0 = peg$FAILED; + } + if (s0 === peg$FAILED) { + s0 = peg$currPos; + s1 = peg$parseTryToken(); + if (s1 !== peg$FAILED) { + s2 = peg$parse__(); + s3 = peg$parseExpression(); + s4 = []; + s5 = peg$currPos; + if (input.charCodeAt(peg$currPos) === 46) { + s6 = peg$c17; + peg$currPos++; + } else { + s6 = peg$FAILED; + if (peg$silentFails === 0) { + peg$fail(peg$e24); + } + } + if (s6 === peg$FAILED) { + s6 = peg$currPos; + s7 = peg$parse__(); + if (input.charCodeAt(peg$currPos) === 61) { + s8 = peg$c114; + peg$currPos++; + } else { + s8 = peg$FAILED; + if (peg$silentFails === 0) { + peg$fail(peg$e137); + } + } + if (s8 !== peg$FAILED) { + s9 = peg$parse__(); + s7 = [s7, s8, s9]; + s6 = s7; + } else { + peg$currPos = s6; + s6 = peg$FAILED; + } + if (s6 === peg$FAILED) { + s6 = peg$currPos; + s7 = peg$parse__(); + if (input.charCodeAt(peg$currPos) === 61) { + s8 = peg$c114; + peg$currPos++; + } else { + s8 = peg$FAILED; + if (peg$silentFails === 0) { + peg$fail(peg$e137); + } + } + if (s8 !== peg$FAILED) { + s9 = peg$parse__(); + s10 = peg$parseNewToken(); + if (s10 !== peg$FAILED) { + s11 = peg$parse__(); + s7 = [s7, s8, s9, s10, s11]; + s6 = s7; + } else { + peg$currPos = s6; + s6 = peg$FAILED; + } + } else { + peg$currPos = s6; + s6 = peg$FAILED; + } + } + } + if (s6 !== peg$FAILED) { + s7 = peg$parseIdentifier(); + if (s7 === peg$FAILED) { + s7 = null; + } + s6 = [s6, s7]; + s5 = s6; + } else { + peg$currPos = s5; + s5 = peg$FAILED; + } + while (s5 !== peg$FAILED) { + s4.push(s5); + s5 = peg$currPos; + if (input.charCodeAt(peg$currPos) === 46) { + s6 = peg$c17; + peg$currPos++; + } else { + s6 = peg$FAILED; + if (peg$silentFails === 0) { + peg$fail(peg$e24); + } + } + if (s6 === peg$FAILED) { + s6 = peg$currPos; + s7 = peg$parse__(); + if (input.charCodeAt(peg$currPos) === 61) { + s8 = peg$c114; + peg$currPos++; + } else { + s8 = peg$FAILED; + if (peg$silentFails === 0) { + peg$fail(peg$e137); + } + } + if (s8 !== peg$FAILED) { + s9 = peg$parse__(); + s7 = [s7, s8, s9]; + s6 = s7; + } else { + peg$currPos = s6; + s6 = peg$FAILED; + } + if (s6 === peg$FAILED) { + s6 = peg$currPos; + s7 = peg$parse__(); + if (input.charCodeAt(peg$currPos) === 61) { + s8 = peg$c114; + peg$currPos++; + } else { + s8 = peg$FAILED; + if (peg$silentFails === 0) { + peg$fail(peg$e137); + } + } + if (s8 !== peg$FAILED) { + s9 = peg$parse__(); + s10 = peg$parseNewToken(); + if (s10 !== peg$FAILED) { + s11 = peg$parse__(); + s7 = [s7, s8, s9, s10, s11]; + s6 = s7; + } else { + peg$currPos = s6; + s6 = peg$FAILED; + } + } else { + peg$currPos = s6; + s6 = peg$FAILED; + } + } + } + if (s6 !== peg$FAILED) { + s7 = peg$parseIdentifier(); + if (s7 === peg$FAILED) { + s7 = null; + } + s6 = [s6, s7]; + s5 = s6; + } else { + peg$currPos = s5; + s5 = peg$FAILED; + } + } + s5 = peg$parse__(); + s6 = peg$parseReturnsDeclarations(); + s7 = peg$parse__(); + s8 = peg$parseStatement(); + if (s8 !== peg$FAILED) { + s9 = peg$parse__(); + s10 = []; + s11 = peg$parseCatchStatements(); + while (s11 !== peg$FAILED) { + s10.push(s11); + s11 = peg$parseCatchStatements(); + } + peg$savedPos = s0; + s0 = peg$f83(s3, s4, s6, s8, s10); + } else { + peg$currPos = s0; + s0 = peg$FAILED; + } + } else { + peg$currPos = s0; + s0 = peg$FAILED; + } + } + + if (s0 !== peg$FAILED) { + peg$tracer.trace({ + type: 'rule.match', + rule: 'TryStatement', + result: s0, + location: peg$computeLocation(startPos, peg$currPos), + }); + } else { + peg$tracer.trace({ + type: 'rule.fail', + rule: 'TryStatement', + location: peg$computeLocation(startPos, startPos), + }); + } + + return s0; + } + + function peg$parseCatchStatements() { + var startPos = peg$currPos; + var s0, s1, s2, s3, s4, s5; + + peg$tracer.trace({ + type: 'rule.enter', + rule: 'CatchStatements', + location: peg$computeLocation(startPos, startPos), + }); + + s0 = peg$currPos; + s1 = peg$parseCatchStatement(); + if (s1 !== peg$FAILED) { + s2 = []; + s3 = peg$currPos; + s4 = peg$parse__(); + s5 = peg$parseCatchStatement(); + if (s5 !== peg$FAILED) { + s4 = [s4, s5]; + s3 = s4; + } else { + peg$currPos = s3; + s3 = peg$FAILED; + } + while (s3 !== peg$FAILED) { + s2.push(s3); + s3 = peg$currPos; + s4 = peg$parse__(); + s5 = peg$parseCatchStatement(); + if (s5 !== peg$FAILED) { + s4 = [s4, s5]; + s3 = s4; + } else { + peg$currPos = s3; + s3 = peg$FAILED; + } + } + peg$savedPos = s0; + s0 = peg$f69(s1, s2); + } else { + peg$currPos = s0; + s0 = peg$FAILED; + } + + if (s0 !== peg$FAILED) { + peg$tracer.trace({ + type: 'rule.match', + rule: 'CatchStatements', + result: s0, + location: peg$computeLocation(startPos, peg$currPos), + }); + } else { + peg$tracer.trace({ + type: 'rule.fail', + rule: 'CatchStatements', + location: peg$computeLocation(startPos, startPos), + }); + } + + return s0; + } + + function peg$parseCatchStatement() { + var startPos = peg$currPos; + var s0, s1, s2, s3, s4, s5, s6, s7, s8, s9, s10, s11; + + peg$tracer.trace({ + type: 'rule.enter', + rule: 'CatchStatement', + location: peg$computeLocation(startPos, startPos), + }); + + s0 = peg$currPos; + s1 = peg$parseCatchToken(); + if (s1 !== peg$FAILED) { + s2 = peg$parse__(); + if (input.charCodeAt(peg$currPos) === 40) { + s3 = peg$c107; + peg$currPos++; + } else { + s3 = peg$FAILED; + if (peg$silentFails === 0) { + peg$fail(peg$e130); + } + } + if (s3 !== peg$FAILED) { + s4 = peg$parse__(); + s5 = peg$parseInformalParameterList(); + if (s5 !== peg$FAILED) { + s6 = peg$parse__(); + if (input.charCodeAt(peg$currPos) === 41) { + s7 = peg$c108; + peg$currPos++; + } else { + s7 = peg$FAILED; + if (peg$silentFails === 0) { + peg$fail(peg$e131); + } + } + if (s7 !== peg$FAILED) { + s8 = peg$parse__(); + s9 = peg$parseBlock(); + if (s9 !== peg$FAILED) { + peg$savedPos = s0; + s0 = peg$f84(s5, s9); + } else { + peg$currPos = s0; + s0 = peg$FAILED; + } + } else { + peg$currPos = s0; + s0 = peg$FAILED; + } + } else { + peg$currPos = s0; + s0 = peg$FAILED; + } + } else { + peg$currPos = s0; + s0 = peg$FAILED; + } + } else { + peg$currPos = s0; + s0 = peg$FAILED; + } + if (s0 === peg$FAILED) { + s0 = peg$currPos; + s1 = peg$parseCatchToken(); + if (s1 !== peg$FAILED) { + s2 = peg$parse__(); + s3 = peg$parseBlock(); + if (s3 !== peg$FAILED) { + peg$savedPos = s0; + s0 = peg$f85(s3); + } else { + peg$currPos = s0; + s0 = peg$FAILED; + } + } else { + peg$currPos = s0; + s0 = peg$FAILED; + } + if (s0 === peg$FAILED) { + s0 = peg$currPos; + s1 = peg$parseCatchToken(); + if (s1 !== peg$FAILED) { + s2 = peg$parse__(); + if (input.substr(peg$currPos, 5) === peg$c150) { + s3 = peg$c150; + peg$currPos += 5; + } else { + s3 = peg$FAILED; + if (peg$silentFails === 0) { + peg$fail(peg$e177); + } + } + if (s3 !== peg$FAILED) { + s4 = peg$parse__(); + if (input.charCodeAt(peg$currPos) === 40) { + s5 = peg$c107; + peg$currPos++; + } else { + s5 = peg$FAILED; + if (peg$silentFails === 0) { + peg$fail(peg$e130); + } + } + if (s5 !== peg$FAILED) { + s6 = peg$parse__(); + s7 = peg$parseInformalParameterList(); + if (s7 !== peg$FAILED) { + s8 = peg$parse__(); + if (input.charCodeAt(peg$currPos) === 41) { + s9 = peg$c108; + peg$currPos++; + } else { + s9 = peg$FAILED; + if (peg$silentFails === 0) { + peg$fail(peg$e131); + } + } + if (s9 !== peg$FAILED) { + s10 = peg$parse__(); + s11 = peg$parseBlock(); + if (s11 !== peg$FAILED) { + peg$savedPos = s0; + s0 = peg$f84(s7, s11); + } else { + peg$currPos = s0; + s0 = peg$FAILED; + } + } else { + peg$currPos = s0; + s0 = peg$FAILED; + } + } else { + peg$currPos = s0; + s0 = peg$FAILED; + } + } else { + peg$currPos = s0; + s0 = peg$FAILED; + } + } else { + peg$currPos = s0; + s0 = peg$FAILED; + } + } else { + peg$currPos = s0; + s0 = peg$FAILED; + } + } + } + + if (s0 !== peg$FAILED) { + peg$tracer.trace({ + type: 'rule.match', + rule: 'CatchStatement', + result: s0, + location: peg$computeLocation(startPos, peg$currPos), + }); + } else { + peg$tracer.trace({ + type: 'rule.fail', + rule: 'CatchStatement', + location: peg$computeLocation(startPos, startPos), + }); + } + + return s0; + } + + function peg$parseIfStatement() { + var startPos = peg$currPos; + var s0, s1, s2, s3, s4, s5, s6, s7, s8, s9, s10, s11, s12, s13; + + peg$tracer.trace({ + type: 'rule.enter', + rule: 'IfStatement', + location: peg$computeLocation(startPos, startPos), + }); + + s0 = peg$currPos; + s1 = peg$parseIfToken(); + if (s1 !== peg$FAILED) { + s2 = peg$parse__(); + if (input.charCodeAt(peg$currPos) === 40) { + s3 = peg$c107; + peg$currPos++; + } else { + s3 = peg$FAILED; + if (peg$silentFails === 0) { + peg$fail(peg$e130); + } + } + if (s3 !== peg$FAILED) { + s4 = peg$parse__(); + s5 = peg$parseExpression(); + s6 = peg$parse__(); + if (input.charCodeAt(peg$currPos) === 41) { + s7 = peg$c108; + peg$currPos++; + } else { + s7 = peg$FAILED; + if (peg$silentFails === 0) { + peg$fail(peg$e131); + } + } + if (s7 !== peg$FAILED) { + s8 = peg$parse__(); + s9 = peg$parseStatement(); + if (s9 !== peg$FAILED) { + s10 = peg$parse__(); + s11 = peg$parseElseToken(); + if (s11 !== peg$FAILED) { + s12 = peg$parse__(); + s13 = peg$parseStatement(); + if (s13 !== peg$FAILED) { + peg$savedPos = s0; + s0 = peg$f86(s5, s9, s13); + } else { + peg$currPos = s0; + s0 = peg$FAILED; + } + } else { + peg$currPos = s0; + s0 = peg$FAILED; + } + } else { + peg$currPos = s0; + s0 = peg$FAILED; + } + } else { + peg$currPos = s0; + s0 = peg$FAILED; + } + } else { + peg$currPos = s0; + s0 = peg$FAILED; + } + } else { + peg$currPos = s0; + s0 = peg$FAILED; + } + if (s0 === peg$FAILED) { + s0 = peg$currPos; + s1 = peg$parseIfToken(); + if (s1 !== peg$FAILED) { + s2 = peg$parse__(); + if (input.charCodeAt(peg$currPos) === 40) { + s3 = peg$c107; + peg$currPos++; + } else { + s3 = peg$FAILED; + if (peg$silentFails === 0) { + peg$fail(peg$e130); + } + } + if (s3 !== peg$FAILED) { + s4 = peg$parse__(); + s5 = peg$parseExpression(); + s6 = peg$parse__(); + if (input.charCodeAt(peg$currPos) === 41) { + s7 = peg$c108; + peg$currPos++; + } else { + s7 = peg$FAILED; + if (peg$silentFails === 0) { + peg$fail(peg$e131); + } + } + if (s7 !== peg$FAILED) { + s8 = peg$parse__(); + s9 = peg$parseStatement(); + if (s9 !== peg$FAILED) { + peg$savedPos = s0; + s0 = peg$f87(s5, s9); + } else { + peg$currPos = s0; + s0 = peg$FAILED; + } + } else { + peg$currPos = s0; + s0 = peg$FAILED; + } + } else { + peg$currPos = s0; + s0 = peg$FAILED; + } + } else { + peg$currPos = s0; + s0 = peg$FAILED; + } + } + + if (s0 !== peg$FAILED) { + peg$tracer.trace({ + type: 'rule.match', + rule: 'IfStatement', + result: s0, + location: peg$computeLocation(startPos, peg$currPos), + }); + } else { + peg$tracer.trace({ + type: 'rule.fail', + rule: 'IfStatement', + location: peg$computeLocation(startPos, startPos), + }); + } + + return s0; + } + + function peg$parsePragmaStatement() { + var startPos = peg$currPos; + var s0, s1, s2, s3, s4, s5, s6, s7, s8; + + peg$tracer.trace({ + type: 'rule.enter', + rule: 'PragmaStatement', + location: peg$computeLocation(startPos, startPos), + }); + + s0 = peg$currPos; + s1 = peg$parsePragmaToken(); + if (s1 !== peg$FAILED) { + s2 = peg$parse__(); + s3 = peg$parseSolidityToken(); + if (s3 !== peg$FAILED) { + s4 = peg$parse__(); + s5 = peg$parseVersionLiteral(); + if (s5 !== peg$FAILED) { + s6 = peg$parse__(); + s7 = peg$parseVersionLiteral(); + if (s7 === peg$FAILED) { + s7 = null; + } + s8 = peg$parseEOS(); + if (s8 !== peg$FAILED) { + peg$savedPos = s0; + s0 = peg$f88(s5, s7); + } else { + peg$currPos = s0; + s0 = peg$FAILED; + } + } else { + peg$currPos = s0; + s0 = peg$FAILED; + } + } else { + peg$currPos = s0; + s0 = peg$FAILED; + } + } else { + peg$currPos = s0; + s0 = peg$FAILED; + } + if (s0 === peg$FAILED) { + s0 = peg$currPos; + s1 = peg$parsePragmaToken(); + if (s1 !== peg$FAILED) { + s2 = peg$parse__(); + s3 = peg$parseExperimentalToken(); + if (s3 !== peg$FAILED) { + s4 = peg$parse__(); + s5 = peg$parseIdentifier(); + if (s5 === peg$FAILED) { + s5 = peg$parseStringLiteral(); + } + if (s5 !== peg$FAILED) { + s6 = peg$parseEOS(); + if (s6 !== peg$FAILED) { + peg$savedPos = s0; + s0 = peg$f89(s5); + } else { + peg$currPos = s0; + s0 = peg$FAILED; + } + } else { + peg$currPos = s0; + s0 = peg$FAILED; + } + } else { + peg$currPos = s0; + s0 = peg$FAILED; + } + } else { + peg$currPos = s0; + s0 = peg$FAILED; + } + if (s0 === peg$FAILED) { + s0 = peg$currPos; + s1 = peg$parsePragmaToken(); + if (s1 !== peg$FAILED) { + s2 = peg$parse__(); + s3 = peg$parseAbiCoderToken(); + if (s3 !== peg$FAILED) { + s4 = peg$parse__(); + s5 = peg$parseIdentifier(); + if (s5 === peg$FAILED) { + s5 = peg$parseStringLiteral(); + } + if (s5 !== peg$FAILED) { + s6 = peg$parseEOS(); + if (s6 !== peg$FAILED) { + peg$savedPos = s0; + s0 = peg$f90(s5); + } else { + peg$currPos = s0; + s0 = peg$FAILED; + } + } else { + peg$currPos = s0; + s0 = peg$FAILED; + } + } else { + peg$currPos = s0; + s0 = peg$FAILED; + } + } else { + peg$currPos = s0; + s0 = peg$FAILED; + } + } + } + + if (s0 !== peg$FAILED) { + peg$tracer.trace({ + type: 'rule.match', + rule: 'PragmaStatement', + result: s0, + location: peg$computeLocation(startPos, peg$currPos), + }); + } else { + peg$tracer.trace({ + type: 'rule.fail', + rule: 'PragmaStatement', + location: peg$computeLocation(startPos, startPos), + }); + } + + return s0; + } + + function peg$parseImportStatement() { + var startPos = peg$currPos; + var s0, s1, s2, s3, s4, s5, s6, s7, s8, s9, s10, s11, s12, s13; + + peg$tracer.trace({ + type: 'rule.enter', + rule: 'ImportStatement', + location: peg$computeLocation(startPos, startPos), + }); + + s0 = peg$currPos; + s1 = peg$parseImportToken(); + if (s1 !== peg$FAILED) { + s2 = peg$parse__(); + s3 = peg$parseStringLiteral(); + if (s3 !== peg$FAILED) { + s4 = peg$parse__(); + s5 = peg$currPos; + s6 = peg$parseAsToken(); + if (s6 !== peg$FAILED) { + s7 = peg$parse__(); + s8 = peg$parseIdentifier(); + if (s8 !== peg$FAILED) { + s6 = [s6, s7, s8]; + s5 = s6; + } else { + peg$currPos = s5; + s5 = peg$FAILED; + } + } else { + peg$currPos = s5; + s5 = peg$FAILED; + } + if (s5 === peg$FAILED) { + s5 = null; + } + s6 = peg$parse__(); + s7 = peg$parseEOS(); + if (s7 !== peg$FAILED) { + peg$savedPos = s0; + s0 = peg$f91(s3, s5); + } else { + peg$currPos = s0; + s0 = peg$FAILED; + } + } else { + peg$currPos = s0; + s0 = peg$FAILED; + } + } else { + peg$currPos = s0; + s0 = peg$FAILED; + } + if (s0 === peg$FAILED) { + s0 = peg$currPos; + s1 = peg$parseImportToken(); + if (s1 !== peg$FAILED) { + s2 = peg$parse__(); + s3 = peg$parseGlobalSymbol(); + if (s3 !== peg$FAILED) { + s4 = peg$parse__(); + s5 = peg$parseFromToken(); + if (s5 !== peg$FAILED) { + s6 = peg$parse__(); + s7 = peg$parseStringLiteral(); + if (s7 !== peg$FAILED) { + s8 = peg$parse__(); + s9 = peg$parseEOS(); + if (s9 !== peg$FAILED) { + peg$savedPos = s0; + s0 = peg$f92(s3, s7); + } else { + peg$currPos = s0; + s0 = peg$FAILED; + } + } else { + peg$currPos = s0; + s0 = peg$FAILED; + } + } else { + peg$currPos = s0; + s0 = peg$FAILED; + } + } else { + peg$currPos = s0; + s0 = peg$FAILED; + } + } else { + peg$currPos = s0; + s0 = peg$FAILED; + } + if (s0 === peg$FAILED) { + s0 = peg$currPos; + s1 = peg$parseImportToken(); + if (s1 !== peg$FAILED) { + s2 = peg$parse__(); + if (input.charCodeAt(peg$currPos) === 123) { + s3 = peg$c111; + peg$currPos++; + } else { + s3 = peg$FAILED; + if (peg$silentFails === 0) { + peg$fail(peg$e134); + } + } + if (s3 !== peg$FAILED) { + s4 = peg$parse__(); + s5 = peg$parseSymbolList(); + if (s5 !== peg$FAILED) { + s6 = peg$parse__(); + if (input.charCodeAt(peg$currPos) === 125) { + s7 = peg$c112; + peg$currPos++; + } else { + s7 = peg$FAILED; + if (peg$silentFails === 0) { + peg$fail(peg$e135); + } + } + if (s7 !== peg$FAILED) { + s8 = peg$parse__(); + s9 = peg$parseFromToken(); + if (s9 !== peg$FAILED) { + s10 = peg$parse__(); + s11 = peg$parseStringLiteral(); + if (s11 !== peg$FAILED) { + s12 = peg$parse__(); + s13 = peg$parseEOS(); + if (s13 !== peg$FAILED) { + peg$savedPos = s0; + s0 = peg$f93(s5, s11); + } else { + peg$currPos = s0; + s0 = peg$FAILED; + } + } else { + peg$currPos = s0; + s0 = peg$FAILED; + } + } else { + peg$currPos = s0; + s0 = peg$FAILED; + } + } else { + peg$currPos = s0; + s0 = peg$FAILED; + } + } else { + peg$currPos = s0; + s0 = peg$FAILED; + } + } else { + peg$currPos = s0; + s0 = peg$FAILED; + } + } else { + peg$currPos = s0; + s0 = peg$FAILED; + } + } + } + + if (s0 !== peg$FAILED) { + peg$tracer.trace({ + type: 'rule.match', + rule: 'ImportStatement', + result: s0, + location: peg$computeLocation(startPos, peg$currPos), + }); + } else { + peg$tracer.trace({ + type: 'rule.fail', + rule: 'ImportStatement', + location: peg$computeLocation(startPos, startPos), + }); + } + + return s0; + } + + function peg$parseUsingStatement() { + var startPos = peg$currPos; + var s0, s1, s2, s3, s4, s5, s6, s7, s8, s9; + + peg$tracer.trace({ + type: 'rule.enter', + rule: 'UsingStatement', + location: peg$computeLocation(startPos, startPos), + }); + + s0 = peg$currPos; + s1 = peg$parseUsingToken(); + if (s1 !== peg$FAILED) { + s2 = peg$parse__(); + s3 = peg$parseIdentifier(); + if (s3 !== peg$FAILED) { + s4 = peg$parse__(); + s5 = peg$parseForToken(); + if (s5 !== peg$FAILED) { + s6 = peg$parse__(); + s7 = peg$parseType(); + if (s7 !== peg$FAILED) { + s8 = peg$parse__(); + s9 = peg$parseEOS(); + if (s9 !== peg$FAILED) { + peg$savedPos = s0; + s0 = peg$f94(s3, s7); + } else { + peg$currPos = s0; + s0 = peg$FAILED; + } + } else { + peg$currPos = s0; + s0 = peg$FAILED; + } + } else { + peg$currPos = s0; + s0 = peg$FAILED; + } + } else { + peg$currPos = s0; + s0 = peg$FAILED; + } + } else { + peg$currPos = s0; + s0 = peg$FAILED; + } + if (s0 === peg$FAILED) { + s0 = peg$currPos; + s1 = peg$parseUsingToken(); + if (s1 !== peg$FAILED) { + s2 = peg$parse__(); + s3 = peg$parseIdentifier(); + if (s3 !== peg$FAILED) { + s4 = peg$parse__(); + s5 = peg$parseForToken(); + if (s5 !== peg$FAILED) { + s6 = peg$parse__(); + if (input.charCodeAt(peg$currPos) === 42) { + s7 = peg$c122; + peg$currPos++; + } else { + s7 = peg$FAILED; + if (peg$silentFails === 0) { + peg$fail(peg$e145); + } + } + if (s7 !== peg$FAILED) { + s8 = peg$parse__(); + s9 = peg$parseEOS(); + if (s9 !== peg$FAILED) { + peg$savedPos = s0; + s0 = peg$f95(s3); + } else { + peg$currPos = s0; + s0 = peg$FAILED; + } + } else { + peg$currPos = s0; + s0 = peg$FAILED; + } + } else { + peg$currPos = s0; + s0 = peg$FAILED; + } + } else { + peg$currPos = s0; + s0 = peg$FAILED; + } + } else { + peg$currPos = s0; + s0 = peg$FAILED; + } + } + + if (s0 !== peg$FAILED) { + peg$tracer.trace({ + type: 'rule.match', + rule: 'UsingStatement', + result: s0, + location: peg$computeLocation(startPos, peg$currPos), + }); + } else { + peg$tracer.trace({ + type: 'rule.fail', + rule: 'UsingStatement', + location: peg$computeLocation(startPos, startPos), + }); + } + + return s0; + } + + function peg$parseEmitStatement() { + var startPos = peg$currPos; + var s0, s1, s2, s3, s4; + + peg$tracer.trace({ + type: 'rule.enter', + rule: 'EmitStatement', + location: peg$computeLocation(startPos, startPos), + }); + + s0 = peg$currPos; + s1 = peg$parseEmitToken(); + if (s1 !== peg$FAILED) { + s2 = peg$parse__(); + s3 = peg$parseCallExpression(); + if (s3 !== peg$FAILED) { + s4 = peg$parseEOS(); + if (s4 !== peg$FAILED) { + peg$savedPos = s0; + s0 = peg$f96(s3); + } else { + peg$currPos = s0; + s0 = peg$FAILED; + } + } else { + peg$currPos = s0; + s0 = peg$FAILED; + } + } else { + peg$currPos = s0; + s0 = peg$FAILED; + } + + if (s0 !== peg$FAILED) { + peg$tracer.trace({ + type: 'rule.match', + rule: 'EmitStatement', + result: s0, + location: peg$computeLocation(startPos, peg$currPos), + }); + } else { + peg$tracer.trace({ + type: 'rule.fail', + rule: 'EmitStatement', + location: peg$computeLocation(startPos, startPos), + }); + } + + return s0; + } + + function peg$parseRevertStatement() { + var startPos = peg$currPos; + var s0, s1, s2, s3, s4; + + peg$tracer.trace({ + type: 'rule.enter', + rule: 'RevertStatement', + location: peg$computeLocation(startPos, startPos), + }); + + s0 = peg$currPos; + s1 = peg$parseRevertToken(); + if (s1 !== peg$FAILED) { + s2 = peg$parse__(); + s3 = peg$parseCallExpression(); + if (s3 !== peg$FAILED) { + s4 = peg$parseEOS(); + if (s4 !== peg$FAILED) { + peg$savedPos = s0; + s0 = peg$f97(s3); + } else { + peg$currPos = s0; + s0 = peg$FAILED; + } + } else { + peg$currPos = s0; + s0 = peg$FAILED; + } + } else { + peg$currPos = s0; + s0 = peg$FAILED; + } + + if (s0 !== peg$FAILED) { + peg$tracer.trace({ + type: 'rule.match', + rule: 'RevertStatement', + result: s0, + location: peg$computeLocation(startPos, peg$currPos), + }); + } else { + peg$tracer.trace({ + type: 'rule.fail', + rule: 'RevertStatement', + location: peg$computeLocation(startPos, startPos), + }); + } + + return s0; + } + + function peg$parseSymbolList() { + var startPos = peg$currPos; + var s0, s1, s2, s3, s4, s5, s6, s7; + + peg$tracer.trace({ + type: 'rule.enter', + rule: 'SymbolList', + location: peg$computeLocation(startPos, startPos), + }); + + s0 = peg$currPos; + s1 = peg$parseSymbol(); + if (s1 !== peg$FAILED) { + s2 = []; + s3 = peg$currPos; + s4 = peg$parse__(); + if (input.charCodeAt(peg$currPos) === 44) { + s5 = peg$c106; + peg$currPos++; + } else { + s5 = peg$FAILED; + if (peg$silentFails === 0) { + peg$fail(peg$e129); + } + } + if (s5 !== peg$FAILED) { + s6 = peg$parse__(); + s7 = peg$parseSymbol(); + if (s7 !== peg$FAILED) { + s4 = [s4, s5, s6, s7]; + s3 = s4; + } else { + peg$currPos = s3; + s3 = peg$FAILED; + } + } else { + peg$currPos = s3; + s3 = peg$FAILED; + } + while (s3 !== peg$FAILED) { + s2.push(s3); + s3 = peg$currPos; + s4 = peg$parse__(); + if (input.charCodeAt(peg$currPos) === 44) { + s5 = peg$c106; + peg$currPos++; + } else { + s5 = peg$FAILED; + if (peg$silentFails === 0) { + peg$fail(peg$e129); + } + } + if (s5 !== peg$FAILED) { + s6 = peg$parse__(); + s7 = peg$parseSymbol(); + if (s7 !== peg$FAILED) { + s4 = [s4, s5, s6, s7]; + s3 = s4; + } else { + peg$currPos = s3; + s3 = peg$FAILED; + } + } else { + peg$currPos = s3; + s3 = peg$FAILED; + } + } + peg$savedPos = s0; + s0 = peg$f46(s1, s2); + } else { + peg$currPos = s0; + s0 = peg$FAILED; + } + + if (s0 !== peg$FAILED) { + peg$tracer.trace({ + type: 'rule.match', + rule: 'SymbolList', + result: s0, + location: peg$computeLocation(startPos, peg$currPos), + }); + } else { + peg$tracer.trace({ + type: 'rule.fail', + rule: 'SymbolList', + location: peg$computeLocation(startPos, startPos), + }); + } + + return s0; + } + + function peg$parseSymbol() { + var startPos = peg$currPos; + var s0, s1, s2, s3, s4, s5, s6; + + peg$tracer.trace({ + type: 'rule.enter', + rule: 'Symbol', + location: peg$computeLocation(startPos, startPos), + }); + + s0 = peg$currPos; + s1 = peg$parseIdentifier(); + if (s1 !== peg$FAILED) { + s2 = peg$parse__(); + s3 = peg$currPos; + s4 = peg$parseAsToken(); + if (s4 !== peg$FAILED) { + s5 = peg$parse__(); + s6 = peg$parseIdentifier(); + if (s6 !== peg$FAILED) { + s4 = [s4, s5, s6]; + s3 = s4; + } else { + peg$currPos = s3; + s3 = peg$FAILED; + } + } else { + peg$currPos = s3; + s3 = peg$FAILED; + } + if (s3 === peg$FAILED) { + s3 = null; + } + peg$savedPos = s0; + s0 = peg$f98(s1, s3); + } else { + peg$currPos = s0; + s0 = peg$FAILED; + } + + if (s0 !== peg$FAILED) { + peg$tracer.trace({ + type: 'rule.match', + rule: 'Symbol', + result: s0, + location: peg$computeLocation(startPos, peg$currPos), + }); + } else { + peg$tracer.trace({ + type: 'rule.fail', + rule: 'Symbol', + location: peg$computeLocation(startPos, startPos), + }); + } + + return s0; + } + + function peg$parseGlobalSymbol() { + var startPos = peg$currPos; + var s0, s1, s2, s3, s4, s5, s6; + + peg$tracer.trace({ + type: 'rule.enter', + rule: 'GlobalSymbol', + location: peg$computeLocation(startPos, startPos), + }); + + s0 = peg$currPos; + if (input.charCodeAt(peg$currPos) === 42) { + s1 = peg$c122; + peg$currPos++; + } else { + s1 = peg$FAILED; + if (peg$silentFails === 0) { + peg$fail(peg$e145); + } + } + if (s1 !== peg$FAILED) { + s2 = peg$parse__(); + s3 = peg$currPos; + s4 = peg$parseAsToken(); + if (s4 !== peg$FAILED) { + s5 = peg$parse__(); + s6 = peg$parseIdentifier(); + if (s6 !== peg$FAILED) { + s4 = [s4, s5, s6]; + s3 = s4; + } else { + peg$currPos = s3; + s3 = peg$FAILED; + } + } else { + peg$currPos = s3; + s3 = peg$FAILED; + } + if (s3 !== peg$FAILED) { + peg$savedPos = s0; + s0 = peg$f99(s1, s3); + } else { + peg$currPos = s0; + s0 = peg$FAILED; + } + } else { + peg$currPos = s0; + s0 = peg$FAILED; + } + + if (s0 !== peg$FAILED) { + peg$tracer.trace({ + type: 'rule.match', + rule: 'GlobalSymbol', + result: s0, + location: peg$computeLocation(startPos, peg$currPos), + }); + } else { + peg$tracer.trace({ + type: 'rule.fail', + rule: 'GlobalSymbol', + location: peg$computeLocation(startPos, startPos), + }); + } + + return s0; + } + + function peg$parseIterationStatement() { + var startPos = peg$currPos; + var s0, + s1, + s2, + s3, + s4, + s5, + s6, + s7, + s8, + s9, + s10, + s11, + s12, + s13, + s14, + s15, + s16, + s17; + + peg$tracer.trace({ + type: 'rule.enter', + rule: 'IterationStatement', + location: peg$computeLocation(startPos, startPos), + }); + + s0 = peg$currPos; + s1 = peg$parseDoToken(); + if (s1 !== peg$FAILED) { + s2 = peg$parse__(); + s3 = peg$parseStatement(); + if (s3 !== peg$FAILED) { + s4 = peg$parse__(); + s5 = peg$parseWhileToken(); + if (s5 !== peg$FAILED) { + s6 = peg$parse__(); + if (input.charCodeAt(peg$currPos) === 40) { + s7 = peg$c107; + peg$currPos++; + } else { + s7 = peg$FAILED; + if (peg$silentFails === 0) { + peg$fail(peg$e130); + } + } + if (s7 !== peg$FAILED) { + s8 = peg$parse__(); + s9 = peg$parseExpression(); + s10 = peg$parse__(); + if (input.charCodeAt(peg$currPos) === 41) { + s11 = peg$c108; + peg$currPos++; + } else { + s11 = peg$FAILED; + if (peg$silentFails === 0) { + peg$fail(peg$e131); + } + } + if (s11 !== peg$FAILED) { + s12 = peg$parseEOS(); + if (s12 !== peg$FAILED) { + peg$savedPos = s0; + s0 = peg$f100(s3, s9); + } else { + peg$currPos = s0; + s0 = peg$FAILED; + } + } else { + peg$currPos = s0; + s0 = peg$FAILED; + } + } else { + peg$currPos = s0; + s0 = peg$FAILED; + } + } else { + peg$currPos = s0; + s0 = peg$FAILED; + } + } else { + peg$currPos = s0; + s0 = peg$FAILED; + } + } else { + peg$currPos = s0; + s0 = peg$FAILED; + } + if (s0 === peg$FAILED) { + s0 = peg$currPos; + s1 = peg$parseWhileToken(); + if (s1 !== peg$FAILED) { + s2 = peg$parse__(); + if (input.charCodeAt(peg$currPos) === 40) { + s3 = peg$c107; + peg$currPos++; + } else { + s3 = peg$FAILED; + if (peg$silentFails === 0) { + peg$fail(peg$e130); + } + } + if (s3 !== peg$FAILED) { + s4 = peg$parse__(); + s5 = peg$parseExpression(); + s6 = peg$parse__(); + if (input.charCodeAt(peg$currPos) === 41) { + s7 = peg$c108; + peg$currPos++; + } else { + s7 = peg$FAILED; + if (peg$silentFails === 0) { + peg$fail(peg$e131); + } + } + if (s7 !== peg$FAILED) { + s8 = peg$parse__(); + s9 = peg$parseStatement(); + if (s9 !== peg$FAILED) { + peg$savedPos = s0; + s0 = peg$f101(s5, s9); + } else { + peg$currPos = s0; + s0 = peg$FAILED; + } + } else { + peg$currPos = s0; + s0 = peg$FAILED; + } + } else { + peg$currPos = s0; + s0 = peg$FAILED; + } + } else { + peg$currPos = s0; + s0 = peg$FAILED; + } + if (s0 === peg$FAILED) { + s0 = peg$currPos; + s1 = peg$parseForToken(); + if (s1 !== peg$FAILED) { + s2 = peg$parse__(); + if (input.charCodeAt(peg$currPos) === 40) { + s3 = peg$c107; + peg$currPos++; + } else { + s3 = peg$FAILED; + if (peg$silentFails === 0) { + peg$fail(peg$e130); + } + } + if (s3 !== peg$FAILED) { + s4 = peg$parse__(); + s5 = peg$currPos; + s6 = peg$parseExpression(); + s7 = peg$parse__(); + s6 = [s6, s7]; + s5 = s6; + if (input.charCodeAt(peg$currPos) === 59) { + s6 = peg$c105; + peg$currPos++; + } else { + s6 = peg$FAILED; + if (peg$silentFails === 0) { + peg$fail(peg$e128); + } + } + if (s6 !== peg$FAILED) { + s7 = peg$parse__(); + s8 = peg$currPos; + s9 = peg$parseExpression(); + s10 = peg$parse__(); + s9 = [s9, s10]; + s8 = s9; + if (input.charCodeAt(peg$currPos) === 59) { + s9 = peg$c105; + peg$currPos++; + } else { + s9 = peg$FAILED; + if (peg$silentFails === 0) { + peg$fail(peg$e128); + } + } + if (s9 !== peg$FAILED) { + s10 = peg$parse__(); + s11 = peg$currPos; + s12 = peg$parseExpression(); + s13 = peg$parse__(); + s12 = [s12, s13]; + s11 = s12; + if (input.charCodeAt(peg$currPos) === 41) { + s12 = peg$c108; + peg$currPos++; + } else { + s12 = peg$FAILED; + if (peg$silentFails === 0) { + peg$fail(peg$e131); + } + } + if (s12 !== peg$FAILED) { + s13 = peg$parse__(); + s14 = peg$parseStatement(); + if (s14 !== peg$FAILED) { + peg$savedPos = s0; + s0 = peg$f102(s5, s8, s11, s14); + } else { + peg$currPos = s0; + s0 = peg$FAILED; + } + } else { + peg$currPos = s0; + s0 = peg$FAILED; + } + } else { + peg$currPos = s0; + s0 = peg$FAILED; + } + } else { + peg$currPos = s0; + s0 = peg$FAILED; + } + } else { + peg$currPos = s0; + s0 = peg$FAILED; + } + } else { + peg$currPos = s0; + s0 = peg$FAILED; + } + if (s0 === peg$FAILED) { + s0 = peg$currPos; + s1 = peg$parseForToken(); + if (s1 !== peg$FAILED) { + s2 = peg$parse__(); + if (input.charCodeAt(peg$currPos) === 40) { + s3 = peg$c107; + peg$currPos++; + } else { + s3 = peg$FAILED; + if (peg$silentFails === 0) { + peg$fail(peg$e130); + } + } + if (s3 !== peg$FAILED) { + s4 = peg$parse__(); + s5 = peg$parseVarToken(); + if (s5 !== peg$FAILED) { + s6 = peg$parse__(); + s7 = peg$parseVariableDeclarationList(); + if (s7 !== peg$FAILED) { + s8 = peg$parse__(); + if (input.charCodeAt(peg$currPos) === 59) { + s9 = peg$c105; + peg$currPos++; + } else { + s9 = peg$FAILED; + if (peg$silentFails === 0) { + peg$fail(peg$e128); + } + } + if (s9 !== peg$FAILED) { + s10 = peg$parse__(); + s11 = peg$currPos; + s12 = peg$parseExpression(); + s13 = peg$parse__(); + s12 = [s12, s13]; + s11 = s12; + if (input.charCodeAt(peg$currPos) === 59) { + s12 = peg$c105; + peg$currPos++; + } else { + s12 = peg$FAILED; + if (peg$silentFails === 0) { + peg$fail(peg$e128); + } + } + if (s12 !== peg$FAILED) { + s13 = peg$parse__(); + s14 = peg$currPos; + s15 = peg$parseExpression(); + s16 = peg$parse__(); + s15 = [s15, s16]; + s14 = s15; + if (input.charCodeAt(peg$currPos) === 41) { + s15 = peg$c108; + peg$currPos++; + } else { + s15 = peg$FAILED; + if (peg$silentFails === 0) { + peg$fail(peg$e131); + } + } + if (s15 !== peg$FAILED) { + s16 = peg$parse__(); + s17 = peg$parseStatement(); + if (s17 !== peg$FAILED) { + peg$savedPos = s0; + s0 = peg$f103(s7, s11, s14, s17); + } else { + peg$currPos = s0; + s0 = peg$FAILED; + } + } else { + peg$currPos = s0; + s0 = peg$FAILED; + } + } else { + peg$currPos = s0; + s0 = peg$FAILED; + } + } else { + peg$currPos = s0; + s0 = peg$FAILED; + } + } else { + peg$currPos = s0; + s0 = peg$FAILED; + } + } else { + peg$currPos = s0; + s0 = peg$FAILED; + } + } else { + peg$currPos = s0; + s0 = peg$FAILED; + } + } else { + peg$currPos = s0; + s0 = peg$FAILED; + } + } + } + } + + if (s0 !== peg$FAILED) { + peg$tracer.trace({ + type: 'rule.match', + rule: 'IterationStatement', + result: s0, + location: peg$computeLocation(startPos, peg$currPos), + }); + } else { + peg$tracer.trace({ + type: 'rule.fail', + rule: 'IterationStatement', + location: peg$computeLocation(startPos, startPos), + }); + } + + return s0; + } + + function peg$parseInlineAssemblyStatement() { + var startPos = peg$currPos; + var s0, s1, s2, s3; + + peg$tracer.trace({ + type: 'rule.enter', + rule: 'InlineAssemblyStatement', + location: peg$computeLocation(startPos, startPos), + }); + + s0 = peg$currPos; + if (input.substr(peg$currPos, 8) === peg$c151) { + s1 = peg$c151; + peg$currPos += 8; + } else { + s1 = peg$FAILED; + if (peg$silentFails === 0) { + peg$fail(peg$e178); + } + } + if (s1 !== peg$FAILED) { + s2 = peg$parse__(); + s3 = peg$parseInlineAssemblyBlock(); + if (s3 !== peg$FAILED) { + peg$savedPos = s0; + s0 = peg$f104(s3); + } else { + peg$currPos = s0; + s0 = peg$FAILED; + } + } else { + peg$currPos = s0; + s0 = peg$FAILED; + } + + if (s0 !== peg$FAILED) { + peg$tracer.trace({ + type: 'rule.match', + rule: 'InlineAssemblyStatement', + result: s0, + location: peg$computeLocation(startPos, peg$currPos), + }); + } else { + peg$tracer.trace({ + type: 'rule.fail', + rule: 'InlineAssemblyStatement', + location: peg$computeLocation(startPos, startPos), + }); + } + + return s0; + } + + function peg$parsePlaceholderStatement() { + var startPos = peg$currPos; + var s0, s1, s2, s3, s4; + + peg$tracer.trace({ + type: 'rule.enter', + rule: 'PlaceholderStatement', + location: peg$computeLocation(startPos, startPos), + }); + + s0 = peg$currPos; + if (input.charCodeAt(peg$currPos) === 95) { + s1 = peg$c15; + peg$currPos++; + } else { + s1 = peg$FAILED; + if (peg$silentFails === 0) { + peg$fail(peg$e21); + } + } + if (s1 !== peg$FAILED) { + s2 = peg$currPos; + s3 = peg$parse__(); + s4 = peg$parseEOS(); + if (s4 !== peg$FAILED) { + s3 = [s3, s4]; + s2 = s3; + } else { + peg$currPos = s2; + s2 = peg$FAILED; + } + if (s2 === peg$FAILED) { + s2 = null; + } + peg$savedPos = s0; + s0 = peg$f105(); + } else { + peg$currPos = s0; + s0 = peg$FAILED; + } + + if (s0 !== peg$FAILED) { + peg$tracer.trace({ + type: 'rule.match', + rule: 'PlaceholderStatement', + result: s0, + location: peg$computeLocation(startPos, peg$currPos), + }); + } else { + peg$tracer.trace({ + type: 'rule.fail', + rule: 'PlaceholderStatement', + location: peg$computeLocation(startPos, startPos), + }); + } + + return s0; + } + + function peg$parseContinueStatement() { + var startPos = peg$currPos; + var s0, s1, s2, s3, s4; + + peg$tracer.trace({ + type: 'rule.enter', + rule: 'ContinueStatement', + location: peg$computeLocation(startPos, startPos), + }); + + s0 = peg$currPos; + s1 = peg$parseContinueToken(); + if (s1 !== peg$FAILED) { + s2 = peg$parseEOS(); + if (s2 !== peg$FAILED) { + peg$savedPos = s0; + s0 = peg$f106(); + } else { + peg$currPos = s0; + s0 = peg$FAILED; + } + } else { + peg$currPos = s0; + s0 = peg$FAILED; + } + if (s0 === peg$FAILED) { + s0 = peg$currPos; + s1 = peg$parseContinueToken(); + if (s1 !== peg$FAILED) { + s2 = peg$parse_(); + s3 = peg$parseIdentifier(); + if (s3 !== peg$FAILED) { + s4 = peg$parseEOS(); + if (s4 !== peg$FAILED) { + peg$savedPos = s0; + s0 = peg$f107(s3); + } else { + peg$currPos = s0; + s0 = peg$FAILED; + } + } else { + peg$currPos = s0; + s0 = peg$FAILED; + } + } else { + peg$currPos = s0; + s0 = peg$FAILED; + } + } + + if (s0 !== peg$FAILED) { + peg$tracer.trace({ + type: 'rule.match', + rule: 'ContinueStatement', + result: s0, + location: peg$computeLocation(startPos, peg$currPos), + }); + } else { + peg$tracer.trace({ + type: 'rule.fail', + rule: 'ContinueStatement', + location: peg$computeLocation(startPos, startPos), + }); + } + + return s0; + } + + function peg$parseBreakStatement() { + var startPos = peg$currPos; + var s0, s1, s2, s3, s4; + + peg$tracer.trace({ + type: 'rule.enter', + rule: 'BreakStatement', + location: peg$computeLocation(startPos, startPos), + }); + + s0 = peg$currPos; + s1 = peg$parseBreakToken(); + if (s1 !== peg$FAILED) { + s2 = peg$parseEOS(); + if (s2 !== peg$FAILED) { + peg$savedPos = s0; + s0 = peg$f108(); + } else { + peg$currPos = s0; + s0 = peg$FAILED; + } + } else { + peg$currPos = s0; + s0 = peg$FAILED; + } + if (s0 === peg$FAILED) { + s0 = peg$currPos; + s1 = peg$parseBreakToken(); + if (s1 !== peg$FAILED) { + s2 = peg$parse_(); + s3 = peg$parseIdentifier(); + if (s3 !== peg$FAILED) { + s4 = peg$parseEOS(); + if (s4 !== peg$FAILED) { + peg$savedPos = s0; + s0 = peg$f109(s3); + } else { + peg$currPos = s0; + s0 = peg$FAILED; + } + } else { + peg$currPos = s0; + s0 = peg$FAILED; + } + } else { + peg$currPos = s0; + s0 = peg$FAILED; + } + } + + if (s0 !== peg$FAILED) { + peg$tracer.trace({ + type: 'rule.match', + rule: 'BreakStatement', + result: s0, + location: peg$computeLocation(startPos, peg$currPos), + }); + } else { + peg$tracer.trace({ + type: 'rule.fail', + rule: 'BreakStatement', + location: peg$computeLocation(startPos, startPos), + }); + } + + return s0; + } + + function peg$parseReturnStatement() { + var startPos = peg$currPos; + var s0, s1, s2, s3, s4; + + peg$tracer.trace({ + type: 'rule.enter', + rule: 'ReturnStatement', + location: peg$computeLocation(startPos, startPos), + }); + + s0 = peg$currPos; + s1 = peg$parseReturnToken(); + if (s1 !== peg$FAILED) { + s2 = peg$parseEOS(); + if (s2 !== peg$FAILED) { + peg$savedPos = s0; + s0 = peg$f110(); + } else { + peg$currPos = s0; + s0 = peg$FAILED; + } + } else { + peg$currPos = s0; + s0 = peg$FAILED; + } + if (s0 === peg$FAILED) { + s0 = peg$currPos; + s1 = peg$parseReturnToken(); + if (s1 !== peg$FAILED) { + s2 = peg$parse__(); + s3 = peg$parseExpression(); + s4 = peg$parseEOS(); + if (s4 !== peg$FAILED) { + peg$savedPos = s0; + s0 = peg$f111(s3); + } else { + peg$currPos = s0; + s0 = peg$FAILED; + } + } else { + peg$currPos = s0; + s0 = peg$FAILED; + } + } + + if (s0 !== peg$FAILED) { + peg$tracer.trace({ + type: 'rule.match', + rule: 'ReturnStatement', + result: s0, + location: peg$computeLocation(startPos, peg$currPos), + }); + } else { + peg$tracer.trace({ + type: 'rule.fail', + rule: 'ReturnStatement', + location: peg$computeLocation(startPos, startPos), + }); + } + + return s0; + } + + function peg$parseThrowStatement() { + var startPos = peg$currPos; + var s0, s1, s2; + + peg$tracer.trace({ + type: 'rule.enter', + rule: 'ThrowStatement', + location: peg$computeLocation(startPos, startPos), + }); + + s0 = peg$currPos; + s1 = peg$parseThrowToken(); + if (s1 !== peg$FAILED) { + s2 = peg$parseEOS(); + if (s2 !== peg$FAILED) { + peg$savedPos = s0; + s0 = peg$f112(); + } else { + peg$currPos = s0; + s0 = peg$FAILED; + } + } else { + peg$currPos = s0; + s0 = peg$FAILED; + } + + if (s0 !== peg$FAILED) { + peg$tracer.trace({ + type: 'rule.match', + rule: 'ThrowStatement', + result: s0, + location: peg$computeLocation(startPos, peg$currPos), + }); + } else { + peg$tracer.trace({ + type: 'rule.fail', + rule: 'ThrowStatement', + location: peg$computeLocation(startPos, startPos), + }); + } + + return s0; + } + + function peg$parseContractStatement() { + var startPos = peg$currPos; + var s0, s1, s2, s3, s4, s5, s6, s7, s8, s9, s10, s11, s12, s13; + + peg$tracer.trace({ + type: 'rule.enter', + rule: 'ContractStatement', + location: peg$computeLocation(startPos, startPos), + }); + + s0 = peg$currPos; + s1 = peg$parseAbstractToken(); + if (s1 === peg$FAILED) { + s1 = null; + } + s2 = peg$parse__(); + s3 = peg$parseContractToken(); + if (s3 !== peg$FAILED) { + s4 = peg$parse__(); + s5 = peg$parseIdentifier(); + if (s5 !== peg$FAILED) { + s6 = peg$parse__(); + s7 = peg$parseIsStatement(); + if (s7 === peg$FAILED) { + s7 = null; + } + s8 = peg$parse__(); + if (input.charCodeAt(peg$currPos) === 123) { + s9 = peg$c111; + peg$currPos++; + } else { + s9 = peg$FAILED; + if (peg$silentFails === 0) { + peg$fail(peg$e134); + } + } + if (s9 !== peg$FAILED) { + s10 = peg$parse__(); + s11 = peg$parseSourceElements(); + if (s11 === peg$FAILED) { + s11 = null; + } + s12 = peg$parse__(); + if (input.charCodeAt(peg$currPos) === 125) { + s13 = peg$c112; + peg$currPos++; + } else { + s13 = peg$FAILED; + if (peg$silentFails === 0) { + peg$fail(peg$e135); + } + } + if (s13 !== peg$FAILED) { + peg$savedPos = s0; + s0 = peg$f113(s1, s5, s7, s11); + } else { + peg$currPos = s0; + s0 = peg$FAILED; + } + } else { + peg$currPos = s0; + s0 = peg$FAILED; + } + } else { + peg$currPos = s0; + s0 = peg$FAILED; + } + } else { + peg$currPos = s0; + s0 = peg$FAILED; + } + + if (s0 !== peg$FAILED) { + peg$tracer.trace({ + type: 'rule.match', + rule: 'ContractStatement', + result: s0, + location: peg$computeLocation(startPos, peg$currPos), + }); + } else { + peg$tracer.trace({ + type: 'rule.fail', + rule: 'ContractStatement', + location: peg$computeLocation(startPos, startPos), + }); + } + + return s0; + } + + function peg$parseInterfaceStatement() { + var startPos = peg$currPos; + var s0, s1, s2, s3, s4, s5, s6, s7, s8, s9, s10, s11; + + peg$tracer.trace({ + type: 'rule.enter', + rule: 'InterfaceStatement', + location: peg$computeLocation(startPos, startPos), + }); + + s0 = peg$currPos; + s1 = peg$parseInterfaceToken(); + if (s1 !== peg$FAILED) { + s2 = peg$parse__(); + s3 = peg$parseIdentifier(); + if (s3 !== peg$FAILED) { + s4 = peg$parse__(); + s5 = peg$parseIsStatement(); + if (s5 === peg$FAILED) { + s5 = null; + } + s6 = peg$parse__(); + if (input.charCodeAt(peg$currPos) === 123) { + s7 = peg$c111; + peg$currPos++; + } else { + s7 = peg$FAILED; + if (peg$silentFails === 0) { + peg$fail(peg$e134); + } + } + if (s7 !== peg$FAILED) { + s8 = peg$parse__(); + s9 = peg$parseSourceElements(); + if (s9 === peg$FAILED) { + s9 = null; + } + s10 = peg$parse__(); + if (input.charCodeAt(peg$currPos) === 125) { + s11 = peg$c112; + peg$currPos++; + } else { + s11 = peg$FAILED; + if (peg$silentFails === 0) { + peg$fail(peg$e135); + } + } + if (s11 !== peg$FAILED) { + peg$savedPos = s0; + s0 = peg$f114(s3, s5, s9); + } else { + peg$currPos = s0; + s0 = peg$FAILED; + } + } else { + peg$currPos = s0; + s0 = peg$FAILED; + } + } else { + peg$currPos = s0; + s0 = peg$FAILED; + } + } else { + peg$currPos = s0; + s0 = peg$FAILED; + } + + if (s0 !== peg$FAILED) { + peg$tracer.trace({ + type: 'rule.match', + rule: 'InterfaceStatement', + result: s0, + location: peg$computeLocation(startPos, peg$currPos), + }); + } else { + peg$tracer.trace({ + type: 'rule.fail', + rule: 'InterfaceStatement', + location: peg$computeLocation(startPos, startPos), + }); + } + + return s0; + } + + function peg$parseLibraryStatement() { + var startPos = peg$currPos; + var s0, s1, s2, s3, s4, s5, s6, s7, s8, s9, s10, s11; + + peg$tracer.trace({ + type: 'rule.enter', + rule: 'LibraryStatement', + location: peg$computeLocation(startPos, startPos), + }); + + s0 = peg$currPos; + s1 = peg$parseLibraryToken(); + if (s1 !== peg$FAILED) { + s2 = peg$parse__(); + s3 = peg$parseIdentifier(); + if (s3 !== peg$FAILED) { + s4 = peg$parse__(); + s5 = peg$parseIsStatement(); + if (s5 === peg$FAILED) { + s5 = null; + } + s6 = peg$parse__(); + if (input.charCodeAt(peg$currPos) === 123) { + s7 = peg$c111; + peg$currPos++; + } else { + s7 = peg$FAILED; + if (peg$silentFails === 0) { + peg$fail(peg$e134); + } + } + if (s7 !== peg$FAILED) { + s8 = peg$parse__(); + s9 = peg$parseSourceElements(); + if (s9 === peg$FAILED) { + s9 = null; + } + s10 = peg$parse__(); + if (input.charCodeAt(peg$currPos) === 125) { + s11 = peg$c112; + peg$currPos++; + } else { + s11 = peg$FAILED; + if (peg$silentFails === 0) { + peg$fail(peg$e135); + } + } + if (s11 !== peg$FAILED) { + peg$savedPos = s0; + s0 = peg$f115(s3, s5, s9); + } else { + peg$currPos = s0; + s0 = peg$FAILED; + } + } else { + peg$currPos = s0; + s0 = peg$FAILED; + } + } else { + peg$currPos = s0; + s0 = peg$FAILED; + } + } else { + peg$currPos = s0; + s0 = peg$FAILED; + } + + if (s0 !== peg$FAILED) { + peg$tracer.trace({ + type: 'rule.match', + rule: 'LibraryStatement', + result: s0, + location: peg$computeLocation(startPos, peg$currPos), + }); + } else { + peg$tracer.trace({ + type: 'rule.fail', + rule: 'LibraryStatement', + location: peg$computeLocation(startPos, startPos), + }); + } + + return s0; + } + + function peg$parseIsStatement() { + var startPos = peg$currPos; + var s0, s1, s2, s3; + + peg$tracer.trace({ + type: 'rule.enter', + rule: 'IsStatement', + location: peg$computeLocation(startPos, startPos), + }); + + s0 = peg$currPos; + s1 = peg$parseIsToken(); + if (s1 !== peg$FAILED) { + s2 = peg$parse__(); + s3 = peg$parseCommaSeparatedModifierNameList(); + if (s3 !== peg$FAILED) { + peg$savedPos = s0; + s0 = peg$f116(s3); + } else { + peg$currPos = s0; + s0 = peg$FAILED; + } + } else { + peg$currPos = s0; + s0 = peg$FAILED; + } + + if (s0 !== peg$FAILED) { + peg$tracer.trace({ + type: 'rule.match', + rule: 'IsStatement', + result: s0, + location: peg$computeLocation(startPos, peg$currPos), + }); + } else { + peg$tracer.trace({ + type: 'rule.fail', + rule: 'IsStatement', + location: peg$computeLocation(startPos, startPos), + }); + } + + return s0; + } + + function peg$parseErrorDeclaration() { + var startPos = peg$currPos; + var s0, s1, s2, s3, s4, s5, s6, s7; + + peg$tracer.trace({ + type: 'rule.enter', + rule: 'ErrorDeclaration', + location: peg$computeLocation(startPos, startPos), + }); + + s0 = peg$currPos; + s1 = peg$parseErrorToken(); + if (s1 !== peg$FAILED) { + s2 = peg$parse__(); + s3 = peg$parseFunctionName(); + if (s3 !== peg$FAILED) { + s4 = peg$parse__(); + s5 = peg$parseAnonymousToken(); + if (s5 === peg$FAILED) { + s5 = null; + } + s6 = peg$parse__(); + s7 = peg$parseEOS(); + if (s7 !== peg$FAILED) { + peg$savedPos = s0; + s0 = peg$f117(s3, s5); + } else { + peg$currPos = s0; + s0 = peg$FAILED; + } + } else { + peg$currPos = s0; + s0 = peg$FAILED; + } + } else { + peg$currPos = s0; + s0 = peg$FAILED; + } + + if (s0 !== peg$FAILED) { + peg$tracer.trace({ + type: 'rule.match', + rule: 'ErrorDeclaration', + result: s0, + location: peg$computeLocation(startPos, peg$currPos), + }); + } else { + peg$tracer.trace({ + type: 'rule.fail', + rule: 'ErrorDeclaration', + location: peg$computeLocation(startPos, startPos), + }); + } + + return s0; + } + + function peg$parseEventDeclaration() { + var startPos = peg$currPos; + var s0, s1, s2, s3, s4, s5, s6, s7; + + peg$tracer.trace({ + type: 'rule.enter', + rule: 'EventDeclaration', + location: peg$computeLocation(startPos, startPos), + }); + + s0 = peg$currPos; + s1 = peg$parseEventToken(); + if (s1 !== peg$FAILED) { + s2 = peg$parse__(); + s3 = peg$parseFunctionName(); + if (s3 !== peg$FAILED) { + s4 = peg$parse__(); + s5 = peg$parseAnonymousToken(); + if (s5 === peg$FAILED) { + s5 = null; + } + s6 = peg$parse__(); + s7 = peg$parseEOS(); + if (s7 !== peg$FAILED) { + peg$savedPos = s0; + s0 = peg$f118(s3, s5); + } else { + peg$currPos = s0; + s0 = peg$FAILED; + } + } else { + peg$currPos = s0; + s0 = peg$FAILED; + } + } else { + peg$currPos = s0; + s0 = peg$FAILED; + } + + if (s0 !== peg$FAILED) { + peg$tracer.trace({ + type: 'rule.match', + rule: 'EventDeclaration', + result: s0, + location: peg$computeLocation(startPos, peg$currPos), + }); + } else { + peg$tracer.trace({ + type: 'rule.fail', + rule: 'EventDeclaration', + location: peg$computeLocation(startPos, startPos), + }); + } + + return s0; + } + + function peg$parseModifierDeclaration() { + var startPos = peg$currPos; + var s0, s1, s2, s3, s4, s5, s6, s7; + + peg$tracer.trace({ + type: 'rule.enter', + rule: 'ModifierDeclaration', + location: peg$computeLocation(startPos, startPos), + }); + + s0 = peg$currPos; + s1 = peg$parseModifierToken(); + if (s1 !== peg$FAILED) { + s2 = peg$parse__(); + s3 = peg$parseModifierName(); + if (s3 !== peg$FAILED) { + s4 = peg$parse__(); + s5 = peg$parseModifierNameList(); + if (s5 === peg$FAILED) { + s5 = null; + } + s6 = peg$parse__(); + s7 = peg$parseFunctionBody(); + if (s7 !== peg$FAILED) { + peg$savedPos = s0; + s0 = peg$f119(s3, s5, s7); + } else { + peg$currPos = s0; + s0 = peg$FAILED; + } + } else { + peg$currPos = s0; + s0 = peg$FAILED; + } + } else { + peg$currPos = s0; + s0 = peg$FAILED; + } + + if (s0 !== peg$FAILED) { + peg$tracer.trace({ + type: 'rule.match', + rule: 'ModifierDeclaration', + result: s0, + location: peg$computeLocation(startPos, peg$currPos), + }); + } else { + peg$tracer.trace({ + type: 'rule.fail', + rule: 'ModifierDeclaration', + location: peg$computeLocation(startPos, startPos), + }); + } + + return s0; + } + + function peg$parseFunctionDeclaration() { + var startPos = peg$currPos; + var s0, s1, s2, s3, s4, s5, s6, s7, s8, s9; + + peg$tracer.trace({ + type: 'rule.enter', + rule: 'FunctionDeclaration', + location: peg$computeLocation(startPos, startPos), + }); + + s0 = peg$currPos; + s1 = peg$parseFunctionToken(); + if (s1 !== peg$FAILED) { + s2 = peg$parse__(); + s3 = peg$parseFunctionName(); + if (s3 !== peg$FAILED) { + s4 = peg$parse__(); + s5 = peg$parseModifierArgumentList(); + if (s5 === peg$FAILED) { + s5 = null; + } + s6 = peg$parse__(); + s7 = peg$parseReturnsDeclarations(); + s8 = peg$parse__(); + s9 = peg$parseFunctionBody(); + if (s9 !== peg$FAILED) { + peg$savedPos = s0; + s0 = peg$f120(s3, s5, s7, s9); + } else { + peg$currPos = s0; + s0 = peg$FAILED; + } + } else { + peg$currPos = s0; + s0 = peg$FAILED; + } + } else { + peg$currPos = s0; + s0 = peg$FAILED; + } + if (s0 === peg$FAILED) { + s0 = peg$currPos; + s1 = peg$parseFunctionToken(); + if (s1 !== peg$FAILED) { + s2 = peg$parse__(); + s3 = peg$parseFunctionName(); + if (s3 !== peg$FAILED) { + s4 = peg$parse__(); + s5 = peg$parseModifierArgumentList(); + if (s5 === peg$FAILED) { + s5 = null; + } + s6 = peg$parse__(); + s7 = peg$parseReturnsDeclarations(); + s8 = peg$parse__(); + s9 = peg$parseEOS(); + if (s9 !== peg$FAILED) { + peg$savedPos = s0; + s0 = peg$f121(s3, s5, s7); + } else { + peg$currPos = s0; + s0 = peg$FAILED; + } + } else { + peg$currPos = s0; + s0 = peg$FAILED; + } + } else { + peg$currPos = s0; + s0 = peg$FAILED; + } + } + + if (s0 !== peg$FAILED) { + peg$tracer.trace({ + type: 'rule.match', + rule: 'FunctionDeclaration', + result: s0, + location: peg$computeLocation(startPos, peg$currPos), + }); + } else { + peg$tracer.trace({ + type: 'rule.fail', + rule: 'FunctionDeclaration', + location: peg$computeLocation(startPos, startPos), + }); + } + + return s0; + } + + function peg$parseConstructorDeclaration() { + var startPos = peg$currPos; + var s0, s1, s2, s3, s4, s5, s6, s7; + + peg$tracer.trace({ + type: 'rule.enter', + rule: 'ConstructorDeclaration', + location: peg$computeLocation(startPos, startPos), + }); + + s0 = peg$currPos; + s1 = peg$parseConstructorToken(); + if (s1 !== peg$FAILED) { + s2 = peg$parse__(); + s3 = peg$parseFunctionName(); + if (s3 !== peg$FAILED) { + s4 = peg$parse__(); + s5 = peg$parseModifierArgumentList(); + if (s5 === peg$FAILED) { + s5 = null; + } + s6 = peg$parse__(); + s7 = peg$parseFunctionBody(); + if (s7 !== peg$FAILED) { + peg$savedPos = s0; + s0 = peg$f122(s3, s5, s7); + } else { + peg$currPos = s0; + s0 = peg$FAILED; + } + } else { + peg$currPos = s0; + s0 = peg$FAILED; + } + } else { + peg$currPos = s0; + s0 = peg$FAILED; + } + + if (s0 !== peg$FAILED) { + peg$tracer.trace({ + type: 'rule.match', + rule: 'ConstructorDeclaration', + result: s0, + location: peg$computeLocation(startPos, peg$currPos), + }); + } else { + peg$tracer.trace({ + type: 'rule.fail', + rule: 'ConstructorDeclaration', + location: peg$computeLocation(startPos, startPos), + }); + } + + return s0; + } + + function peg$parseFallbackDeclaration() { + var startPos = peg$currPos; + var s0, s1, s2, s3, s4, s5, s6, s7; + + peg$tracer.trace({ + type: 'rule.enter', + rule: 'FallbackDeclaration', + location: peg$computeLocation(startPos, startPos), + }); + + s0 = peg$currPos; + s1 = peg$parseFallbackToken(); + if (s1 !== peg$FAILED) { + s2 = peg$parse__(); + s3 = peg$parseFunctionName(); + if (s3 !== peg$FAILED) { + s4 = peg$parse__(); + s5 = peg$parseModifierArgumentList(); + if (s5 === peg$FAILED) { + s5 = null; + } + s6 = peg$parse__(); + s7 = peg$parseFunctionBody(); + if (s7 !== peg$FAILED) { + peg$savedPos = s0; + s0 = peg$f123(s3, s5, s7); + } else { + peg$currPos = s0; + s0 = peg$FAILED; + } + } else { + peg$currPos = s0; + s0 = peg$FAILED; + } + } else { + peg$currPos = s0; + s0 = peg$FAILED; + } + + if (s0 !== peg$FAILED) { + peg$tracer.trace({ + type: 'rule.match', + rule: 'FallbackDeclaration', + result: s0, + location: peg$computeLocation(startPos, peg$currPos), + }); + } else { + peg$tracer.trace({ + type: 'rule.fail', + rule: 'FallbackDeclaration', + location: peg$computeLocation(startPos, startPos), + }); + } + + return s0; + } + + function peg$parseReceiveDeclaration() { + var startPos = peg$currPos; + var s0, s1, s2, s3, s4, s5, s6, s7; + + peg$tracer.trace({ + type: 'rule.enter', + rule: 'ReceiveDeclaration', + location: peg$computeLocation(startPos, startPos), + }); + + s0 = peg$currPos; + s1 = peg$parseReceiveToken(); + if (s1 !== peg$FAILED) { + s2 = peg$parse__(); + s3 = peg$parseFunctionName(); + if (s3 !== peg$FAILED) { + s4 = peg$parse__(); + s5 = peg$parseModifierArgumentList(); + if (s5 === peg$FAILED) { + s5 = null; + } + s6 = peg$parse__(); + s7 = peg$parseFunctionBody(); + if (s7 !== peg$FAILED) { + peg$savedPos = s0; + s0 = peg$f124(s3, s5, s7); + } else { + peg$currPos = s0; + s0 = peg$FAILED; + } + } else { + peg$currPos = s0; + s0 = peg$FAILED; + } + } else { + peg$currPos = s0; + s0 = peg$FAILED; + } + + if (s0 !== peg$FAILED) { + peg$tracer.trace({ + type: 'rule.match', + rule: 'ReceiveDeclaration', + result: s0, + location: peg$computeLocation(startPos, peg$currPos), + }); + } else { + peg$tracer.trace({ + type: 'rule.fail', + rule: 'ReceiveDeclaration', + location: peg$computeLocation(startPos, startPos), + }); + } + + return s0; + } + + function peg$parseReturnsDeclaration() { + var startPos = peg$currPos; + var s0, s1, s2, s3, s4, s5, s6, s7, s8; + + peg$tracer.trace({ + type: 'rule.enter', + rule: 'ReturnsDeclaration', + location: peg$computeLocation(startPos, startPos), + }); + + s0 = peg$currPos; + s1 = peg$parseReturnsToken(); + if (s1 !== peg$FAILED) { + s2 = peg$parse__(); + s3 = peg$currPos; + if (input.charCodeAt(peg$currPos) === 40) { + s4 = peg$c107; + peg$currPos++; + } else { + s4 = peg$FAILED; + if (peg$silentFails === 0) { + peg$fail(peg$e130); + } + } + if (s4 !== peg$FAILED) { + s5 = peg$parse__(); + s6 = peg$parseInformalParameterList(); + if (s6 !== peg$FAILED) { + s7 = peg$parse__(); + if (input.charCodeAt(peg$currPos) === 41) { + s8 = peg$c108; + peg$currPos++; + } else { + s8 = peg$FAILED; + if (peg$silentFails === 0) { + peg$fail(peg$e131); + } + } + if (s8 !== peg$FAILED) { + s4 = [s4, s5, s6, s7, s8]; + s3 = s4; + } else { + peg$currPos = s3; + s3 = peg$FAILED; + } + } else { + peg$currPos = s3; + s3 = peg$FAILED; + } + } else { + peg$currPos = s3; + s3 = peg$FAILED; + } + if (s3 !== peg$FAILED) { + peg$savedPos = s0; + s0 = peg$f125(s3); + } else { + peg$currPos = s0; + s0 = peg$FAILED; + } + } else { + peg$currPos = s0; + s0 = peg$FAILED; + } + + if (s0 !== peg$FAILED) { + peg$tracer.trace({ + type: 'rule.match', + rule: 'ReturnsDeclaration', + result: s0, + location: peg$computeLocation(startPos, peg$currPos), + }); + } else { + peg$tracer.trace({ + type: 'rule.fail', + rule: 'ReturnsDeclaration', + location: peg$computeLocation(startPos, startPos), + }); + } + + return s0; + } + + function peg$parseReturnsDeclarations() { + var startPos = peg$currPos; + var s0, s1; + + peg$tracer.trace({ + type: 'rule.enter', + rule: 'ReturnsDeclarations', + location: peg$computeLocation(startPos, startPos), + }); + + s0 = peg$currPos; + s1 = peg$parseReturnsDeclaration(); + if (s1 === peg$FAILED) { + s1 = null; + } + peg$savedPos = s0; + s1 = peg$f126(s1); + s0 = s1; + + if (s0 !== peg$FAILED) { + peg$tracer.trace({ + type: 'rule.match', + rule: 'ReturnsDeclarations', + result: s0, + location: peg$computeLocation(startPos, peg$currPos), + }); + } else { + peg$tracer.trace({ + type: 'rule.fail', + rule: 'ReturnsDeclarations', + location: peg$computeLocation(startPos, startPos), + }); + } + + return s0; + } + + function peg$parseFunctionName() { + var startPos = peg$currPos; + var s0, s1, s2, s3, s4, s5, s6, s7, s8; + + peg$tracer.trace({ + type: 'rule.enter', + rule: 'FunctionName', + location: peg$computeLocation(startPos, startPos), + }); + + s0 = peg$currPos; + s1 = peg$parseIdentifier(); + if (s1 === peg$FAILED) { + s1 = null; + } + s2 = peg$parse__(); + s3 = peg$currPos; + if (input.charCodeAt(peg$currPos) === 40) { + s4 = peg$c107; + peg$currPos++; + } else { + s4 = peg$FAILED; + if (peg$silentFails === 0) { + peg$fail(peg$e130); + } + } + if (s4 !== peg$FAILED) { + s5 = peg$parse__(); + s6 = peg$parseInformalParameterList(); + if (s6 === peg$FAILED) { + s6 = null; + } + s7 = peg$parse__(); + if (input.charCodeAt(peg$currPos) === 41) { + s8 = peg$c108; + peg$currPos++; + } else { + s8 = peg$FAILED; + if (peg$silentFails === 0) { + peg$fail(peg$e131); + } + } + if (s8 !== peg$FAILED) { + s4 = [s4, s5, s6, s7, s8]; + s3 = s4; + } else { + peg$currPos = s3; + s3 = peg$FAILED; + } + } else { + peg$currPos = s3; + s3 = peg$FAILED; + } + if (s3 !== peg$FAILED) { + peg$savedPos = s0; + s0 = peg$f127(s1, s3); + } else { + peg$currPos = s0; + s0 = peg$FAILED; + } + + if (s0 !== peg$FAILED) { + peg$tracer.trace({ + type: 'rule.match', + rule: 'FunctionName', + result: s0, + location: peg$computeLocation(startPos, peg$currPos), + }); + } else { + peg$tracer.trace({ + type: 'rule.fail', + rule: 'FunctionName', + location: peg$computeLocation(startPos, startPos), + }); + } + + return s0; + } + + function peg$parseModifierName() { + var startPos = peg$currPos; + var s0, s1, s2, s3, s4, s5, s6, s7, s8; + + peg$tracer.trace({ + type: 'rule.enter', + rule: 'ModifierName', + location: peg$computeLocation(startPos, startPos), + }); + + s0 = peg$currPos; + s1 = peg$parseIdentifier(); + if (s1 !== peg$FAILED) { + s2 = peg$parse__(); + s3 = peg$currPos; + if (input.charCodeAt(peg$currPos) === 40) { + s4 = peg$c107; + peg$currPos++; + } else { + s4 = peg$FAILED; + if (peg$silentFails === 0) { + peg$fail(peg$e130); + } + } + if (s4 !== peg$FAILED) { + s5 = peg$parse__(); + s6 = peg$parseInformalParameterList(); + if (s6 === peg$FAILED) { + s6 = null; + } + s7 = peg$parse__(); + if (input.charCodeAt(peg$currPos) === 41) { + s8 = peg$c108; + peg$currPos++; + } else { + s8 = peg$FAILED; + if (peg$silentFails === 0) { + peg$fail(peg$e131); + } + } + if (s8 !== peg$FAILED) { + s4 = [s4, s5, s6, s7, s8]; + s3 = s4; + } else { + peg$currPos = s3; + s3 = peg$FAILED; + } + } else { + peg$currPos = s3; + s3 = peg$FAILED; + } + if (s3 === peg$FAILED) { + s3 = null; + } + peg$savedPos = s0; + s0 = peg$f128(s1, s3); + } else { + peg$currPos = s0; + s0 = peg$FAILED; + } + + if (s0 !== peg$FAILED) { + peg$tracer.trace({ + type: 'rule.match', + rule: 'ModifierName', + result: s0, + location: peg$computeLocation(startPos, peg$currPos), + }); + } else { + peg$tracer.trace({ + type: 'rule.fail', + rule: 'ModifierName', + location: peg$computeLocation(startPos, startPos), + }); + } + + return s0; + } + + function peg$parseModifierArgument() { + var startPos = peg$currPos; + var s0, s1, s2, s3, s4, s5, s6, s7, s8; + + peg$tracer.trace({ + type: 'rule.enter', + rule: 'ModifierArgument', + location: peg$computeLocation(startPos, startPos), + }); + + s0 = peg$currPos; + s1 = peg$parseIdentifier(); + if (s1 !== peg$FAILED) { + s2 = peg$currPos; + s3 = peg$parse__(); + if (input.charCodeAt(peg$currPos) === 40) { + s4 = peg$c107; + peg$currPos++; + } else { + s4 = peg$FAILED; + if (peg$silentFails === 0) { + peg$fail(peg$e130); + } + } + if (s4 !== peg$FAILED) { + s5 = peg$parse__(); + s6 = peg$parseArgumentList(); + if (s6 === peg$FAILED) { + s6 = null; + } + s7 = peg$parse__(); + if (input.charCodeAt(peg$currPos) === 41) { + s8 = peg$c108; + peg$currPos++; + } else { + s8 = peg$FAILED; + if (peg$silentFails === 0) { + peg$fail(peg$e131); + } + } + if (s8 !== peg$FAILED) { + s3 = [s3, s4, s5, s6, s7, s8]; + s2 = s3; + } else { + peg$currPos = s2; + s2 = peg$FAILED; + } + } else { + peg$currPos = s2; + s2 = peg$FAILED; + } + if (s2 === peg$FAILED) { + s2 = null; + } + peg$savedPos = s0; + s0 = peg$f129(s1, s2); + } else { + peg$currPos = s0; + s0 = peg$FAILED; + } + + if (s0 !== peg$FAILED) { + peg$tracer.trace({ + type: 'rule.match', + rule: 'ModifierArgument', + result: s0, + location: peg$computeLocation(startPos, peg$currPos), + }); + } else { + peg$tracer.trace({ + type: 'rule.fail', + rule: 'ModifierArgument', + location: peg$computeLocation(startPos, startPos), + }); + } + + return s0; + } + + function peg$parseFunctionNameList() { + var startPos = peg$currPos; + var s0, s1, s2, s3, s4, s5; + + peg$tracer.trace({ + type: 'rule.enter', + rule: 'FunctionNameList', + location: peg$computeLocation(startPos, startPos), + }); + + s0 = peg$currPos; + s1 = peg$parseFunctionName(); + if (s1 !== peg$FAILED) { + s2 = []; + s3 = peg$currPos; + s4 = peg$parse__(); + s5 = peg$parseFunctionName(); + if (s5 !== peg$FAILED) { + s4 = [s4, s5]; + s3 = s4; + } else { + peg$currPos = s3; + s3 = peg$FAILED; + } + while (s3 !== peg$FAILED) { + s2.push(s3); + s3 = peg$currPos; + s4 = peg$parse__(); + s5 = peg$parseFunctionName(); + if (s5 !== peg$FAILED) { + s4 = [s4, s5]; + s3 = s4; + } else { + peg$currPos = s3; + s3 = peg$FAILED; + } + } + peg$savedPos = s0; + s0 = peg$f69(s1, s2); + } else { + peg$currPos = s0; + s0 = peg$FAILED; + } + + if (s0 !== peg$FAILED) { + peg$tracer.trace({ + type: 'rule.match', + rule: 'FunctionNameList', + result: s0, + location: peg$computeLocation(startPos, peg$currPos), + }); + } else { + peg$tracer.trace({ + type: 'rule.fail', + rule: 'FunctionNameList', + location: peg$computeLocation(startPos, startPos), + }); + } + + return s0; + } + + function peg$parseModifierNameList() { + var startPos = peg$currPos; + var s0, s1, s2, s3, s4, s5; + + peg$tracer.trace({ + type: 'rule.enter', + rule: 'ModifierNameList', + location: peg$computeLocation(startPos, startPos), + }); + + s0 = peg$currPos; + s1 = peg$parseModifierName(); + if (s1 !== peg$FAILED) { + s2 = []; + s3 = peg$currPos; + s4 = peg$parse__(); + s5 = peg$parseModifierName(); + if (s5 !== peg$FAILED) { + s4 = [s4, s5]; + s3 = s4; + } else { + peg$currPos = s3; + s3 = peg$FAILED; + } + while (s3 !== peg$FAILED) { + s2.push(s3); + s3 = peg$currPos; + s4 = peg$parse__(); + s5 = peg$parseModifierName(); + if (s5 !== peg$FAILED) { + s4 = [s4, s5]; + s3 = s4; + } else { + peg$currPos = s3; + s3 = peg$FAILED; + } + } + peg$savedPos = s0; + s0 = peg$f69(s1, s2); + } else { + peg$currPos = s0; + s0 = peg$FAILED; + } + + if (s0 !== peg$FAILED) { + peg$tracer.trace({ + type: 'rule.match', + rule: 'ModifierNameList', + result: s0, + location: peg$computeLocation(startPos, peg$currPos), + }); + } else { + peg$tracer.trace({ + type: 'rule.fail', + rule: 'ModifierNameList', + location: peg$computeLocation(startPos, startPos), + }); + } + + return s0; + } + + function peg$parseModifierArgumentList() { + var startPos = peg$currPos; + var s0, s1, s2, s3, s4, s5; + + peg$tracer.trace({ + type: 'rule.enter', + rule: 'ModifierArgumentList', + location: peg$computeLocation(startPos, startPos), + }); + + s0 = peg$currPos; + s1 = peg$parseModifierArgument(); + if (s1 !== peg$FAILED) { + s2 = []; + s3 = peg$currPos; + s4 = peg$parse__(); + s5 = peg$parseModifierArgument(); + if (s5 !== peg$FAILED) { + s4 = [s4, s5]; + s3 = s4; + } else { + peg$currPos = s3; + s3 = peg$FAILED; + } + while (s3 !== peg$FAILED) { + s2.push(s3); + s3 = peg$currPos; + s4 = peg$parse__(); + s5 = peg$parseModifierArgument(); + if (s5 !== peg$FAILED) { + s4 = [s4, s5]; + s3 = s4; + } else { + peg$currPos = s3; + s3 = peg$FAILED; + } + } + peg$savedPos = s0; + s0 = peg$f69(s1, s2); + } else { + peg$currPos = s0; + s0 = peg$FAILED; + } + + if (s0 !== peg$FAILED) { + peg$tracer.trace({ + type: 'rule.match', + rule: 'ModifierArgumentList', + result: s0, + location: peg$computeLocation(startPos, peg$currPos), + }); + } else { + peg$tracer.trace({ + type: 'rule.fail', + rule: 'ModifierArgumentList', + location: peg$computeLocation(startPos, startPos), + }); + } + + return s0; + } + + function peg$parseFunctionTypeModifierList() { + var startPos = peg$currPos; + var s0, s1, s2, s3, s4, s5; + + peg$tracer.trace({ + type: 'rule.enter', + rule: 'FunctionTypeModifierList', + location: peg$computeLocation(startPos, startPos), + }); + + s0 = peg$currPos; + s1 = peg$parseFunctionTypeModifier(); + if (s1 !== peg$FAILED) { + s2 = []; + s3 = peg$currPos; + s4 = peg$parse__(); + s5 = peg$parseFunctionTypeModifier(); + if (s5 !== peg$FAILED) { + s4 = [s4, s5]; + s3 = s4; + } else { + peg$currPos = s3; + s3 = peg$FAILED; + } + while (s3 !== peg$FAILED) { + s2.push(s3); + s3 = peg$currPos; + s4 = peg$parse__(); + s5 = peg$parseFunctionTypeModifier(); + if (s5 !== peg$FAILED) { + s4 = [s4, s5]; + s3 = s4; + } else { + peg$currPos = s3; + s3 = peg$FAILED; + } + } + peg$savedPos = s0; + s0 = peg$f69(s1, s2); + } else { + peg$currPos = s0; + s0 = peg$FAILED; + } + + if (s0 !== peg$FAILED) { + peg$tracer.trace({ + type: 'rule.match', + rule: 'FunctionTypeModifierList', + result: s0, + location: peg$computeLocation(startPos, peg$currPos), + }); + } else { + peg$tracer.trace({ + type: 'rule.fail', + rule: 'FunctionTypeModifierList', + location: peg$computeLocation(startPos, startPos), + }); + } + + return s0; + } + + function peg$parseModifierNameWithAlias() { + var startPos = peg$currPos; + var s0, s1, s2, s3, s4; + + peg$tracer.trace({ + type: 'rule.enter', + rule: 'ModifierNameWithAlias', + location: peg$computeLocation(startPos, startPos), + }); + + s0 = peg$currPos; + s1 = []; + s2 = peg$currPos; + s3 = peg$parseIdentifier(); + if (s3 !== peg$FAILED) { + if (input.charCodeAt(peg$currPos) === 46) { + s4 = peg$c17; + peg$currPos++; + } else { + s4 = peg$FAILED; + if (peg$silentFails === 0) { + peg$fail(peg$e24); + } + } + if (s4 !== peg$FAILED) { + s3 = [s3, s4]; + s2 = s3; + } else { + peg$currPos = s2; + s2 = peg$FAILED; + } + } else { + peg$currPos = s2; + s2 = peg$FAILED; + } + while (s2 !== peg$FAILED) { + s1.push(s2); + s2 = peg$currPos; + s3 = peg$parseIdentifier(); + if (s3 !== peg$FAILED) { + if (input.charCodeAt(peg$currPos) === 46) { + s4 = peg$c17; + peg$currPos++; + } else { + s4 = peg$FAILED; + if (peg$silentFails === 0) { + peg$fail(peg$e24); + } + } + if (s4 !== peg$FAILED) { + s3 = [s3, s4]; + s2 = s3; + } else { + peg$currPos = s2; + s2 = peg$FAILED; + } + } else { + peg$currPos = s2; + s2 = peg$FAILED; + } + } + s2 = peg$parseModifierName(); + if (s2 !== peg$FAILED) { + peg$savedPos = s0; + s0 = peg$f130(s1, s2); + } else { + peg$currPos = s0; + s0 = peg$FAILED; + } + + if (s0 !== peg$FAILED) { + peg$tracer.trace({ + type: 'rule.match', + rule: 'ModifierNameWithAlias', + result: s0, + location: peg$computeLocation(startPos, peg$currPos), + }); + } else { + peg$tracer.trace({ + type: 'rule.fail', + rule: 'ModifierNameWithAlias', + location: peg$computeLocation(startPos, startPos), + }); + } + + return s0; + } + + function peg$parseCommaSeparatedModifierNameList() { + var startPos = peg$currPos; + var s0, s1, s2, s3, s4, s5, s6, s7; + + peg$tracer.trace({ + type: 'rule.enter', + rule: 'CommaSeparatedModifierNameList', + location: peg$computeLocation(startPos, startPos), + }); + + s0 = peg$currPos; + s1 = peg$parseModifierNameWithAlias(); + if (s1 !== peg$FAILED) { + s2 = []; + s3 = peg$currPos; + s4 = peg$parse__(); + if (input.charCodeAt(peg$currPos) === 44) { + s5 = peg$c106; + peg$currPos++; + } else { + s5 = peg$FAILED; + if (peg$silentFails === 0) { + peg$fail(peg$e129); + } + } + if (s5 !== peg$FAILED) { + s6 = peg$parse__(); + s7 = peg$parseModifierNameWithAlias(); + if (s7 !== peg$FAILED) { + s4 = [s4, s5, s6, s7]; + s3 = s4; + } else { + peg$currPos = s3; + s3 = peg$FAILED; + } + } else { + peg$currPos = s3; + s3 = peg$FAILED; + } + while (s3 !== peg$FAILED) { + s2.push(s3); + s3 = peg$currPos; + s4 = peg$parse__(); + if (input.charCodeAt(peg$currPos) === 44) { + s5 = peg$c106; + peg$currPos++; + } else { + s5 = peg$FAILED; + if (peg$silentFails === 0) { + peg$fail(peg$e129); + } + } + if (s5 !== peg$FAILED) { + s6 = peg$parse__(); + s7 = peg$parseModifierNameWithAlias(); + if (s7 !== peg$FAILED) { + s4 = [s4, s5, s6, s7]; + s3 = s4; + } else { + peg$currPos = s3; + s3 = peg$FAILED; + } + } else { + peg$currPos = s3; + s3 = peg$FAILED; + } + } + peg$savedPos = s0; + s0 = peg$f46(s1, s2); + } else { + peg$currPos = s0; + s0 = peg$FAILED; + } + + if (s0 !== peg$FAILED) { + peg$tracer.trace({ + type: 'rule.match', + rule: 'CommaSeparatedModifierNameList', + result: s0, + location: peg$computeLocation(startPos, peg$currPos), + }); + } else { + peg$tracer.trace({ + type: 'rule.fail', + rule: 'CommaSeparatedModifierNameList', + location: peg$computeLocation(startPos, startPos), + }); + } + + return s0; + } + + function peg$parseInformalParameter() { + var startPos = peg$currPos; + var s0, s1, s2, s3, s4, s5, s6, s7, s8, s9; + + peg$tracer.trace({ + type: 'rule.enter', + rule: 'InformalParameter', + location: peg$computeLocation(startPos, startPos), + }); + + s0 = peg$currPos; + s1 = peg$parseType(); + if (s1 !== peg$FAILED) { + s2 = peg$parse__(); + s3 = peg$parseIndexedToken(); + if (s3 === peg$FAILED) { + s3 = null; + } + s4 = peg$parse__(); + s5 = peg$parseConstantToken(); + if (s5 === peg$FAILED) { + s5 = null; + } + s6 = peg$parse__(); + s7 = peg$parseStorageLocationSpecifier(); + if (s7 === peg$FAILED) { + s7 = null; + } + s8 = peg$parse__(); + s9 = peg$parseIdentifier(); + if (s9 === peg$FAILED) { + s9 = null; + } + peg$savedPos = s0; + s0 = peg$f131(s1, s3, s5, s7, s9); + } else { + peg$currPos = s0; + s0 = peg$FAILED; + } + + if (s0 !== peg$FAILED) { + peg$tracer.trace({ + type: 'rule.match', + rule: 'InformalParameter', + result: s0, + location: peg$computeLocation(startPos, peg$currPos), + }); + } else { + peg$tracer.trace({ + type: 'rule.fail', + rule: 'InformalParameter', + location: peg$computeLocation(startPos, startPos), + }); + } + + return s0; + } + + function peg$parseInformalParameterList() { + var startPos = peg$currPos; + var s0, s1, s2, s3, s4, s5, s6, s7; + + peg$tracer.trace({ + type: 'rule.enter', + rule: 'InformalParameterList', + location: peg$computeLocation(startPos, startPos), + }); + + s0 = peg$currPos; + s1 = peg$parseInformalParameter(); + if (s1 === peg$FAILED) { + s1 = peg$parseLiteral(); + } + if (s1 !== peg$FAILED) { + s2 = []; + s3 = peg$currPos; + s4 = peg$parse__(); + if (input.charCodeAt(peg$currPos) === 44) { + s5 = peg$c106; + peg$currPos++; + } else { + s5 = peg$FAILED; + if (peg$silentFails === 0) { + peg$fail(peg$e129); + } + } + if (s5 !== peg$FAILED) { + s6 = peg$parse__(); + s7 = peg$parseInformalParameter(); + if (s7 === peg$FAILED) { + s7 = peg$parseLiteral(); + } + if (s7 !== peg$FAILED) { + s4 = [s4, s5, s6, s7]; + s3 = s4; + } else { + peg$currPos = s3; + s3 = peg$FAILED; + } + } else { + peg$currPos = s3; + s3 = peg$FAILED; + } + while (s3 !== peg$FAILED) { + s2.push(s3); + s3 = peg$currPos; + s4 = peg$parse__(); + if (input.charCodeAt(peg$currPos) === 44) { + s5 = peg$c106; + peg$currPos++; + } else { + s5 = peg$FAILED; + if (peg$silentFails === 0) { + peg$fail(peg$e129); + } + } + if (s5 !== peg$FAILED) { + s6 = peg$parse__(); + s7 = peg$parseInformalParameter(); + if (s7 === peg$FAILED) { + s7 = peg$parseLiteral(); + } + if (s7 !== peg$FAILED) { + s4 = [s4, s5, s6, s7]; + s3 = s4; + } else { + peg$currPos = s3; + s3 = peg$FAILED; + } + } else { + peg$currPos = s3; + s3 = peg$FAILED; + } + } + peg$savedPos = s0; + s0 = peg$f46(s1, s2); + } else { + peg$currPos = s0; + s0 = peg$FAILED; + } + + if (s0 !== peg$FAILED) { + peg$tracer.trace({ + type: 'rule.match', + rule: 'InformalParameterList', + result: s0, + location: peg$computeLocation(startPos, peg$currPos), + }); + } else { + peg$tracer.trace({ + type: 'rule.fail', + rule: 'InformalParameterList', + location: peg$computeLocation(startPos, startPos), + }); + } + + return s0; + } + + function peg$parseFunctionBody() { + var startPos = peg$currPos; + var s0, s1, s2, s3, s4, s5; + + peg$tracer.trace({ + type: 'rule.enter', + rule: 'FunctionBody', + location: peg$computeLocation(startPos, startPos), + }); + + s0 = peg$currPos; + if (input.charCodeAt(peg$currPos) === 123) { + s1 = peg$c111; + peg$currPos++; + } else { + s1 = peg$FAILED; + if (peg$silentFails === 0) { + peg$fail(peg$e134); + } + } + if (s1 !== peg$FAILED) { + s2 = peg$parse__(); + s3 = peg$parseStatements(); + if (s3 === peg$FAILED) { + s3 = null; + } + s4 = peg$parse__(); + if (input.charCodeAt(peg$currPos) === 125) { + s5 = peg$c112; + peg$currPos++; + } else { + s5 = peg$FAILED; + if (peg$silentFails === 0) { + peg$fail(peg$e135); + } + } + if (s5 !== peg$FAILED) { + peg$savedPos = s0; + s0 = peg$f132(s3); + } else { + peg$currPos = s0; + s0 = peg$FAILED; + } + } else { + peg$currPos = s0; + s0 = peg$FAILED; + } + + if (s0 !== peg$FAILED) { + peg$tracer.trace({ + type: 'rule.match', + rule: 'FunctionBody', + result: s0, + location: peg$computeLocation(startPos, peg$currPos), + }); + } else { + peg$tracer.trace({ + type: 'rule.fail', + rule: 'FunctionBody', + location: peg$computeLocation(startPos, startPos), + }); + } + + return s0; + } + + function peg$parseEnumDeclaration() { + var startPos = peg$currPos; + var s0, s1, s2, s3, s4, s5, s6, s7, s8, s9, s10, s11, s12, s13; + + peg$tracer.trace({ + type: 'rule.enter', + rule: 'EnumDeclaration', + location: peg$computeLocation(startPos, startPos), + }); + + s0 = peg$currPos; + s1 = peg$parseEnumToken(); + if (s1 !== peg$FAILED) { + s2 = peg$parse__(); + s3 = peg$parseIdentifier(); + if (s3 !== peg$FAILED) { + s4 = peg$parse__(); + if (input.charCodeAt(peg$currPos) === 123) { + s5 = peg$c111; + peg$currPos++; + } else { + s5 = peg$FAILED; + if (peg$silentFails === 0) { + peg$fail(peg$e134); + } + } + if (s5 !== peg$FAILED) { + s6 = peg$parse__(); + s7 = peg$parseIdentifier(); + if (s7 !== peg$FAILED) { + s8 = []; + s9 = peg$currPos; + s10 = peg$parse__(); + if (input.charCodeAt(peg$currPos) === 44) { + s11 = peg$c106; + peg$currPos++; + } else { + s11 = peg$FAILED; + if (peg$silentFails === 0) { + peg$fail(peg$e129); + } + } + if (s11 !== peg$FAILED) { + s12 = peg$parse__(); + s13 = peg$parseIdentifier(); + if (s13 !== peg$FAILED) { + s10 = [s10, s11, s12, s13]; + s9 = s10; + } else { + peg$currPos = s9; + s9 = peg$FAILED; + } + } else { + peg$currPos = s9; + s9 = peg$FAILED; + } + while (s9 !== peg$FAILED) { + s8.push(s9); + s9 = peg$currPos; + s10 = peg$parse__(); + if (input.charCodeAt(peg$currPos) === 44) { + s11 = peg$c106; + peg$currPos++; + } else { + s11 = peg$FAILED; + if (peg$silentFails === 0) { + peg$fail(peg$e129); + } + } + if (s11 !== peg$FAILED) { + s12 = peg$parse__(); + s13 = peg$parseIdentifier(); + if (s13 !== peg$FAILED) { + s10 = [s10, s11, s12, s13]; + s9 = s10; + } else { + peg$currPos = s9; + s9 = peg$FAILED; + } + } else { + peg$currPos = s9; + s9 = peg$FAILED; + } + } + s9 = peg$parse__(); + if (input.charCodeAt(peg$currPos) === 125) { + s10 = peg$c112; + peg$currPos++; + } else { + s10 = peg$FAILED; + if (peg$silentFails === 0) { + peg$fail(peg$e135); + } + } + if (s10 !== peg$FAILED) { + peg$savedPos = s0; + s0 = peg$f133(s3, s7, s8); + } else { + peg$currPos = s0; + s0 = peg$FAILED; + } + } else { + peg$currPos = s0; + s0 = peg$FAILED; + } + } else { + peg$currPos = s0; + s0 = peg$FAILED; + } + } else { + peg$currPos = s0; + s0 = peg$FAILED; + } + } else { + peg$currPos = s0; + s0 = peg$FAILED; + } + + if (s0 !== peg$FAILED) { + peg$tracer.trace({ + type: 'rule.match', + rule: 'EnumDeclaration', + result: s0, + location: peg$computeLocation(startPos, peg$currPos), + }); + } else { + peg$tracer.trace({ + type: 'rule.fail', + rule: 'EnumDeclaration', + location: peg$computeLocation(startPos, startPos), + }); + } + + return s0; + } + + function peg$parseStructDeclaration() { + var startPos = peg$currPos; + var s0, s1, s2, s3, s4, s5, s6, s7, s8, s9; + + peg$tracer.trace({ + type: 'rule.enter', + rule: 'StructDeclaration', + location: peg$computeLocation(startPos, startPos), + }); + + s0 = peg$currPos; + s1 = peg$parseStructToken(); + if (s1 !== peg$FAILED) { + s2 = peg$parse__(); + s3 = peg$parseIdentifier(); + if (s3 !== peg$FAILED) { + s4 = peg$parse__(); + if (input.charCodeAt(peg$currPos) === 123) { + s5 = peg$c111; + peg$currPos++; + } else { + s5 = peg$FAILED; + if (peg$silentFails === 0) { + peg$fail(peg$e134); + } + } + if (s5 !== peg$FAILED) { + s6 = peg$parse__(); + s7 = peg$parseDeclarativeExpressionList(); + if (s7 === peg$FAILED) { + s7 = null; + } + s8 = peg$parse__(); + if (input.charCodeAt(peg$currPos) === 125) { + s9 = peg$c112; + peg$currPos++; + } else { + s9 = peg$FAILED; + if (peg$silentFails === 0) { + peg$fail(peg$e135); + } + } + if (s9 !== peg$FAILED) { + peg$savedPos = s0; + s0 = peg$f134(s3, s7); + } else { + peg$currPos = s0; + s0 = peg$FAILED; + } + } else { + peg$currPos = s0; + s0 = peg$FAILED; + } + } else { + peg$currPos = s0; + s0 = peg$FAILED; + } + } else { + peg$currPos = s0; + s0 = peg$FAILED; + } + + if (s0 !== peg$FAILED) { + peg$tracer.trace({ + type: 'rule.match', + rule: 'StructDeclaration', + result: s0, + location: peg$computeLocation(startPos, peg$currPos), + }); + } else { + peg$tracer.trace({ + type: 'rule.fail', + rule: 'StructDeclaration', + location: peg$computeLocation(startPos, startPos), + }); + } + + return s0; + } + + function peg$parseDeclarativeExpressionList() { + var startPos = peg$currPos; + var s0, s1, s2, s3, s4, s5, s6, s7, s8, s9; + + peg$tracer.trace({ + type: 'rule.enter', + rule: 'DeclarativeExpressionList', + location: peg$computeLocation(startPos, startPos), + }); + + s0 = peg$currPos; + s1 = peg$parseDeclarativeExpression(); + if (s1 !== peg$FAILED) { + s2 = peg$parse__(); + s3 = peg$parseEOS(); + if (s3 !== peg$FAILED) { + s4 = []; + s5 = peg$currPos; + s6 = peg$parse__(); + s7 = peg$parseDeclarativeExpression(); + if (s7 !== peg$FAILED) { + s8 = peg$parse__(); + s9 = peg$parseEOS(); + if (s9 !== peg$FAILED) { + s6 = [s6, s7, s8, s9]; + s5 = s6; + } else { + peg$currPos = s5; + s5 = peg$FAILED; + } + } else { + peg$currPos = s5; + s5 = peg$FAILED; + } + while (s5 !== peg$FAILED) { + s4.push(s5); + s5 = peg$currPos; + s6 = peg$parse__(); + s7 = peg$parseDeclarativeExpression(); + if (s7 !== peg$FAILED) { + s8 = peg$parse__(); + s9 = peg$parseEOS(); + if (s9 !== peg$FAILED) { + s6 = [s6, s7, s8, s9]; + s5 = s6; + } else { + peg$currPos = s5; + s5 = peg$FAILED; + } + } else { + peg$currPos = s5; + s5 = peg$FAILED; + } + } + peg$savedPos = s0; + s0 = peg$f135(s1, s4); + } else { + peg$currPos = s0; + s0 = peg$FAILED; + } + } else { + peg$currPos = s0; + s0 = peg$FAILED; + } + + if (s0 !== peg$FAILED) { + peg$tracer.trace({ + type: 'rule.match', + rule: 'DeclarativeExpressionList', + result: s0, + location: peg$computeLocation(startPos, peg$currPos), + }); + } else { + peg$tracer.trace({ + type: 'rule.fail', + rule: 'DeclarativeExpressionList', + location: peg$computeLocation(startPos, startPos), + }); + } + + return s0; + } + + function peg$parseProgram() { + var startPos = peg$currPos; + var s0, s1; + + peg$tracer.trace({ + type: 'rule.enter', + rule: 'Program', + location: peg$computeLocation(startPos, startPos), + }); + + s0 = peg$currPos; + s1 = peg$parseSourceUnits(); + if (s1 === peg$FAILED) { + s1 = null; + } + peg$savedPos = s0; + s1 = peg$f136(s1); + s0 = s1; + + if (s0 !== peg$FAILED) { + peg$tracer.trace({ + type: 'rule.match', + rule: 'Program', + result: s0, + location: peg$computeLocation(startPos, peg$currPos), + }); + } else { + peg$tracer.trace({ + type: 'rule.fail', + rule: 'Program', + location: peg$computeLocation(startPos, startPos), + }); + } + + return s0; + } + + function peg$parseSourceUnits() { + var startPos = peg$currPos; + var s0, s1, s2, s3, s4, s5; + + peg$tracer.trace({ + type: 'rule.enter', + rule: 'SourceUnits', + location: peg$computeLocation(startPos, startPos), + }); + + s0 = peg$currPos; + s1 = peg$parseSourceUnit(); + if (s1 !== peg$FAILED) { + s2 = []; + s3 = peg$currPos; + s4 = peg$parse__(); + s5 = peg$parseSourceUnit(); + if (s5 !== peg$FAILED) { + s4 = [s4, s5]; + s3 = s4; + } else { + peg$currPos = s3; + s3 = peg$FAILED; + } + while (s3 !== peg$FAILED) { + s2.push(s3); + s3 = peg$currPos; + s4 = peg$parse__(); + s5 = peg$parseSourceUnit(); + if (s5 !== peg$FAILED) { + s4 = [s4, s5]; + s3 = s4; + } else { + peg$currPos = s3; + s3 = peg$FAILED; + } + } + peg$savedPos = s0; + s0 = peg$f69(s1, s2); + } else { + peg$currPos = s0; + s0 = peg$FAILED; + } + + if (s0 !== peg$FAILED) { + peg$tracer.trace({ + type: 'rule.match', + rule: 'SourceUnits', + result: s0, + location: peg$computeLocation(startPos, peg$currPos), + }); + } else { + peg$tracer.trace({ + type: 'rule.fail', + rule: 'SourceUnits', + location: peg$computeLocation(startPos, startPos), + }); + } + + return s0; + } + + function peg$parseSourceUnit() { + var startPos = peg$currPos; + var s0; + + peg$tracer.trace({ + type: 'rule.enter', + rule: 'SourceUnit', + location: peg$computeLocation(startPos, startPos), + }); + + s0 = peg$parsePragmaStatement(); + if (s0 === peg$FAILED) { + s0 = peg$parseImportStatement(); + if (s0 === peg$FAILED) { + s0 = peg$parseContractStatement(); + if (s0 === peg$FAILED) { + s0 = peg$parseInterfaceStatement(); + if (s0 === peg$FAILED) { + s0 = peg$parseLibraryStatement(); + if (s0 === peg$FAILED) { + s0 = peg$parseStructDeclaration(); + if (s0 === peg$FAILED) { + s0 = peg$parseErrorDeclaration(); + } + } + } + } + } + } + + if (s0 !== peg$FAILED) { + peg$tracer.trace({ + type: 'rule.match', + rule: 'SourceUnit', + result: s0, + location: peg$computeLocation(startPos, peg$currPos), + }); + } else { + peg$tracer.trace({ + type: 'rule.fail', + rule: 'SourceUnit', + location: peg$computeLocation(startPos, startPos), + }); + } + + return s0; + } + + function peg$parseSourceElements() { + var startPos = peg$currPos; + var s0, s1, s2, s3, s4, s5; + + peg$tracer.trace({ + type: 'rule.enter', + rule: 'SourceElements', + location: peg$computeLocation(startPos, startPos), + }); + + s0 = peg$currPos; + s1 = peg$parseSourceElement(); + if (s1 !== peg$FAILED) { + s2 = []; + s3 = peg$currPos; + s4 = peg$parse__(); + s5 = peg$parseSourceElement(); + if (s5 !== peg$FAILED) { + s4 = [s4, s5]; + s3 = s4; + } else { + peg$currPos = s3; + s3 = peg$FAILED; + } + while (s3 !== peg$FAILED) { + s2.push(s3); + s3 = peg$currPos; + s4 = peg$parse__(); + s5 = peg$parseSourceElement(); + if (s5 !== peg$FAILED) { + s4 = [s4, s5]; + s3 = s4; + } else { + peg$currPos = s3; + s3 = peg$FAILED; + } + } + peg$savedPos = s0; + s0 = peg$f69(s1, s2); + } else { + peg$currPos = s0; + s0 = peg$FAILED; + } + + if (s0 !== peg$FAILED) { + peg$tracer.trace({ + type: 'rule.match', + rule: 'SourceElements', + result: s0, + location: peg$computeLocation(startPos, peg$currPos), + }); + } else { + peg$tracer.trace({ + type: 'rule.fail', + rule: 'SourceElements', + location: peg$computeLocation(startPos, startPos), + }); + } + + return s0; + } + + function peg$parseSourceElement() { + var startPos = peg$currPos; + var s0; + + peg$tracer.trace({ + type: 'rule.enter', + rule: 'SourceElement', + location: peg$computeLocation(startPos, startPos), + }); + + s0 = peg$parseStateVariableDeclaration(); + if (s0 === peg$FAILED) { + s0 = peg$parseEnumDeclaration(); + if (s0 === peg$FAILED) { + s0 = peg$parseEventDeclaration(); + if (s0 === peg$FAILED) { + s0 = peg$parseStructDeclaration(); + if (s0 === peg$FAILED) { + s0 = peg$parseErrorDeclaration(); + if (s0 === peg$FAILED) { + s0 = peg$parseModifierDeclaration(); + if (s0 === peg$FAILED) { + s0 = peg$parseFunctionDeclaration(); + if (s0 === peg$FAILED) { + s0 = peg$parseConstructorDeclaration(); + if (s0 === peg$FAILED) { + s0 = peg$parseFallbackDeclaration(); + if (s0 === peg$FAILED) { + s0 = peg$parseReceiveDeclaration(); + if (s0 === peg$FAILED) { + s0 = peg$parseUsingStatement(); + } + } + } + } + } + } + } + } + } + } + + if (s0 !== peg$FAILED) { + peg$tracer.trace({ + type: 'rule.match', + rule: 'SourceElement', + result: s0, + location: peg$computeLocation(startPos, peg$currPos), + }); + } else { + peg$tracer.trace({ + type: 'rule.fail', + rule: 'SourceElement', + location: peg$computeLocation(startPos, startPos), + }); + } + + return s0; + } + + function peg$parseInlineAssemblyBlock() { + var startPos = peg$currPos; + var s0, s1, s2, s3, s4, s5, s6; + + peg$tracer.trace({ + type: 'rule.enter', + rule: 'InlineAssemblyBlock', + location: peg$computeLocation(startPos, startPos), + }); + + s0 = peg$currPos; + if (input.charCodeAt(peg$currPos) === 123) { + s1 = peg$c111; + peg$currPos++; + } else { + s1 = peg$FAILED; + if (peg$silentFails === 0) { + peg$fail(peg$e134); + } + } + if (s1 !== peg$FAILED) { + s2 = peg$parse__(); + s3 = []; + s4 = peg$currPos; + s5 = peg$parseAssemblyItem(); + if (s5 !== peg$FAILED) { + s6 = peg$parse__(); + s5 = [s5, s6]; + s4 = s5; + } else { + peg$currPos = s4; + s4 = peg$FAILED; + } + while (s4 !== peg$FAILED) { + s3.push(s4); + s4 = peg$currPos; + s5 = peg$parseAssemblyItem(); + if (s5 !== peg$FAILED) { + s6 = peg$parse__(); + s5 = [s5, s6]; + s4 = s5; + } else { + peg$currPos = s4; + s4 = peg$FAILED; + } + } + s4 = peg$parse__(); + if (input.charCodeAt(peg$currPos) === 125) { + s5 = peg$c112; + peg$currPos++; + } else { + s5 = peg$FAILED; + if (peg$silentFails === 0) { + peg$fail(peg$e135); + } + } + if (s5 !== peg$FAILED) { + peg$savedPos = s0; + s0 = peg$f137(s3); + } else { + peg$currPos = s0; + s0 = peg$FAILED; + } + } else { + peg$currPos = s0; + s0 = peg$FAILED; + } + + if (s0 !== peg$FAILED) { + peg$tracer.trace({ + type: 'rule.match', + rule: 'InlineAssemblyBlock', + result: s0, + location: peg$computeLocation(startPos, peg$currPos), + }); + } else { + peg$tracer.trace({ + type: 'rule.fail', + rule: 'InlineAssemblyBlock', + location: peg$computeLocation(startPos, startPos), + }); + } + + return s0; + } + + function peg$parseAssemblyItem() { + var startPos = peg$currPos; + var s0; + + peg$tracer.trace({ + type: 'rule.enter', + rule: 'AssemblyItem', + location: peg$computeLocation(startPos, startPos), + }); + + s0 = peg$parseFunctionalAssemblyInstruction(); + if (s0 === peg$FAILED) { + s0 = peg$parseInlineAssemblyBlock(); + if (s0 === peg$FAILED) { + s0 = peg$parseAssemblyFunctionDefinition(); + if (s0 === peg$FAILED) { + s0 = peg$parseAssemblyLocalBinding(); + if (s0 === peg$FAILED) { + s0 = peg$parseAssemblyAssignment(); + if (s0 === peg$FAILED) { + s0 = peg$parseAssemblyLabel(); + if (s0 === peg$FAILED) { + s0 = peg$parseAssemblyIf(); + if (s0 === peg$FAILED) { + s0 = peg$parseAssemblyFor(); + if (s0 === peg$FAILED) { + s0 = peg$parseNumericLiteral(); + if (s0 === peg$FAILED) { + s0 = peg$parseStringLiteral(); + if (s0 === peg$FAILED) { + s0 = peg$parseHexStringLiteral(); + if (s0 === peg$FAILED) { + s0 = peg$parseIdentifier(); + } + } + } + } + } + } + } + } + } + } + } + + if (s0 !== peg$FAILED) { + peg$tracer.trace({ + type: 'rule.match', + rule: 'AssemblyItem', + result: s0, + location: peg$computeLocation(startPos, peg$currPos), + }); + } else { + peg$tracer.trace({ + type: 'rule.fail', + rule: 'AssemblyItem', + location: peg$computeLocation(startPos, startPos), + }); + } + + return s0; + } + + function peg$parseAssemblyExpression() { + var startPos = peg$currPos; + var s0; + + peg$tracer.trace({ + type: 'rule.enter', + rule: 'AssemblyExpression', + location: peg$computeLocation(startPos, startPos), + }); + + s0 = peg$parseFunctionalAssemblyInstruction(); + if (s0 === peg$FAILED) { + s0 = peg$parseElementaryAssemblyOperation(); + } + + if (s0 !== peg$FAILED) { + peg$tracer.trace({ + type: 'rule.match', + rule: 'AssemblyExpression', + result: s0, + location: peg$computeLocation(startPos, peg$currPos), + }); + } else { + peg$tracer.trace({ + type: 'rule.fail', + rule: 'AssemblyExpression', + location: peg$computeLocation(startPos, startPos), + }); + } + + return s0; + } + + function peg$parseElementaryAssemblyOperation() { + var startPos = peg$currPos; + var s0; + + peg$tracer.trace({ + type: 'rule.enter', + rule: 'ElementaryAssemblyOperation', + location: peg$computeLocation(startPos, startPos), + }); + + s0 = peg$parseNumericLiteral(); + if (s0 === peg$FAILED) { + s0 = peg$parseStringLiteral(); + if (s0 === peg$FAILED) { + s0 = peg$parseIdentifier(); + } + } + + if (s0 !== peg$FAILED) { + peg$tracer.trace({ + type: 'rule.match', + rule: 'ElementaryAssemblyOperation', + result: s0, + location: peg$computeLocation(startPos, peg$currPos), + }); + } else { + peg$tracer.trace({ + type: 'rule.fail', + rule: 'ElementaryAssemblyOperation', + location: peg$computeLocation(startPos, startPos), + }); + } + + return s0; + } + + function peg$parseAssemblyIdentifierList() { + var startPos = peg$currPos; + var s0, s1, s2, s3, s4, s5, s6, s7; + + peg$tracer.trace({ + type: 'rule.enter', + rule: 'AssemblyIdentifierList', + location: peg$computeLocation(startPos, startPos), + }); + + s0 = peg$currPos; + s1 = peg$parseIdentifier(); + if (s1 !== peg$FAILED) { + s2 = []; + s3 = peg$currPos; + s4 = peg$parse__(); + if (input.charCodeAt(peg$currPos) === 44) { + s5 = peg$c106; + peg$currPos++; + } else { + s5 = peg$FAILED; + if (peg$silentFails === 0) { + peg$fail(peg$e129); + } + } + if (s5 !== peg$FAILED) { + s6 = peg$parse__(); + s7 = peg$parseIdentifier(); + if (s7 !== peg$FAILED) { + s4 = [s4, s5, s6, s7]; + s3 = s4; + } else { + peg$currPos = s3; + s3 = peg$FAILED; + } + } else { + peg$currPos = s3; + s3 = peg$FAILED; + } + while (s3 !== peg$FAILED) { + s2.push(s3); + s3 = peg$currPos; + s4 = peg$parse__(); + if (input.charCodeAt(peg$currPos) === 44) { + s5 = peg$c106; + peg$currPos++; + } else { + s5 = peg$FAILED; + if (peg$silentFails === 0) { + peg$fail(peg$e129); + } + } + if (s5 !== peg$FAILED) { + s6 = peg$parse__(); + s7 = peg$parseIdentifier(); + if (s7 !== peg$FAILED) { + s4 = [s4, s5, s6, s7]; + s3 = s4; + } else { + peg$currPos = s3; + s3 = peg$FAILED; + } + } else { + peg$currPos = s3; + s3 = peg$FAILED; + } + } + peg$savedPos = s0; + s0 = peg$f138(s1, s2); + } else { + peg$currPos = s0; + s0 = peg$FAILED; + } + + if (s0 !== peg$FAILED) { + peg$tracer.trace({ + type: 'rule.match', + rule: 'AssemblyIdentifierList', + result: s0, + location: peg$computeLocation(startPos, peg$currPos), + }); + } else { + peg$tracer.trace({ + type: 'rule.fail', + rule: 'AssemblyIdentifierList', + location: peg$computeLocation(startPos, startPos), + }); + } + + return s0; + } + + function peg$parseAssemblyFunctionDefinition() { + var startPos = peg$currPos; + var s0, s1, s2, s3, s4, s5, s6, s7, s8, s9, s10, s11, s12, s13, s14, s15; + + peg$tracer.trace({ + type: 'rule.enter', + rule: 'AssemblyFunctionDefinition', + location: peg$computeLocation(startPos, startPos), + }); + + s0 = peg$currPos; + s1 = peg$parseFunctionToken(); + if (s1 !== peg$FAILED) { + s2 = peg$parse__(); + s3 = peg$parseIdentifier(); + if (s3 !== peg$FAILED) { + s4 = peg$parse__(); + if (input.charCodeAt(peg$currPos) === 40) { + s5 = peg$c107; + peg$currPos++; + } else { + s5 = peg$FAILED; + if (peg$silentFails === 0) { + peg$fail(peg$e130); + } + } + if (s5 !== peg$FAILED) { + s6 = peg$parse__(); + s7 = peg$parseAssemblyIdentifierList(); + if (s7 === peg$FAILED) { + s7 = null; + } + s8 = peg$parse__(); + if (input.charCodeAt(peg$currPos) === 41) { + s9 = peg$c108; + peg$currPos++; + } else { + s9 = peg$FAILED; + if (peg$silentFails === 0) { + peg$fail(peg$e131); + } + } + if (s9 !== peg$FAILED) { + s10 = peg$parse__(); + s11 = peg$currPos; + if (input.substr(peg$currPos, 2) === peg$c152) { + s12 = peg$c152; + peg$currPos += 2; + } else { + s12 = peg$FAILED; + if (peg$silentFails === 0) { + peg$fail(peg$e179); + } + } + if (s12 !== peg$FAILED) { + s13 = peg$parse__(); + s14 = peg$parseAssemblyIdentifierList(); + if (s14 !== peg$FAILED) { + s15 = peg$parse__(); + s12 = [s12, s13, s14, s15]; + s11 = s12; + } else { + peg$currPos = s11; + s11 = peg$FAILED; + } + } else { + peg$currPos = s11; + s11 = peg$FAILED; + } + if (s11 === peg$FAILED) { + s11 = null; + } + s12 = peg$parseInlineAssemblyBlock(); + if (s12 !== peg$FAILED) { + peg$savedPos = s0; + s0 = peg$f139(s3, s7, s11, s12); + } else { + peg$currPos = s0; + s0 = peg$FAILED; + } + } else { + peg$currPos = s0; + s0 = peg$FAILED; + } + } else { + peg$currPos = s0; + s0 = peg$FAILED; + } + } else { + peg$currPos = s0; + s0 = peg$FAILED; + } + } else { + peg$currPos = s0; + s0 = peg$FAILED; + } + + if (s0 !== peg$FAILED) { + peg$tracer.trace({ + type: 'rule.match', + rule: 'AssemblyFunctionDefinition', + result: s0, + location: peg$computeLocation(startPos, peg$currPos), + }); + } else { + peg$tracer.trace({ + type: 'rule.fail', + rule: 'AssemblyFunctionDefinition', + location: peg$computeLocation(startPos, startPos), + }); + } + + return s0; + } + + function peg$parseAssemblyLocalBinding() { + var startPos = peg$currPos; + var s0, s1, s2, s3, s4, s5, s6, s7, s8; + + peg$tracer.trace({ + type: 'rule.enter', + rule: 'AssemblyLocalBinding', + location: peg$computeLocation(startPos, startPos), + }); + + s0 = peg$currPos; + if (input.substr(peg$currPos, 3) === peg$c153) { + s1 = peg$c153; + peg$currPos += 3; + } else { + s1 = peg$FAILED; + if (peg$silentFails === 0) { + peg$fail(peg$e180); + } + } + if (s1 !== peg$FAILED) { + s2 = peg$parse__(); + s3 = peg$parseAssemblyIdentifierList(); + if (s3 !== peg$FAILED) { + s4 = peg$currPos; + s5 = peg$parse__(); + if (input.substr(peg$currPos, 2) === peg$c154) { + s6 = peg$c154; + peg$currPos += 2; + } else { + s6 = peg$FAILED; + if (peg$silentFails === 0) { + peg$fail(peg$e181); + } + } + if (s6 !== peg$FAILED) { + s7 = peg$parse__(); + s8 = peg$parseAssemblyExpression(); + if (s8 !== peg$FAILED) { + s5 = [s5, s6, s7, s8]; + s4 = s5; + } else { + peg$currPos = s4; + s4 = peg$FAILED; + } + } else { + peg$currPos = s4; + s4 = peg$FAILED; + } + if (s4 === peg$FAILED) { + s4 = null; + } + peg$savedPos = s0; + s0 = peg$f140(s3, s4); + } else { + peg$currPos = s0; + s0 = peg$FAILED; + } + } else { + peg$currPos = s0; + s0 = peg$FAILED; + } + + if (s0 !== peg$FAILED) { + peg$tracer.trace({ + type: 'rule.match', + rule: 'AssemblyLocalBinding', + result: s0, + location: peg$computeLocation(startPos, peg$currPos), + }); + } else { + peg$tracer.trace({ + type: 'rule.fail', + rule: 'AssemblyLocalBinding', + location: peg$computeLocation(startPos, startPos), + }); + } + + return s0; + } + + function peg$parseAssemblyAssignment() { + var startPos = peg$currPos; + var s0, s1, s2, s3, s4, s5; + + peg$tracer.trace({ + type: 'rule.enter', + rule: 'AssemblyAssignment', + location: peg$computeLocation(startPos, startPos), + }); + + s0 = peg$currPos; + s1 = peg$parseAssemblyIdentifierList(); + if (s1 !== peg$FAILED) { + s2 = peg$parse__(); + if (input.substr(peg$currPos, 2) === peg$c154) { + s3 = peg$c154; + peg$currPos += 2; + } else { + s3 = peg$FAILED; + if (peg$silentFails === 0) { + peg$fail(peg$e181); + } + } + if (s3 !== peg$FAILED) { + s4 = peg$parse__(); + s5 = peg$parseAssemblyExpression(); + if (s5 !== peg$FAILED) { + peg$savedPos = s0; + s0 = peg$f141(s1, s5); + } else { + peg$currPos = s0; + s0 = peg$FAILED; + } + } else { + peg$currPos = s0; + s0 = peg$FAILED; + } + } else { + peg$currPos = s0; + s0 = peg$FAILED; + } + + if (s0 !== peg$FAILED) { + peg$tracer.trace({ + type: 'rule.match', + rule: 'AssemblyAssignment', + result: s0, + location: peg$computeLocation(startPos, peg$currPos), + }); + } else { + peg$tracer.trace({ + type: 'rule.fail', + rule: 'AssemblyAssignment', + location: peg$computeLocation(startPos, startPos), + }); + } + + return s0; + } + + function peg$parseReturnOpCode() { + var startPos = peg$currPos; + var s0, s1; + + peg$tracer.trace({ + type: 'rule.enter', + rule: 'ReturnOpCode', + location: peg$computeLocation(startPos, startPos), + }); + + s0 = peg$currPos; + if (input.substr(peg$currPos, 6) === peg$c87) { + s1 = peg$c87; + peg$currPos += 6; + } else { + s1 = peg$FAILED; + if (peg$silentFails === 0) { + peg$fail(peg$e110); + } + } + if (s1 !== peg$FAILED) { + peg$savedPos = s0; + s1 = peg$f142(); + } + s0 = s1; + + if (s0 !== peg$FAILED) { + peg$tracer.trace({ + type: 'rule.match', + rule: 'ReturnOpCode', + result: s0, + location: peg$computeLocation(startPos, peg$currPos), + }); + } else { + peg$tracer.trace({ + type: 'rule.fail', + rule: 'ReturnOpCode', + location: peg$computeLocation(startPos, startPos), + }); + } + + return s0; + } + + function peg$parseFunctionalAssemblyInstruction() { + var startPos = peg$currPos; + var s0, s1, s2, s3, s4, s5, s6, s7, s8, s9, s10, s11; + + peg$tracer.trace({ + type: 'rule.enter', + rule: 'FunctionalAssemblyInstruction', + location: peg$computeLocation(startPos, startPos), + }); + + s0 = peg$currPos; + s1 = peg$parseIdentifier(); + if (s1 === peg$FAILED) { + s1 = peg$parseReturnOpCode(); + } + if (s1 !== peg$FAILED) { + s2 = peg$parse__(); + if (input.charCodeAt(peg$currPos) === 40) { + s3 = peg$c107; + peg$currPos++; + } else { + s3 = peg$FAILED; + if (peg$silentFails === 0) { + peg$fail(peg$e130); + } + } + if (s3 !== peg$FAILED) { + s4 = peg$parse__(); + s5 = peg$parseAssemblyItem(); + if (s5 === peg$FAILED) { + s5 = null; + } + s6 = peg$parse__(); + s7 = []; + s8 = peg$currPos; + if (input.charCodeAt(peg$currPos) === 44) { + s9 = peg$c106; + peg$currPos++; + } else { + s9 = peg$FAILED; + if (peg$silentFails === 0) { + peg$fail(peg$e129); + } + } + if (s9 !== peg$FAILED) { + s10 = peg$parse__(); + s11 = peg$parseAssemblyItem(); + if (s11 !== peg$FAILED) { + s9 = [s9, s10, s11]; + s8 = s9; + } else { + peg$currPos = s8; + s8 = peg$FAILED; + } + } else { + peg$currPos = s8; + s8 = peg$FAILED; + } + while (s8 !== peg$FAILED) { + s7.push(s8); + s8 = peg$currPos; + if (input.charCodeAt(peg$currPos) === 44) { + s9 = peg$c106; + peg$currPos++; + } else { + s9 = peg$FAILED; + if (peg$silentFails === 0) { + peg$fail(peg$e129); + } + } + if (s9 !== peg$FAILED) { + s10 = peg$parse__(); + s11 = peg$parseAssemblyItem(); + if (s11 !== peg$FAILED) { + s9 = [s9, s10, s11]; + s8 = s9; + } else { + peg$currPos = s8; + s8 = peg$FAILED; + } + } else { + peg$currPos = s8; + s8 = peg$FAILED; + } + } + s8 = peg$parse__(); + if (input.charCodeAt(peg$currPos) === 41) { + s9 = peg$c108; + peg$currPos++; + } else { + s9 = peg$FAILED; + if (peg$silentFails === 0) { + peg$fail(peg$e131); + } + } + if (s9 !== peg$FAILED) { + peg$savedPos = s0; + s0 = peg$f143(s1, s5, s7); + } else { + peg$currPos = s0; + s0 = peg$FAILED; + } + } else { + peg$currPos = s0; + s0 = peg$FAILED; + } + } else { + peg$currPos = s0; + s0 = peg$FAILED; + } + + if (s0 !== peg$FAILED) { + peg$tracer.trace({ + type: 'rule.match', + rule: 'FunctionalAssemblyInstruction', + result: s0, + location: peg$computeLocation(startPos, peg$currPos), + }); + } else { + peg$tracer.trace({ + type: 'rule.fail', + rule: 'FunctionalAssemblyInstruction', + location: peg$computeLocation(startPos, startPos), + }); + } + + return s0; + } + + function peg$parseAssemblyLabel() { + var startPos = peg$currPos; + var s0, s1, s2, s3; + + peg$tracer.trace({ + type: 'rule.enter', + rule: 'AssemblyLabel', + location: peg$computeLocation(startPos, startPos), + }); + + s0 = peg$currPos; + s1 = peg$parseIdentifier(); + if (s1 !== peg$FAILED) { + s2 = peg$parse__(); + if (input.charCodeAt(peg$currPos) === 58) { + s3 = peg$c113; + peg$currPos++; + } else { + s3 = peg$FAILED; + if (peg$silentFails === 0) { + peg$fail(peg$e136); + } + } + if (s3 !== peg$FAILED) { + peg$savedPos = s0; + s0 = peg$f144(s1); + } else { + peg$currPos = s0; + s0 = peg$FAILED; + } + } else { + peg$currPos = s0; + s0 = peg$FAILED; + } + + if (s0 !== peg$FAILED) { + peg$tracer.trace({ + type: 'rule.match', + rule: 'AssemblyLabel', + result: s0, + location: peg$computeLocation(startPos, peg$currPos), + }); + } else { + peg$tracer.trace({ + type: 'rule.fail', + rule: 'AssemblyLabel', + location: peg$computeLocation(startPos, startPos), + }); + } + + return s0; + } + + function peg$parseAssemblyIf() { + var startPos = peg$currPos; + var s0, s1, s2, s3, s4, s5; + + peg$tracer.trace({ + type: 'rule.enter', + rule: 'AssemblyIf', + location: peg$computeLocation(startPos, startPos), + }); + + s0 = peg$currPos; + s1 = peg$parseIfToken(); + if (s1 !== peg$FAILED) { + s2 = peg$parse__(); + s3 = peg$parseAssemblyExpression(); + if (s3 !== peg$FAILED) { + s4 = peg$parse__(); + s5 = peg$parseInlineAssemblyBlock(); + if (s5 !== peg$FAILED) { + peg$savedPos = s0; + s0 = peg$f145(s3, s5); + } else { + peg$currPos = s0; + s0 = peg$FAILED; + } + } else { + peg$currPos = s0; + s0 = peg$FAILED; + } + } else { + peg$currPos = s0; + s0 = peg$FAILED; + } + + if (s0 !== peg$FAILED) { + peg$tracer.trace({ + type: 'rule.match', + rule: 'AssemblyIf', + result: s0, + location: peg$computeLocation(startPos, peg$currPos), + }); + } else { + peg$tracer.trace({ + type: 'rule.fail', + rule: 'AssemblyIf', + location: peg$computeLocation(startPos, startPos), + }); + } + + return s0; + } + + function peg$parseAssemblyFor() { + var startPos = peg$currPos; + var s0, s1, s2, s3, s4, s5, s6, s7, s8, s9; + + peg$tracer.trace({ + type: 'rule.enter', + rule: 'AssemblyFor', + location: peg$computeLocation(startPos, startPos), + }); + + s0 = peg$currPos; + s1 = peg$parseForToken(); + if (s1 !== peg$FAILED) { + s2 = peg$parse__(); + s3 = peg$parseInlineAssemblyBlock(); + if (s3 === peg$FAILED) { + s3 = peg$parseFunctionalAssemblyInstruction(); + } + if (s3 !== peg$FAILED) { + s4 = peg$parse__(); + s5 = peg$parseFunctionalAssemblyInstruction(); + if (s5 !== peg$FAILED) { + s6 = peg$parse__(); + s7 = peg$parseInlineAssemblyBlock(); + if (s7 === peg$FAILED) { + s7 = peg$parseFunctionalAssemblyInstruction(); + } + if (s7 !== peg$FAILED) { + s8 = peg$parse__(); + s9 = peg$parseInlineAssemblyBlock(); + if (s9 !== peg$FAILED) { + peg$savedPos = s0; + s0 = peg$f146(s3, s5, s7, s9); + } else { + peg$currPos = s0; + s0 = peg$FAILED; + } + } else { + peg$currPos = s0; + s0 = peg$FAILED; + } + } else { + peg$currPos = s0; + s0 = peg$FAILED; + } + } else { + peg$currPos = s0; + s0 = peg$FAILED; + } + } else { + peg$currPos = s0; + s0 = peg$FAILED; + } + + if (s0 !== peg$FAILED) { + peg$tracer.trace({ + type: 'rule.match', + rule: 'AssemblyFor', + result: s0, + location: peg$computeLocation(startPos, peg$currPos), + }); + } else { + peg$tracer.trace({ + type: 'rule.fail', + rule: 'AssemblyFor', + location: peg$computeLocation(startPos, startPos), + }); + } + + return s0; + } + + var TYPES_TO_PROPERTY_NAMES = { + CallExpression: 'callee', + MemberExpression: 'object', + }; + + String.prototype.replaceAll = function (search, replacement) { + var target = this; + return target.split(search).join(replacement); + }; + + function filledArray(count, value) { + var result = new Array(count), + i; + + for (i = 0; i < count; i++) { + result[i] = value; + } + + return result; + } + + function extractOptional(optional, index) { + return optional ? optional[index] : null; + } + + function extractList(list, index) { + var result = new Array(list.length), + i; + + for (i = 0; i < list.length; i++) { + result[i] = list[i][index]; + } + + return result; + } + + function buildList(head, tail, index) { + return [head].concat(extractList(tail, index)); + } + + function buildTree(head, tail, builder) { + var result = head, + i; + + for (i = 0; i < tail.length; i++) { + result = builder(result, tail[i]); + } + + return result; + } + + function buildBinaryExpression(head, tail) { + return buildTree(head, tail, function (result, element) { + return { + type: 'BinaryExpression', + operator: element[1], + left: result, + right: element[3], + start: result.start, + end: element[3].end, + }; + }); + } + + function buildLogicalExpression(head, tail) { + return buildTree(head, tail, function (result, element) { + return { + type: 'LogicalExpression', + operator: element[1], + left: result, + right: element[3], + start: location().start.offset, + end: location().end.offset, + }; + }); + } + + function optionalList(value) { + return value !== null ? value : []; + } + + function normalizeVersionLiteral(item) { + if (item.constructor.name === 'Array') { + item[1] = item[1].join(''); + item = item.join(''); + } + + return item; + } + + peg$result = peg$startRuleFunction(); + + if (peg$result !== peg$FAILED && peg$currPos === input.length) { + return peg$result; + } else { + if (peg$result !== peg$FAILED && peg$currPos < input.length) { + peg$fail(peg$endExpectation()); + } + + throw peg$buildStructuredError( + peg$maxFailExpected, + peg$maxFailPos < input.length ? input.charAt(peg$maxFailPos) : null, + peg$maxFailPos < input.length + ? peg$computeLocation(peg$maxFailPos, peg$maxFailPos + 1) + : peg$computeLocation(peg$maxFailPos, peg$maxFailPos), + ); + } +} + +module.exports = { + SyntaxError: peg$SyntaxError, + DefaultTracer: peg$DefaultTracer, + parse: peg$parse, +}; diff --git a/test/general.js b/test/general.js index 13f2311..42038bd 100644 --- a/test/general.js +++ b/test/general.js @@ -1,163 +1,180 @@ -"use strict"; -const assert = require("chai").assert; -let SolidityParser = require("../index.js"); - -describe("Parser", function() { - it("parses documentation examples without throwing an error", function() { - SolidityParser.parseFile("./test/doc_examples.sol", true); - }); - - it("parses documentation examples using imports parser without throwing an error", function() { - SolidityParser.parseFile("./test/doc_examples.sol", "imports", true); - }); +'use strict'; +const assert = require('chai').assert; +let SolidityParser = require('../index.js'); + +describe('Parser', function () { + it('parses documentation examples without throwing an error', function () { + SolidityParser.parseFile('./test/doc_examples.sol', true); + }); + + it('parses documentation examples using imports parser without throwing an error', function () { + SolidityParser.parseFile('./test/doc_examples.sol', 'imports', true); + }); }); -describe("Built Parser", function() { - it("parses documentation examples without throwing an error", function() { - SolidityParser.parseFile("./test/doc_examples.sol", false); - }); +describe('Built Parser', function () { + it('parses documentation examples without throwing an error', function () { + SolidityParser.parseFile('./test/doc_examples.sol', false); + }); - it("parses documentation examples using imports parser without throwing an error", function() { - SolidityParser.parseFile("./test/doc_examples.sol", "imports", false); - }); + it('parses documentation examples using imports parser without throwing an error', function () { + SolidityParser.parseFile('./test/doc_examples.sol', 'imports', false); + }); }); - -describe("Should parse pragma abicoder", function() { - it("parses abi coder with v2", function() { - try{ - let all = SolidityParser.parseFile("./test/doc_examples.sol", false); - let body = all.body; - for (let i = 0; i < body.length; i++) { - if(body[i].type === "AbiCoderPragmaStatement") { - assert.isTrue(body[i].version.name === "v2"); - } - } - }catch(e) { - x = e; +describe('Should parse pragma abicoder', function () { + it('parses abi coder with v2', function () { + try { + let all = SolidityParser.parseFile('./test/doc_examples.sol', false); + let body = all.body; + for (let i = 0; i < body.length; i++) { + if (body[i].type === 'AbiCoderPragmaStatement') { + assert.isTrue(body[i].version.name === 'v2'); } - }); + } + } catch (e) { + x = e; + } + }); }); - -describe("Should do try parse", function() { - it("shoud be able to parse try catch in multiple contracts", function() { - try{ - let all = SolidityParser.parseFile("./test/tryparse-contract.sol", false); - let body = all.body; - }catch(e) { - x = e; - throw e; - } - }); +describe('Should do try parse', function () { + it('shoud be able to parse try catch in multiple contracts', function () { + try { + let all = SolidityParser.parseFile('./test/tryparse-contract.sol', false); + let body = all.body; + } catch (e) { + x = e; + throw e; + } + }); }); -describe("Should do try parse generic", function() { - it("shoud be able to parse try catch ", function() { - try{ - let all = SolidityParser.parseFile("./test/tryparse-generic.sol", false); - let body = all.body; - }catch(e) { - x = e; - throw e; - } - }); +describe('Should do try parse generic', function () { + it('shoud be able to parse try catch ', function () { + try { + let all = SolidityParser.parseFile('./test/tryparse-generic.sol', false); + let body = all.body; + } catch (e) { + x = e; + throw e; + } + }); }); - -describe("Should parse error declaration", function() { - it("shoud be able to parse error declarations ", function() { - try{ - let all = SolidityParser.parseFile("./test/parse-errordeclarations.sol", false); - let body = all.body; - }catch(e) { - x = e; - throw e; - } - }); +describe('Should parse error declaration', function () { + it('shoud be able to parse error declarations ', function () { + try { + let all = SolidityParser.parseFile( + './test/parse-errordeclarations.sol', + false, + ); + let body = all.body; + } catch (e) { + x = e; + throw e; + } + }); }); -describe("Should handle incomplete stametements", function() { - it("should be able to get position of error", function() { - - let all = SolidityParser.parseFile("./test/example_incomplete.sol", false); - let body = all.body; - for (let i = 0; i < body.length; i++) { - if(body[i].type === "ContractStatement") { - assert.isTrue(body[i].body[5].type === "ConstructorDeclaration"); - assert.isTrue(body[i].body[5].body.body[0].type === "IncompleteStatement"); - } - } - }); +describe('Should handle incomplete stametements', function () { + it('should be able to get position of error', function () { + let all = SolidityParser.parseFile('./test/example_incomplete.sol', false); + let body = all.body; + for (let i = 0; i < body.length; i++) { + if (body[i].type === 'ContractStatement') { + assert.isTrue(body[i].body[5].type === 'ConstructorDeclaration'); + assert.isTrue( + body[i].body[5].body.body[0].type === 'IncompleteStatement', + ); + } + } + }); }); - -describe("Should parse constructor, receive and fallback", function() { - it("parses contracts with constructor, receive and fallback", function() { - let all = SolidityParser.parseFile("./test/doc_examples.sol", false); - let body = all.body; - for (let i = 0; i < body.length; i++) { - if(body[i].type === "ContractStatement" && body[i].name ==="receive_fallback_constructor") { - assert.isTrue(body[i].body[1].type === "ConstructorDeclaration"); - assert.isTrue(body[i].body[2].type === "ReceiveDeclaration"); - assert.isTrue(body[i].body[3].type === "FallbackDeclaration"); - } - } - }); +describe('Should parse constructor, receive and fallback', function () { + it('parses contracts with constructor, receive and fallback', function () { + let all = SolidityParser.parseFile('./test/doc_examples.sol', false); + let body = all.body; + for (let i = 0; i < body.length; i++) { + if ( + body[i].type === 'ContractStatement' && + body[i].name === 'receive_fallback_constructor' + ) { + assert.isTrue(body[i].body[1].type === 'ConstructorDeclaration'); + assert.isTrue(body[i].body[2].type === 'ReceiveDeclaration'); + assert.isTrue(body[i].body[3].type === 'FallbackDeclaration'); + } + } + }); }); -describe("Should parse abstract", function() { - it("parses contracts with abstract", function() { - let all = SolidityParser.parseFile("./test/doc_examples.sol", false); - let body = all.body; - for (let i = 0; i < body.length; i++) { - if(body[i].type === "ContractStatement" && body[i].name ==="testAbstract") { - assert.isTrue(body[i].is_abstract); - } - - if(body[i].type === "ContractStatement" && body[i].name !=="testAbstract") { - assert.isFalse(body[i].is_abstract); - } - } - }); +describe('Should parse abstract', function () { + it('parses contracts with abstract', function () { + let all = SolidityParser.parseFile('./test/doc_examples.sol', false); + let body = all.body; + for (let i = 0; i < body.length; i++) { + if ( + body[i].type === 'ContractStatement' && + body[i].name === 'testAbstract' + ) { + assert.isTrue(body[i].is_abstract); + } + + if ( + body[i].type === 'ContractStatement' && + body[i].name !== 'testAbstract' + ) { + assert.isFalse(body[i].is_abstract); + } + } + }); }); - -describe("Should parse numbers with underscores", function() { - it("parses contracts with underscores", function() { - let all = SolidityParser.parseFile("./test/doc_examples.sol", false); - let body = all.body; - for (let i = 0; i < body.length; i++) { - if(body[i].type === "ContractStatement" && body[i].name ==="NumbersWithUnderscorers") { - assert.isTrue(body[i].body[0].value.value === 10000000); - } - } - }); +describe('Should parse numbers with underscores', function () { + it('parses contracts with underscores', function () { + let all = SolidityParser.parseFile('./test/doc_examples.sol', false); + let body = all.body; + for (let i = 0; i < body.length; i++) { + if ( + body[i].type === 'ContractStatement' && + body[i].name === 'NumbersWithUnderscorers' + ) { + assert.isTrue(body[i].body[0].value.value === 10000000); + } + } + }); }); -describe("Parse comments", () => { - function isAValidCommentToken(c, sc) { - return ( - ["Line", "Block"].includes(c.type) && typeof c.text === "string" && - (c.text.startsWith("//") || c.text.startsWith("/*")) && Number.isInteger(c.start) && - Number.isInteger(c.end) && sc.slice(c.start, c.end) === c.text - ); +describe('Parse comments', () => { + function isAValidCommentToken(c, sc) { + return ( + ['Line', 'Block'].includes(c.type) && + typeof c.text === 'string' && + (c.text.startsWith('//') || c.text.startsWith('/*')) && + Number.isInteger(c.start) && + Number.isInteger(c.end) && + sc.slice(c.start, c.end) === c.text + ); + } + + it('should parse comments', () => { + const sourceCode = require('fs').readFileSync( + './test/doc_examples.sol', + 'utf8', + ); + const comments = SolidityParser.parseComments(sourceCode); + + const expectedCommLen = 64; + + if (comments.length !== expectedCommLen) { + throw new Error(`there should be ${expectedCommLen} comment objects`); } - it("should parse comments", () => { - const sourceCode = require("fs").readFileSync("./test/doc_examples.sol", "utf8"); - const comments = SolidityParser.parseComments(sourceCode); - - const expectedCommLen = 64; - - if (comments.length !== expectedCommLen) { - throw new Error(`there should be ${expectedCommLen} comment objects`); - } - - comments.forEach(com => { - if (!isAValidCommentToken(com, sourceCode)) { - throw new Error(`${com} is not a valid comment token.`); - } - }); + comments.forEach((com) => { + if (!isAValidCommentToken(com, sourceCode)) { + throw new Error(`${com} is not a valid comment token.`); + } }); + }); }); diff --git a/test/solc.test.js b/test/solc.test.js new file mode 100644 index 0000000..8301008 --- /dev/null +++ b/test/solc.test.js @@ -0,0 +1,23 @@ + +var solc = require('solc'); + +var input = { + language: 'Solidity', + sources: { + 'test.sol': { + content: 'contract C { function f() public { } }' + } + }, + settings: { + outputSelection: { + '*': { + '*': ['*'], + '': ['ast'] + } + } +} +}; + +var output = JSON.parse(solc.compile(JSON.stringify(input))); + +console.log(output.sources['test.sol'].ast); diff --git a/yarn.lock b/yarn.lock new file mode 100644 index 0000000..a3f4e97 --- /dev/null +++ b/yarn.lock @@ -0,0 +1,2592 @@ +# THIS IS AN AUTOGENERATED FILE. DO NOT EDIT THIS FILE DIRECTLY. +# yarn lockfile v1 + + +"@babel/code-frame@^7.16.7": + version "7.16.7" + resolved "https://registry.yarnpkg.com/@babel/code-frame/-/code-frame-7.16.7.tgz#44416b6bd7624b998f5b1af5d470856c40138789" + integrity sha512-iAXqUn8IIeBTNd72xsFlgaXHkMBMt6y4HJp1tIaK465CWLT/fG1aqB7ykr95gHHmlBdGbFeWWfyB4NJJ0nmeIg== + dependencies: + "@babel/highlight" "^7.16.7" + +"@babel/compat-data@^7.16.4": + version "7.16.4" + resolved "https://registry.yarnpkg.com/@babel/compat-data/-/compat-data-7.16.4.tgz#081d6bbc336ec5c2435c6346b2ae1fb98b5ac68e" + integrity sha512-1o/jo7D+kC9ZjHX5v+EHrdjl3PhxMrLSOTGsOdHJ+KL8HCaEK6ehrVL2RS6oHDZp+L7xLirLrPmQtEng769J/Q== + +"@babel/core@^7.7.5": + version "7.16.7" + resolved "https://registry.yarnpkg.com/@babel/core/-/core-7.16.7.tgz#db990f931f6d40cb9b87a0dc7d2adc749f1dcbcf" + integrity sha512-aeLaqcqThRNZYmbMqtulsetOQZ/5gbR/dWruUCJcpas4Qoyy+QeagfDsPdMrqwsPRDNxJvBlRiZxxX7THO7qtA== + dependencies: + "@babel/code-frame" "^7.16.7" + "@babel/generator" "^7.16.7" + "@babel/helper-compilation-targets" "^7.16.7" + "@babel/helper-module-transforms" "^7.16.7" + "@babel/helpers" "^7.16.7" + "@babel/parser" "^7.16.7" + "@babel/template" "^7.16.7" + "@babel/traverse" "^7.16.7" + "@babel/types" "^7.16.7" + convert-source-map "^1.7.0" + debug "^4.1.0" + gensync "^1.0.0-beta.2" + json5 "^2.1.2" + semver "^6.3.0" + source-map "^0.5.0" + +"@babel/generator@^7.16.7": + version "7.16.7" + resolved "https://registry.yarnpkg.com/@babel/generator/-/generator-7.16.7.tgz#b42bf46a3079fa65e1544135f32e7958f048adbb" + integrity sha512-/ST3Sg8MLGY5HVYmrjOgL60ENux/HfO/CsUh7y4MalThufhE/Ff/6EibFDHi4jiDCaWfJKoqbE6oTh21c5hrRg== + dependencies: + "@babel/types" "^7.16.7" + jsesc "^2.5.1" + source-map "^0.5.0" + +"@babel/helper-compilation-targets@^7.16.7": + version "7.16.7" + resolved "https://registry.yarnpkg.com/@babel/helper-compilation-targets/-/helper-compilation-targets-7.16.7.tgz#06e66c5f299601e6c7da350049315e83209d551b" + integrity sha512-mGojBwIWcwGD6rfqgRXVlVYmPAv7eOpIemUG3dGnDdCY4Pae70ROij3XmfrH6Fa1h1aiDylpglbZyktfzyo/hA== + dependencies: + "@babel/compat-data" "^7.16.4" + "@babel/helper-validator-option" "^7.16.7" + browserslist "^4.17.5" + semver "^6.3.0" + +"@babel/helper-environment-visitor@^7.16.7": + version "7.16.7" + resolved "https://registry.yarnpkg.com/@babel/helper-environment-visitor/-/helper-environment-visitor-7.16.7.tgz#ff484094a839bde9d89cd63cba017d7aae80ecd7" + integrity sha512-SLLb0AAn6PkUeAfKJCCOl9e1R53pQlGAfc4y4XuMRZfqeMYLE0dM1LMhqbGAlGQY0lfw5/ohoYWAe9V1yibRag== + dependencies: + "@babel/types" "^7.16.7" + +"@babel/helper-function-name@^7.16.7": + version "7.16.7" + resolved "https://registry.yarnpkg.com/@babel/helper-function-name/-/helper-function-name-7.16.7.tgz#f1ec51551fb1c8956bc8dd95f38523b6cf375f8f" + integrity sha512-QfDfEnIUyyBSR3HtrtGECuZ6DAyCkYFp7GHl75vFtTnn6pjKeK0T1DB5lLkFvBea8MdaiUABx3osbgLyInoejA== + dependencies: + "@babel/helper-get-function-arity" "^7.16.7" + "@babel/template" "^7.16.7" + "@babel/types" "^7.16.7" + +"@babel/helper-get-function-arity@^7.16.7": + version "7.16.7" + resolved "https://registry.yarnpkg.com/@babel/helper-get-function-arity/-/helper-get-function-arity-7.16.7.tgz#ea08ac753117a669f1508ba06ebcc49156387419" + integrity sha512-flc+RLSOBXzNzVhcLu6ujeHUrD6tANAOU5ojrRx/as+tbzf8+stUCj7+IfRRoAbEZqj/ahXEMsjhOhgeZsrnTw== + dependencies: + "@babel/types" "^7.16.7" + +"@babel/helper-hoist-variables@^7.16.7": + version "7.16.7" + resolved "https://registry.yarnpkg.com/@babel/helper-hoist-variables/-/helper-hoist-variables-7.16.7.tgz#86bcb19a77a509c7b77d0e22323ef588fa58c246" + integrity sha512-m04d/0Op34H5v7pbZw6pSKP7weA6lsMvfiIAMeIvkY/R4xQtBSMFEigu9QTZ2qB/9l22vsxtM8a+Q8CzD255fg== + dependencies: + "@babel/types" "^7.16.7" + +"@babel/helper-module-imports@^7.16.7": + version "7.16.7" + resolved "https://registry.yarnpkg.com/@babel/helper-module-imports/-/helper-module-imports-7.16.7.tgz#25612a8091a999704461c8a222d0efec5d091437" + integrity sha512-LVtS6TqjJHFc+nYeITRo6VLXve70xmq7wPhWTqDJusJEgGmkAACWwMiTNrvfoQo6hEhFwAIixNkvB0jPXDL8Wg== + dependencies: + "@babel/types" "^7.16.7" + +"@babel/helper-module-transforms@^7.16.7": + version "7.16.7" + resolved "https://registry.yarnpkg.com/@babel/helper-module-transforms/-/helper-module-transforms-7.16.7.tgz#7665faeb721a01ca5327ddc6bba15a5cb34b6a41" + integrity sha512-gaqtLDxJEFCeQbYp9aLAefjhkKdjKcdh6DB7jniIGU3Pz52WAmP268zK0VgPz9hUNkMSYeH976K2/Y6yPadpng== + dependencies: + "@babel/helper-environment-visitor" "^7.16.7" + "@babel/helper-module-imports" "^7.16.7" + "@babel/helper-simple-access" "^7.16.7" + "@babel/helper-split-export-declaration" "^7.16.7" + "@babel/helper-validator-identifier" "^7.16.7" + "@babel/template" "^7.16.7" + "@babel/traverse" "^7.16.7" + "@babel/types" "^7.16.7" + +"@babel/helper-simple-access@^7.16.7": + version "7.16.7" + resolved "https://registry.yarnpkg.com/@babel/helper-simple-access/-/helper-simple-access-7.16.7.tgz#d656654b9ea08dbb9659b69d61063ccd343ff0f7" + integrity sha512-ZIzHVyoeLMvXMN/vok/a4LWRy8G2v205mNP0XOuf9XRLyX5/u9CnVulUtDgUTama3lT+bf/UqucuZjqiGuTS1g== + dependencies: + "@babel/types" "^7.16.7" + +"@babel/helper-split-export-declaration@^7.16.7": + version "7.16.7" + resolved "https://registry.yarnpkg.com/@babel/helper-split-export-declaration/-/helper-split-export-declaration-7.16.7.tgz#0b648c0c42da9d3920d85ad585f2778620b8726b" + integrity sha512-xbWoy/PFoxSWazIToT9Sif+jJTlrMcndIsaOKvTA6u7QEo7ilkRZpjew18/W3c7nm8fXdUDXh02VXTbZ0pGDNw== + dependencies: + "@babel/types" "^7.16.7" + +"@babel/helper-validator-identifier@^7.16.7": + version "7.16.7" + resolved "https://registry.yarnpkg.com/@babel/helper-validator-identifier/-/helper-validator-identifier-7.16.7.tgz#e8c602438c4a8195751243da9031d1607d247cad" + integrity sha512-hsEnFemeiW4D08A5gUAZxLBTXpZ39P+a+DGDsHw1yxqyQ/jzFEnxf5uTEGp+3bzAbNOxU1paTgYS4ECU/IgfDw== + +"@babel/helper-validator-option@^7.16.7": + version "7.16.7" + resolved "https://registry.yarnpkg.com/@babel/helper-validator-option/-/helper-validator-option-7.16.7.tgz#b203ce62ce5fe153899b617c08957de860de4d23" + integrity sha512-TRtenOuRUVo9oIQGPC5G9DgK4743cdxvtOw0weQNpZXaS16SCBi5MNjZF8vba3ETURjZpTbVn7Vvcf2eAwFozQ== + +"@babel/helpers@^7.16.7": + version "7.16.7" + resolved "https://registry.yarnpkg.com/@babel/helpers/-/helpers-7.16.7.tgz#7e3504d708d50344112767c3542fc5e357fffefc" + integrity sha512-9ZDoqtfY7AuEOt3cxchfii6C7GDyyMBffktR5B2jvWv8u2+efwvpnVKXMWzNehqy68tKgAfSwfdw/lWpthS2bw== + dependencies: + "@babel/template" "^7.16.7" + "@babel/traverse" "^7.16.7" + "@babel/types" "^7.16.7" + +"@babel/highlight@^7.16.7": + version "7.16.7" + resolved "https://registry.yarnpkg.com/@babel/highlight/-/highlight-7.16.7.tgz#81a01d7d675046f0d96f82450d9d9578bdfd6b0b" + integrity sha512-aKpPMfLvGO3Q97V0qhw/V2SWNWlwfJknuwAunU7wZLSfrM4xTBvg7E5opUVi1kJTBKihE38CPg4nBiqX83PWYw== + dependencies: + "@babel/helper-validator-identifier" "^7.16.7" + chalk "^2.0.0" + js-tokens "^4.0.0" + +"@babel/parser@^7.16.7": + version "7.16.7" + resolved "https://registry.yarnpkg.com/@babel/parser/-/parser-7.16.7.tgz#d372dda9c89fcec340a82630a9f533f2fe15877e" + integrity sha512-sR4eaSrnM7BV7QPzGfEX5paG/6wrZM3I0HDzfIAK06ESvo9oy3xBuVBxE3MbQaKNhvg8g/ixjMWo2CGpzpHsDA== + +"@babel/template@^7.16.7": + version "7.16.7" + resolved "https://registry.yarnpkg.com/@babel/template/-/template-7.16.7.tgz#8d126c8701fde4d66b264b3eba3d96f07666d155" + integrity sha512-I8j/x8kHUrbYRTUxXrrMbfCa7jxkE7tZre39x3kjr9hvI82cK1FfqLygotcWN5kdPGWcLdWMHpSBavse5tWw3w== + dependencies: + "@babel/code-frame" "^7.16.7" + "@babel/parser" "^7.16.7" + "@babel/types" "^7.16.7" + +"@babel/traverse@^7.16.7": + version "7.16.7" + resolved "https://registry.yarnpkg.com/@babel/traverse/-/traverse-7.16.7.tgz#dac01236a72c2560073658dd1a285fe4e0865d76" + integrity sha512-8KWJPIb8c2VvY8AJrydh6+fVRo2ODx1wYBU2398xJVq0JomuLBZmVQzLPBblJgHIGYG4znCpUZUZ0Pt2vdmVYQ== + dependencies: + "@babel/code-frame" "^7.16.7" + "@babel/generator" "^7.16.7" + "@babel/helper-environment-visitor" "^7.16.7" + "@babel/helper-function-name" "^7.16.7" + "@babel/helper-hoist-variables" "^7.16.7" + "@babel/helper-split-export-declaration" "^7.16.7" + "@babel/parser" "^7.16.7" + "@babel/types" "^7.16.7" + debug "^4.1.0" + globals "^11.1.0" + +"@babel/types@^7.16.7": + version "7.16.7" + resolved "https://registry.yarnpkg.com/@babel/types/-/types-7.16.7.tgz#4ed19d51f840ed4bd5645be6ce40775fecf03159" + integrity sha512-E8HuV7FO9qLpx6OtoGfUQ2cjIYnbFwvZWYBS+87EwtdMvmUPJSwykpovFB+8insbpF0uJcpr8KMUi64XZntZcg== + dependencies: + "@babel/helper-validator-identifier" "^7.16.7" + to-fast-properties "^2.0.0" + +"@cspotcode/source-map-consumer@0.8.0": + version "0.8.0" + resolved "https://registry.yarnpkg.com/@cspotcode/source-map-consumer/-/source-map-consumer-0.8.0.tgz#33bf4b7b39c178821606f669bbc447a6a629786b" + integrity sha512-41qniHzTU8yAGbCp04ohlmSrZf8bkf/iJsl3V0dRGsQN/5GFfx+LbCSsCpp2gqrqjTVg/K6O8ycoV35JIwAzAg== + +"@cspotcode/source-map-support@0.7.0": + version "0.7.0" + resolved "https://registry.yarnpkg.com/@cspotcode/source-map-support/-/source-map-support-0.7.0.tgz#4789840aa859e46d2f3173727ab707c66bf344f5" + integrity sha512-X4xqRHqN8ACt2aHVe51OxeA2HjbcL4MqFqXkrmQszJ1NOUuUu5u6Vqx/0lZSVNku7velL5FC/s5uEAj1lsBMhA== + dependencies: + "@cspotcode/source-map-consumer" "0.8.0" + +"@eslint/eslintrc@^1.0.5": + version "1.0.5" + resolved "https://registry.yarnpkg.com/@eslint/eslintrc/-/eslintrc-1.0.5.tgz#33f1b838dbf1f923bfa517e008362b78ddbbf318" + integrity sha512-BLxsnmK3KyPunz5wmCCpqy0YelEoxxGmH73Is+Z74oOTMtExcjkr3dDR6quwrjh1YspA8DH9gnX1o069KiS9AQ== + dependencies: + ajv "^6.12.4" + debug "^4.3.2" + espree "^9.2.0" + globals "^13.9.0" + ignore "^4.0.6" + import-fresh "^3.2.1" + js-yaml "^4.1.0" + minimatch "^3.0.4" + strip-json-comments "^3.1.1" + +"@humanwhocodes/config-array@^0.9.2": + version "0.9.2" + resolved "https://registry.yarnpkg.com/@humanwhocodes/config-array/-/config-array-0.9.2.tgz#68be55c737023009dfc5fe245d51181bb6476914" + integrity sha512-UXOuFCGcwciWckOpmfKDq/GyhlTf9pN/BzG//x8p8zTOFEcGuA68ANXheFS0AGvy3qgZqLBUkMs7hqzqCKOVwA== + dependencies: + "@humanwhocodes/object-schema" "^1.2.1" + debug "^4.1.1" + minimatch "^3.0.4" + +"@humanwhocodes/object-schema@^1.2.1": + version "1.2.1" + resolved "https://registry.yarnpkg.com/@humanwhocodes/object-schema/-/object-schema-1.2.1.tgz#b520529ec21d8e5945a1851dfd1c32e94e39ff45" + integrity sha512-ZnQMnLV4e7hDlUvw8H+U8ASL02SS2Gn6+9Ac3wGGLIe7+je2AeAOxPY+izIPJDfFDb7eDjev0Us8MO1iFRN8hA== + +"@istanbuljs/load-nyc-config@^1.0.0": + version "1.1.0" + resolved "https://registry.yarnpkg.com/@istanbuljs/load-nyc-config/-/load-nyc-config-1.1.0.tgz#fd3db1d59ecf7cf121e80650bb86712f9b55eced" + integrity sha512-VjeHSlIzpv/NyD3N0YuHfXOPDIixcA1q2ZV98wsMqcYlPmv2n3Yb2lYP9XMElnaFVXg5A7YLTeLu6V84uQDjmQ== + dependencies: + camelcase "^5.3.1" + find-up "^4.1.0" + get-package-type "^0.1.0" + js-yaml "^3.13.1" + resolve-from "^5.0.0" + +"@istanbuljs/schema@^0.1.2": + version "0.1.3" + resolved "https://registry.yarnpkg.com/@istanbuljs/schema/-/schema-0.1.3.tgz#e45e384e4b8ec16bce2fd903af78450f6bf7ec98" + integrity sha512-ZXRY4jNvVgSVQ8DL3LTcakaAtXwTVUxE81hslsyD2AtoXW/wVob10HkOJ1X/pAlcI7D+2YoZKg5do8G/w6RYgA== + +"@tootallnate/once@1": + version "1.1.2" + resolved "https://registry.yarnpkg.com/@tootallnate/once/-/once-1.1.2.tgz#ccb91445360179a04e7fe6aff78c00ffc1eeaf82" + integrity sha512-RbzJvlNzmRq5c3O09UipeuXno4tA1FE6ikOjxZK0tuxVv3412l64l5t1W5pj4+rJq9vpkm/kwiR07aZXnsKPxw== + +"@tsconfig/node10@^1.0.7": + version "1.0.8" + resolved "https://registry.yarnpkg.com/@tsconfig/node10/-/node10-1.0.8.tgz#c1e4e80d6f964fbecb3359c43bd48b40f7cadad9" + integrity sha512-6XFfSQmMgq0CFLY1MslA/CPUfhIL919M1rMsa5lP2P097N2Wd1sSX0tx1u4olM16fLNhtHZpRhedZJphNJqmZg== + +"@tsconfig/node12@^1.0.7": + version "1.0.9" + resolved "https://registry.yarnpkg.com/@tsconfig/node12/-/node12-1.0.9.tgz#62c1f6dee2ebd9aead80dc3afa56810e58e1a04c" + integrity sha512-/yBMcem+fbvhSREH+s14YJi18sp7J9jpuhYByADT2rypfajMZZN4WQ6zBGgBKp53NKmqI36wFYDb3yaMPurITw== + +"@tsconfig/node14@^1.0.0": + version "1.0.1" + resolved "https://registry.yarnpkg.com/@tsconfig/node14/-/node14-1.0.1.tgz#95f2d167ffb9b8d2068b0b235302fafd4df711f2" + integrity sha512-509r2+yARFfHHE7T6Puu2jjkoycftovhXRqW328PDXTVGKihlb1P8Z9mMZH04ebyajfRY7dedfGynlrFHJUQCg== + +"@tsconfig/node16@^1.0.2": + version "1.0.2" + resolved "https://registry.yarnpkg.com/@tsconfig/node16/-/node16-1.0.2.tgz#423c77877d0569db20e1fc80885ac4118314010e" + integrity sha512-eZxlbI8GZscaGS7kkc/trHTT5xgrjH3/1n2JDwusC9iahPKWMRvRjJSAN5mCXviuTGQ/lHnhvv8Q1YTpnfz9gA== + +"@types/json5@^0.0.29": + version "0.0.29" + resolved "https://registry.yarnpkg.com/@types/json5/-/json5-0.0.29.tgz#ee28707ae94e11d2b827bcbe5270bcea7f3e71ee" + integrity sha1-7ihweulOEdK4J7y+UnC86n8+ce4= + +"@types/mocha@^9.0.0": + version "9.0.0" + resolved "https://registry.yarnpkg.com/@types/mocha/-/mocha-9.0.0.tgz#3205bcd15ada9bc681ac20bef64e9e6df88fd297" + integrity sha512-scN0hAWyLVAvLR9AyW7HoFF5sJZglyBsbPuHO4fv7JRvfmPBMfp1ozWqOf/e4wwPNxezBZXRfWzMb6iFLgEVRA== + +"@types/node@^14": + version "14.18.3" + resolved "https://registry.yarnpkg.com/@types/node/-/node-14.18.3.tgz#b3682cfd9d5542b025df13233d073cb4347f63f3" + integrity sha512-GtTH2crF4MtOIrrAa+jgTV9JX/PfoUCYr6MiZw7O/dkZu5b6gm5dc1nAL0jwGo4ortSBBtGyeVaxdC8X6V+pLg== + +"@ungap/promise-all-settled@1.1.2": + version "1.1.2" + resolved "https://registry.yarnpkg.com/@ungap/promise-all-settled/-/promise-all-settled-1.1.2.tgz#aa58042711d6e3275dd37dc597e5d31e8c290a44" + integrity sha512-sL/cEvJWAnClXw0wHk85/2L0G6Sj8UB0Ctc1TEMbKSsmpRosqhwj9gWgFRZSrBr2f9tiXISwNhCPmlfqUqyb9Q== + +acorn-jsx@^5.3.1: + version "5.3.2" + resolved "https://registry.yarnpkg.com/acorn-jsx/-/acorn-jsx-5.3.2.tgz#7ed5bb55908b3b2f1bc55c6af1653bada7f07937" + integrity sha512-rq9s+JNhf0IChjtDXxllJ7g41oZk5SlXtp0LHwyA5cejwn7vKmKp4pPri6YEePv2PU65sAsegbXtIinmDFDXgQ== + +acorn-walk@^8.1.1: + version "8.2.0" + resolved "https://registry.yarnpkg.com/acorn-walk/-/acorn-walk-8.2.0.tgz#741210f2e2426454508853a2f44d0ab83b7f69c1" + integrity sha512-k+iyHEuPgSw6SbuDpGQM+06HQUa04DZ3o+F6CSzXMvvI5KMvnaEqXe+YVe555R9nn6GPt404fos4wcgpw12SDA== + +acorn@^8.4.1, acorn@^8.7.0: + version "8.7.0" + resolved "https://registry.yarnpkg.com/acorn/-/acorn-8.7.0.tgz#90951fde0f8f09df93549481e5fc141445b791cf" + integrity sha512-V/LGr1APy+PXIwKebEWrkZPwoeoF+w1jiOBUmuxuiUIaOHtob8Qc9BTrYo7VuI5fR8tqsy+buA2WFooR5olqvQ== + +agent-base@6: + version "6.0.2" + resolved "https://registry.yarnpkg.com/agent-base/-/agent-base-6.0.2.tgz#49fff58577cfee3f37176feab4c22e00f86d7f77" + integrity sha512-RZNwNclF7+MS/8bDg70amg32dyeZGZxiDuQmZxKLAlQjr3jGyLx+4Kkk58UO7D2QdgFIQCovuSuZESne6RG6XQ== + dependencies: + debug "4" + +aggregate-error@^3.0.0: + version "3.1.0" + resolved "https://registry.yarnpkg.com/aggregate-error/-/aggregate-error-3.1.0.tgz#92670ff50f5359bdb7a3e0d40d0ec30c5737687a" + integrity sha512-4I7Td01quW/RpocfNayFdFVk1qSuoh0E7JrbRJ16nH01HhKFQ88INq9Sd+nd72zqRySlr9BmDA8xlEJ6vJMrYA== + dependencies: + clean-stack "^2.0.0" + indent-string "^4.0.0" + +ajv@^6.10.0, ajv@^6.12.4: + version "6.12.6" + resolved "https://registry.yarnpkg.com/ajv/-/ajv-6.12.6.tgz#baf5a62e802b07d977034586f8c3baf5adf26df4" + integrity sha512-j3fVLgvTo527anyYyJOGTYJbG+vnnQYvE0m5mmkc1TK+nxAppkCLMIL0aZ4dblVCNoGShhm+kzE4ZUykBoMg4g== + dependencies: + fast-deep-equal "^3.1.1" + fast-json-stable-stringify "^2.0.0" + json-schema-traverse "^0.4.1" + uri-js "^4.2.2" + +ansi-colors@4.1.1, ansi-colors@^4.1.1: + version "4.1.1" + resolved "https://registry.yarnpkg.com/ansi-colors/-/ansi-colors-4.1.1.tgz#cbb9ae256bf750af1eab344f229aa27fe94ba348" + integrity sha512-JoX0apGbHaUJBNl6yF+p6JAFYZ666/hhCGKN5t9QFjbJQKUU/g8MNbFDbvfrgKXvI1QpZplPOnwIo99lX/AAmA== + +ansi-regex@^5.0.1: + version "5.0.1" + resolved "https://registry.yarnpkg.com/ansi-regex/-/ansi-regex-5.0.1.tgz#082cb2c89c9fe8659a311a53bd6a4dc5301db304" + integrity sha512-quJQXlTSUGL2LH9SUXo8VwsY4soanhgo6LNSm84E1LBcE8s3O0wpdiRzyR9z/ZZJMlMWv37qOOb9pdJlMUEKFQ== + +ansi-styles@^3.2.1: + version "3.2.1" + resolved "https://registry.yarnpkg.com/ansi-styles/-/ansi-styles-3.2.1.tgz#41fbb20243e50b12be0f04b8dedbf07520ce841d" + integrity sha512-VT0ZI6kZRdTh8YyJw3SMbYm/u+NqfsAxEpWO0Pf9sq8/e94WxxOpPKx9FR1FlyCtOVDNOQ+8ntlqFxiRc+r5qA== + dependencies: + color-convert "^1.9.0" + +ansi-styles@^4.0.0, ansi-styles@^4.1.0: + version "4.3.0" + resolved "https://registry.yarnpkg.com/ansi-styles/-/ansi-styles-4.3.0.tgz#edd803628ae71c04c85ae7a0906edad34b648937" + integrity sha512-zbB9rCJAT1rbjiVDb2hqKFHNYLxgtk8NURxZ3IZwD3F6NtxbXZQCnnSi1Lkx+IDohdPlFp222wVALIheZJQSEg== + dependencies: + color-convert "^2.0.1" + +anymatch@~3.1.2: + version "3.1.2" + resolved "https://registry.yarnpkg.com/anymatch/-/anymatch-3.1.2.tgz#c0557c096af32f106198f4f4e2a383537e378716" + integrity sha512-P43ePfOAIupkguHUycrc4qJ9kz8ZiuOUijaETwX7THt0Y/GNK7v0aa8rY816xWjZ7rJdA5XdMcpVFTKMq+RvWg== + dependencies: + normalize-path "^3.0.0" + picomatch "^2.0.4" + +append-transform@^2.0.0: + version "2.0.0" + resolved "https://registry.yarnpkg.com/append-transform/-/append-transform-2.0.0.tgz#99d9d29c7b38391e6f428d28ce136551f0b77e12" + integrity sha512-7yeyCEurROLQJFv5Xj4lEGTy0borxepjFv1g22oAdqFu//SrAlDl1O1Nxx15SH1RoliUml6p8dwJW9jvZughhg== + dependencies: + default-require-extensions "^3.0.0" + +archy@^1.0.0: + version "1.0.0" + resolved "https://registry.yarnpkg.com/archy/-/archy-1.0.0.tgz#f9c8c13757cc1dd7bc379ac77b2c62a5c2868c40" + integrity sha1-+cjBN1fMHde8N5rHeyxipcKGjEA= + +arg@^4.1.0: + version "4.1.3" + resolved "https://registry.yarnpkg.com/arg/-/arg-4.1.3.tgz#269fc7ad5b8e42cb63c896d5666017261c144089" + integrity sha512-58S9QDqG0Xx27YwPSt9fJxivjYl432YCwfDMfZ+71RAqUrZef7LrKQZ3LHLOwCS4FLNBplP533Zx895SeOCHvA== + +argparse@^1.0.7: + version "1.0.10" + resolved "https://registry.yarnpkg.com/argparse/-/argparse-1.0.10.tgz#bcd6791ea5ae09725e17e5ad988134cd40b3d911" + integrity sha512-o5Roy6tNG4SL/FOkCAN6RzjiakZS25RLYFrcMttJqbdd8BWrnA+fGz57iN5Pb06pvBGvl5gQ0B48dJlslXvoTg== + dependencies: + sprintf-js "~1.0.2" + +argparse@^2.0.1: + version "2.0.1" + resolved "https://registry.yarnpkg.com/argparse/-/argparse-2.0.1.tgz#246f50f3ca78a3240f6c997e8a9bd1eac49e4b38" + integrity sha512-8+9WqebbFzpX9OR+Wa6O29asIogeRMzcGtAINdpMHHyAg10f05aSFVBbcEqGf/PXw1EjAZ+q2/bEBg3DvurK3Q== + +argv@0.0.2: + version "0.0.2" + resolved "https://registry.yarnpkg.com/argv/-/argv-0.0.2.tgz#ecbd16f8949b157183711b1bda334f37840185ab" + integrity sha1-7L0W+JSbFXGDcRsb2jNPN4QBhas= + +array-includes@^3.1.4: + version "3.1.4" + resolved "https://registry.yarnpkg.com/array-includes/-/array-includes-3.1.4.tgz#f5b493162c760f3539631f005ba2bb46acb45ba9" + integrity sha512-ZTNSQkmWumEbiHO2GF4GmWxYVTiQyJy2XOTa15sdQSrvKn7l+180egQMqlrMOUMCyLMD7pmyQe4mMDUT6Behrw== + dependencies: + call-bind "^1.0.2" + define-properties "^1.1.3" + es-abstract "^1.19.1" + get-intrinsic "^1.1.1" + is-string "^1.0.7" + +array.prototype.flat@^1.2.5: + version "1.2.5" + resolved "https://registry.yarnpkg.com/array.prototype.flat/-/array.prototype.flat-1.2.5.tgz#07e0975d84bbc7c48cd1879d609e682598d33e13" + integrity sha512-KaYU+S+ndVqyUnignHftkwc58o3uVU1jzczILJ1tN2YaIZpFIKBiP/x/j97E5MVPsaCloPbqWLB/8qCTVvT2qg== + dependencies: + call-bind "^1.0.2" + define-properties "^1.1.3" + es-abstract "^1.19.0" + +assertion-error@^1.1.0: + version "1.1.0" + resolved "https://registry.yarnpkg.com/assertion-error/-/assertion-error-1.1.0.tgz#e60b6b0e8f301bd97e5375215bda406c85118c0b" + integrity sha512-jgsaNduz+ndvGyFt3uSuWqvy4lCnIJiovtouQN5JZHOKCS2QuhEdbcQHFhVksz2N2U9hXJo8odG7ETyWlEeuDw== + +balanced-match@^1.0.0: + version "1.0.2" + resolved "https://registry.yarnpkg.com/balanced-match/-/balanced-match-1.0.2.tgz#e83e3a7e3f300b34cb9d87f615fa0cbf357690ee" + integrity sha512-3oSeUO0TMV67hN1AmbXsK4yaqU7tjiHlbxRDZOpH0KW9+CeX4bRAaX0Anxt0tx2MrpRpWwQaPwIlISEJhYU5Pw== + +binary-extensions@^2.0.0: + version "2.2.0" + resolved "https://registry.yarnpkg.com/binary-extensions/-/binary-extensions-2.2.0.tgz#75f502eeaf9ffde42fc98829645be4ea76bd9e2d" + integrity sha512-jDctJ/IVQbZoJykoeHbhXpOlNBqGNcwXJKJog42E5HDPUwQTSdjCHdihjj0DlnheQ7blbT6dHOafNAiS8ooQKA== + +brace-expansion@^1.1.7: + version "1.1.11" + resolved "https://registry.yarnpkg.com/brace-expansion/-/brace-expansion-1.1.11.tgz#3c7fcbf529d87226f3d2f52b966ff5271eb441dd" + integrity sha512-iCuPHDFgrHX7H2vEI/5xpz07zSHB00TpugqhmYtVmMO6518mCuRMoOYFldEBl0g187ufozdaHgWKcYFb61qGiA== + dependencies: + balanced-match "^1.0.0" + concat-map "0.0.1" + +braces@~3.0.2: + version "3.0.2" + resolved "https://registry.yarnpkg.com/braces/-/braces-3.0.2.tgz#3454e1a462ee8d599e236df336cd9ea4f8afe107" + integrity sha512-b8um+L1RzM3WDSzvhm6gIz1yfTbBt6YTlcEKAvsmqCZZFw46z626lVj9j1yEPW33H5H+lBQpZMP1k8l+78Ha0A== + dependencies: + fill-range "^7.0.1" + +browser-stdout@1.3.1: + version "1.3.1" + resolved "https://registry.yarnpkg.com/browser-stdout/-/browser-stdout-1.3.1.tgz#baa559ee14ced73452229bad7326467c61fabd60" + integrity sha512-qhAVI1+Av2X7qelOfAIYwXONood6XlZE/fXaBSmW/T5SzLAmCgzi+eiWE7fUvbHaeNBQH13UftjpXxsfLkMpgw== + +browserslist@^4.17.5: + version "4.19.1" + resolved "https://registry.yarnpkg.com/browserslist/-/browserslist-4.19.1.tgz#4ac0435b35ab655896c31d53018b6dd5e9e4c9a3" + integrity sha512-u2tbbG5PdKRTUoctO3NBD8FQ5HdPh1ZXPHzp1rwaa5jTc+RV9/+RlWiAIKmjRPQF+xbGM9Kklj5bZQFa2s/38A== + dependencies: + caniuse-lite "^1.0.30001286" + electron-to-chromium "^1.4.17" + escalade "^3.1.1" + node-releases "^2.0.1" + picocolors "^1.0.0" + +caching-transform@^4.0.0: + version "4.0.0" + resolved "https://registry.yarnpkg.com/caching-transform/-/caching-transform-4.0.0.tgz#00d297a4206d71e2163c39eaffa8157ac0651f0f" + integrity sha512-kpqOvwXnjjN44D89K5ccQC+RUrsy7jB/XLlRrx0D7/2HNcTPqzsb6XgYoErwko6QsV184CA2YgS1fxDiiDZMWA== + dependencies: + hasha "^5.0.0" + make-dir "^3.0.0" + package-hash "^4.0.0" + write-file-atomic "^3.0.0" + +call-bind@^1.0.0, call-bind@^1.0.2: + version "1.0.2" + resolved "https://registry.yarnpkg.com/call-bind/-/call-bind-1.0.2.tgz#b1d4e89e688119c3c9a903ad30abb2f6a919be3c" + integrity sha512-7O+FbCihrB5WGbFYesctwmTKae6rOiIzmz1icreWJ+0aA7LJfuqhEso2T9ncpcFtzMQtzXf2QGGueWJGTYsqrA== + dependencies: + function-bind "^1.1.1" + get-intrinsic "^1.0.2" + +callsites@^3.0.0: + version "3.1.0" + resolved "https://registry.yarnpkg.com/callsites/-/callsites-3.1.0.tgz#b3630abd8943432f54b3f0519238e33cd7df2f73" + integrity sha512-P8BjAsXvZS+VIDUI11hHCQEv74YT67YUi5JJFNWIqL235sBmjX4+qx9Muvls5ivyNENctx46xQLQ3aTuE7ssaQ== + +camelcase@^5.0.0, camelcase@^5.3.1: + version "5.3.1" + resolved "https://registry.yarnpkg.com/camelcase/-/camelcase-5.3.1.tgz#e3c9b31569e106811df242f715725a1f4c494320" + integrity sha512-L28STB170nwWS63UjtlEOE3dldQApaJXZkOI1uMFfzf3rRuPegHaHesyee+YxQ+W6SvRDQV6UrdOdRiR153wJg== + +camelcase@^6.0.0: + version "6.2.1" + resolved "https://registry.yarnpkg.com/camelcase/-/camelcase-6.2.1.tgz#250fd350cfd555d0d2160b1d51510eaf8326e86e" + integrity sha512-tVI4q5jjFV5CavAU8DXfza/TJcZutVKo/5Foskmsqcm0MsL91moHvwiGNnqaa2o6PF/7yT5ikDRcVcl8Rj6LCA== + +caniuse-lite@^1.0.30001286: + version "1.0.30001294" + resolved "https://registry.yarnpkg.com/caniuse-lite/-/caniuse-lite-1.0.30001294.tgz#4849f27b101fd59ddee3751598c663801032533d" + integrity sha512-LiMlrs1nSKZ8qkNhpUf5KD0Al1KCBE3zaT7OLOwEkagXMEDij98SiOovn9wxVGQpklk9vVC/pUSqgYmkmKOS8g== + +chai@^4.3.4: + version "4.3.4" + resolved "https://registry.yarnpkg.com/chai/-/chai-4.3.4.tgz#b55e655b31e1eac7099be4c08c21964fce2e6c49" + integrity sha512-yS5H68VYOCtN1cjfwumDSuzn/9c+yza4f3reKXlE5rUg7SFcCEy90gJvydNgOYtblyf4Zi6jIWRnXOgErta0KA== + dependencies: + assertion-error "^1.1.0" + check-error "^1.0.2" + deep-eql "^3.0.1" + get-func-name "^2.0.0" + pathval "^1.1.1" + type-detect "^4.0.5" + +chalk@^2.0.0: + version "2.4.2" + resolved "https://registry.yarnpkg.com/chalk/-/chalk-2.4.2.tgz#cd42541677a54333cf541a49108c1432b44c9424" + integrity sha512-Mti+f9lpJNcwF4tWV8/OrTTtF1gZi+f8FqlyAdouralcFWFQWF2+NgCHShjkCb+IFBLq9buZwE1xckQU4peSuQ== + dependencies: + ansi-styles "^3.2.1" + escape-string-regexp "^1.0.5" + supports-color "^5.3.0" + +chalk@^4.0.0, chalk@^4.1.0: + version "4.1.2" + resolved "https://registry.yarnpkg.com/chalk/-/chalk-4.1.2.tgz#aac4e2b7734a740867aeb16bf02aad556a1e7a01" + integrity sha512-oKnbhFyRIXpUuez8iBMmyEa4nbj4IOQyuhc/wy9kY7/WVPcwIO9VA668Pu8RkO7+0G76SLROeyw9CpQ061i4mA== + dependencies: + ansi-styles "^4.1.0" + supports-color "^7.1.0" + +check-error@^1.0.2: + version "1.0.2" + resolved "https://registry.yarnpkg.com/check-error/-/check-error-1.0.2.tgz#574d312edd88bb5dd8912e9286dd6c0aed4aac82" + integrity sha1-V00xLt2Iu13YkS6Sht1sCu1KrII= + +chokidar@3.5.2: + version "3.5.2" + resolved "https://registry.yarnpkg.com/chokidar/-/chokidar-3.5.2.tgz#dba3976fcadb016f66fd365021d91600d01c1e75" + integrity sha512-ekGhOnNVPgT77r4K/U3GDhu+FQ2S8TnK/s2KbIGXi0SZWuwkZ2QNyfWdZW+TVfn84DpEP7rLeCt2UI6bJ8GwbQ== + dependencies: + anymatch "~3.1.2" + braces "~3.0.2" + glob-parent "~5.1.2" + is-binary-path "~2.1.0" + is-glob "~4.0.1" + normalize-path "~3.0.0" + readdirp "~3.6.0" + optionalDependencies: + fsevents "~2.3.2" + +clean-stack@^2.0.0: + version "2.2.0" + resolved "https://registry.yarnpkg.com/clean-stack/-/clean-stack-2.2.0.tgz#ee8472dbb129e727b31e8a10a427dee9dfe4008b" + integrity sha512-4diC9HaTE+KRAMWhDhrGOECgWZxoevMc5TlkObMqNSsVU62PYzXZ/SMTjzyGAFF1YusgxGcSWTEXBhp0CPwQ1A== + +cliui@^6.0.0: + version "6.0.0" + resolved "https://registry.yarnpkg.com/cliui/-/cliui-6.0.0.tgz#511d702c0c4e41ca156d7d0e96021f23e13225b1" + integrity sha512-t6wbgtoCXvAzst7QgXxJYqPt0usEfbgQdftEPbLL/cvv6HPE5VgvqCuAIDR0NgU52ds6rFwqrgakNLrHEjCbrQ== + dependencies: + string-width "^4.2.0" + strip-ansi "^6.0.0" + wrap-ansi "^6.2.0" + +cliui@^7.0.2: + version "7.0.4" + resolved "https://registry.yarnpkg.com/cliui/-/cliui-7.0.4.tgz#a0265ee655476fc807aea9df3df8df7783808b4f" + integrity sha512-OcRE68cOsVMXp1Yvonl/fzkQOyjLSu/8bhPDfQt0e0/Eb283TKP20Fs2MqoPsr9SwA595rRCA+QMzYc9nBP+JQ== + dependencies: + string-width "^4.2.0" + strip-ansi "^6.0.0" + wrap-ansi "^7.0.0" + +codecov@^3.8.3: + version "3.8.3" + resolved "https://registry.yarnpkg.com/codecov/-/codecov-3.8.3.tgz#9c3e364b8a700c597346ae98418d09880a3fdbe7" + integrity sha512-Y8Hw+V3HgR7V71xWH2vQ9lyS358CbGCldWlJFR0JirqoGtOoas3R3/OclRTvgUYFK29mmJICDPauVKmpqbwhOA== + dependencies: + argv "0.0.2" + ignore-walk "3.0.4" + js-yaml "3.14.1" + teeny-request "7.1.1" + urlgrey "1.0.0" + +color-convert@^1.9.0: + version "1.9.3" + resolved "https://registry.yarnpkg.com/color-convert/-/color-convert-1.9.3.tgz#bb71850690e1f136567de629d2d5471deda4c1e8" + integrity sha512-QfAUtd+vFdAtFQcC8CCyYt1fYWxSqAiK2cSD6zDB8N3cpsEBAvRxp9zOGg6G/SHHJYAT88/az/IuDGALsNVbGg== + dependencies: + color-name "1.1.3" + +color-convert@^2.0.1: + version "2.0.1" + resolved "https://registry.yarnpkg.com/color-convert/-/color-convert-2.0.1.tgz#72d3a68d598c9bdb3af2ad1e84f21d896abd4de3" + integrity sha512-RRECPsj7iu/xb5oKYcsFHSppFNnsj/52OVTRKb4zP5onXwVF3zVmmToNcOfGC+CRDpfK/U584fMg38ZHCaElKQ== + dependencies: + color-name "~1.1.4" + +color-name@1.1.3: + version "1.1.3" + resolved "https://registry.yarnpkg.com/color-name/-/color-name-1.1.3.tgz#a7d0558bd89c42f795dd42328f740831ca53bc25" + integrity sha1-p9BVi9icQveV3UIyj3QIMcpTvCU= + +color-name@~1.1.4: + version "1.1.4" + resolved "https://registry.yarnpkg.com/color-name/-/color-name-1.1.4.tgz#c2a09a87acbde69543de6f63fa3995c826c536a2" + integrity sha512-dOy+3AuW3a2wNbZHIuMZpTcgjGuLU/uBL/ubcZF9OXbDo8ff4O8yVp5Bf0efS8uEoYo5q4Fx7dY9OgQGXgAsQA== + +command-exists@^1.2.8: + version "1.2.9" + resolved "https://registry.yarnpkg.com/command-exists/-/command-exists-1.2.9.tgz#c50725af3808c8ab0260fd60b01fbfa25b954f69" + integrity sha512-LTQ/SGc+s0Xc0Fu5WaKnR0YiygZkm9eKFvyS+fRsU7/ZWFF8ykFM6Pc9aCVf1+xasOOZpO3BAVgVrKvsqKHV7w== + +commander@3.0.2: + version "3.0.2" + resolved "https://registry.yarnpkg.com/commander/-/commander-3.0.2.tgz#6837c3fb677ad9933d1cfba42dd14d5117d6b39e" + integrity sha512-Gar0ASD4BDyKC4hl4DwHqDrmvjoxWKZigVnAbn5H1owvm4CxCPdb0HQDehwNYMJpla5+M2tPmPARzhtYuwpHow== + +commondir@^1.0.1: + version "1.0.1" + resolved "https://registry.yarnpkg.com/commondir/-/commondir-1.0.1.tgz#ddd800da0c66127393cca5950ea968a3aaf1253b" + integrity sha1-3dgA2gxmEnOTzKWVDqloo6rxJTs= + +concat-map@0.0.1: + version "0.0.1" + resolved "https://registry.yarnpkg.com/concat-map/-/concat-map-0.0.1.tgz#d8a96bd77fd68df7793a73036a3ba0d5405d477b" + integrity sha1-2Klr13/Wjfd5OnMDajug1UBdR3s= + +confusing-browser-globals@^1.0.10: + version "1.0.11" + resolved "https://registry.yarnpkg.com/confusing-browser-globals/-/confusing-browser-globals-1.0.11.tgz#ae40e9b57cdd3915408a2805ebd3a5585608dc81" + integrity sha512-JsPKdmh8ZkmnHxDk55FZ1TqVLvEQTvoByJZRN9jzI0UjxK/QgAmsphz7PGtqgPieQZ/CQcHWXCR7ATDNhGe+YA== + +convert-source-map@^1.7.0: + version "1.8.0" + resolved "https://registry.yarnpkg.com/convert-source-map/-/convert-source-map-1.8.0.tgz#f3373c32d21b4d780dd8004514684fb791ca4369" + integrity sha512-+OQdjP49zViI/6i7nIJpA8rAl4sV/JdPfU9nZs3VqOwGIgizICvuN2ru6fMd+4llL0tar18UYJXfZ/TWtmhUjA== + dependencies: + safe-buffer "~5.1.1" + +create-require@^1.1.0: + version "1.1.1" + resolved "https://registry.yarnpkg.com/create-require/-/create-require-1.1.1.tgz#c1d7e8f1e5f6cfc9ff65f9cd352d37348756c333" + integrity sha512-dcKFX3jn0MpIaXjisoRvexIJVEKzaq7z2rZKxf+MSr9TkdmHmsU4m2lcLojrj/FHl8mk5VxMmYA+ftRkP/3oKQ== + +cross-spawn@^7.0.0, cross-spawn@^7.0.2: + version "7.0.3" + resolved "https://registry.yarnpkg.com/cross-spawn/-/cross-spawn-7.0.3.tgz#f73a85b9d5d41d045551c177e2882d4ac85728a6" + integrity sha512-iRDPJKUPVEND7dHPO8rkbOnPpyDygcDFtWjpeWNCgy8WP2rXcxXL8TskReQl6OrB2G7+UJrags1q15Fudc7G6w== + dependencies: + path-key "^3.1.0" + shebang-command "^2.0.0" + which "^2.0.1" + +debug@4, debug@^4.1.0, debug@^4.1.1, debug@^4.3.2: + version "4.3.3" + resolved "https://registry.yarnpkg.com/debug/-/debug-4.3.3.tgz#04266e0b70a98d4462e6e288e38259213332b664" + integrity sha512-/zxw5+vh1Tfv+4Qn7a5nsbcJKPaSvCDhojn6FEl9vupwK2VCSDtEiEtqr8DFtzYFOdz63LBkxec7DYuc2jon6Q== + dependencies: + ms "2.1.2" + +debug@4.3.2: + version "4.3.2" + resolved "https://registry.yarnpkg.com/debug/-/debug-4.3.2.tgz#f0a49c18ac8779e31d4a0c6029dfb76873c7428b" + integrity sha512-mOp8wKcvj7XxC78zLgw/ZA+6TSgkoE2C/ienthhRD298T7UNwAg9diBpLRxC0mOezLl4B0xV7M0cCO6P/O0Xhw== + dependencies: + ms "2.1.2" + +debug@^2.6.9: + version "2.6.9" + resolved "https://registry.yarnpkg.com/debug/-/debug-2.6.9.tgz#5d128515df134ff327e90a4c93f4e077a536341f" + integrity sha512-bC7ElrdJaJnPbAP+1EotYvqZsb3ecl5wi6Bfi6BJTUcNowp6cvspg0jXznRTKDjm/E7AdgFBVeAPVMNcKGsHMA== + dependencies: + ms "2.0.0" + +debug@^3.2.7: + version "3.2.7" + resolved "https://registry.yarnpkg.com/debug/-/debug-3.2.7.tgz#72580b7e9145fb39b6676f9c5e5fb100b934179a" + integrity sha512-CFjzYYAi4ThfiQvizrFQevTTXHtnCqWfe7x1AhgEscTz6ZbLbfoLRLPugTQyBth6f8ZERVUSyWHFD/7Wu4t1XQ== + dependencies: + ms "^2.1.1" + +decamelize@^1.2.0: + version "1.2.0" + resolved "https://registry.yarnpkg.com/decamelize/-/decamelize-1.2.0.tgz#f6534d15148269b20352e7bee26f501f9a191290" + integrity sha1-9lNNFRSCabIDUue+4m9QH5oZEpA= + +decamelize@^4.0.0: + version "4.0.0" + resolved "https://registry.yarnpkg.com/decamelize/-/decamelize-4.0.0.tgz#aa472d7bf660eb15f3494efd531cab7f2a709837" + integrity sha512-9iE1PgSik9HeIIw2JO94IidnE3eBoQrFJ3w7sFuzSX4DpmZ3v5sZpUiV5Swcf6mQEF+Y0ru8Neo+p+nyh2J+hQ== + +deep-eql@^3.0.1: + version "3.0.1" + resolved "https://registry.yarnpkg.com/deep-eql/-/deep-eql-3.0.1.tgz#dfc9404400ad1c8fe023e7da1df1c147c4b444df" + integrity sha512-+QeIQyN5ZuO+3Uk5DYh6/1eKO0m0YmJFGNmFHGACpf1ClL1nmlV/p4gNgbl2pJGxgXb4faqo6UE+M5ACEMyVcw== + dependencies: + type-detect "^4.0.0" + +deep-is@^0.1.3: + version "0.1.4" + resolved "https://registry.yarnpkg.com/deep-is/-/deep-is-0.1.4.tgz#a6f2dce612fadd2ef1f519b73551f17e85199831" + integrity sha512-oIPzksmTg4/MriiaYGO+okXDT7ztn/w3Eptv/+gSIdMdKsJo0u4CfYNFJPy+4SKMuCqGw2wxnA+URMg3t8a/bQ== + +default-require-extensions@^3.0.0: + version "3.0.0" + resolved "https://registry.yarnpkg.com/default-require-extensions/-/default-require-extensions-3.0.0.tgz#e03f93aac9b2b6443fc52e5e4a37b3ad9ad8df96" + integrity sha512-ek6DpXq/SCpvjhpFsLFRVtIxJCRw6fUR42lYMVZuUMK7n8eMz4Uh5clckdBjEpLhn/gEBZo7hDJnJcwdKLKQjg== + dependencies: + strip-bom "^4.0.0" + +define-properties@^1.1.3: + version "1.1.3" + resolved "https://registry.yarnpkg.com/define-properties/-/define-properties-1.1.3.tgz#cf88da6cbee26fe6db7094f61d870cbd84cee9f1" + integrity sha512-3MqfYKj2lLzdMSf8ZIZE/V+Zuy+BgD6f164e8K2w7dgnpKArBDerGYpM46IYYcjnkdPNMjPk9A6VFB8+3SKlXQ== + dependencies: + object-keys "^1.0.12" + +diff@5.0.0: + version "5.0.0" + resolved "https://registry.yarnpkg.com/diff/-/diff-5.0.0.tgz#7ed6ad76d859d030787ec35855f5b1daf31d852b" + integrity sha512-/VTCrvm5Z0JGty/BWHljh+BAiw3IK+2j87NGMu8Nwc/f48WoDAC395uomO9ZD117ZOBaHmkX1oyLvkVM/aIT3w== + +diff@^4.0.1: + version "4.0.2" + resolved "https://registry.yarnpkg.com/diff/-/diff-4.0.2.tgz#60f3aecb89d5fae520c11aa19efc2bb982aade7d" + integrity sha512-58lmxKSA4BNyLz+HHMUzlOEpg09FV+ev6ZMe3vJihgdxzgcwZ8VoEEPmALCZG9LmqfVoNMMKpttIYTVG6uDY7A== + +doctrine@^2.1.0: + version "2.1.0" + resolved "https://registry.yarnpkg.com/doctrine/-/doctrine-2.1.0.tgz#5cd01fc101621b42c4cd7f5d1a66243716d3f39d" + integrity sha512-35mSku4ZXK0vfCuHEDAwt55dg2jNajHZ1odvF+8SSr82EsZY4QmXfuWso8oEd8zRhVObSN18aM0CjSdoBX7zIw== + dependencies: + esutils "^2.0.2" + +doctrine@^3.0.0: + version "3.0.0" + resolved "https://registry.yarnpkg.com/doctrine/-/doctrine-3.0.0.tgz#addebead72a6574db783639dc87a121773973961" + integrity sha512-yS+Q5i3hBf7GBkd4KG8a7eBNNWNGLTaEwwYWUijIYM7zrlYDM0BFXHjjPWlWZ1Rg7UaddZeIDmi9jF3HmqiQ2w== + dependencies: + esutils "^2.0.2" + +electron-to-chromium@^1.4.17: + version "1.4.31" + resolved "https://registry.yarnpkg.com/electron-to-chromium/-/electron-to-chromium-1.4.31.tgz#8d5ccc3f8253cd142b07afaa84f200fd33a7f2a6" + integrity sha512-t3XVQtk+Frkv6aTD4RRk0OqosU+VLe1dQFW83MDer78ZD6a52frgXuYOIsLYTQiH2Lm+JB2OKYcn7zrX+YGAiQ== + +emoji-regex@^8.0.0: + version "8.0.0" + resolved "https://registry.yarnpkg.com/emoji-regex/-/emoji-regex-8.0.0.tgz#e818fd69ce5ccfcb404594f842963bf53164cc37" + integrity sha512-MSjYzcWNOA0ewAHpz0MxpYFvwg6yjy1NG3xteoqz644VCo/RPgnr1/GGt+ic3iJTzQ8Eu3TdM14SawnVUmGE6A== + +enquirer@^2.3.5: + version "2.3.6" + resolved "https://registry.yarnpkg.com/enquirer/-/enquirer-2.3.6.tgz#2a7fe5dd634a1e4125a975ec994ff5456dc3734d" + integrity sha512-yjNnPr315/FjS4zIsUxYguYUPP2e1NK4d7E7ZOLiyYCcbFBiTMyID+2wvm2w6+pZ/odMA7cRkjhsPbltwBOrLg== + dependencies: + ansi-colors "^4.1.1" + +es-abstract@^1.19.0, es-abstract@^1.19.1: + version "1.19.1" + resolved "https://registry.yarnpkg.com/es-abstract/-/es-abstract-1.19.1.tgz#d4885796876916959de78edaa0df456627115ec3" + integrity sha512-2vJ6tjA/UfqLm2MPs7jxVybLoB8i1t1Jd9R3kISld20sIxPcTbLuggQOUxeWeAvIUkduv/CfMjuh4WmiXr2v9w== + dependencies: + call-bind "^1.0.2" + es-to-primitive "^1.2.1" + function-bind "^1.1.1" + get-intrinsic "^1.1.1" + get-symbol-description "^1.0.0" + has "^1.0.3" + has-symbols "^1.0.2" + internal-slot "^1.0.3" + is-callable "^1.2.4" + is-negative-zero "^2.0.1" + is-regex "^1.1.4" + is-shared-array-buffer "^1.0.1" + is-string "^1.0.7" + is-weakref "^1.0.1" + object-inspect "^1.11.0" + object-keys "^1.1.1" + object.assign "^4.1.2" + string.prototype.trimend "^1.0.4" + string.prototype.trimstart "^1.0.4" + unbox-primitive "^1.0.1" + +es-to-primitive@^1.2.1: + version "1.2.1" + resolved "https://registry.yarnpkg.com/es-to-primitive/-/es-to-primitive-1.2.1.tgz#e55cd4c9cdc188bcefb03b366c736323fc5c898a" + integrity sha512-QCOllgZJtaUo9miYBcLChTUaHNjJF3PYs1VidD7AwiEj1kYxKeQTctLAezAOH5ZKRH0g2IgPn6KwB4IT8iRpvA== + dependencies: + is-callable "^1.1.4" + is-date-object "^1.0.1" + is-symbol "^1.0.2" + +es6-error@^4.0.1: + version "4.1.1" + resolved "https://registry.yarnpkg.com/es6-error/-/es6-error-4.1.1.tgz#9e3af407459deed47e9a91f9b885a84eb05c561d" + integrity sha512-Um/+FxMr9CISWh0bi5Zv0iOD+4cFh5qLeks1qhAopKVAJw3drgKbKySikp7wGhDL0HPeaja0P5ULZrxLkniUVg== + +escalade@^3.1.1: + version "3.1.1" + resolved "https://registry.yarnpkg.com/escalade/-/escalade-3.1.1.tgz#d8cfdc7000965c5a0174b4a82eaa5c0552742e40" + integrity sha512-k0er2gUkLf8O0zKJiAhmkTnJlTvINGv7ygDNPbeIsX/TJjGJZHuh9B2UxbsaEkmlEo9MfhrSzmhIlhRlI2GXnw== + +escape-string-regexp@4.0.0, escape-string-regexp@^4.0.0: + version "4.0.0" + resolved "https://registry.yarnpkg.com/escape-string-regexp/-/escape-string-regexp-4.0.0.tgz#14ba83a5d373e3d311e5afca29cf5bfad965bf34" + integrity sha512-TtpcNJ3XAzx3Gq8sWRzJaVajRs0uVxA2YAkdb1jm2YkPz4G6egUFAyA3n5vtEIZefPk5Wa4UXbKuS5fKkJWdgA== + +escape-string-regexp@^1.0.5: + version "1.0.5" + resolved "https://registry.yarnpkg.com/escape-string-regexp/-/escape-string-regexp-1.0.5.tgz#1b61c0562190a8dff6ae3bb2cf0200ca130b86d4" + integrity sha1-G2HAViGQqN/2rjuyzwIAyhMLhtQ= + +eslint-config-airbnb-base@^14.2.1: + version "14.2.1" + resolved "https://registry.yarnpkg.com/eslint-config-airbnb-base/-/eslint-config-airbnb-base-14.2.1.tgz#8a2eb38455dc5a312550193b319cdaeef042cd1e" + integrity sha512-GOrQyDtVEc1Xy20U7vsB2yAoB4nBlfH5HZJeatRXHleO+OS5Ot+MWij4Dpltw4/DyIkqUfqz1epfhVR5XWWQPA== + dependencies: + confusing-browser-globals "^1.0.10" + object.assign "^4.1.2" + object.entries "^1.1.2" + +eslint-config-prettier@^8.3.0: + version "8.3.0" + resolved "https://registry.yarnpkg.com/eslint-config-prettier/-/eslint-config-prettier-8.3.0.tgz#f7471b20b6fe8a9a9254cc684454202886a2dd7a" + integrity sha512-BgZuLUSeKzvlL/VUjx/Yb787VQ26RU3gGjA3iiFvdsp/2bMfVIWUVP7tjxtjS0e+HP409cPlPvNkQloz8C91ew== + +eslint-import-resolver-node@^0.3.6: + version "0.3.6" + resolved "https://registry.yarnpkg.com/eslint-import-resolver-node/-/eslint-import-resolver-node-0.3.6.tgz#4048b958395da89668252001dbd9eca6b83bacbd" + integrity sha512-0En0w03NRVMn9Uiyn8YRPDKvWjxCWkslUEhGNTdGx15RvPJYQ+lbOlqrlNI2vEAs4pDYK4f/HN2TbDmk5TP0iw== + dependencies: + debug "^3.2.7" + resolve "^1.20.0" + +eslint-module-utils@^2.7.1: + version "2.7.1" + resolved "https://registry.yarnpkg.com/eslint-module-utils/-/eslint-module-utils-2.7.1.tgz#b435001c9f8dd4ab7f6d0efcae4b9696d4c24b7c" + integrity sha512-fjoetBXQZq2tSTWZ9yWVl2KuFrTZZH3V+9iD1V1RfpDgxzJR+mPd/KZmMiA8gbPqdBzpNiEHOuT7IYEWxrH0zQ== + dependencies: + debug "^3.2.7" + find-up "^2.1.0" + pkg-dir "^2.0.0" + +eslint-plugin-import@^2.24.0: + version "2.25.3" + resolved "https://registry.yarnpkg.com/eslint-plugin-import/-/eslint-plugin-import-2.25.3.tgz#a554b5f66e08fb4f6dc99221866e57cfff824766" + integrity sha512-RzAVbby+72IB3iOEL8clzPLzL3wpDrlwjsTBAQXgyp5SeTqqY+0bFubwuo+y/HLhNZcXV4XqTBO4LGsfyHIDXg== + dependencies: + array-includes "^3.1.4" + array.prototype.flat "^1.2.5" + debug "^2.6.9" + doctrine "^2.1.0" + eslint-import-resolver-node "^0.3.6" + eslint-module-utils "^2.7.1" + has "^1.0.3" + is-core-module "^2.8.0" + is-glob "^4.0.3" + minimatch "^3.0.4" + object.values "^1.1.5" + resolve "^1.20.0" + tsconfig-paths "^3.11.0" + +eslint-scope@^7.1.0: + version "7.1.0" + resolved "https://registry.yarnpkg.com/eslint-scope/-/eslint-scope-7.1.0.tgz#c1f6ea30ac583031f203d65c73e723b01298f153" + integrity sha512-aWwkhnS0qAXqNOgKOK0dJ2nvzEbhEvpy8OlJ9kZ0FeZnA6zpjv1/Vei+puGFFX7zkPCkHHXb7IDX3A+7yPrRWg== + dependencies: + esrecurse "^4.3.0" + estraverse "^5.2.0" + +eslint-utils@^3.0.0: + version "3.0.0" + resolved "https://registry.yarnpkg.com/eslint-utils/-/eslint-utils-3.0.0.tgz#8aebaface7345bb33559db0a1f13a1d2d48c3672" + integrity sha512-uuQC43IGctw68pJA1RgbQS8/NP7rch6Cwd4j3ZBtgo4/8Flj4eGE7ZYSZRN3iq5pVUv6GPdW5Z1RFleo84uLDA== + dependencies: + eslint-visitor-keys "^2.0.0" + +eslint-visitor-keys@^2.0.0: + version "2.1.0" + resolved "https://registry.yarnpkg.com/eslint-visitor-keys/-/eslint-visitor-keys-2.1.0.tgz#f65328259305927392c938ed44eb0a5c9b2bd303" + integrity sha512-0rSmRBzXgDzIsD6mGdJgevzgezI534Cer5L/vyMX0kHzT/jiB43jRhd9YUlMGYLQy2zprNmoT8qasCGtY+QaKw== + +eslint-visitor-keys@^3.1.0: + version "3.1.0" + resolved "https://registry.yarnpkg.com/eslint-visitor-keys/-/eslint-visitor-keys-3.1.0.tgz#eee4acea891814cda67a7d8812d9647dd0179af2" + integrity sha512-yWJFpu4DtjsWKkt5GeNBBuZMlNcYVs6vRCLoCVEJrTjaSB6LC98gFipNK/erM2Heg/E8mIK+hXG/pJMLK+eRZA== + +eslint@^8.6.0: + version "8.6.0" + resolved "https://registry.yarnpkg.com/eslint/-/eslint-8.6.0.tgz#4318c6a31c5584838c1a2e940c478190f58d558e" + integrity sha512-UvxdOJ7mXFlw7iuHZA4jmzPaUqIw54mZrv+XPYKNbKdLR0et4rf60lIZUU9kiNtnzzMzGWxMV+tQ7uG7JG8DPw== + dependencies: + "@eslint/eslintrc" "^1.0.5" + "@humanwhocodes/config-array" "^0.9.2" + ajv "^6.10.0" + chalk "^4.0.0" + cross-spawn "^7.0.2" + debug "^4.3.2" + doctrine "^3.0.0" + enquirer "^2.3.5" + escape-string-regexp "^4.0.0" + eslint-scope "^7.1.0" + eslint-utils "^3.0.0" + eslint-visitor-keys "^3.1.0" + espree "^9.3.0" + esquery "^1.4.0" + esutils "^2.0.2" + fast-deep-equal "^3.1.3" + file-entry-cache "^6.0.1" + functional-red-black-tree "^1.0.1" + glob-parent "^6.0.1" + globals "^13.6.0" + ignore "^4.0.6" + import-fresh "^3.0.0" + imurmurhash "^0.1.4" + is-glob "^4.0.0" + js-yaml "^4.1.0" + json-stable-stringify-without-jsonify "^1.0.1" + levn "^0.4.1" + lodash.merge "^4.6.2" + minimatch "^3.0.4" + natural-compare "^1.4.0" + optionator "^0.9.1" + progress "^2.0.0" + regexpp "^3.2.0" + semver "^7.2.1" + strip-ansi "^6.0.1" + strip-json-comments "^3.1.0" + text-table "^0.2.0" + v8-compile-cache "^2.0.3" + +espree@^9.2.0, espree@^9.3.0: + version "9.3.0" + resolved "https://registry.yarnpkg.com/espree/-/espree-9.3.0.tgz#c1240d79183b72aaee6ccfa5a90bc9111df085a8" + integrity sha512-d/5nCsb0JcqsSEeQzFZ8DH1RmxPcglRWh24EFTlUEmCKoehXGdpsx0RkHDubqUI8LSAIKMQp4r9SzQ3n+sm4HQ== + dependencies: + acorn "^8.7.0" + acorn-jsx "^5.3.1" + eslint-visitor-keys "^3.1.0" + +esprima@^4.0.0: + version "4.0.1" + resolved "https://registry.yarnpkg.com/esprima/-/esprima-4.0.1.tgz#13b04cdb3e6c5d19df91ab6987a8695619b0aa71" + integrity sha512-eGuFFw7Upda+g4p+QHvnW0RyTX/SVeJBDM/gCtMARO0cLuT2HcEKnTPvhjV6aGeqrCB/sbNop0Kszm0jsaWU4A== + +esquery@^1.4.0: + version "1.4.0" + resolved "https://registry.yarnpkg.com/esquery/-/esquery-1.4.0.tgz#2148ffc38b82e8c7057dfed48425b3e61f0f24a5" + integrity sha512-cCDispWt5vHHtwMY2YrAQ4ibFkAL8RbH5YGBnZBc90MolvvfkkQcJro/aZiAQUlQ3qgrYS6D6v8Gc5G5CQsc9w== + dependencies: + estraverse "^5.1.0" + +esrecurse@^4.3.0: + version "4.3.0" + resolved "https://registry.yarnpkg.com/esrecurse/-/esrecurse-4.3.0.tgz#7ad7964d679abb28bee72cec63758b1c5d2c9921" + integrity sha512-KmfKL3b6G+RXvP8N1vr3Tq1kL/oCFgn2NYXEtqP8/L3pKapUA4G8cFVaoF3SU323CD4XypR/ffioHmkti6/Tag== + dependencies: + estraverse "^5.2.0" + +estraverse@^5.1.0, estraverse@^5.2.0: + version "5.3.0" + resolved "https://registry.yarnpkg.com/estraverse/-/estraverse-5.3.0.tgz#2eea5290702f26ab8fe5370370ff86c965d21123" + integrity sha512-MMdARuVEQziNTeJD8DgMqmhwR11BRQ/cBP+pLtYdSTnf3MIO8fFeiINEbX36ZdNlfU/7A9f3gUw49B3oQsvwBA== + +esutils@^2.0.2: + version "2.0.3" + resolved "https://registry.yarnpkg.com/esutils/-/esutils-2.0.3.tgz#74d2eb4de0b8da1293711910d50775b9b710ef64" + integrity sha512-kVscqXk4OCp68SZ0dkgEKVi6/8ij300KBWTJq32P/dYeWTSwK41WyTxalN1eRmA5Z9UU/LX9D7FWSmV9SAYx6g== + +fast-deep-equal@^3.1.1, fast-deep-equal@^3.1.3: + version "3.1.3" + resolved "https://registry.yarnpkg.com/fast-deep-equal/-/fast-deep-equal-3.1.3.tgz#3a7d56b559d6cbc3eb512325244e619a65c6c525" + integrity sha512-f3qQ9oQy9j2AhBe/H9VC91wLmKBCCU/gDOnKNAYG5hswO7BLKj09Hc5HYNz9cGI++xlpDCIgDaitVs03ATR84Q== + +fast-json-stable-stringify@^2.0.0: + version "2.1.0" + resolved "https://registry.yarnpkg.com/fast-json-stable-stringify/-/fast-json-stable-stringify-2.1.0.tgz#874bf69c6f404c2b5d99c481341399fd55892633" + integrity sha512-lhd/wF+Lk98HZoTCtlVraHtfh5XYijIjalXck7saUtuanSDyLMxnHhSXEDJqHxD7msR8D0uCmqlkwjCV8xvwHw== + +fast-levenshtein@^2.0.6: + version "2.0.6" + resolved "https://registry.yarnpkg.com/fast-levenshtein/-/fast-levenshtein-2.0.6.tgz#3d8a5c66883a16a30ca8643e851f19baa7797917" + integrity sha1-PYpcZog6FqMMqGQ+hR8Zuqd5eRc= + +fast-url-parser@^1.1.3: + version "1.1.3" + resolved "https://registry.yarnpkg.com/fast-url-parser/-/fast-url-parser-1.1.3.tgz#f4af3ea9f34d8a271cf58ad2b3759f431f0b318d" + integrity sha1-9K8+qfNNiicc9YrSs3WfQx8LMY0= + dependencies: + punycode "^1.3.2" + +file-entry-cache@^6.0.1: + version "6.0.1" + resolved "https://registry.yarnpkg.com/file-entry-cache/-/file-entry-cache-6.0.1.tgz#211b2dd9659cb0394b073e7323ac3c933d522027" + integrity sha512-7Gps/XWymbLk2QLYK4NzpMOrYjMhdIxXuIvy2QBsLE6ljuodKvdkWs/cpyJJ3CVIVpH0Oi1Hvg1ovbMzLdFBBg== + dependencies: + flat-cache "^3.0.4" + +fill-range@^7.0.1: + version "7.0.1" + resolved "https://registry.yarnpkg.com/fill-range/-/fill-range-7.0.1.tgz#1919a6a7c75fe38b2c7c77e5198535da9acdda40" + integrity sha512-qOo9F+dMUmC2Lcb4BbVvnKJxTPjCm+RRpe4gDuGrzkL7mEVl/djYSu2OdQ2Pa302N4oqkSg9ir6jaLWJ2USVpQ== + dependencies: + to-regex-range "^5.0.1" + +find-cache-dir@^3.2.0: + version "3.3.2" + resolved "https://registry.yarnpkg.com/find-cache-dir/-/find-cache-dir-3.3.2.tgz#b30c5b6eff0730731aea9bbd9dbecbd80256d64b" + integrity sha512-wXZV5emFEjrridIgED11OoUKLxiYjAcqot/NJdAkOhlJ+vGzwhOAfcG5OX1jP+S0PcjEn8bdMJv+g2jwQ3Onig== + dependencies: + commondir "^1.0.1" + make-dir "^3.0.2" + pkg-dir "^4.1.0" + +find-up@5.0.0: + version "5.0.0" + resolved "https://registry.yarnpkg.com/find-up/-/find-up-5.0.0.tgz#4c92819ecb7083561e4f4a240a86be5198f536fc" + integrity sha512-78/PXT1wlLLDgTzDs7sjq9hzz0vXD+zn+7wypEe4fXQxCmdmqfGsEPQxmiCSQI3ajFV91bVSsvNtrJRiW6nGng== + dependencies: + locate-path "^6.0.0" + path-exists "^4.0.0" + +find-up@^2.1.0: + version "2.1.0" + resolved "https://registry.yarnpkg.com/find-up/-/find-up-2.1.0.tgz#45d1b7e506c717ddd482775a2b77920a3c0c57a7" + integrity sha1-RdG35QbHF93UgndaK3eSCjwMV6c= + dependencies: + locate-path "^2.0.0" + +find-up@^4.0.0, find-up@^4.1.0: + version "4.1.0" + resolved "https://registry.yarnpkg.com/find-up/-/find-up-4.1.0.tgz#97afe7d6cdc0bc5928584b7c8d7b16e8a9aa5d19" + integrity sha512-PpOwAdQ/YlXQ2vj8a3h8IipDuYRi3wceVQQGYWxNINccq40Anw7BlsEXCMbt1Zt+OLA6Fq9suIpIWD0OsnISlw== + dependencies: + locate-path "^5.0.0" + path-exists "^4.0.0" + +flat-cache@^3.0.4: + version "3.0.4" + resolved "https://registry.yarnpkg.com/flat-cache/-/flat-cache-3.0.4.tgz#61b0338302b2fe9f957dcc32fc2a87f1c3048b11" + integrity sha512-dm9s5Pw7Jc0GvMYbshN6zchCA9RgQlzzEZX3vylR9IqFfS8XciblUXOKfW6SiuJ0e13eDYZoZV5wdrev7P3Nwg== + dependencies: + flatted "^3.1.0" + rimraf "^3.0.2" + +flat@^5.0.2: + version "5.0.2" + resolved "https://registry.yarnpkg.com/flat/-/flat-5.0.2.tgz#8ca6fe332069ffa9d324c327198c598259ceb241" + integrity sha512-b6suED+5/3rTpUBdG1gupIl8MPFCAMA0QXwmljLhvCUKcUvdE4gWky9zpuGCcXHOsz4J9wPGNWq6OKpmIzz3hQ== + +flatted@^3.1.0: + version "3.2.4" + resolved "https://registry.yarnpkg.com/flatted/-/flatted-3.2.4.tgz#28d9969ea90661b5134259f312ab6aa7929ac5e2" + integrity sha512-8/sOawo8tJ4QOBX8YlQBMxL8+RLZfxMQOif9o0KUKTNTjMYElWPE0r/m5VNFxTRd0NSw8qSy8dajrwX4RYI1Hw== + +foreground-child@^2.0.0: + version "2.0.0" + resolved "https://registry.yarnpkg.com/foreground-child/-/foreground-child-2.0.0.tgz#71b32800c9f15aa8f2f83f4a6bd9bff35d861a53" + integrity sha512-dCIq9FpEcyQyXKCkyzmlPTFNgrCzPudOe+mhvJU5zAtlBnGVy2yKxtfsxK2tQBThwq225jcvBjpw1Gr40uzZCA== + dependencies: + cross-spawn "^7.0.0" + signal-exit "^3.0.2" + +fromentries@^1.2.0: + version "1.3.2" + resolved "https://registry.yarnpkg.com/fromentries/-/fromentries-1.3.2.tgz#e4bca6808816bf8f93b52750f1127f5a6fd86e3a" + integrity sha512-cHEpEQHUg0f8XdtZCc2ZAhrHzKzT0MrFUTcvx+hfxYu7rGMDc5SKoXFh+n4YigxsHXRzc6OrCshdR1bWH6HHyg== + +fs-extra@^0.30.0: + version "0.30.0" + resolved "https://registry.yarnpkg.com/fs-extra/-/fs-extra-0.30.0.tgz#f233ffcc08d4da7d432daa449776989db1df93f0" + integrity sha1-8jP/zAjU2n1DLapEl3aYnbHfk/A= + dependencies: + graceful-fs "^4.1.2" + jsonfile "^2.1.0" + klaw "^1.0.0" + path-is-absolute "^1.0.0" + rimraf "^2.2.8" + +fs.realpath@^1.0.0: + version "1.0.0" + resolved "https://registry.yarnpkg.com/fs.realpath/-/fs.realpath-1.0.0.tgz#1504ad2523158caa40db4a2787cb01411994ea4f" + integrity sha1-FQStJSMVjKpA20onh8sBQRmU6k8= + +fsevents@~2.3.2: + version "2.3.2" + resolved "https://registry.yarnpkg.com/fsevents/-/fsevents-2.3.2.tgz#8a526f78b8fdf4623b709e0b975c52c24c02fd1a" + integrity sha512-xiqMQR4xAeHTuB9uWm+fFRcIOgKBMiOBP+eXiyT7jsgVCq1bkVygt00oASowB7EdtpOHaaPgKt812P9ab+DDKA== + +function-bind@^1.1.1: + version "1.1.1" + resolved "https://registry.yarnpkg.com/function-bind/-/function-bind-1.1.1.tgz#a56899d3ea3c9bab874bb9773b7c5ede92f4895d" + integrity sha512-yIovAzMX49sF8Yl58fSCWJ5svSLuaibPxXQJFLmBObTuCr0Mf1KiPopGM9NiFjiYBCbfaa2Fh6breQ6ANVTI0A== + +functional-red-black-tree@^1.0.1: + version "1.0.1" + resolved "https://registry.yarnpkg.com/functional-red-black-tree/-/functional-red-black-tree-1.0.1.tgz#1b0ab3bd553b2a0d6399d29c0e3ea0b252078327" + integrity sha1-GwqzvVU7Kg1jmdKcDj6gslIHgyc= + +gensync@^1.0.0-beta.2: + version "1.0.0-beta.2" + resolved "https://registry.yarnpkg.com/gensync/-/gensync-1.0.0-beta.2.tgz#32a6ee76c3d7f52d46b2b1ae5d93fea8580a25e0" + integrity sha512-3hN7NaskYvMDLQY55gnW3NQ+mesEAepTqlg+VEbj7zzqEMBVNhzcGYYeqFo/TlYz6eQiFcp1HcsCZO+nGgS8zg== + +get-caller-file@^2.0.1, get-caller-file@^2.0.5: + version "2.0.5" + resolved "https://registry.yarnpkg.com/get-caller-file/-/get-caller-file-2.0.5.tgz#4f94412a82db32f36e3b0b9741f8a97feb031f7e" + integrity sha512-DyFP3BM/3YHTQOCUL/w0OZHR0lpKeGrxotcHWcqNEdnltqFwXVfhEBQ94eIo34AfQpo0rGki4cyIiftY06h2Fg== + +get-func-name@^2.0.0: + version "2.0.0" + resolved "https://registry.yarnpkg.com/get-func-name/-/get-func-name-2.0.0.tgz#ead774abee72e20409433a066366023dd6887a41" + integrity sha1-6td0q+5y4gQJQzoGY2YCPdaIekE= + +get-intrinsic@^1.0.2, get-intrinsic@^1.1.0, get-intrinsic@^1.1.1: + version "1.1.1" + resolved "https://registry.yarnpkg.com/get-intrinsic/-/get-intrinsic-1.1.1.tgz#15f59f376f855c446963948f0d24cd3637b4abc6" + integrity sha512-kWZrnVM42QCiEA2Ig1bG8zjoIMOgxWwYCEeNdwY6Tv/cOSeGpcoX4pXHfKUxNKVoArnrEr2e9srnAxxGIraS9Q== + dependencies: + function-bind "^1.1.1" + has "^1.0.3" + has-symbols "^1.0.1" + +get-package-type@^0.1.0: + version "0.1.0" + resolved "https://registry.yarnpkg.com/get-package-type/-/get-package-type-0.1.0.tgz#8de2d803cff44df3bc6c456e6668b36c3926e11a" + integrity sha512-pjzuKtY64GYfWizNAJ0fr9VqttZkNiK2iS430LtIHzjBEr6bX8Am2zm4sW4Ro5wjWW5cAlRL1qAMTcXbjNAO2Q== + +get-symbol-description@^1.0.0: + version "1.0.0" + resolved "https://registry.yarnpkg.com/get-symbol-description/-/get-symbol-description-1.0.0.tgz#7fdb81c900101fbd564dd5f1a30af5aadc1e58d6" + integrity sha512-2EmdH1YvIQiZpltCNgkuiUnyukzxM/R6NDJX31Ke3BG1Nq5b0S2PhX59UKi9vZpPDQVdqn+1IcaAwnzTT5vCjw== + dependencies: + call-bind "^1.0.2" + get-intrinsic "^1.1.1" + +glob-parent@^6.0.1: + version "6.0.2" + resolved "https://registry.yarnpkg.com/glob-parent/-/glob-parent-6.0.2.tgz#6d237d99083950c79290f24c7642a3de9a28f9e3" + integrity sha512-XxwI8EOhVQgWp6iDL+3b0r86f4d6AX6zSU55HfB4ydCEuXLXc5FcYeOu+nnGftS4TEju/11rt4KJPTMgbfmv4A== + dependencies: + is-glob "^4.0.3" + +glob-parent@~5.1.2: + version "5.1.2" + resolved "https://registry.yarnpkg.com/glob-parent/-/glob-parent-5.1.2.tgz#869832c58034fe68a4093c17dc15e8340d8401c4" + integrity sha512-AOIgSQCepiJYwP3ARnGx+5VnTu2HBYdzbGP45eLw1vr3zB3vZLeyed1sC9hnbcOc9/SrMyM5RPQrkGz4aS9Zow== + dependencies: + is-glob "^4.0.1" + +glob@7.1.7: + version "7.1.7" + resolved "https://registry.yarnpkg.com/glob/-/glob-7.1.7.tgz#3b193e9233f01d42d0b3f78294bbeeb418f94a90" + integrity sha512-OvD9ENzPLbegENnYP5UUfJIirTg4+XwMWGaQfQTY0JenxNvvIKP3U3/tAQSPIu/lHxXYSZmpXlUHeqAIdKzBLQ== + dependencies: + fs.realpath "^1.0.0" + inflight "^1.0.4" + inherits "2" + minimatch "^3.0.4" + once "^1.3.0" + path-is-absolute "^1.0.0" + +glob@^7.1.3, glob@^7.1.4, glob@^7.1.6: + version "7.2.0" + resolved "https://registry.yarnpkg.com/glob/-/glob-7.2.0.tgz#d15535af7732e02e948f4c41628bd910293f6023" + integrity sha512-lmLf6gtyrPq8tTjSmrO94wBeQbFR3HbLHbuyD69wuyQkImp2hWqMGB47OX65FBkPffO641IP9jWa1z4ivqG26Q== + dependencies: + fs.realpath "^1.0.0" + inflight "^1.0.4" + inherits "2" + minimatch "^3.0.4" + once "^1.3.0" + path-is-absolute "^1.0.0" + +globals@^11.1.0: + version "11.12.0" + resolved "https://registry.yarnpkg.com/globals/-/globals-11.12.0.tgz#ab8795338868a0babd8525758018c2a7eb95c42e" + integrity sha512-WOBp/EEGUiIsJSp7wcv/y6MO+lV9UoncWqxuFfm8eBwzWNgyfBd6Gz+IeKQ9jCmyhoH99g15M3T+QaVHFjizVA== + +globals@^13.6.0, globals@^13.9.0: + version "13.12.0" + resolved "https://registry.yarnpkg.com/globals/-/globals-13.12.0.tgz#4d733760304230a0082ed96e21e5c565f898089e" + integrity sha512-uS8X6lSKN2JumVoXrbUz+uG4BYG+eiawqm3qFcT7ammfbUHeCBoJMlHcec/S3krSk73/AE/f0szYFmgAA3kYZg== + dependencies: + type-fest "^0.20.2" + +graceful-fs@^4.1.15, graceful-fs@^4.1.2, graceful-fs@^4.1.6, graceful-fs@^4.1.9: + version "4.2.8" + resolved "https://registry.yarnpkg.com/graceful-fs/-/graceful-fs-4.2.8.tgz#e412b8d33f5e006593cbd3cee6df9f2cebbe802a" + integrity sha512-qkIilPUYcNhJpd33n0GBXTB1MMPp14TxEsEs0pTrsSVucApsYzW5V+Q8Qxhik6KU3evy+qkAAowTByymK0avdg== + +growl@1.10.5: + version "1.10.5" + resolved "https://registry.yarnpkg.com/growl/-/growl-1.10.5.tgz#f2735dc2283674fa67478b10181059355c369e5e" + integrity sha512-qBr4OuELkhPenW6goKVXiv47US3clb3/IbuWF9KNKEijAy9oeHxU9IgzjvJhHkUzhaj7rOUD7+YGWqUjLp5oSA== + +has-bigints@^1.0.1: + version "1.0.1" + resolved "https://registry.yarnpkg.com/has-bigints/-/has-bigints-1.0.1.tgz#64fe6acb020673e3b78db035a5af69aa9d07b113" + integrity sha512-LSBS2LjbNBTf6287JEbEzvJgftkF5qFkmCo9hDRpAzKhUOlJ+hx8dd4USs00SgsUNwc4617J9ki5YtEClM2ffA== + +has-flag@^3.0.0: + version "3.0.0" + resolved "https://registry.yarnpkg.com/has-flag/-/has-flag-3.0.0.tgz#b5d454dc2199ae225699f3467e5a07f3b955bafd" + integrity sha1-tdRU3CGZriJWmfNGfloH87lVuv0= + +has-flag@^4.0.0: + version "4.0.0" + resolved "https://registry.yarnpkg.com/has-flag/-/has-flag-4.0.0.tgz#944771fd9c81c81265c4d6941860da06bb59479b" + integrity sha512-EykJT/Q1KjTWctppgIAgfSO0tKVuZUjhgMr17kqTumMl6Afv3EISleU7qZUzoXDFTAHTDC4NOoG/ZxU3EvlMPQ== + +has-symbols@^1.0.1, has-symbols@^1.0.2: + version "1.0.2" + resolved "https://registry.yarnpkg.com/has-symbols/-/has-symbols-1.0.2.tgz#165d3070c00309752a1236a479331e3ac56f1423" + integrity sha512-chXa79rL/UC2KlX17jo3vRGz0azaWEx5tGqZg5pO3NUyEJVB17dMruQlzCCOfUvElghKcm5194+BCRvi2Rv/Gw== + +has-tostringtag@^1.0.0: + version "1.0.0" + resolved "https://registry.yarnpkg.com/has-tostringtag/-/has-tostringtag-1.0.0.tgz#7e133818a7d394734f941e73c3d3f9291e658b25" + integrity sha512-kFjcSNhnlGV1kyoGk7OXKSawH5JOb/LzUc5w9B02hOTO0dfFRjbHQKvg1d6cf3HbeUmtU9VbbV3qzZ2Teh97WQ== + dependencies: + has-symbols "^1.0.2" + +has@^1.0.3: + version "1.0.3" + resolved "https://registry.yarnpkg.com/has/-/has-1.0.3.tgz#722d7cbfc1f6aa8241f16dd814e011e1f41e8796" + integrity sha512-f2dvO0VU6Oej7RkWJGrehjbzMAjFp5/VKPp5tTpWIV4JHHZK1/BxbFRtf/siA2SWTe09caDmVtYYzWEIbBS4zw== + dependencies: + function-bind "^1.1.1" + +hasha@^5.0.0: + version "5.2.2" + resolved "https://registry.yarnpkg.com/hasha/-/hasha-5.2.2.tgz#a48477989b3b327aea3c04f53096d816d97522a1" + integrity sha512-Hrp5vIK/xr5SkeN2onO32H0MgNZ0f17HRNH39WfL0SYUNOTZ5Lz1TJ8Pajo/87dYGEFlLMm7mIc/k/s6Bvz9HQ== + dependencies: + is-stream "^2.0.0" + type-fest "^0.8.0" + +he@1.2.0: + version "1.2.0" + resolved "https://registry.yarnpkg.com/he/-/he-1.2.0.tgz#84ae65fa7eafb165fddb61566ae14baf05664f0f" + integrity sha512-F/1DnUGPopORZi0ni+CvrCgHQ5FyEAHRLSApuYWMmrbSwoN2Mn/7k+Gl38gJnR7yyDZk6WLXwiGod1JOWNDKGw== + +html-escaper@^2.0.0: + version "2.0.2" + resolved "https://registry.yarnpkg.com/html-escaper/-/html-escaper-2.0.2.tgz#dfd60027da36a36dfcbe236262c00a5822681453" + integrity sha512-H2iMtd0I4Mt5eYiapRdIDjp+XzelXQ0tFE4JS7YFwFevXXMmOp9myNrUvCg0D6ws8iqkRPBfKHgbwig1SmlLfg== + +http-proxy-agent@^4.0.0: + version "4.0.1" + resolved "https://registry.yarnpkg.com/http-proxy-agent/-/http-proxy-agent-4.0.1.tgz#8a8c8ef7f5932ccf953c296ca8291b95aa74aa3a" + integrity sha512-k0zdNgqWTGA6aeIRVpvfVob4fL52dTfaehylg0Y4UvSySvOq/Y+BOyPrgpUrA7HylqvU8vIZGsRuXmspskV0Tg== + dependencies: + "@tootallnate/once" "1" + agent-base "6" + debug "4" + +https-proxy-agent@^5.0.0: + version "5.0.0" + resolved "https://registry.yarnpkg.com/https-proxy-agent/-/https-proxy-agent-5.0.0.tgz#e2a90542abb68a762e0a0850f6c9edadfd8506b2" + integrity sha512-EkYm5BcKUGiduxzSt3Eppko+PiNWNEpa4ySk9vTC6wDsQJW9rHSa+UhGNJoRYp7bz6Ht1eaRIa6QaJqO5rCFbA== + dependencies: + agent-base "6" + debug "4" + +ignore-walk@3.0.4: + version "3.0.4" + resolved "https://registry.yarnpkg.com/ignore-walk/-/ignore-walk-3.0.4.tgz#c9a09f69b7c7b479a5d74ac1a3c0d4236d2a6335" + integrity sha512-PY6Ii8o1jMRA1z4F2hRkH/xN59ox43DavKvD3oDpfurRlOJyAHpifIwpbdv1n4jt4ov0jSpw3kQ4GhJnpBL6WQ== + dependencies: + minimatch "^3.0.4" + +ignore@^4.0.6: + version "4.0.6" + resolved "https://registry.yarnpkg.com/ignore/-/ignore-4.0.6.tgz#750e3db5862087b4737ebac8207ffd1ef27b25fc" + integrity sha512-cyFDKrqc/YdcWFniJhzI42+AzS+gNwmUzOSFcRCQYwySuBBBy/KjuxWLZ/FHEH6Moq1NizMOBWyTcv8O4OZIMg== + +import-fresh@^3.0.0, import-fresh@^3.2.1: + version "3.3.0" + resolved "https://registry.yarnpkg.com/import-fresh/-/import-fresh-3.3.0.tgz#37162c25fcb9ebaa2e6e53d5b4d88ce17d9e0c2b" + integrity sha512-veYYhQa+D1QBKznvhUHxb8faxlrwUnxseDAbAp457E0wLNio2bOSKnjYDhMj+YiAq61xrMGhQk9iXVk5FzgQMw== + dependencies: + parent-module "^1.0.0" + resolve-from "^4.0.0" + +imurmurhash@^0.1.4: + version "0.1.4" + resolved "https://registry.yarnpkg.com/imurmurhash/-/imurmurhash-0.1.4.tgz#9218b9b2b928a238b13dc4fb6b6d576f231453ea" + integrity sha1-khi5srkoojixPcT7a21XbyMUU+o= + +indent-string@^4.0.0: + version "4.0.0" + resolved "https://registry.yarnpkg.com/indent-string/-/indent-string-4.0.0.tgz#624f8f4497d619b2d9768531d58f4122854d7251" + integrity sha512-EdDDZu4A2OyIK7Lr/2zG+w5jmbuk1DVBnEwREQvBzspBJkCEbRa8GxU1lghYcaGJCnRWibjDXlq779X1/y5xwg== + +inflight@^1.0.4: + version "1.0.6" + resolved "https://registry.yarnpkg.com/inflight/-/inflight-1.0.6.tgz#49bd6331d7d02d0c09bc910a1075ba8165b56df9" + integrity sha1-Sb1jMdfQLQwJvJEKEHW6gWW1bfk= + dependencies: + once "^1.3.0" + wrappy "1" + +inherits@2: + version "2.0.4" + resolved "https://registry.yarnpkg.com/inherits/-/inherits-2.0.4.tgz#0fa2c64f932917c3433a0ded55363aae37416b7c" + integrity sha512-k/vGaX4/Yla3WzyMCvTQOXYeIHvqOKtnqBduzTHpzpQZzAskKMhZ2K+EnBiSM9zGSoIFeMpXKxa4dYeZIQqewQ== + +internal-slot@^1.0.3: + version "1.0.3" + resolved "https://registry.yarnpkg.com/internal-slot/-/internal-slot-1.0.3.tgz#7347e307deeea2faac2ac6205d4bc7d34967f59c" + integrity sha512-O0DB1JC/sPyZl7cIo78n5dR7eUSwwpYPiXRhTzNxZVAMUuB8vlnRFyLxdrVToks6XPLVnFfbzaVd5WLjhgg+vA== + dependencies: + get-intrinsic "^1.1.0" + has "^1.0.3" + side-channel "^1.0.4" + +is-bigint@^1.0.1: + version "1.0.4" + resolved "https://registry.yarnpkg.com/is-bigint/-/is-bigint-1.0.4.tgz#08147a1875bc2b32005d41ccd8291dffc6691df3" + integrity sha512-zB9CruMamjym81i2JZ3UMn54PKGsQzsJeo6xvN3HJJ4CAsQNB6iRutp2To77OfCNuoxspsIhzaPoO1zyCEhFOg== + dependencies: + has-bigints "^1.0.1" + +is-binary-path@~2.1.0: + version "2.1.0" + resolved "https://registry.yarnpkg.com/is-binary-path/-/is-binary-path-2.1.0.tgz#ea1f7f3b80f064236e83470f86c09c254fb45b09" + integrity sha512-ZMERYes6pDydyuGidse7OsHxtbI7WVeUEozgR/g7rd0xUimYNlvZRE/K2MgZTjWy725IfelLeVcEM97mmtRGXw== + dependencies: + binary-extensions "^2.0.0" + +is-boolean-object@^1.1.0: + version "1.1.2" + resolved "https://registry.yarnpkg.com/is-boolean-object/-/is-boolean-object-1.1.2.tgz#5c6dc200246dd9321ae4b885a114bb1f75f63719" + integrity sha512-gDYaKHJmnj4aWxyj6YHyXVpdQawtVLHU5cb+eztPGczf6cjuTdwve5ZIEfgXqH4e57An1D1AKf8CZ3kYrQRqYA== + dependencies: + call-bind "^1.0.2" + has-tostringtag "^1.0.0" + +is-callable@^1.1.4, is-callable@^1.2.4: + version "1.2.4" + resolved "https://registry.yarnpkg.com/is-callable/-/is-callable-1.2.4.tgz#47301d58dd0259407865547853df6d61fe471945" + integrity sha512-nsuwtxZfMX67Oryl9LCQ+upnC0Z0BgpwntpS89m1H/TLF0zNfzfLMV/9Wa/6MZsj0acpEjAO0KF1xT6ZdLl95w== + +is-core-module@^2.2.0, is-core-module@^2.8.0: + version "2.8.0" + resolved "https://registry.yarnpkg.com/is-core-module/-/is-core-module-2.8.0.tgz#0321336c3d0925e497fd97f5d95cb114a5ccd548" + integrity sha512-vd15qHsaqrRL7dtH6QNuy0ndJmRDrS9HAM1CAiSifNUFv4x1a0CCVsj18hJ1mShxIG6T2i1sO78MkP56r0nYRw== + dependencies: + has "^1.0.3" + +is-date-object@^1.0.1: + version "1.0.5" + resolved "https://registry.yarnpkg.com/is-date-object/-/is-date-object-1.0.5.tgz#0841d5536e724c25597bf6ea62e1bd38298df31f" + integrity sha512-9YQaSxsAiSwcvS33MBk3wTCVnWK+HhF8VZR2jRxehM16QcVOdHqPn4VPHmRK4lSr38n9JriurInLcP90xsYNfQ== + dependencies: + has-tostringtag "^1.0.0" + +is-extglob@^2.1.1: + version "2.1.1" + resolved "https://registry.yarnpkg.com/is-extglob/-/is-extglob-2.1.1.tgz#a88c02535791f02ed37c76a1b9ea9773c833f8c2" + integrity sha1-qIwCU1eR8C7TfHahueqXc8gz+MI= + +is-fullwidth-code-point@^3.0.0: + version "3.0.0" + resolved "https://registry.yarnpkg.com/is-fullwidth-code-point/-/is-fullwidth-code-point-3.0.0.tgz#f116f8064fe90b3f7844a38997c0b75051269f1d" + integrity sha512-zymm5+u+sCsSWyD9qNaejV3DFvhCKclKdizYaJUuHA83RLjb7nSuGnddCHGv0hk+KY7BMAlsWeK4Ueg6EV6XQg== + +is-glob@^4.0.0, is-glob@^4.0.1, is-glob@^4.0.3, is-glob@~4.0.1: + version "4.0.3" + resolved "https://registry.yarnpkg.com/is-glob/-/is-glob-4.0.3.tgz#64f61e42cbbb2eec2071a9dac0b28ba1e65d5084" + integrity sha512-xelSayHH36ZgE7ZWhli7pW34hNbNl8Ojv5KVmkJD4hBdD3th8Tfk9vYasLM+mXWOZhFkgZfxhLSnrwRr4elSSg== + dependencies: + is-extglob "^2.1.1" + +is-negative-zero@^2.0.1: + version "2.0.2" + resolved "https://registry.yarnpkg.com/is-negative-zero/-/is-negative-zero-2.0.2.tgz#7bf6f03a28003b8b3965de3ac26f664d765f3150" + integrity sha512-dqJvarLawXsFbNDeJW7zAz8ItJ9cd28YufuuFzh0G8pNHjJMnY08Dv7sYX2uF5UpQOwieAeOExEYAWWfu7ZZUA== + +is-number-object@^1.0.4: + version "1.0.6" + resolved "https://registry.yarnpkg.com/is-number-object/-/is-number-object-1.0.6.tgz#6a7aaf838c7f0686a50b4553f7e54a96494e89f0" + integrity sha512-bEVOqiRcvo3zO1+G2lVMy+gkkEm9Yh7cDMRusKKu5ZJKPUYSJwICTKZrNKHA2EbSP0Tu0+6B/emsYNHZyn6K8g== + dependencies: + has-tostringtag "^1.0.0" + +is-number@^7.0.0: + version "7.0.0" + resolved "https://registry.yarnpkg.com/is-number/-/is-number-7.0.0.tgz#7535345b896734d5f80c4d06c50955527a14f12b" + integrity sha512-41Cifkg6e8TylSpdtTpeLVMqvSBEVzTttHvERD741+pnZ8ANv0004MRL43QKPDlK9cGvNp6NZWZUBlbGXYxxng== + +is-plain-obj@^2.1.0: + version "2.1.0" + resolved "https://registry.yarnpkg.com/is-plain-obj/-/is-plain-obj-2.1.0.tgz#45e42e37fccf1f40da8e5f76ee21515840c09287" + integrity sha512-YWnfyRwxL/+SsrWYfOpUtz5b3YD+nyfkHvjbcanzk8zgyO4ASD67uVMRt8k5bM4lLMDnXfriRhOpemw+NfT1eA== + +is-regex@^1.1.4: + version "1.1.4" + resolved "https://registry.yarnpkg.com/is-regex/-/is-regex-1.1.4.tgz#eef5663cd59fa4c0ae339505323df6854bb15958" + integrity sha512-kvRdxDsxZjhzUX07ZnLydzS1TU/TJlTUHHY4YLL87e37oUA49DfkLqgy+VjFocowy29cKvcSiu+kIv728jTTVg== + dependencies: + call-bind "^1.0.2" + has-tostringtag "^1.0.0" + +is-shared-array-buffer@^1.0.1: + version "1.0.1" + resolved "https://registry.yarnpkg.com/is-shared-array-buffer/-/is-shared-array-buffer-1.0.1.tgz#97b0c85fbdacb59c9c446fe653b82cf2b5b7cfe6" + integrity sha512-IU0NmyknYZN0rChcKhRO1X8LYz5Isj/Fsqh8NJOSf+N/hCOTwy29F32Ik7a+QszE63IdvmwdTPDd6cZ5pg4cwA== + +is-stream@^2.0.0: + version "2.0.1" + resolved "https://registry.yarnpkg.com/is-stream/-/is-stream-2.0.1.tgz#fac1e3d53b97ad5a9d0ae9cef2389f5810a5c077" + integrity sha512-hFoiJiTl63nn+kstHGBtewWSKnQLpyb155KHheA1l39uvtO9nWIop1p3udqPcUd/xbF1VLMO4n7OI6p7RbngDg== + +is-string@^1.0.5, is-string@^1.0.7: + version "1.0.7" + resolved "https://registry.yarnpkg.com/is-string/-/is-string-1.0.7.tgz#0dd12bf2006f255bb58f695110eff7491eebc0fd" + integrity sha512-tE2UXzivje6ofPW7l23cjDOMa09gb7xlAqG6jG5ej6uPV32TlWP3NKPigtaGeHNu9fohccRYvIiZMfOOnOYUtg== + dependencies: + has-tostringtag "^1.0.0" + +is-symbol@^1.0.2, is-symbol@^1.0.3: + version "1.0.4" + resolved "https://registry.yarnpkg.com/is-symbol/-/is-symbol-1.0.4.tgz#a6dac93b635b063ca6872236de88910a57af139c" + integrity sha512-C/CPBqKWnvdcxqIARxyOh4v1UUEOCHpgDa0WYgpKDFMszcrPcffg5uhwSgPCLD2WWxmq6isisz87tzT01tuGhg== + dependencies: + has-symbols "^1.0.2" + +is-typedarray@^1.0.0: + version "1.0.0" + resolved "https://registry.yarnpkg.com/is-typedarray/-/is-typedarray-1.0.0.tgz#e479c80858df0c1b11ddda6940f96011fcda4a9a" + integrity sha1-5HnICFjfDBsR3dppQPlgEfzaSpo= + +is-unicode-supported@^0.1.0: + version "0.1.0" + resolved "https://registry.yarnpkg.com/is-unicode-supported/-/is-unicode-supported-0.1.0.tgz#3f26c76a809593b52bfa2ecb5710ed2779b522a7" + integrity sha512-knxG2q4UC3u8stRGyAVJCOdxFmv5DZiRcdlIaAQXAbSfJya+OhopNotLQrstBhququ4ZpuKbDc/8S6mgXgPFPw== + +is-weakref@^1.0.1: + version "1.0.2" + resolved "https://registry.yarnpkg.com/is-weakref/-/is-weakref-1.0.2.tgz#9529f383a9338205e89765e0392efc2f100f06f2" + integrity sha512-qctsuLZmIQ0+vSSMfoVvyFe2+GSEvnmZ2ezTup1SBse9+twCCeial6EEi3Nc2KFcf6+qz2FBPnjXsk8xhKSaPQ== + dependencies: + call-bind "^1.0.2" + +is-windows@^1.0.2: + version "1.0.2" + resolved "https://registry.yarnpkg.com/is-windows/-/is-windows-1.0.2.tgz#d1850eb9791ecd18e6182ce12a30f396634bb19d" + integrity sha512-eXK1UInq2bPmjyX6e3VHIzMLobc4J94i4AWn+Hpq3OU5KkrRC96OAcR3PRJ/pGu6m8TRnBHP9dkXQVsT/COVIA== + +isexe@^2.0.0: + version "2.0.0" + resolved "https://registry.yarnpkg.com/isexe/-/isexe-2.0.0.tgz#e8fbf374dc556ff8947a10dcb0572d633f2cfa10" + integrity sha1-6PvzdNxVb/iUehDcsFctYz8s+hA= + +istanbul-lib-coverage@^3.0.0, istanbul-lib-coverage@^3.0.0-alpha.1: + version "3.2.0" + resolved "https://registry.yarnpkg.com/istanbul-lib-coverage/-/istanbul-lib-coverage-3.2.0.tgz#189e7909d0a39fa5a3dfad5b03f71947770191d3" + integrity sha512-eOeJ5BHCmHYvQK7xt9GkdHuzuCGS1Y6g9Gvnx3Ym33fz/HpLRYxiS0wHNr+m/MBC8B647Xt608vCDEvhl9c6Mw== + +istanbul-lib-hook@^3.0.0: + version "3.0.0" + resolved "https://registry.yarnpkg.com/istanbul-lib-hook/-/istanbul-lib-hook-3.0.0.tgz#8f84c9434888cc6b1d0a9d7092a76d239ebf0cc6" + integrity sha512-Pt/uge1Q9s+5VAZ+pCo16TYMWPBIl+oaNIjgLQxcX0itS6ueeaA+pEfThZpH8WxhFgCiEb8sAJY6MdUKgiIWaQ== + dependencies: + append-transform "^2.0.0" + +istanbul-lib-instrument@^4.0.0: + version "4.0.3" + resolved "https://registry.yarnpkg.com/istanbul-lib-instrument/-/istanbul-lib-instrument-4.0.3.tgz#873c6fff897450118222774696a3f28902d77c1d" + integrity sha512-BXgQl9kf4WTCPCCpmFGoJkz/+uhvm7h7PFKUYxh7qarQd3ER33vHG//qaE8eN25l07YqZPpHXU9I09l/RD5aGQ== + dependencies: + "@babel/core" "^7.7.5" + "@istanbuljs/schema" "^0.1.2" + istanbul-lib-coverage "^3.0.0" + semver "^6.3.0" + +istanbul-lib-processinfo@^2.0.2: + version "2.0.2" + resolved "https://registry.yarnpkg.com/istanbul-lib-processinfo/-/istanbul-lib-processinfo-2.0.2.tgz#e1426514662244b2f25df728e8fd1ba35fe53b9c" + integrity sha512-kOwpa7z9hme+IBPZMzQ5vdQj8srYgAtaRqeI48NGmAQ+/5yKiHLV0QbYqQpxsdEF0+w14SoB8YbnHKcXE2KnYw== + dependencies: + archy "^1.0.0" + cross-spawn "^7.0.0" + istanbul-lib-coverage "^3.0.0-alpha.1" + make-dir "^3.0.0" + p-map "^3.0.0" + rimraf "^3.0.0" + uuid "^3.3.3" + +istanbul-lib-report@^3.0.0: + version "3.0.0" + resolved "https://registry.yarnpkg.com/istanbul-lib-report/-/istanbul-lib-report-3.0.0.tgz#7518fe52ea44de372f460a76b5ecda9ffb73d8a6" + integrity sha512-wcdi+uAKzfiGT2abPpKZ0hSU1rGQjUQnLvtY5MpQ7QCTahD3VODhcu4wcfY1YtkGaDD5yuydOLINXsfbus9ROw== + dependencies: + istanbul-lib-coverage "^3.0.0" + make-dir "^3.0.0" + supports-color "^7.1.0" + +istanbul-lib-source-maps@^4.0.0: + version "4.0.1" + resolved "https://registry.yarnpkg.com/istanbul-lib-source-maps/-/istanbul-lib-source-maps-4.0.1.tgz#895f3a709fcfba34c6de5a42939022f3e4358551" + integrity sha512-n3s8EwkdFIJCG3BPKBYvskgXGoy88ARzvegkitk60NxRdwltLOTaH7CUiMRXvwYorl0Q712iEjcWB+fK/MrWVw== + dependencies: + debug "^4.1.1" + istanbul-lib-coverage "^3.0.0" + source-map "^0.6.1" + +istanbul-reports@^3.0.2: + version "3.1.3" + resolved "https://registry.yarnpkg.com/istanbul-reports/-/istanbul-reports-3.1.3.tgz#4bcae3103b94518117930d51283690960b50d3c2" + integrity sha512-x9LtDVtfm/t1GFiLl3NffC7hz+I1ragvgX1P/Lg1NlIagifZDKUkuuaAxH/qpwj2IuEfD8G2Bs/UKp+sZ/pKkg== + dependencies: + html-escaper "^2.0.0" + istanbul-lib-report "^3.0.0" + +js-sha3@0.8.0: + version "0.8.0" + resolved "https://registry.yarnpkg.com/js-sha3/-/js-sha3-0.8.0.tgz#b9b7a5da73afad7dedd0f8c463954cbde6818840" + integrity sha512-gF1cRrHhIzNfToc802P800N8PpXS+evLLXfsVpowqmAFR9uwbi89WvXg2QspOmXL8QL86J4T1EpFu+yUkwJY3Q== + +js-tokens@^4.0.0: + version "4.0.0" + resolved "https://registry.yarnpkg.com/js-tokens/-/js-tokens-4.0.0.tgz#19203fb59991df98e3a287050d4647cdeaf32499" + integrity sha512-RdJUflcE3cUzKiMqQgsCu06FPu9UdIJO0beYbPhHN4k6apgJtifcoCtT9bcxOpYBtpD2kCM6Sbzg4CausW/PKQ== + +js-yaml@3.14.1, js-yaml@^3.13.1: + version "3.14.1" + resolved "https://registry.yarnpkg.com/js-yaml/-/js-yaml-3.14.1.tgz#dae812fdb3825fa306609a8717383c50c36a0537" + integrity sha512-okMH7OXXJ7YrN9Ok3/SXrnu4iX9yOk+25nqX4imS2npuvTYDmo/QEZoqwZkYaIDk3jVvBOTOIEgEhaLOynBS9g== + dependencies: + argparse "^1.0.7" + esprima "^4.0.0" + +js-yaml@4.1.0, js-yaml@^4.1.0: + version "4.1.0" + resolved "https://registry.yarnpkg.com/js-yaml/-/js-yaml-4.1.0.tgz#c1fb65f8f5017901cdd2c951864ba18458a10602" + integrity sha512-wpxZs9NoxZaJESJGIZTyDEaYpl0FKSA+FB9aJiyemKhMwkxQg63h4T1KJgUGHpTqPDNRcmmYLugrRjJlBtWvRA== + dependencies: + argparse "^2.0.1" + +jsesc@^2.5.1: + version "2.5.2" + resolved "https://registry.yarnpkg.com/jsesc/-/jsesc-2.5.2.tgz#80564d2e483dacf6e8ef209650a67df3f0c283a4" + integrity sha512-OYu7XEzjkCQ3C5Ps3QIZsQfNpqoJyZZA99wd9aWd05NCtC5pWOkShK2mkL6HXQR6/Cy2lbNdPlZBpuQHXE63gA== + +json-schema-traverse@^0.4.1: + version "0.4.1" + resolved "https://registry.yarnpkg.com/json-schema-traverse/-/json-schema-traverse-0.4.1.tgz#69f6a87d9513ab8bb8fe63bdb0979c448e684660" + integrity sha512-xbbCH5dCYU5T8LcEhhuh7HJ88HXuW3qsI3Y0zOZFKfZEHcpWiHU/Jxzk629Brsab/mMiHQti9wMP+845RPe3Vg== + +json-stable-stringify-without-jsonify@^1.0.1: + version "1.0.1" + resolved "https://registry.yarnpkg.com/json-stable-stringify-without-jsonify/-/json-stable-stringify-without-jsonify-1.0.1.tgz#9db7b59496ad3f3cfef30a75142d2d930ad72651" + integrity sha1-nbe1lJatPzz+8wp1FC0tkwrXJlE= + +json5@^1.0.1: + version "1.0.1" + resolved "https://registry.yarnpkg.com/json5/-/json5-1.0.1.tgz#779fb0018604fa854eacbf6252180d83543e3dbe" + integrity sha512-aKS4WQjPenRxiQsC93MNfjx+nbF4PAdYzmd/1JIj8HYzqfbu86beTuNgXDzPknWk0n0uARlyewZo4s++ES36Ow== + dependencies: + minimist "^1.2.0" + +json5@^2.1.2: + version "2.2.0" + resolved "https://registry.yarnpkg.com/json5/-/json5-2.2.0.tgz#2dfefe720c6ba525d9ebd909950f0515316c89a3" + integrity sha512-f+8cldu7X/y7RAJurMEJmdoKXGB/X550w2Nr3tTbezL6RwEE/iMcm+tZnXeoZtKuOq6ft8+CqzEkrIgx1fPoQA== + dependencies: + minimist "^1.2.5" + +jsonfile@^2.1.0: + version "2.4.0" + resolved "https://registry.yarnpkg.com/jsonfile/-/jsonfile-2.4.0.tgz#3736a2b428b87bbda0cc83b53fa3d633a35c2ae8" + integrity sha1-NzaitCi4e72gzIO1P6PWM6NcKug= + optionalDependencies: + graceful-fs "^4.1.6" + +klaw@^1.0.0: + version "1.3.1" + resolved "https://registry.yarnpkg.com/klaw/-/klaw-1.3.1.tgz#4088433b46b3b1ba259d78785d8e96f73ba02439" + integrity sha1-QIhDO0azsbolnXh4XY6W9zugJDk= + optionalDependencies: + graceful-fs "^4.1.9" + +levn@^0.4.1: + version "0.4.1" + resolved "https://registry.yarnpkg.com/levn/-/levn-0.4.1.tgz#ae4562c007473b932a6200d403268dd2fffc6ade" + integrity sha512-+bT2uH4E5LGE7h/n3evcS/sQlJXCpIp6ym8OWJ5eV6+67Dsql/LaaT7qJBAt2rzfoa/5QBGBhxDix1dMt2kQKQ== + dependencies: + prelude-ls "^1.2.1" + type-check "~0.4.0" + +locate-path@^2.0.0: + version "2.0.0" + resolved "https://registry.yarnpkg.com/locate-path/-/locate-path-2.0.0.tgz#2b568b265eec944c6d9c0de9c3dbbbca0354cd8e" + integrity sha1-K1aLJl7slExtnA3pw9u7ygNUzY4= + dependencies: + p-locate "^2.0.0" + path-exists "^3.0.0" + +locate-path@^5.0.0: + version "5.0.0" + resolved "https://registry.yarnpkg.com/locate-path/-/locate-path-5.0.0.tgz#1afba396afd676a6d42504d0a67a3a7eb9f62aa0" + integrity sha512-t7hw9pI+WvuwNJXwk5zVHpyhIqzg2qTlklJOf0mVxGSbe3Fp2VieZcduNYjaLDoy6p9uGpQEGWG87WpMKlNq8g== + dependencies: + p-locate "^4.1.0" + +locate-path@^6.0.0: + version "6.0.0" + resolved "https://registry.yarnpkg.com/locate-path/-/locate-path-6.0.0.tgz#55321eb309febbc59c4801d931a72452a681d286" + integrity sha512-iPZK6eYjbxRu3uB4/WZ3EsEIMJFMqAoopl3R+zuq0UjcAm/MO6KCweDgPfP3elTztoKP3KtnVHxTn2NHBSDVUw== + dependencies: + p-locate "^5.0.0" + +lodash.flattendeep@^4.4.0: + version "4.4.0" + resolved "https://registry.yarnpkg.com/lodash.flattendeep/-/lodash.flattendeep-4.4.0.tgz#fb030917f86a3134e5bc9bec0d69e0013ddfedb2" + integrity sha1-+wMJF/hqMTTlvJvsDWngAT3f7bI= + +lodash.merge@^4.6.2: + version "4.6.2" + resolved "https://registry.yarnpkg.com/lodash.merge/-/lodash.merge-4.6.2.tgz#558aa53b43b661e1925a0afdfa36a9a1085fe57a" + integrity sha512-0KpjqXRVvrYyCsX1swR/XTK0va6VQkQM6MNo7PqW77ByjAhoARA8EfrP1N4+KlKj8YS0ZUCtRT/YUuhyYDujIQ== + +log-symbols@4.1.0: + version "4.1.0" + resolved "https://registry.yarnpkg.com/log-symbols/-/log-symbols-4.1.0.tgz#3fbdbb95b4683ac9fc785111e792e558d4abd503" + integrity sha512-8XPvpAA8uyhfteu8pIvQxpJZ7SYYdpUivZpGy6sFsBuKRY/7rQGavedeB8aK+Zkyq6upMFVL/9AW6vOYzfRyLg== + dependencies: + chalk "^4.1.0" + is-unicode-supported "^0.1.0" + +lru-cache@^6.0.0: + version "6.0.0" + resolved "https://registry.yarnpkg.com/lru-cache/-/lru-cache-6.0.0.tgz#6d6fe6570ebd96aaf90fcad1dafa3b2566db3a94" + integrity sha512-Jo6dJ04CmSjuznwJSS3pUeWmd/H0ffTlkXXgwZi+eq1UCmqQwCh+eLsYOYCwY991i2Fah4h1BEMCx4qThGbsiA== + dependencies: + yallist "^4.0.0" + +make-dir@^3.0.0, make-dir@^3.0.2: + version "3.1.0" + resolved "https://registry.yarnpkg.com/make-dir/-/make-dir-3.1.0.tgz#415e967046b3a7f1d185277d84aa58203726a13f" + integrity sha512-g3FeP20LNwhALb/6Cz6Dd4F2ngze0jz7tbzrD2wAV+o9FeNHe4rL+yK2md0J/fiSf1sa1ADhXqi5+oVwOM/eGw== + dependencies: + semver "^6.0.0" + +make-error@^1.1.1: + version "1.3.6" + resolved "https://registry.yarnpkg.com/make-error/-/make-error-1.3.6.tgz#2eb2e37ea9b67c4891f684a1394799af484cf7a2" + integrity sha512-s8UhlNe7vPKomQhC1qFelMokr/Sc3AgNbso3n74mVPA5LTZwkB9NlXf4XPamLxJE8h0gh73rM94xvwRT2CVInw== + +memorystream@^0.3.1: + version "0.3.1" + resolved "https://registry.yarnpkg.com/memorystream/-/memorystream-0.3.1.tgz#86d7090b30ce455d63fbae12dda51a47ddcaf9b2" + integrity sha1-htcJCzDORV1j+64S3aUaR93K+bI= + +minimatch@3.0.4, minimatch@^3.0.4: + version "3.0.4" + resolved "https://registry.yarnpkg.com/minimatch/-/minimatch-3.0.4.tgz#5166e286457f03306064be5497e8dbb0c3d32083" + integrity sha512-yJHVQEhyqPLUTgt9B83PXu6W3rx4MvvHvSUvToogpwoGDOUQ+yDrR0HRot+yOCdCO7u4hX3pWft6kWBBcqh0UA== + dependencies: + brace-expansion "^1.1.7" + +minimist@^1.2.0, minimist@^1.2.5: + version "1.2.5" + resolved "https://registry.yarnpkg.com/minimist/-/minimist-1.2.5.tgz#67d66014b66a6a8aaa0c083c5fd58df4e4e97602" + integrity sha512-FM9nNUYrRBAELZQT3xeZQ7fmMOBg6nWNmJKTcgsJeaLstP/UODVpGsr5OhXhhXg6f+qtJ8uiZ+PUxkDWcgIXLw== + +mocha@^9.1.3: + version "9.1.3" + resolved "https://registry.yarnpkg.com/mocha/-/mocha-9.1.3.tgz#8a623be6b323810493d8c8f6f7667440fa469fdb" + integrity sha512-Xcpl9FqXOAYqI3j79pEtHBBnQgVXIhpULjGQa7DVb0Po+VzmSIK9kanAiWLHoRR/dbZ2qpdPshuXr8l1VaHCzw== + dependencies: + "@ungap/promise-all-settled" "1.1.2" + ansi-colors "4.1.1" + browser-stdout "1.3.1" + chokidar "3.5.2" + debug "4.3.2" + diff "5.0.0" + escape-string-regexp "4.0.0" + find-up "5.0.0" + glob "7.1.7" + growl "1.10.5" + he "1.2.0" + js-yaml "4.1.0" + log-symbols "4.1.0" + minimatch "3.0.4" + ms "2.1.3" + nanoid "3.1.25" + serialize-javascript "6.0.0" + strip-json-comments "3.1.1" + supports-color "8.1.1" + which "2.0.2" + workerpool "6.1.5" + yargs "16.2.0" + yargs-parser "20.2.4" + yargs-unparser "2.0.0" + +ms@2.0.0: + version "2.0.0" + resolved "https://registry.yarnpkg.com/ms/-/ms-2.0.0.tgz#5608aeadfc00be6c2901df5f9861788de0d597c8" + integrity sha1-VgiurfwAvmwpAd9fmGF4jeDVl8g= + +ms@2.1.2: + version "2.1.2" + resolved "https://registry.yarnpkg.com/ms/-/ms-2.1.2.tgz#d09d1f357b443f493382a8eb3ccd183872ae6009" + integrity sha512-sGkPx+VjMtmA6MX27oA4FBFELFCZZ4S4XqeGOXCv68tT+jb3vk/RyaKWP0PTKyWtmLSM0b+adUTEvbs1PEaH2w== + +ms@2.1.3, ms@^2.1.1: + version "2.1.3" + resolved "https://registry.yarnpkg.com/ms/-/ms-2.1.3.tgz#574c8138ce1d2b5861f0b44579dbadd60c6615b2" + integrity sha512-6FlzubTLZG3J2a/NVCAleEhjzq5oxgHyaCU9yYXvcLsvoVaHJq/s5xXI6/XXP6tz7R9xAOtHnSO/tXtF3WRTlA== + +nanoid@3.1.25: + version "3.1.25" + resolved "https://registry.yarnpkg.com/nanoid/-/nanoid-3.1.25.tgz#09ca32747c0e543f0e1814b7d3793477f9c8e152" + integrity sha512-rdwtIXaXCLFAQbnfqDRnI6jaRHp9fTcYBjtFKE8eezcZ7LuLjhUaQGNeMXf1HmRoCH32CLz6XwX0TtxEOS/A3Q== + +natural-compare@^1.4.0: + version "1.4.0" + resolved "https://registry.yarnpkg.com/natural-compare/-/natural-compare-1.4.0.tgz#4abebfeed7541f2c27acfb29bdbbd15c8d5ba4f7" + integrity sha1-Sr6/7tdUHywnrPspvbvRXI1bpPc= + +node-fetch@^2.6.1: + version "2.6.6" + resolved "https://registry.yarnpkg.com/node-fetch/-/node-fetch-2.6.6.tgz#1751a7c01834e8e1697758732e9efb6eeadfaf89" + integrity sha512-Z8/6vRlTUChSdIgMa51jxQ4lrw/Jy5SOW10ObaA47/RElsAN2c5Pn8bTgFGWn/ibwzXTE8qwr1Yzx28vsecXEA== + dependencies: + whatwg-url "^5.0.0" + +node-preload@^0.2.1: + version "0.2.1" + resolved "https://registry.yarnpkg.com/node-preload/-/node-preload-0.2.1.tgz#c03043bb327f417a18fee7ab7ee57b408a144301" + integrity sha512-RM5oyBy45cLEoHqCeh+MNuFAxO0vTFBLskvQbOKnEE7YTTSN4tbN8QWDIPQ6L+WvKsB/qLEGpYe2ZZ9d4W9OIQ== + dependencies: + process-on-spawn "^1.0.0" + +node-releases@^2.0.1: + version "2.0.1" + resolved "https://registry.yarnpkg.com/node-releases/-/node-releases-2.0.1.tgz#3d1d395f204f1f2f29a54358b9fb678765ad2fc5" + integrity sha512-CqyzN6z7Q6aMeF/ktcMVTzhAHCEpf8SOarwpzpf8pNBY2k5/oM34UHldUwp8VKI7uxct2HxSRdJjBaZeESzcxA== + +normalize-path@^3.0.0, normalize-path@~3.0.0: + version "3.0.0" + resolved "https://registry.yarnpkg.com/normalize-path/-/normalize-path-3.0.0.tgz#0dcd69ff23a1c9b11fd0978316644a0388216a65" + integrity sha512-6eZs5Ls3WtCisHWp9S2GUy8dqkpGi4BVSz3GaqiE6ezub0512ESztXUwUB6C6IKbQkY2Pnb/mD4WYojCRwcwLA== + +nyc@^15.1.0: + version "15.1.0" + resolved "https://registry.yarnpkg.com/nyc/-/nyc-15.1.0.tgz#1335dae12ddc87b6e249d5a1994ca4bdaea75f02" + integrity sha512-jMW04n9SxKdKi1ZMGhvUTHBN0EICCRkHemEoE5jm6mTYcqcdas0ATzgUgejlQUHMvpnOZqGB5Xxsv9KxJW1j8A== + dependencies: + "@istanbuljs/load-nyc-config" "^1.0.0" + "@istanbuljs/schema" "^0.1.2" + caching-transform "^4.0.0" + convert-source-map "^1.7.0" + decamelize "^1.2.0" + find-cache-dir "^3.2.0" + find-up "^4.1.0" + foreground-child "^2.0.0" + get-package-type "^0.1.0" + glob "^7.1.6" + istanbul-lib-coverage "^3.0.0" + istanbul-lib-hook "^3.0.0" + istanbul-lib-instrument "^4.0.0" + istanbul-lib-processinfo "^2.0.2" + istanbul-lib-report "^3.0.0" + istanbul-lib-source-maps "^4.0.0" + istanbul-reports "^3.0.2" + make-dir "^3.0.0" + node-preload "^0.2.1" + p-map "^3.0.0" + process-on-spawn "^1.0.0" + resolve-from "^5.0.0" + rimraf "^3.0.0" + signal-exit "^3.0.2" + spawn-wrap "^2.0.0" + test-exclude "^6.0.0" + yargs "^15.0.2" + +object-inspect@^1.11.0, object-inspect@^1.9.0: + version "1.12.0" + resolved "https://registry.yarnpkg.com/object-inspect/-/object-inspect-1.12.0.tgz#6e2c120e868fd1fd18cb4f18c31741d0d6e776f0" + integrity sha512-Ho2z80bVIvJloH+YzRmpZVQe87+qASmBUKZDWgx9cu+KDrX2ZDH/3tMy+gXbZETVGs2M8YdxObOh7XAtim9Y0g== + +object-keys@^1.0.12, object-keys@^1.1.1: + version "1.1.1" + resolved "https://registry.yarnpkg.com/object-keys/-/object-keys-1.1.1.tgz#1c47f272df277f3b1daf061677d9c82e2322c60e" + integrity sha512-NuAESUOUMrlIXOfHKzD6bpPu3tYt3xvjNdRIQ+FeT0lNb4K8WR70CaDxhuNguS2XG+GjkyMwOzsN5ZktImfhLA== + +object.assign@^4.1.2: + version "4.1.2" + resolved "https://registry.yarnpkg.com/object.assign/-/object.assign-4.1.2.tgz#0ed54a342eceb37b38ff76eb831a0e788cb63940" + integrity sha512-ixT2L5THXsApyiUPYKmW+2EHpXXe5Ii3M+f4e+aJFAHao5amFRW6J0OO6c/LU8Be47utCx2GL89hxGB6XSmKuQ== + dependencies: + call-bind "^1.0.0" + define-properties "^1.1.3" + has-symbols "^1.0.1" + object-keys "^1.1.1" + +object.entries@^1.1.2: + version "1.1.5" + resolved "https://registry.yarnpkg.com/object.entries/-/object.entries-1.1.5.tgz#e1acdd17c4de2cd96d5a08487cfb9db84d881861" + integrity sha512-TyxmjUoZggd4OrrU1W66FMDG6CuqJxsFvymeyXI51+vQLN67zYfZseptRge703kKQdo4uccgAKebXFcRCzk4+g== + dependencies: + call-bind "^1.0.2" + define-properties "^1.1.3" + es-abstract "^1.19.1" + +object.values@^1.1.5: + version "1.1.5" + resolved "https://registry.yarnpkg.com/object.values/-/object.values-1.1.5.tgz#959f63e3ce9ef108720333082131e4a459b716ac" + integrity sha512-QUZRW0ilQ3PnPpbNtgdNV1PDbEqLIiSFB3l+EnGtBQ/8SUTLj1PZwtQHABZtLgwpJZTSZhuGLOGk57Drx2IvYg== + dependencies: + call-bind "^1.0.2" + define-properties "^1.1.3" + es-abstract "^1.19.1" + +once@^1.3.0: + version "1.4.0" + resolved "https://registry.yarnpkg.com/once/-/once-1.4.0.tgz#583b1aa775961d4b113ac17d9c50baef9dd76bd1" + integrity sha1-WDsap3WWHUsROsF9nFC6753Xa9E= + dependencies: + wrappy "1" + +optionator@^0.9.1: + version "0.9.1" + resolved "https://registry.yarnpkg.com/optionator/-/optionator-0.9.1.tgz#4f236a6373dae0566a6d43e1326674f50c291499" + integrity sha512-74RlY5FCnhq4jRxVUPKDaRwrVNXMqsGsiW6AJw4XK8hmtm10wC0ypZBLw5IIp85NZMr91+qd1RvvENwg7jjRFw== + dependencies: + deep-is "^0.1.3" + fast-levenshtein "^2.0.6" + levn "^0.4.1" + prelude-ls "^1.2.1" + type-check "^0.4.0" + word-wrap "^1.2.3" + +os-tmpdir@~1.0.2: + version "1.0.2" + resolved "https://registry.yarnpkg.com/os-tmpdir/-/os-tmpdir-1.0.2.tgz#bbe67406c79aa85c5cfec766fe5734555dfa1274" + integrity sha1-u+Z0BseaqFxc/sdm/lc0VV36EnQ= + +p-limit@^1.1.0: + version "1.3.0" + resolved "https://registry.yarnpkg.com/p-limit/-/p-limit-1.3.0.tgz#b86bd5f0c25690911c7590fcbfc2010d54b3ccb8" + integrity sha512-vvcXsLAJ9Dr5rQOPk7toZQZJApBl2K4J6dANSsEuh6QI41JYcsS/qhTGa9ErIUUgK3WNQoJYvylxvjqmiqEA9Q== + dependencies: + p-try "^1.0.0" + +p-limit@^2.2.0: + version "2.3.0" + resolved "https://registry.yarnpkg.com/p-limit/-/p-limit-2.3.0.tgz#3dd33c647a214fdfffd835933eb086da0dc21db1" + integrity sha512-//88mFWSJx8lxCzwdAABTJL2MyWB12+eIY7MDL2SqLmAkeKU9qxRvWuSyTjm3FUmpBEMuFfckAIqEaVGUDxb6w== + dependencies: + p-try "^2.0.0" + +p-limit@^3.0.2: + version "3.1.0" + resolved "https://registry.yarnpkg.com/p-limit/-/p-limit-3.1.0.tgz#e1daccbe78d0d1388ca18c64fea38e3e57e3706b" + integrity sha512-TYOanM3wGwNGsZN2cVTYPArw454xnXj5qmWF1bEoAc4+cU/ol7GVh7odevjp1FNHduHc3KZMcFduxU5Xc6uJRQ== + dependencies: + yocto-queue "^0.1.0" + +p-locate@^2.0.0: + version "2.0.0" + resolved "https://registry.yarnpkg.com/p-locate/-/p-locate-2.0.0.tgz#20a0103b222a70c8fd39cc2e580680f3dde5ec43" + integrity sha1-IKAQOyIqcMj9OcwuWAaA893l7EM= + dependencies: + p-limit "^1.1.0" + +p-locate@^4.1.0: + version "4.1.0" + resolved "https://registry.yarnpkg.com/p-locate/-/p-locate-4.1.0.tgz#a3428bb7088b3a60292f66919278b7c297ad4f07" + integrity sha512-R79ZZ/0wAxKGu3oYMlz8jy/kbhsNrS7SKZ7PxEHBgJ5+F2mtFW2fK2cOtBh1cHYkQsbzFV7I+EoRKe6Yt0oK7A== + dependencies: + p-limit "^2.2.0" + +p-locate@^5.0.0: + version "5.0.0" + resolved "https://registry.yarnpkg.com/p-locate/-/p-locate-5.0.0.tgz#83c8315c6785005e3bd021839411c9e110e6d834" + integrity sha512-LaNjtRWUBY++zB5nE/NwcaoMylSPk+S+ZHNB1TzdbMJMny6dynpAGt7X/tl/QYq3TIeE6nxHppbo2LGymrG5Pw== + dependencies: + p-limit "^3.0.2" + +p-map@^3.0.0: + version "3.0.0" + resolved "https://registry.yarnpkg.com/p-map/-/p-map-3.0.0.tgz#d704d9af8a2ba684e2600d9a215983d4141a979d" + integrity sha512-d3qXVTF/s+W+CdJ5A29wywV2n8CQQYahlgz2bFiA+4eVNJbHJodPZ+/gXwPGh0bOqA+j8S+6+ckmvLGPk1QpxQ== + dependencies: + aggregate-error "^3.0.0" + +p-try@^1.0.0: + version "1.0.0" + resolved "https://registry.yarnpkg.com/p-try/-/p-try-1.0.0.tgz#cbc79cdbaf8fd4228e13f621f2b1a237c1b207b3" + integrity sha1-y8ec26+P1CKOE/Yh8rGiN8GyB7M= + +p-try@^2.0.0: + version "2.2.0" + resolved "https://registry.yarnpkg.com/p-try/-/p-try-2.2.0.tgz#cb2868540e313d61de58fafbe35ce9004d5540e6" + integrity sha512-R4nPAVTAU0B9D35/Gk3uJf/7XYbQcyohSKdvAxIRSNghFl4e71hVoGnBNQz9cWaXxO2I10KTC+3jMdvvoKw6dQ== + +package-hash@^4.0.0: + version "4.0.0" + resolved "https://registry.yarnpkg.com/package-hash/-/package-hash-4.0.0.tgz#3537f654665ec3cc38827387fc904c163c54f506" + integrity sha512-whdkPIooSu/bASggZ96BWVvZTRMOFxnyUG5PnTSGKoJE2gd5mbVNmR2Nj20QFzxYYgAXpoqC+AiXzl+UMRh7zQ== + dependencies: + graceful-fs "^4.1.15" + hasha "^5.0.0" + lodash.flattendeep "^4.4.0" + release-zalgo "^1.0.0" + +parent-module@^1.0.0: + version "1.0.1" + resolved "https://registry.yarnpkg.com/parent-module/-/parent-module-1.0.1.tgz#691d2709e78c79fae3a156622452d00762caaaa2" + integrity sha512-GQ2EWRpQV8/o+Aw8YqtfZZPfNRWZYkbidE9k5rpl/hC3vtHHBfGm2Ifi6qWV+coDGkrUKZAxE3Lot5kcsRlh+g== + dependencies: + callsites "^3.0.0" + +path-exists@^3.0.0: + version "3.0.0" + resolved "https://registry.yarnpkg.com/path-exists/-/path-exists-3.0.0.tgz#ce0ebeaa5f78cb18925ea7d810d7b59b010fd515" + integrity sha1-zg6+ql94yxiSXqfYENe1mwEP1RU= + +path-exists@^4.0.0: + version "4.0.0" + resolved "https://registry.yarnpkg.com/path-exists/-/path-exists-4.0.0.tgz#513bdbe2d3b95d7762e8c1137efa195c6c61b5b3" + integrity sha512-ak9Qy5Q7jYb2Wwcey5Fpvg2KoAc/ZIhLSLOSBmRmygPsGwkVVt0fZa0qrtMz+m6tJTAHfZQ8FnmB4MG4LWy7/w== + +path-is-absolute@^1.0.0: + version "1.0.1" + resolved "https://registry.yarnpkg.com/path-is-absolute/-/path-is-absolute-1.0.1.tgz#174b9268735534ffbc7ace6bf53a5a9e1b5c5f5f" + integrity sha1-F0uSaHNVNP+8es5r9TpanhtcX18= + +path-key@^3.1.0: + version "3.1.1" + resolved "https://registry.yarnpkg.com/path-key/-/path-key-3.1.1.tgz#581f6ade658cbba65a0d3380de7753295054f375" + integrity sha512-ojmeN0qd+y0jszEtoY48r0Peq5dwMEkIlCOu6Q5f41lfkswXuKtYrhgoTpLnyIcHm24Uhqx+5Tqm2InSwLhE6Q== + +path-parse@^1.0.6: + version "1.0.7" + resolved "https://registry.yarnpkg.com/path-parse/-/path-parse-1.0.7.tgz#fbc114b60ca42b30d9daf5858e4bd68bbedb6735" + integrity sha512-LDJzPVEEEPR+y48z93A0Ed0yXb8pAByGWo/k5YYdYgpY2/2EsOsksJrq7lOHxryrVOn1ejG6oAp8ahvOIQD8sw== + +pathval@^1.1.1: + version "1.1.1" + resolved "https://registry.yarnpkg.com/pathval/-/pathval-1.1.1.tgz#8534e77a77ce7ac5a2512ea21e0fdb8fcf6c3d8d" + integrity sha512-Dp6zGqpTdETdR63lehJYPeIOqpiNBNtc7BpWSLrOje7UaIsE5aY92r/AunQA7rsXvet3lrJ3JnZX29UPTKXyKQ== + +peggy@^1.2.0: + version "1.2.0" + resolved "https://registry.yarnpkg.com/peggy/-/peggy-1.2.0.tgz#657ba45900cbef1dc9f52356704bdbb193c2021c" + integrity sha512-PQ+NKpAobImfMprYQtc4Egmyi29bidRGEX0kKjCU5uuW09s0Cthwqhfy7mLkwcB4VcgacE5L/ZjruD/kOPCUUw== + +picocolors@^1.0.0: + version "1.0.0" + resolved "https://registry.yarnpkg.com/picocolors/-/picocolors-1.0.0.tgz#cb5bdc74ff3f51892236eaf79d68bc44564ab81c" + integrity sha512-1fygroTLlHu66zi26VoTDv8yRgm0Fccecssto+MhsZ0D/DGW2sm8E8AjW7NU5VVTRt5GxbeZ5qBuJr+HyLYkjQ== + +picomatch@^2.0.4, picomatch@^2.2.1: + version "2.3.0" + resolved "https://registry.yarnpkg.com/picomatch/-/picomatch-2.3.0.tgz#f1f061de8f6a4bf022892e2d128234fb98302972" + integrity sha512-lY1Q/PiJGC2zOv/z391WOTD+Z02bCgsFfvxoXXf6h7kv9o+WmsmzYqrAwY63sNgOxE4xEdq0WyUnXfKeBrSvYw== + +pkg-dir@^2.0.0: + version "2.0.0" + resolved "https://registry.yarnpkg.com/pkg-dir/-/pkg-dir-2.0.0.tgz#f6d5d1109e19d63edf428e0bd57e12777615334b" + integrity sha1-9tXREJ4Z1j7fQo4L1X4Sd3YVM0s= + dependencies: + find-up "^2.1.0" + +pkg-dir@^4.1.0: + version "4.2.0" + resolved "https://registry.yarnpkg.com/pkg-dir/-/pkg-dir-4.2.0.tgz#f099133df7ede422e81d1d8448270eeb3e4261f3" + integrity sha512-HRDzbaKjC+AOWVXxAU/x54COGeIv9eb+6CkDSQoNTt4XyWoIJvuPsXizxu/Fr23EiekbtZwmh1IcIG/l/a10GQ== + dependencies: + find-up "^4.0.0" + +prelude-ls@^1.2.1: + version "1.2.1" + resolved "https://registry.yarnpkg.com/prelude-ls/-/prelude-ls-1.2.1.tgz#debc6489d7a6e6b0e7611888cec880337d316396" + integrity sha512-vkcDPrRZo1QZLbn5RLGPpg/WmIQ65qoWWhcGKf/b5eplkkarX0m9z8ppCat4mlOqUsWpyNuYgO3VRyrYHSzX5g== + +prettier@^2.5.1: + version "2.5.1" + resolved "https://registry.yarnpkg.com/prettier/-/prettier-2.5.1.tgz#fff75fa9d519c54cf0fce328c1017d94546bc56a" + integrity sha512-vBZcPRUR5MZJwoyi3ZoyQlc1rXeEck8KgeC9AwwOn+exuxLxq5toTRDTSaVrXHxelDMHy9zlicw8u66yxoSUFg== + +process-on-spawn@^1.0.0: + version "1.0.0" + resolved "https://registry.yarnpkg.com/process-on-spawn/-/process-on-spawn-1.0.0.tgz#95b05a23073d30a17acfdc92a440efd2baefdc93" + integrity sha512-1WsPDsUSMmZH5LeMLegqkPDrsGgsWwk1Exipy2hvB0o/F0ASzbpIctSCcZIK1ykJvtTJULEH+20WOFjMvGnCTg== + dependencies: + fromentries "^1.2.0" + +progress@^2.0.0: + version "2.0.3" + resolved "https://registry.yarnpkg.com/progress/-/progress-2.0.3.tgz#7e8cf8d8f5b8f239c1bc68beb4eb78567d572ef8" + integrity sha512-7PiHtLll5LdnKIMw100I+8xJXR5gW2QwWYkT6iJva0bXitZKa/XMrSbdmg3r2Xnaidz9Qumd0VPaMrZlF9V9sA== + +punycode@^1.3.2: + version "1.4.1" + resolved "https://registry.yarnpkg.com/punycode/-/punycode-1.4.1.tgz#c0d5a63b2718800ad8e1eb0fa5269c84dd41845e" + integrity sha1-wNWmOycYgArY4esPpSachN1BhF4= + +punycode@^2.1.0: + version "2.1.1" + resolved "https://registry.yarnpkg.com/punycode/-/punycode-2.1.1.tgz#b58b010ac40c22c5657616c8d2c2c02c7bf479ec" + integrity sha512-XRsRjdf+j5ml+y/6GKHPZbrF/8p2Yga0JPtdqTIY2Xe5ohJPD9saDJJLPvp9+NSBprVvevdXZybnj2cv8OEd0A== + +randombytes@^2.1.0: + version "2.1.0" + resolved "https://registry.yarnpkg.com/randombytes/-/randombytes-2.1.0.tgz#df6f84372f0270dc65cdf6291349ab7a473d4f2a" + integrity sha512-vYl3iOX+4CKUWuxGi9Ukhie6fsqXqS9FE2Zaic4tNFD2N2QQaXOMFbuKK4QmDHC0JO6B1Zp41J0LpT0oR68amQ== + dependencies: + safe-buffer "^5.1.0" + +readdirp@~3.6.0: + version "3.6.0" + resolved "https://registry.yarnpkg.com/readdirp/-/readdirp-3.6.0.tgz#74a370bd857116e245b29cc97340cd431a02a6c7" + integrity sha512-hOS089on8RduqdbhvQ5Z37A0ESjsqz6qnRcffsMU3495FuTdqSm+7bhJ29JvIOsBDEEnan5DPu9t3To9VRlMzA== + dependencies: + picomatch "^2.2.1" + +regexpp@^3.2.0: + version "3.2.0" + resolved "https://registry.yarnpkg.com/regexpp/-/regexpp-3.2.0.tgz#0425a2768d8f23bad70ca4b90461fa2f1213e1b2" + integrity sha512-pq2bWo9mVD43nbts2wGv17XLiNLya+GklZ8kaDLV2Z08gDCsGpnKn9BFMepvWuHCbyVvY7J5o5+BVvoQbmlJLg== + +release-zalgo@^1.0.0: + version "1.0.0" + resolved "https://registry.yarnpkg.com/release-zalgo/-/release-zalgo-1.0.0.tgz#09700b7e5074329739330e535c5a90fb67851730" + integrity sha1-CXALflB0Mpc5Mw5TXFqQ+2eFFzA= + dependencies: + es6-error "^4.0.1" + +require-directory@^2.1.1: + version "2.1.1" + resolved "https://registry.yarnpkg.com/require-directory/-/require-directory-2.1.1.tgz#8c64ad5fd30dab1c976e2344ffe7f792a6a6df42" + integrity sha1-jGStX9MNqxyXbiNE/+f3kqam30I= + +require-from-string@^2.0.0: + version "2.0.2" + resolved "https://registry.yarnpkg.com/require-from-string/-/require-from-string-2.0.2.tgz#89a7fdd938261267318eafe14f9c32e598c36909" + integrity sha512-Xf0nWe6RseziFMu+Ap9biiUbmplq6S9/p+7w7YXP/JBHhrUDDUhwa+vANyubuqfZWTveU//DYVGsDG7RKL/vEw== + +require-main-filename@^2.0.0: + version "2.0.0" + resolved "https://registry.yarnpkg.com/require-main-filename/-/require-main-filename-2.0.0.tgz#d0b329ecc7cc0f61649f62215be69af54aa8989b" + integrity sha512-NKN5kMDylKuldxYLSUfrbo5Tuzh4hd+2E8NPPX02mZtn1VuREQToYe/ZdlJy+J3uCpfaiGF05e7B8W0iXbQHmg== + +resolve-from@^4.0.0: + version "4.0.0" + resolved "https://registry.yarnpkg.com/resolve-from/-/resolve-from-4.0.0.tgz#4abcd852ad32dd7baabfe9b40e00a36db5f392e6" + integrity sha512-pb/MYmXstAkysRFx8piNI1tGFNQIFA3vkE3Gq4EuA1dF6gHp/+vgZqsCGJapvy8N3Q+4o7FwvquPJcnZ7RYy4g== + +resolve-from@^5.0.0: + version "5.0.0" + resolved "https://registry.yarnpkg.com/resolve-from/-/resolve-from-5.0.0.tgz#c35225843df8f776df21c57557bc087e9dfdfc69" + integrity sha512-qYg9KP24dD5qka9J47d0aVky0N+b4fTU89LN9iDnjB5waksiC49rvMB0PrUJQGoTmH50XPiqOvAjDfaijGxYZw== + +resolve@^1.20.0: + version "1.20.0" + resolved "https://registry.yarnpkg.com/resolve/-/resolve-1.20.0.tgz#629a013fb3f70755d6f0b7935cc1c2c5378b1975" + integrity sha512-wENBPt4ySzg4ybFQW2TT1zMQucPK95HSh/nq2CFTZVOGut2+pQvSsgtda4d26YrYcr067wjbmzOG8byDPBX63A== + dependencies: + is-core-module "^2.2.0" + path-parse "^1.0.6" + +rimraf@^2.2.8: + version "2.7.1" + resolved "https://registry.yarnpkg.com/rimraf/-/rimraf-2.7.1.tgz#35797f13a7fdadc566142c29d4f07ccad483e3ec" + integrity sha512-uWjbaKIK3T1OSVptzX7Nl6PvQ3qAGtKEtVRjRuazjfL3Bx5eI409VZSqgND+4UNnmzLVdPj9FqFJNPqBZFve4w== + dependencies: + glob "^7.1.3" + +rimraf@^3.0.0, rimraf@^3.0.2: + version "3.0.2" + resolved "https://registry.yarnpkg.com/rimraf/-/rimraf-3.0.2.tgz#f1a5402ba6220ad52cc1282bac1ae3aa49fd061a" + integrity sha512-JZkJMZkAGFFPP2YqXZXPbMlMBgsxzE8ILs4lMIX/2o0L9UBw9O/Y3o6wFw/i9YLapcUJWwqbi3kdxIPdC62TIA== + dependencies: + glob "^7.1.3" + +safe-buffer@^5.1.0: + version "5.2.1" + resolved "https://registry.yarnpkg.com/safe-buffer/-/safe-buffer-5.2.1.tgz#1eaf9fa9bdb1fdd4ec75f58f9cdb4e6b7827eec6" + integrity sha512-rp3So07KcdmmKbGvgaNxQSJr7bGVSVk5S9Eq1F+ppbRo70+YeaDxkw5Dd8NPN+GD6bjnYm2VuPuCXmpuYvmCXQ== + +safe-buffer@~5.1.1: + version "5.1.2" + resolved "https://registry.yarnpkg.com/safe-buffer/-/safe-buffer-5.1.2.tgz#991ec69d296e0313747d59bdfd2b745c35f8828d" + integrity sha512-Gd2UZBJDkXlY7GbJxfsE8/nvKkUEU1G38c1siN6QP6a9PT9MmHB8GnpscSmMJSoF8LOIrt8ud/wPtojys4G6+g== + +semver@^5.5.0: + version "5.7.1" + resolved "https://registry.yarnpkg.com/semver/-/semver-5.7.1.tgz#a954f931aeba508d307bbf069eff0c01c96116f7" + integrity sha512-sauaDf/PZdVgrLTNYHRtpXa1iRiKcaebiKQ1BJdpQlWH2lCvexQdX55snPFyK7QzpudqbCI0qXFfOasHdyNDGQ== + +semver@^6.0.0, semver@^6.3.0: + version "6.3.0" + resolved "https://registry.yarnpkg.com/semver/-/semver-6.3.0.tgz#ee0a64c8af5e8ceea67687b133761e1becbd1d3d" + integrity sha512-b39TBaTSfV6yBrapU89p5fKekE2m/NwnDocOVruQFS1/veMgdzuPcnOM34M6CwxW8jH/lxEa5rBoDeUwu5HHTw== + +semver@^7.2.1: + version "7.3.5" + resolved "https://registry.yarnpkg.com/semver/-/semver-7.3.5.tgz#0b621c879348d8998e4b0e4be94b3f12e6018ef7" + integrity sha512-PoeGJYh8HK4BTO/a9Tf6ZG3veo/A7ZVsYrSA6J8ny9nb3B1VrpkuN+z9OE5wfE5p6H4LchYZsegiQgbJD94ZFQ== + dependencies: + lru-cache "^6.0.0" + +serialize-javascript@6.0.0: + version "6.0.0" + resolved "https://registry.yarnpkg.com/serialize-javascript/-/serialize-javascript-6.0.0.tgz#efae5d88f45d7924141da8b5c3a7a7e663fefeb8" + integrity sha512-Qr3TosvguFt8ePWqsvRfrKyQXIiW+nGbYpy8XK24NQHE83caxWt+mIymTT19DGFbNWNLfEwsrkSmN64lVWB9ag== + dependencies: + randombytes "^2.1.0" + +set-blocking@^2.0.0: + version "2.0.0" + resolved "https://registry.yarnpkg.com/set-blocking/-/set-blocking-2.0.0.tgz#045f9782d011ae9a6803ddd382b24392b3d890f7" + integrity sha1-BF+XgtARrppoA93TgrJDkrPYkPc= + +shebang-command@^2.0.0: + version "2.0.0" + resolved "https://registry.yarnpkg.com/shebang-command/-/shebang-command-2.0.0.tgz#ccd0af4f8835fbdc265b82461aaf0c36663f34ea" + integrity sha512-kHxr2zZpYtdmrN1qDjrrX/Z1rR1kG8Dx+gkpK1G4eXmvXswmcE1hTWBWYUzlraYw1/yZp6YuDY77YtvbN0dmDA== + dependencies: + shebang-regex "^3.0.0" + +shebang-regex@^3.0.0: + version "3.0.0" + resolved "https://registry.yarnpkg.com/shebang-regex/-/shebang-regex-3.0.0.tgz#ae16f1644d873ecad843b0307b143362d4c42172" + integrity sha512-7++dFhtcx3353uBaq8DDR4NuxBetBzC7ZQOhmTQInHEd6bSrXdiEyzCvG07Z44UYdLShWUyXt5M/yhz8ekcb1A== + +side-channel@^1.0.4: + version "1.0.4" + resolved "https://registry.yarnpkg.com/side-channel/-/side-channel-1.0.4.tgz#efce5c8fdc104ee751b25c58d4290011fa5ea2cf" + integrity sha512-q5XPytqFEIKHkGdiMIrY10mvLRvnQh42/+GoBlFW3b2LXLE2xxJpZFdm94we0BaoV3RwJyGqg5wS7epxTv0Zvw== + dependencies: + call-bind "^1.0.0" + get-intrinsic "^1.0.2" + object-inspect "^1.9.0" + +signal-exit@^3.0.2: + version "3.0.6" + resolved "https://registry.yarnpkg.com/signal-exit/-/signal-exit-3.0.6.tgz#24e630c4b0f03fea446a2bd299e62b4a6ca8d0af" + integrity sha512-sDl4qMFpijcGw22U5w63KmD3cZJfBuFlVNbVMKje2keoKML7X2UzWbc4XrmEbDwg0NXJc3yv4/ox7b+JWb57kQ== + +solc@^0.6.12: + version "0.6.12" + resolved "https://registry.yarnpkg.com/solc/-/solc-0.6.12.tgz#48ac854e0c729361b22a7483645077f58cba080e" + integrity sha512-Lm0Ql2G9Qc7yPP2Ba+WNmzw2jwsrd3u4PobHYlSOxaut3TtUbj9+5ZrT6f4DUpNPEoBaFUOEg9Op9C0mk7ge9g== + dependencies: + command-exists "^1.2.8" + commander "3.0.2" + fs-extra "^0.30.0" + js-sha3 "0.8.0" + memorystream "^0.3.1" + require-from-string "^2.0.0" + semver "^5.5.0" + tmp "0.0.33" + +source-map@^0.5.0: + version "0.5.7" + resolved "https://registry.yarnpkg.com/source-map/-/source-map-0.5.7.tgz#8a039d2d1021d22d1ea14c80d8ea468ba2ef3fcc" + integrity sha1-igOdLRAh0i0eoUyA2OpGi6LvP8w= + +source-map@^0.6.1: + version "0.6.1" + resolved "https://registry.yarnpkg.com/source-map/-/source-map-0.6.1.tgz#74722af32e9614e9c287a8d0bbde48b5e2f1a263" + integrity sha512-UjgapumWlbMhkBgzT7Ykc5YXUT46F0iKu8SGXq0bcwP5dz/h0Plj6enJqjz1Zbq2l5WaqYnrVbwWOWMyF3F47g== + +spawn-wrap@^2.0.0: + version "2.0.0" + resolved "https://registry.yarnpkg.com/spawn-wrap/-/spawn-wrap-2.0.0.tgz#103685b8b8f9b79771318827aa78650a610d457e" + integrity sha512-EeajNjfN9zMnULLwhZZQU3GWBoFNkbngTUPfaawT4RkMiviTxcX0qfhVbGey39mfctfDHkWtuecgQ8NJcyQWHg== + dependencies: + foreground-child "^2.0.0" + is-windows "^1.0.2" + make-dir "^3.0.0" + rimraf "^3.0.0" + signal-exit "^3.0.2" + which "^2.0.1" + +sprintf-js@~1.0.2: + version "1.0.3" + resolved "https://registry.yarnpkg.com/sprintf-js/-/sprintf-js-1.0.3.tgz#04e6926f662895354f3dd015203633b857297e2c" + integrity sha1-BOaSb2YolTVPPdAVIDYzuFcpfiw= + +stream-events@^1.0.5: + version "1.0.5" + resolved "https://registry.yarnpkg.com/stream-events/-/stream-events-1.0.5.tgz#bbc898ec4df33a4902d892333d47da9bf1c406d5" + integrity sha512-E1GUzBSgvct8Jsb3v2X15pjzN1tYebtbLaMg+eBOUOAxgbLoSbT2NS91ckc5lJD1KfLjId+jXJRgo0qnV5Nerg== + dependencies: + stubs "^3.0.0" + +string-width@^4.1.0, string-width@^4.2.0: + version "4.2.3" + resolved "https://registry.yarnpkg.com/string-width/-/string-width-4.2.3.tgz#269c7117d27b05ad2e536830a8ec895ef9c6d010" + integrity sha512-wKyQRQpjJ0sIp62ErSZdGsjMJWsap5oRNihHhu6G7JVO/9jIB6UyevL+tXuOqrng8j/cxKTWyWUwvSTriiZz/g== + dependencies: + emoji-regex "^8.0.0" + is-fullwidth-code-point "^3.0.0" + strip-ansi "^6.0.1" + +string.prototype.trimend@^1.0.4: + version "1.0.4" + resolved "https://registry.yarnpkg.com/string.prototype.trimend/-/string.prototype.trimend-1.0.4.tgz#e75ae90c2942c63504686c18b287b4a0b1a45f80" + integrity sha512-y9xCjw1P23Awk8EvTpcyL2NIr1j7wJ39f+k6lvRnSMz+mz9CGz9NYPelDk42kOz6+ql8xjfK8oYzy3jAP5QU5A== + dependencies: + call-bind "^1.0.2" + define-properties "^1.1.3" + +string.prototype.trimstart@^1.0.4: + version "1.0.4" + resolved "https://registry.yarnpkg.com/string.prototype.trimstart/-/string.prototype.trimstart-1.0.4.tgz#b36399af4ab2999b4c9c648bd7a3fb2bb26feeed" + integrity sha512-jh6e984OBfvxS50tdY2nRZnoC5/mLFKOREQfw8t5yytkoUsJRNxvI/E39qu1sD0OtWI3OC0XgKSmcWwziwYuZw== + dependencies: + call-bind "^1.0.2" + define-properties "^1.1.3" + +strip-ansi@^6.0.0, strip-ansi@^6.0.1: + version "6.0.1" + resolved "https://registry.yarnpkg.com/strip-ansi/-/strip-ansi-6.0.1.tgz#9e26c63d30f53443e9489495b2105d37b67a85d9" + integrity sha512-Y38VPSHcqkFrCpFnQ9vuSXmquuv5oXOKpGeT6aGrr3o3Gc9AlVa6JBfUSOCnbxGGZF+/0ooI7KrPuUSztUdU5A== + dependencies: + ansi-regex "^5.0.1" + +strip-bom@^3.0.0: + version "3.0.0" + resolved "https://registry.yarnpkg.com/strip-bom/-/strip-bom-3.0.0.tgz#2334c18e9c759f7bdd56fdef7e9ae3d588e68ed3" + integrity sha1-IzTBjpx1n3vdVv3vfprj1YjmjtM= + +strip-bom@^4.0.0: + version "4.0.0" + resolved "https://registry.yarnpkg.com/strip-bom/-/strip-bom-4.0.0.tgz#9c3505c1db45bcedca3d9cf7a16f5c5aa3901878" + integrity sha512-3xurFv5tEgii33Zi8Jtp55wEIILR9eh34FAW00PZf+JnSsTmV/ioewSgQl97JHvgjoRGwPShsWm+IdrxB35d0w== + +strip-json-comments@3.1.1, strip-json-comments@^3.1.0, strip-json-comments@^3.1.1: + version "3.1.1" + resolved "https://registry.yarnpkg.com/strip-json-comments/-/strip-json-comments-3.1.1.tgz#31f1281b3832630434831c310c01cccda8cbe006" + integrity sha512-6fPc+R4ihwqP6N/aIv2f1gMH8lOVtWQHoqC4yK6oSDVVocumAsfCqjkXnqiYMhmMwS/mEHLp7Vehlt3ql6lEig== + +stubs@^3.0.0: + version "3.0.0" + resolved "https://registry.yarnpkg.com/stubs/-/stubs-3.0.0.tgz#e8d2ba1fa9c90570303c030b6900f7d5f89abe5b" + integrity sha1-6NK6H6nJBXAwPAMLaQD31fiavls= + +supports-color@8.1.1: + version "8.1.1" + resolved "https://registry.yarnpkg.com/supports-color/-/supports-color-8.1.1.tgz#cd6fc17e28500cff56c1b86c0a7fd4a54a73005c" + integrity sha512-MpUEN2OodtUzxvKQl72cUF7RQ5EiHsGvSsVG0ia9c5RbWGL2CI4C7EpPS8UTBIplnlzZiNuV56w+FuNxy3ty2Q== + dependencies: + has-flag "^4.0.0" + +supports-color@^5.3.0: + version "5.5.0" + resolved "https://registry.yarnpkg.com/supports-color/-/supports-color-5.5.0.tgz#e2e69a44ac8772f78a1ec0b35b689df6530efc8f" + integrity sha512-QjVjwdXIt408MIiAqCX4oUKsgU2EqAGzs2Ppkm4aQYbjm+ZEWEcW4SfFNTr4uMNZma0ey4f5lgLrkB0aX0QMow== + dependencies: + has-flag "^3.0.0" + +supports-color@^7.1.0: + version "7.2.0" + resolved "https://registry.yarnpkg.com/supports-color/-/supports-color-7.2.0.tgz#1b7dcdcb32b8138801b3e478ba6a51caa89648da" + integrity sha512-qpCAvRl9stuOHveKsn7HncJRvv501qIacKzQlO/+Lwxc9+0q2wLyv4Dfvt80/DPn2pqOBsJdDiogXGR9+OvwRw== + dependencies: + has-flag "^4.0.0" + +teeny-request@7.1.1: + version "7.1.1" + resolved "https://registry.yarnpkg.com/teeny-request/-/teeny-request-7.1.1.tgz#2b0d156f4a8ad81de44303302ba8d7f1f05e20e6" + integrity sha512-iwY6rkW5DDGq8hE2YgNQlKbptYpY5Nn2xecjQiNjOXWbKzPGUfmeUBCSQbbr306d7Z7U2N0TPl+/SwYRfua1Dg== + dependencies: + http-proxy-agent "^4.0.0" + https-proxy-agent "^5.0.0" + node-fetch "^2.6.1" + stream-events "^1.0.5" + uuid "^8.0.0" + +test-exclude@^6.0.0: + version "6.0.0" + resolved "https://registry.yarnpkg.com/test-exclude/-/test-exclude-6.0.0.tgz#04a8698661d805ea6fa293b6cb9e63ac044ef15e" + integrity sha512-cAGWPIyOHU6zlmg88jwm7VRyXnMN7iV68OGAbYDk/Mh/xC/pzVPlQtY6ngoIH/5/tciuhGfvESU8GrHrcxD56w== + dependencies: + "@istanbuljs/schema" "^0.1.2" + glob "^7.1.4" + minimatch "^3.0.4" + +text-table@^0.2.0: + version "0.2.0" + resolved "https://registry.yarnpkg.com/text-table/-/text-table-0.2.0.tgz#7f5ee823ae805207c00af2df4a84ec3fcfa570b4" + integrity sha1-f17oI66AUgfACvLfSoTsP8+lcLQ= + +tmp@0.0.33: + version "0.0.33" + resolved "https://registry.yarnpkg.com/tmp/-/tmp-0.0.33.tgz#6d34335889768d21b2bcda0aa277ced3b1bfadf9" + integrity sha512-jRCJlojKnZ3addtTOjdIqoRuPEKBvNXcGYqzO6zWZX8KfKEpnGY5jfggJQ3EjKuu8D4bJRr0y+cYJFmYbImXGw== + dependencies: + os-tmpdir "~1.0.2" + +to-fast-properties@^2.0.0: + version "2.0.0" + resolved "https://registry.yarnpkg.com/to-fast-properties/-/to-fast-properties-2.0.0.tgz#dc5e698cbd079265bc73e0377681a4e4e83f616e" + integrity sha1-3F5pjL0HkmW8c+A3doGk5Og/YW4= + +to-regex-range@^5.0.1: + version "5.0.1" + resolved "https://registry.yarnpkg.com/to-regex-range/-/to-regex-range-5.0.1.tgz#1648c44aae7c8d988a326018ed72f5b4dd0392e4" + integrity sha512-65P7iz6X5yEr1cwcgvQxbbIw7Uk3gOy5dIdtZ4rDveLqhrdJP+Li/Hx6tyK0NEb+2GCyneCMJiGqrADCSNk8sQ== + dependencies: + is-number "^7.0.0" + +tr46@~0.0.3: + version "0.0.3" + resolved "https://registry.yarnpkg.com/tr46/-/tr46-0.0.3.tgz#8184fd347dac9cdc185992f3a6622e14b9d9ab6a" + integrity sha1-gYT9NH2snNwYWZLzpmIuFLnZq2o= + +ts-node@^10.4.0: + version "10.4.0" + resolved "https://registry.yarnpkg.com/ts-node/-/ts-node-10.4.0.tgz#680f88945885f4e6cf450e7f0d6223dd404895f7" + integrity sha512-g0FlPvvCXSIO1JDF6S232P5jPYqBkRL9qly81ZgAOSU7rwI0stphCgd2kLiCrU9DjQCrJMWEqcNSjQL02s6d8A== + dependencies: + "@cspotcode/source-map-support" "0.7.0" + "@tsconfig/node10" "^1.0.7" + "@tsconfig/node12" "^1.0.7" + "@tsconfig/node14" "^1.0.0" + "@tsconfig/node16" "^1.0.2" + acorn "^8.4.1" + acorn-walk "^8.1.1" + arg "^4.1.0" + create-require "^1.1.0" + diff "^4.0.1" + make-error "^1.1.1" + yn "3.1.1" + +ts-pegjs@^1.2.1: + version "1.2.1" + resolved "https://registry.yarnpkg.com/ts-pegjs/-/ts-pegjs-1.2.1.tgz#9b2ef035a9411845eae575a18054824825f726a5" + integrity sha512-fvT1oBQKMO3+9MJSUELTIuwkMs0IXJ2iEUCIw6yIriz7agh+OAwAL5Q9y3WiqzxwNF+M+xuK676UVRZxBcaOmQ== + dependencies: + peggy "^1.2.0" + +tsconfig-paths@^3.11.0: + version "3.12.0" + resolved "https://registry.yarnpkg.com/tsconfig-paths/-/tsconfig-paths-3.12.0.tgz#19769aca6ee8f6a1a341e38c8fa45dd9fb18899b" + integrity sha512-e5adrnOYT6zqVnWqZu7i/BQ3BnhzvGbjEjejFXO20lKIKpwTaupkCPgEfv4GZK1IBciJUEhYs3J3p75FdaTFVg== + dependencies: + "@types/json5" "^0.0.29" + json5 "^1.0.1" + minimist "^1.2.0" + strip-bom "^3.0.0" + +tslib@^2.3.1: + version "2.3.1" + resolved "https://registry.yarnpkg.com/tslib/-/tslib-2.3.1.tgz#e8a335add5ceae51aa261d32a490158ef042ef01" + integrity sha512-77EbyPPpMz+FRFRuAFlWMtmgUWGe9UOG2Z25NqCwiIjRhOf5iKGuzSe5P2w1laq+FkRy4p+PCuVkJSGkzTEKVw== + +type-check@^0.4.0, type-check@~0.4.0: + version "0.4.0" + resolved "https://registry.yarnpkg.com/type-check/-/type-check-0.4.0.tgz#07b8203bfa7056c0657050e3ccd2c37730bab8f1" + integrity sha512-XleUoc9uwGXqjWwXaUTZAmzMcFZ5858QA2vvx1Ur5xIcixXIP+8LnFDgRplU30us6teqdlskFfu+ae4K79Ooew== + dependencies: + prelude-ls "^1.2.1" + +type-detect@^4.0.0, type-detect@^4.0.5: + version "4.0.8" + resolved "https://registry.yarnpkg.com/type-detect/-/type-detect-4.0.8.tgz#7646fb5f18871cfbb7749e69bd39a6388eb7450c" + integrity sha512-0fr/mIH1dlO+x7TlcMy+bIDqKPsw/70tVyeHW787goQjhmqaZe10uwLujubK9q9Lg6Fiho1KUKDYz0Z7k7g5/g== + +type-fest@^0.20.2: + version "0.20.2" + resolved "https://registry.yarnpkg.com/type-fest/-/type-fest-0.20.2.tgz#1bf207f4b28f91583666cb5fbd327887301cd5f4" + integrity sha512-Ne+eE4r0/iWnpAxD852z3A+N0Bt5RN//NjJwRd2VFHEmrywxf5vsZlh4R6lixl6B+wz/8d+maTSAkN1FIkI3LQ== + +type-fest@^0.8.0: + version "0.8.1" + resolved "https://registry.yarnpkg.com/type-fest/-/type-fest-0.8.1.tgz#09e249ebde851d3b1e48d27c105444667f17b83d" + integrity sha512-4dbzIzqvjtgiM5rw1k5rEHtBANKmdudhGyBEajN01fEyhaAIhsoKNy6y7+IN93IfpFtwY9iqi7kD+xwKhQsNJA== + +typedarray-to-buffer@^3.1.5: + version "3.1.5" + resolved "https://registry.yarnpkg.com/typedarray-to-buffer/-/typedarray-to-buffer-3.1.5.tgz#a97ee7a9ff42691b9f783ff1bc5112fe3fca9080" + integrity sha512-zdu8XMNEDepKKR+XYOXAVPtWui0ly0NtohUscw+UmaHiAWT8hrV1rr//H6V+0DvJ3OQ19S979M0laLfX8rm82Q== + dependencies: + is-typedarray "^1.0.0" + +typescript@^4.5.4: + version "4.5.4" + resolved "https://registry.yarnpkg.com/typescript/-/typescript-4.5.4.tgz#a17d3a0263bf5c8723b9c52f43c5084edf13c2e8" + integrity sha512-VgYs2A2QIRuGphtzFV7aQJduJ2gyfTljngLzjpfW9FoYZF6xuw1W0vW9ghCKLfcWrCFxK81CSGRAvS1pn4fIUg== + +unbox-primitive@^1.0.1: + version "1.0.1" + resolved "https://registry.yarnpkg.com/unbox-primitive/-/unbox-primitive-1.0.1.tgz#085e215625ec3162574dc8859abee78a59b14471" + integrity sha512-tZU/3NqK3dA5gpE1KtyiJUrEB0lxnGkMFHptJ7q6ewdZ8s12QrODwNbhIJStmJkd1QDXa1NRA8aF2A1zk/Ypyw== + dependencies: + function-bind "^1.1.1" + has-bigints "^1.0.1" + has-symbols "^1.0.2" + which-boxed-primitive "^1.0.2" + +uri-js@^4.2.2: + version "4.4.1" + resolved "https://registry.yarnpkg.com/uri-js/-/uri-js-4.4.1.tgz#9b1a52595225859e55f669d928f88c6c57f2a77e" + integrity sha512-7rKUyy33Q1yc98pQ1DAmLtwX109F7TIfWlW1Ydo8Wl1ii1SeHieeh0HHfPeL2fMXK6z0s8ecKs9frCuLJvndBg== + dependencies: + punycode "^2.1.0" + +urlgrey@1.0.0: + version "1.0.0" + resolved "https://registry.yarnpkg.com/urlgrey/-/urlgrey-1.0.0.tgz#72d2f904482d0b602e3c7fa599343d699bbe1017" + integrity sha512-hJfIzMPJmI9IlLkby8QrsCykQ+SXDeO2W5Q9QTW3QpqZVTx4a/K7p8/5q+/isD8vsbVaFgql/gvAoQCRQ2Cb5w== + dependencies: + fast-url-parser "^1.1.3" + +uuid@^3.3.3: + version "3.4.0" + resolved "https://registry.yarnpkg.com/uuid/-/uuid-3.4.0.tgz#b23e4358afa8a202fe7a100af1f5f883f02007ee" + integrity sha512-HjSDRw6gZE5JMggctHBcjVak08+KEVhSIiDzFnT9S9aegmp85S/bReBVTb4QTFaRNptJ9kuYaNhnbNEOkbKb/A== + +uuid@^8.0.0: + version "8.3.2" + resolved "https://registry.yarnpkg.com/uuid/-/uuid-8.3.2.tgz#80d5b5ced271bb9af6c445f21a1a04c606cefbe2" + integrity sha512-+NYs2QeMWy+GWFOEm9xnn6HCDp0l7QBD7ml8zLUmJ+93Q5NF0NocErnwkTkXVFNiX3/fpC6afS8Dhb/gz7R7eg== + +v8-compile-cache@^2.0.3: + version "2.3.0" + resolved "https://registry.yarnpkg.com/v8-compile-cache/-/v8-compile-cache-2.3.0.tgz#2de19618c66dc247dcfb6f99338035d8245a2cee" + integrity sha512-l8lCEmLcLYZh4nbunNZvQCJc5pv7+RCwa8q/LdUx8u7lsWvPDKmpodJAJNwkAhJC//dFY48KuIEmjtd4RViDrA== + +webidl-conversions@^3.0.0: + version "3.0.1" + resolved "https://registry.yarnpkg.com/webidl-conversions/-/webidl-conversions-3.0.1.tgz#24534275e2a7bc6be7bc86611cc16ae0a5654871" + integrity sha1-JFNCdeKnvGvnvIZhHMFq4KVlSHE= + +whatwg-url@^5.0.0: + version "5.0.0" + resolved "https://registry.yarnpkg.com/whatwg-url/-/whatwg-url-5.0.0.tgz#966454e8765462e37644d3626f6742ce8b70965d" + integrity sha1-lmRU6HZUYuN2RNNib2dCzotwll0= + dependencies: + tr46 "~0.0.3" + webidl-conversions "^3.0.0" + +which-boxed-primitive@^1.0.2: + version "1.0.2" + resolved "https://registry.yarnpkg.com/which-boxed-primitive/-/which-boxed-primitive-1.0.2.tgz#13757bc89b209b049fe5d86430e21cf40a89a8e6" + integrity sha512-bwZdv0AKLpplFY2KZRX6TvyuN7ojjr7lwkg6ml0roIy9YeuSr7JS372qlNW18UQYzgYK9ziGcerWqZOmEn9VNg== + dependencies: + is-bigint "^1.0.1" + is-boolean-object "^1.1.0" + is-number-object "^1.0.4" + is-string "^1.0.5" + is-symbol "^1.0.3" + +which-module@^2.0.0: + version "2.0.0" + resolved "https://registry.yarnpkg.com/which-module/-/which-module-2.0.0.tgz#d9ef07dce77b9902b8a3a8fa4b31c3e3f7e6e87a" + integrity sha1-2e8H3Od7mQK4o6j6SzHD4/fm6Ho= + +which@2.0.2, which@^2.0.1: + version "2.0.2" + resolved "https://registry.yarnpkg.com/which/-/which-2.0.2.tgz#7c6a8dd0a636a0327e10b59c9286eee93f3f51b1" + integrity sha512-BLI3Tl1TW3Pvl70l3yq3Y64i+awpwXqsGBYWkkqMtnbXgrMD+yj7rhW0kuEDxzJaYXGjEW5ogapKNMEKNMjibA== + dependencies: + isexe "^2.0.0" + +word-wrap@^1.2.3: + version "1.2.3" + resolved "https://registry.yarnpkg.com/word-wrap/-/word-wrap-1.2.3.tgz#610636f6b1f703891bd34771ccb17fb93b47079c" + integrity sha512-Hz/mrNwitNRh/HUAtM/VT/5VH+ygD6DV7mYKZAtHOrbs8U7lvPS6xf7EJKMF0uW1KJCl0H701g3ZGus+muE5vQ== + +workerpool@6.1.5: + version "6.1.5" + resolved "https://registry.yarnpkg.com/workerpool/-/workerpool-6.1.5.tgz#0f7cf076b6215fd7e1da903ff6f22ddd1886b581" + integrity sha512-XdKkCK0Zqc6w3iTxLckiuJ81tiD/o5rBE/m+nXpRCB+/Sq4DqkfXZ/x0jW02DG1tGsfUGXbTJyZDP+eu67haSw== + +wrap-ansi@^6.2.0: + version "6.2.0" + resolved "https://registry.yarnpkg.com/wrap-ansi/-/wrap-ansi-6.2.0.tgz#e9393ba07102e6c91a3b221478f0257cd2856e53" + integrity sha512-r6lPcBGxZXlIcymEu7InxDMhdW0KDxpLgoFLcguasxCaJ/SOIZwINatK9KY/tf+ZrlywOKU0UDj3ATXUBfxJXA== + dependencies: + ansi-styles "^4.0.0" + string-width "^4.1.0" + strip-ansi "^6.0.0" + +wrap-ansi@^7.0.0: + version "7.0.0" + resolved "https://registry.yarnpkg.com/wrap-ansi/-/wrap-ansi-7.0.0.tgz#67e145cff510a6a6984bdf1152911d69d2eb9e43" + integrity sha512-YVGIj2kamLSTxw6NsZjoBxfSwsn0ycdesmc4p+Q21c5zPuZ1pl+NfxVdxPtdHvmNVOQ6XSYG4AUtyt/Fi7D16Q== + dependencies: + ansi-styles "^4.0.0" + string-width "^4.1.0" + strip-ansi "^6.0.0" + +wrappy@1: + version "1.0.2" + resolved "https://registry.yarnpkg.com/wrappy/-/wrappy-1.0.2.tgz#b5243d8f3ec1aa35f1364605bc0d1036e30ab69f" + integrity sha1-tSQ9jz7BqjXxNkYFvA0QNuMKtp8= + +write-file-atomic@^3.0.0: + version "3.0.3" + resolved "https://registry.yarnpkg.com/write-file-atomic/-/write-file-atomic-3.0.3.tgz#56bd5c5a5c70481cd19c571bd39ab965a5de56e8" + integrity sha512-AvHcyZ5JnSfq3ioSyjrBkH9yW4m7Ayk8/9My/DD9onKeu/94fwrMocemO2QAJFAlnnDN+ZDS+ZjAR5ua1/PV/Q== + dependencies: + imurmurhash "^0.1.4" + is-typedarray "^1.0.0" + signal-exit "^3.0.2" + typedarray-to-buffer "^3.1.5" + +y18n@^4.0.0: + version "4.0.3" + resolved "https://registry.yarnpkg.com/y18n/-/y18n-4.0.3.tgz#b5f259c82cd6e336921efd7bfd8bf560de9eeedf" + integrity sha512-JKhqTOwSrqNA1NY5lSztJ1GrBiUodLMmIZuLiDaMRJ+itFd+ABVE8XBjOvIWL+rSqNDC74LCSFmlb/U4UZ4hJQ== + +y18n@^5.0.5: + version "5.0.8" + resolved "https://registry.yarnpkg.com/y18n/-/y18n-5.0.8.tgz#7f4934d0f7ca8c56f95314939ddcd2dd91ce1d55" + integrity sha512-0pfFzegeDWJHJIAmTLRP2DwHjdF5s7jo9tuztdQxAhINCdvS+3nGINqPd00AphqJR/0LhANUS6/+7SCb98YOfA== + +yallist@^4.0.0: + version "4.0.0" + resolved "https://registry.yarnpkg.com/yallist/-/yallist-4.0.0.tgz#9bb92790d9c0effec63be73519e11a35019a3a72" + integrity sha512-3wdGidZyq5PB084XLES5TpOSRA3wjXAlIWMhum2kRcv/41Sn2emQ0dycQW4uZXLejwKvg6EsvbdlVL+FYEct7A== + +yargs-parser@20.2.4: + version "20.2.4" + resolved "https://registry.yarnpkg.com/yargs-parser/-/yargs-parser-20.2.4.tgz#b42890f14566796f85ae8e3a25290d205f154a54" + integrity sha512-WOkpgNhPTlE73h4VFAFsOnomJVaovO8VqLDzy5saChRBFQFBoMYirowyW+Q9HB4HFF4Z7VZTiG3iSzJJA29yRA== + +yargs-parser@^18.1.2: + version "18.1.3" + resolved "https://registry.yarnpkg.com/yargs-parser/-/yargs-parser-18.1.3.tgz#be68c4975c6b2abf469236b0c870362fab09a7b0" + integrity sha512-o50j0JeToy/4K6OZcaQmW6lyXXKhq7csREXcDwk2omFPJEwUNOVtJKvmDr9EI1fAJZUyZcRF7kxGBWmRXudrCQ== + dependencies: + camelcase "^5.0.0" + decamelize "^1.2.0" + +yargs-parser@^20.2.2: + version "20.2.9" + resolved "https://registry.yarnpkg.com/yargs-parser/-/yargs-parser-20.2.9.tgz#2eb7dc3b0289718fc295f362753845c41a0c94ee" + integrity sha512-y11nGElTIV+CT3Zv9t7VKl+Q3hTQoT9a1Qzezhhl6Rp21gJ/IVTW7Z3y9EWXhuUBC2Shnf+DX0antecpAwSP8w== + +yargs-unparser@2.0.0: + version "2.0.0" + resolved "https://registry.yarnpkg.com/yargs-unparser/-/yargs-unparser-2.0.0.tgz#f131f9226911ae5d9ad38c432fe809366c2325eb" + integrity sha512-7pRTIA9Qc1caZ0bZ6RYRGbHJthJWuakf+WmHK0rVeLkNrrGhfoabBNdue6kdINI6r4if7ocq9aD/n7xwKOdzOA== + dependencies: + camelcase "^6.0.0" + decamelize "^4.0.0" + flat "^5.0.2" + is-plain-obj "^2.1.0" + +yargs@16.2.0, yargs@^16.1.0: + version "16.2.0" + resolved "https://registry.yarnpkg.com/yargs/-/yargs-16.2.0.tgz#1c82bf0f6b6a66eafce7ef30e376f49a12477f66" + integrity sha512-D1mvvtDG0L5ft/jGWkLpG1+m0eQxOfaBvTNELraWj22wSVUMWxZUvYgJYcKh6jGGIkJFhH4IZPQhR4TKpc8mBw== + dependencies: + cliui "^7.0.2" + escalade "^3.1.1" + get-caller-file "^2.0.5" + require-directory "^2.1.1" + string-width "^4.2.0" + y18n "^5.0.5" + yargs-parser "^20.2.2" + +yargs@^15.0.2: + version "15.4.1" + resolved "https://registry.yarnpkg.com/yargs/-/yargs-15.4.1.tgz#0d87a16de01aee9d8bec2bfbf74f67851730f4f8" + integrity sha512-aePbxDmcYW++PaqBsJ+HYUFwCdv4LVvdnhBy78E57PIor8/OVvhMrADFFEDh8DHDFRv/O9i3lPhsENjO7QX0+A== + dependencies: + cliui "^6.0.0" + decamelize "^1.2.0" + find-up "^4.1.0" + get-caller-file "^2.0.1" + require-directory "^2.1.1" + require-main-filename "^2.0.0" + set-blocking "^2.0.0" + string-width "^4.2.0" + which-module "^2.0.0" + y18n "^4.0.0" + yargs-parser "^18.1.2" + +yn@3.1.1: + version "3.1.1" + resolved "https://registry.yarnpkg.com/yn/-/yn-3.1.1.tgz#1e87401a09d767c1d5eab26a6e4c185182d2eb50" + integrity sha512-Ux4ygGWsu2c7isFWe8Yu1YluJmqVhxqK2cLXNQA5AcC3QfbGNpM7fu0Y8b/z16pXLnFxZYvWhd3fhBY9DLmC6Q== + +yocto-queue@^0.1.0: + version "0.1.0" + resolved "https://registry.yarnpkg.com/yocto-queue/-/yocto-queue-0.1.0.tgz#0294eb3dee05028d31ee1a5fa2c556a6aaf10a1b" + integrity sha512-rVksvsnNCdJ/ohGc6xgPwyN8eheCxsiLM8mxuE/t/mOVqJewPuO1miLpTHQiRgTKCLexL4MeAFVagts7HmNZ2Q==