@farukada/aws-langgraph-dynamodb-ts 0.0.4 → 0.0.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/esbuild-bundle-hints.d.ts +6 -1
- package/dist/esbuild-bundle-hints.d.ts.map +1 -1
- package/dist/esbuild-bundle-hints.js +7 -6
- package/dist/esbuild-bundle-hints.js.map +1 -1
- package/node_modules/deep-is/.travis.yml +5 -0
- package/node_modules/deep-is/LICENSE +22 -0
- package/node_modules/deep-is/README.markdown +70 -0
- package/node_modules/deep-is/example/cmp.js +11 -0
- package/node_modules/deep-is/index.js +102 -0
- package/node_modules/deep-is/package.json +58 -0
- package/node_modules/deep-is/test/NaN.js +16 -0
- package/node_modules/deep-is/test/cmp.js +23 -0
- package/node_modules/deep-is/test/neg-vs-pos-0.js +15 -0
- package/node_modules/escodegen/LICENSE.BSD +21 -0
- package/node_modules/escodegen/README.md +84 -0
- package/node_modules/escodegen/bin/escodegen.js +77 -0
- package/node_modules/escodegen/bin/esgenerate.js +64 -0
- package/node_modules/escodegen/escodegen.js +2626 -0
- package/node_modules/escodegen/node_modules/estraverse/.jshintrc +16 -0
- package/node_modules/escodegen/node_modules/estraverse/LICENSE.BSD +19 -0
- package/node_modules/escodegen/node_modules/estraverse/README.md +153 -0
- package/node_modules/escodegen/node_modules/estraverse/estraverse.js +782 -0
- package/node_modules/escodegen/node_modules/estraverse/gulpfile.js +70 -0
- package/node_modules/escodegen/node_modules/estraverse/package.json +40 -0
- package/node_modules/escodegen/node_modules/levn/LICENSE +22 -0
- package/node_modules/escodegen/node_modules/levn/README.md +196 -0
- package/node_modules/escodegen/node_modules/levn/lib/cast.js +298 -0
- package/node_modules/escodegen/node_modules/levn/lib/coerce.js +285 -0
- package/node_modules/escodegen/node_modules/levn/lib/index.js +22 -0
- package/node_modules/escodegen/node_modules/levn/lib/parse-string.js +113 -0
- package/node_modules/escodegen/node_modules/levn/lib/parse.js +102 -0
- package/node_modules/escodegen/node_modules/levn/package.json +47 -0
- package/node_modules/escodegen/node_modules/optionator/CHANGELOG.md +56 -0
- package/node_modules/escodegen/node_modules/optionator/LICENSE +22 -0
- package/node_modules/escodegen/node_modules/optionator/README.md +238 -0
- package/node_modules/escodegen/node_modules/optionator/lib/help.js +260 -0
- package/node_modules/escodegen/node_modules/optionator/lib/index.js +465 -0
- package/node_modules/escodegen/node_modules/optionator/lib/util.js +54 -0
- package/node_modules/escodegen/node_modules/optionator/package.json +44 -0
- package/node_modules/escodegen/node_modules/prelude-ls/CHANGELOG.md +99 -0
- package/node_modules/escodegen/node_modules/prelude-ls/LICENSE +22 -0
- package/node_modules/escodegen/node_modules/prelude-ls/README.md +15 -0
- package/node_modules/escodegen/node_modules/prelude-ls/lib/Func.js +65 -0
- package/node_modules/escodegen/node_modules/prelude-ls/lib/List.js +686 -0
- package/node_modules/escodegen/node_modules/prelude-ls/lib/Num.js +130 -0
- package/node_modules/escodegen/node_modules/prelude-ls/lib/Obj.js +154 -0
- package/node_modules/escodegen/node_modules/prelude-ls/lib/Str.js +92 -0
- package/node_modules/escodegen/node_modules/prelude-ls/lib/index.js +178 -0
- package/node_modules/escodegen/node_modules/prelude-ls/package.json +52 -0
- package/node_modules/escodegen/node_modules/type-check/LICENSE +22 -0
- package/node_modules/escodegen/node_modules/type-check/README.md +210 -0
- package/node_modules/escodegen/node_modules/type-check/lib/check.js +126 -0
- package/node_modules/escodegen/node_modules/type-check/lib/index.js +16 -0
- package/node_modules/escodegen/node_modules/type-check/lib/parse-type.js +196 -0
- package/node_modules/escodegen/node_modules/type-check/package.json +40 -0
- package/node_modules/escodegen/package.json +61 -0
- package/node_modules/esprima/ChangeLog +235 -0
- package/node_modules/esprima/LICENSE.BSD +21 -0
- package/node_modules/esprima/README.md +46 -0
- package/node_modules/esprima/bin/esparse.js +139 -0
- package/node_modules/esprima/bin/esvalidate.js +236 -0
- package/node_modules/esprima/dist/esprima.js +6709 -0
- package/node_modules/esprima/package.json +112 -0
- package/node_modules/esutils/LICENSE.BSD +19 -0
- package/node_modules/esutils/README.md +174 -0
- package/node_modules/esutils/lib/ast.js +144 -0
- package/node_modules/esutils/lib/code.js +135 -0
- package/node_modules/esutils/lib/keyword.js +165 -0
- package/node_modules/esutils/lib/utils.js +33 -0
- package/node_modules/esutils/package.json +44 -0
- package/node_modules/fast-levenshtein/LICENSE.md +25 -0
- package/node_modules/fast-levenshtein/README.md +104 -0
- package/node_modules/fast-levenshtein/levenshtein.js +136 -0
- package/node_modules/fast-levenshtein/package.json +39 -0
- package/node_modules/jsonpath/.jscsrc +60 -0
- package/node_modules/jsonpath/.jshintrc +9 -0
- package/node_modules/jsonpath/.travis.yml +3 -0
- package/node_modules/jsonpath/Dockerfile +1 -0
- package/node_modules/jsonpath/Gruntfile.js +83 -0
- package/node_modules/jsonpath/LICENSE +7 -0
- package/node_modules/jsonpath/README.md +216 -0
- package/node_modules/jsonpath/bin/generate_parser.js +8 -0
- package/node_modules/jsonpath/fig.yml +5 -0
- package/node_modules/jsonpath/generated/parser.js +721 -0
- package/node_modules/jsonpath/include/action.js +4 -0
- package/node_modules/jsonpath/include/module.js +34 -0
- package/node_modules/jsonpath/index.js +1 -0
- package/node_modules/jsonpath/jsonpath.js +6842 -0
- package/node_modules/jsonpath/jsonpath.min.js +4 -0
- package/node_modules/jsonpath/lib/aesprim.js +18 -0
- package/node_modules/jsonpath/lib/dict.js +6 -0
- package/node_modules/jsonpath/lib/grammar.js +106 -0
- package/node_modules/jsonpath/lib/handlers.js +260 -0
- package/node_modules/jsonpath/lib/index.js +249 -0
- package/node_modules/jsonpath/lib/parser.js +21 -0
- package/node_modules/jsonpath/lib/slice.js +41 -0
- package/node_modules/jsonpath/node_modules/esprima/README.md +24 -0
- package/node_modules/jsonpath/node_modules/esprima/bin/esparse.js +127 -0
- package/node_modules/jsonpath/node_modules/esprima/bin/esvalidate.js +199 -0
- package/node_modules/jsonpath/node_modules/esprima/esprima.js +3756 -0
- package/node_modules/jsonpath/node_modules/esprima/package.json +83 -0
- package/node_modules/jsonpath/node_modules/esprima/test/compat.js +241 -0
- package/node_modules/jsonpath/node_modules/esprima/test/reflect.js +422 -0
- package/node_modules/jsonpath/node_modules/esprima/test/run.js +67 -0
- package/node_modules/jsonpath/node_modules/esprima/test/runner.js +495 -0
- package/node_modules/jsonpath/node_modules/esprima/test/test.js +25241 -0
- package/node_modules/jsonpath/package.json +45 -0
- package/node_modules/jsonpath/test/data/store.json +31 -0
- package/node_modules/jsonpath/test/lessons.js +38 -0
- package/node_modules/jsonpath/test/parse.js +164 -0
- package/node_modules/jsonpath/test/query.js +359 -0
- package/node_modules/jsonpath/test/slice.js +57 -0
- package/node_modules/jsonpath/test/stringify.js +54 -0
- package/node_modules/jsonpath/test/sugar.js +72 -0
- package/node_modules/source-map/CHANGELOG.md +301 -0
- package/node_modules/source-map/LICENSE +28 -0
- package/node_modules/source-map/README.md +742 -0
- package/node_modules/source-map/dist/source-map.debug.js +3234 -0
- package/node_modules/source-map/dist/source-map.js +3233 -0
- package/node_modules/source-map/dist/source-map.min.js +2 -0
- package/node_modules/source-map/dist/source-map.min.js.map +1 -0
- package/node_modules/source-map/lib/array-set.js +121 -0
- package/node_modules/source-map/lib/base64-vlq.js +140 -0
- package/node_modules/source-map/lib/base64.js +67 -0
- package/node_modules/source-map/lib/binary-search.js +111 -0
- package/node_modules/source-map/lib/mapping-list.js +79 -0
- package/node_modules/source-map/lib/quick-sort.js +114 -0
- package/node_modules/source-map/lib/source-map-consumer.js +1145 -0
- package/node_modules/source-map/lib/source-map-generator.js +425 -0
- package/node_modules/source-map/lib/source-node.js +413 -0
- package/node_modules/source-map/lib/util.js +488 -0
- package/node_modules/source-map/package.json +73 -0
- package/node_modules/source-map/source-map.d.ts +98 -0
- package/node_modules/source-map/source-map.js +8 -0
- package/node_modules/static-eval/.travis.yml +4 -0
- package/node_modules/static-eval/LICENSE +18 -0
- package/node_modules/static-eval/example/eval.js +7 -0
- package/node_modules/static-eval/example/vars.js +11 -0
- package/node_modules/static-eval/index.js +178 -0
- package/node_modules/static-eval/package.json +48 -0
- package/node_modules/static-eval/readme.markdown +87 -0
- package/node_modules/static-eval/test/eval.js +82 -0
- package/node_modules/static-eval/test/prop.js +16 -0
- package/node_modules/static-eval/test/template-strings.js +33 -0
- package/node_modules/underscore/LICENSE +23 -0
- package/node_modules/underscore/README.md +28 -0
- package/node_modules/underscore/amd/_apply.js +7 -0
- package/node_modules/underscore/amd/_applyProperty.js +14 -0
- package/node_modules/underscore/amd/_arrayAccessors.js +11 -0
- package/node_modules/underscore/amd/_arrayMutators.js +15 -0
- package/node_modules/underscore/amd/_baseCreate.js +21 -0
- package/node_modules/underscore/amd/_baseIteratee.js +15 -0
- package/node_modules/underscore/amd/_binarySearch.js +17 -0
- package/node_modules/underscore/amd/_bindCb.js +14 -0
- package/node_modules/underscore/amd/_bindCb4.js +17 -0
- package/node_modules/underscore/amd/_byValue.js +11 -0
- package/node_modules/underscore/amd/_cb.js +12 -0
- package/node_modules/underscore/amd/_chainResult.js +10 -0
- package/node_modules/underscore/amd/_collectNonEnumProps.js +42 -0
- package/node_modules/underscore/amd/_createAssigner.js +24 -0
- package/node_modules/underscore/amd/_createEscaper.js +21 -0
- package/node_modules/underscore/amd/_createIndexFinder.js +30 -0
- package/node_modules/underscore/amd/_createPredicateIndexFinder.js +18 -0
- package/node_modules/underscore/amd/_createReduce.js +30 -0
- package/node_modules/underscore/amd/_createSizePropertyCheck.js +13 -0
- package/node_modules/underscore/amd/_deepGet.js +15 -0
- package/node_modules/underscore/amd/_escapeMap.js +15 -0
- package/node_modules/underscore/amd/_executeBound.js +16 -0
- package/node_modules/underscore/amd/_extremum.js +35 -0
- package/node_modules/underscore/amd/_flatten.js +32 -0
- package/node_modules/underscore/amd/_forceNumericMinMax.js +16 -0
- package/node_modules/underscore/amd/_getByteLength.js +8 -0
- package/node_modules/underscore/amd/_getLength.js +8 -0
- package/node_modules/underscore/amd/_greater.js +10 -0
- package/node_modules/underscore/amd/_group.js +18 -0
- package/node_modules/underscore/amd/_has.js +10 -0
- package/node_modules/underscore/amd/_hasObjectTag.js +7 -0
- package/node_modules/underscore/amd/_isArrayLike.js +11 -0
- package/node_modules/underscore/amd/_isBufferLike.js +9 -0
- package/node_modules/underscore/amd/_keyInObj.js +11 -0
- package/node_modules/underscore/amd/_less.js +10 -0
- package/node_modules/underscore/amd/_lessEqual.js +10 -0
- package/node_modules/underscore/amd/_linearSearch.js +31 -0
- package/node_modules/underscore/amd/_mapReduce.js +5 -0
- package/node_modules/underscore/amd/_methodFingerprint.js +44 -0
- package/node_modules/underscore/amd/_optimizeCb.js +27 -0
- package/node_modules/underscore/amd/_push.js +7 -0
- package/node_modules/underscore/amd/_pusher.js +13 -0
- package/node_modules/underscore/amd/_sequence.js +18 -0
- package/node_modules/underscore/amd/_setup.js +70 -0
- package/node_modules/underscore/amd/_shallowProperty.js +12 -0
- package/node_modules/underscore/amd/_slice.js +7 -0
- package/node_modules/underscore/amd/_strictEqual.js +9 -0
- package/node_modules/underscore/amd/_stringTagBug.js +16 -0
- package/node_modules/underscore/amd/_tagTester.js +13 -0
- package/node_modules/underscore/amd/_toBufferView.js +15 -0
- package/node_modules/underscore/amd/_toPath.js +11 -0
- package/node_modules/underscore/amd/_unescapeMap.js +8 -0
- package/node_modules/underscore/amd/_unmethodize.js +9 -0
- package/node_modules/underscore/amd/_wrapArrayAccessor.js +15 -0
- package/node_modules/underscore/amd/_wrapArrayMutator.js +28 -0
- package/node_modules/underscore/amd/after.js +14 -0
- package/node_modules/underscore/amd/allKeys.js +15 -0
- package/node_modules/underscore/amd/before.js +18 -0
- package/node_modules/underscore/amd/bind.js +15 -0
- package/node_modules/underscore/amd/bindAll.js +19 -0
- package/node_modules/underscore/amd/chain.js +12 -0
- package/node_modules/underscore/amd/chunk.js +17 -0
- package/node_modules/underscore/amd/clone.js +11 -0
- package/node_modules/underscore/amd/compact.js +10 -0
- package/node_modules/underscore/amd/compose.js +18 -0
- package/node_modules/underscore/amd/concat.js +7 -0
- package/node_modules/underscore/amd/constant.js +12 -0
- package/node_modules/underscore/amd/contains.js +12 -0
- package/node_modules/underscore/amd/countBy.js +12 -0
- package/node_modules/underscore/amd/create.js +14 -0
- package/node_modules/underscore/amd/debounce.js +43 -0
- package/node_modules/underscore/amd/defaults.js +8 -0
- package/node_modules/underscore/amd/defer.js +9 -0
- package/node_modules/underscore/amd/delay.js +13 -0
- package/node_modules/underscore/amd/difference.js +14 -0
- package/node_modules/underscore/amd/each.js +25 -0
- package/node_modules/underscore/amd/escape.js +8 -0
- package/node_modules/underscore/amd/every.js +17 -0
- package/node_modules/underscore/amd/extend.js +8 -0
- package/node_modules/underscore/amd/extendOwn.js +10 -0
- package/node_modules/underscore/amd/filter.js +15 -0
- package/node_modules/underscore/amd/find.js +12 -0
- package/node_modules/underscore/amd/findIndex.js +8 -0
- package/node_modules/underscore/amd/findKey.js +15 -0
- package/node_modules/underscore/amd/findLastIndex.js +8 -0
- package/node_modules/underscore/amd/findWhere.js +11 -0
- package/node_modules/underscore/amd/first.js +13 -0
- package/node_modules/underscore/amd/flatten.js +11 -0
- package/node_modules/underscore/amd/functions.js +14 -0
- package/node_modules/underscore/amd/get.js +14 -0
- package/node_modules/underscore/amd/groupBy.js +11 -0
- package/node_modules/underscore/amd/has.js +19 -0
- package/node_modules/underscore/amd/identity.js +10 -0
- package/node_modules/underscore/amd/index-default.js +12 -0
- package/node_modules/underscore/amd/index.js +154 -0
- package/node_modules/underscore/amd/indexBy.js +11 -0
- package/node_modules/underscore/amd/indexOf.js +11 -0
- package/node_modules/underscore/amd/initial.js +12 -0
- package/node_modules/underscore/amd/intersection.js +22 -0
- package/node_modules/underscore/amd/invert.js +15 -0
- package/node_modules/underscore/amd/invoke.js +28 -0
- package/node_modules/underscore/amd/isArguments.js +19 -0
- package/node_modules/underscore/amd/isArray.js +9 -0
- package/node_modules/underscore/amd/isArrayBuffer.js +7 -0
- package/node_modules/underscore/amd/isBoolean.js +10 -0
- package/node_modules/underscore/amd/isDataView.js +15 -0
- package/node_modules/underscore/amd/isDate.js +7 -0
- package/node_modules/underscore/amd/isElement.js +10 -0
- package/node_modules/underscore/amd/isEmpty.js +18 -0
- package/node_modules/underscore/amd/isEqual.js +133 -0
- package/node_modules/underscore/amd/isError.js +7 -0
- package/node_modules/underscore/amd/isFinite.js +10 -0
- package/node_modules/underscore/amd/isFunction.js +18 -0
- package/node_modules/underscore/amd/isMap.js +7 -0
- package/node_modules/underscore/amd/isMatch.js +17 -0
- package/node_modules/underscore/amd/isNaN.js +10 -0
- package/node_modules/underscore/amd/isNull.js +10 -0
- package/node_modules/underscore/amd/isNumber.js +7 -0
- package/node_modules/underscore/amd/isObject.js +11 -0
- package/node_modules/underscore/amd/isRegExp.js +7 -0
- package/node_modules/underscore/amd/isSet.js +7 -0
- package/node_modules/underscore/amd/isString.js +7 -0
- package/node_modules/underscore/amd/isSymbol.js +7 -0
- package/node_modules/underscore/amd/isTypedArray.js +16 -0
- package/node_modules/underscore/amd/isUndefined.js +10 -0
- package/node_modules/underscore/amd/isWeakMap.js +7 -0
- package/node_modules/underscore/amd/isWeakSet.js +7 -0
- package/node_modules/underscore/amd/iteratee.js +13 -0
- package/node_modules/underscore/amd/join.js +7 -0
- package/node_modules/underscore/amd/keys.js +17 -0
- package/node_modules/underscore/amd/last.js +13 -0
- package/node_modules/underscore/amd/lastIndexOf.js +9 -0
- package/node_modules/underscore/amd/map.js +18 -0
- package/node_modules/underscore/amd/mapObject.js +19 -0
- package/node_modules/underscore/amd/matcher.js +14 -0
- package/node_modules/underscore/amd/max.js +30 -0
- package/node_modules/underscore/amd/memoize.js +17 -0
- package/node_modules/underscore/amd/min.js +30 -0
- package/node_modules/underscore/amd/mixin.js +18 -0
- package/node_modules/underscore/amd/negate.js +12 -0
- package/node_modules/underscore/amd/noop.js +8 -0
- package/node_modules/underscore/amd/now.js +10 -0
- package/node_modules/underscore/amd/object.js +20 -0
- package/node_modules/underscore/amd/omit.js +20 -0
- package/node_modules/underscore/amd/once.js +9 -0
- package/node_modules/underscore/amd/pairs.js +17 -0
- package/node_modules/underscore/amd/partial.js +25 -0
- package/node_modules/underscore/amd/partition.js +11 -0
- package/node_modules/underscore/amd/pick.js +25 -0
- package/node_modules/underscore/amd/pluck.js +10 -0
- package/node_modules/underscore/amd/pop.js +7 -0
- package/node_modules/underscore/amd/property.js +14 -0
- package/node_modules/underscore/amd/propertyOf.js +13 -0
- package/node_modules/underscore/amd/push.js +7 -0
- package/node_modules/underscore/amd/random.js +14 -0
- package/node_modules/underscore/amd/range.js +27 -0
- package/node_modules/underscore/amd/reduce.js +9 -0
- package/node_modules/underscore/amd/reduceRight.js +8 -0
- package/node_modules/underscore/amd/reject.js +10 -0
- package/node_modules/underscore/amd/rest.js +12 -0
- package/node_modules/underscore/amd/restArguments.js +33 -0
- package/node_modules/underscore/amd/result.js +25 -0
- package/node_modules/underscore/amd/reverse.js +7 -0
- package/node_modules/underscore/amd/sample.js +27 -0
- package/node_modules/underscore/amd/shift.js +7 -0
- package/node_modules/underscore/amd/shuffle.js +10 -0
- package/node_modules/underscore/amd/size.js +11 -0
- package/node_modules/underscore/amd/slice.js +7 -0
- package/node_modules/underscore/amd/some.js +17 -0
- package/node_modules/underscore/amd/sort.js +7 -0
- package/node_modules/underscore/amd/sortBy.js +26 -0
- package/node_modules/underscore/amd/sortedIndex.js +18 -0
- package/node_modules/underscore/amd/sortedLastIndex.js +11 -0
- package/node_modules/underscore/amd/splice.js +7 -0
- package/node_modules/underscore/amd/tap.js +13 -0
- package/node_modules/underscore/amd/template.js +95 -0
- package/node_modules/underscore/amd/templateSettings.js +13 -0
- package/node_modules/underscore/amd/throttle.js +51 -0
- package/node_modules/underscore/amd/times.js +13 -0
- package/node_modules/underscore/amd/toArray.js +18 -0
- package/node_modules/underscore/amd/toPath.js +12 -0
- package/node_modules/underscore/amd/toString.js +11 -0
- package/node_modules/underscore/amd/underscore-array-methods.js +30 -0
- package/node_modules/underscore/amd/underscore.js +29 -0
- package/node_modules/underscore/amd/unescape.js +8 -0
- package/node_modules/underscore/amd/union.js +11 -0
- package/node_modules/underscore/amd/uniq.js +37 -0
- package/node_modules/underscore/amd/uniqueId.js +13 -0
- package/node_modules/underscore/amd/unshift.js +7 -0
- package/node_modules/underscore/amd/unzip.js +17 -0
- package/node_modules/underscore/amd/value.js +13 -0
- package/node_modules/underscore/amd/values.js +16 -0
- package/node_modules/underscore/amd/where.js +11 -0
- package/node_modules/underscore/amd/without.js +10 -0
- package/node_modules/underscore/amd/wrap.js +12 -0
- package/node_modules/underscore/amd/zip.js +9 -0
- package/node_modules/underscore/cjs/_apply.js +6 -0
- package/node_modules/underscore/cjs/_applyProperty.js +10 -0
- package/node_modules/underscore/cjs/_arrayAccessors.js +11 -0
- package/node_modules/underscore/cjs/_arrayMutators.js +19 -0
- package/node_modules/underscore/cjs/_baseCreate.js +20 -0
- package/node_modules/underscore/cjs/_baseIteratee.js +19 -0
- package/node_modules/underscore/cjs/_binarySearch.js +15 -0
- package/node_modules/underscore/cjs/_bindCb.js +10 -0
- package/node_modules/underscore/cjs/_bindCb4.js +13 -0
- package/node_modules/underscore/cjs/_byValue.js +7 -0
- package/node_modules/underscore/cjs/_cb.js +12 -0
- package/node_modules/underscore/cjs/_chainResult.js +8 -0
- package/node_modules/underscore/cjs/_collectNonEnumProps.js +42 -0
- package/node_modules/underscore/cjs/_createAssigner.js +20 -0
- package/node_modules/underscore/cjs/_createEscaper.js +19 -0
- package/node_modules/underscore/cjs/_createIndexFinder.js +30 -0
- package/node_modules/underscore/cjs/_createPredicateIndexFinder.js +17 -0
- package/node_modules/underscore/cjs/_createReduce.js +30 -0
- package/node_modules/underscore/cjs/_createSizePropertyCheck.js +11 -0
- package/node_modules/underscore/cjs/_deepGet.js +11 -0
- package/node_modules/underscore/cjs/_escapeMap.js +11 -0
- package/node_modules/underscore/cjs/_executeBound.js +15 -0
- package/node_modules/underscore/cjs/_extremum.js +35 -0
- package/node_modules/underscore/cjs/_flatten.js +33 -0
- package/node_modules/underscore/cjs/_forceNumericMinMax.js +14 -0
- package/node_modules/underscore/cjs/_getByteLength.js +6 -0
- package/node_modules/underscore/cjs/_getLength.js +6 -0
- package/node_modules/underscore/cjs/_greater.js +6 -0
- package/node_modules/underscore/cjs/_group.js +17 -0
- package/node_modules/underscore/cjs/_has.js +8 -0
- package/node_modules/underscore/cjs/_hasObjectTag.js +5 -0
- package/node_modules/underscore/cjs/_isArrayLike.js +10 -0
- package/node_modules/underscore/cjs/_isBufferLike.js +8 -0
- package/node_modules/underscore/cjs/_keyInObj.js +7 -0
- package/node_modules/underscore/cjs/_less.js +6 -0
- package/node_modules/underscore/cjs/_lessEqual.js +6 -0
- package/node_modules/underscore/cjs/_linearSearch.js +30 -0
- package/node_modules/underscore/cjs/_mapReduce.js +1 -0
- package/node_modules/underscore/cjs/_methodFingerprint.js +44 -0
- package/node_modules/underscore/cjs/_optimizeCb.js +23 -0
- package/node_modules/underscore/cjs/_push.js +6 -0
- package/node_modules/underscore/cjs/_pusher.js +9 -0
- package/node_modules/underscore/cjs/_sequence.js +14 -0
- package/node_modules/underscore/cjs/_setup.js +66 -0
- package/node_modules/underscore/cjs/_shallowProperty.js +8 -0
- package/node_modules/underscore/cjs/_slice.js +6 -0
- package/node_modules/underscore/cjs/_strictEqual.js +5 -0
- package/node_modules/underscore/cjs/_stringTagBug.js +15 -0
- package/node_modules/underscore/cjs/_tagTester.js +11 -0
- package/node_modules/underscore/cjs/_toBufferView.js +13 -0
- package/node_modules/underscore/cjs/_toPath.js +10 -0
- package/node_modules/underscore/cjs/_unescapeMap.js +7 -0
- package/node_modules/underscore/cjs/_unmethodize.js +8 -0
- package/node_modules/underscore/cjs/_wrapArrayAccessor.js +14 -0
- package/node_modules/underscore/cjs/_wrapArrayMutator.js +29 -0
- package/node_modules/underscore/cjs/after.js +10 -0
- package/node_modules/underscore/cjs/allKeys.js +15 -0
- package/node_modules/underscore/cjs/before.js +14 -0
- package/node_modules/underscore/cjs/bind.js +15 -0
- package/node_modules/underscore/cjs/bindAll.js +19 -0
- package/node_modules/underscore/cjs/chain.js +10 -0
- package/node_modules/underscore/cjs/chunk.js +15 -0
- package/node_modules/underscore/cjs/clone.js +11 -0
- package/node_modules/underscore/cjs/compact.js +8 -0
- package/node_modules/underscore/cjs/compose.js +14 -0
- package/node_modules/underscore/cjs/concat.js +6 -0
- package/node_modules/underscore/cjs/constant.js +8 -0
- package/node_modules/underscore/cjs/contains.js +12 -0
- package/node_modules/underscore/cjs/countBy.js +11 -0
- package/node_modules/underscore/cjs/create.js +13 -0
- package/node_modules/underscore/cjs/debounce.js +42 -0
- package/node_modules/underscore/cjs/defaults.js +7 -0
- package/node_modules/underscore/cjs/defer.js +9 -0
- package/node_modules/underscore/cjs/delay.js +11 -0
- package/node_modules/underscore/cjs/difference.js +15 -0
- package/node_modules/underscore/cjs/each.js +25 -0
- package/node_modules/underscore/cjs/escape.js +7 -0
- package/node_modules/underscore/cjs/every.js +17 -0
- package/node_modules/underscore/cjs/extend.js +7 -0
- package/node_modules/underscore/cjs/extendOwn.js +9 -0
- package/node_modules/underscore/cjs/filter.js +14 -0
- package/node_modules/underscore/cjs/find.js +12 -0
- package/node_modules/underscore/cjs/findIndex.js +6 -0
- package/node_modules/underscore/cjs/findKey.js +14 -0
- package/node_modules/underscore/cjs/findLastIndex.js +6 -0
- package/node_modules/underscore/cjs/findWhere.js +10 -0
- package/node_modules/underscore/cjs/first.js +11 -0
- package/node_modules/underscore/cjs/flatten.js +9 -0
- package/node_modules/underscore/cjs/functions.js +12 -0
- package/node_modules/underscore/cjs/get.js +14 -0
- package/node_modules/underscore/cjs/groupBy.js +10 -0
- package/node_modules/underscore/cjs/has.js +18 -0
- package/node_modules/underscore/cjs/identity.js +6 -0
- package/node_modules/underscore/cjs/index-default.js +11 -0
- package/node_modules/underscore/cjs/index.js +277 -0
- package/node_modules/underscore/cjs/indexBy.js +9 -0
- package/node_modules/underscore/cjs/indexOf.js +11 -0
- package/node_modules/underscore/cjs/initial.js +10 -0
- package/node_modules/underscore/cjs/intersection.js +21 -0
- package/node_modules/underscore/cjs/invert.js +13 -0
- package/node_modules/underscore/cjs/invoke.js +30 -0
- package/node_modules/underscore/cjs/isArguments.js +18 -0
- package/node_modules/underscore/cjs/isArray.js +8 -0
- package/node_modules/underscore/cjs/isArrayBuffer.js +5 -0
- package/node_modules/underscore/cjs/isBoolean.js +8 -0
- package/node_modules/underscore/cjs/isDataView.js +16 -0
- package/node_modules/underscore/cjs/isDate.js +5 -0
- package/node_modules/underscore/cjs/isElement.js +6 -0
- package/node_modules/underscore/cjs/isEmpty.js +20 -0
- package/node_modules/underscore/cjs/isEqual.js +140 -0
- package/node_modules/underscore/cjs/isError.js +5 -0
- package/node_modules/underscore/cjs/isFinite.js +9 -0
- package/node_modules/underscore/cjs/isFunction.js +17 -0
- package/node_modules/underscore/cjs/isMap.js +7 -0
- package/node_modules/underscore/cjs/isMatch.js +15 -0
- package/node_modules/underscore/cjs/isNaN.js +9 -0
- package/node_modules/underscore/cjs/isNull.js +6 -0
- package/node_modules/underscore/cjs/isNumber.js +5 -0
- package/node_modules/underscore/cjs/isObject.js +7 -0
- package/node_modules/underscore/cjs/isRegExp.js +5 -0
- package/node_modules/underscore/cjs/isSet.js +7 -0
- package/node_modules/underscore/cjs/isString.js +5 -0
- package/node_modules/underscore/cjs/isSymbol.js +5 -0
- package/node_modules/underscore/cjs/isTypedArray.js +17 -0
- package/node_modules/underscore/cjs/isUndefined.js +6 -0
- package/node_modules/underscore/cjs/isWeakMap.js +7 -0
- package/node_modules/underscore/cjs/isWeakSet.js +5 -0
- package/node_modules/underscore/cjs/iteratee.js +12 -0
- package/node_modules/underscore/cjs/join.js +6 -0
- package/node_modules/underscore/cjs/keys.js +18 -0
- package/node_modules/underscore/cjs/last.js +11 -0
- package/node_modules/underscore/cjs/lastIndexOf.js +8 -0
- package/node_modules/underscore/cjs/map.js +18 -0
- package/node_modules/underscore/cjs/mapObject.js +18 -0
- package/node_modules/underscore/cjs/matcher.js +13 -0
- package/node_modules/underscore/cjs/max.js +31 -0
- package/node_modules/underscore/cjs/memoize.js +15 -0
- package/node_modules/underscore/cjs/min.js +31 -0
- package/node_modules/underscore/cjs/mixin.js +20 -0
- package/node_modules/underscore/cjs/negate.js +8 -0
- package/node_modules/underscore/cjs/noop.js +4 -0
- package/node_modules/underscore/cjs/now.js +6 -0
- package/node_modules/underscore/cjs/object.js +18 -0
- package/node_modules/underscore/cjs/omit.js +24 -0
- package/node_modules/underscore/cjs/once.js +8 -0
- package/node_modules/underscore/cjs/pairs.js +15 -0
- package/node_modules/underscore/cjs/partial.js +25 -0
- package/node_modules/underscore/cjs/partition.js +9 -0
- package/node_modules/underscore/cjs/pick.js +28 -0
- package/node_modules/underscore/cjs/pluck.js +9 -0
- package/node_modules/underscore/cjs/pop.js +6 -0
- package/node_modules/underscore/cjs/property.js +13 -0
- package/node_modules/underscore/cjs/propertyOf.js +12 -0
- package/node_modules/underscore/cjs/push.js +6 -0
- package/node_modules/underscore/cjs/random.js +10 -0
- package/node_modules/underscore/cjs/range.js +23 -0
- package/node_modules/underscore/cjs/reduce.js +7 -0
- package/node_modules/underscore/cjs/reduceRight.js +6 -0
- package/node_modules/underscore/cjs/reject.js +10 -0
- package/node_modules/underscore/cjs/rest.js +10 -0
- package/node_modules/underscore/cjs/restArguments.js +29 -0
- package/node_modules/underscore/cjs/result.js +24 -0
- package/node_modules/underscore/cjs/reverse.js +6 -0
- package/node_modules/underscore/cjs/sample.js +29 -0
- package/node_modules/underscore/cjs/shift.js +6 -0
- package/node_modules/underscore/cjs/shuffle.js +8 -0
- package/node_modules/underscore/cjs/size.js +10 -0
- package/node_modules/underscore/cjs/slice.js +6 -0
- package/node_modules/underscore/cjs/some.js +17 -0
- package/node_modules/underscore/cjs/sort.js +6 -0
- package/node_modules/underscore/cjs/sortBy.js +26 -0
- package/node_modules/underscore/cjs/sortedIndex.js +17 -0
- package/node_modules/underscore/cjs/sortedLastIndex.js +11 -0
- package/node_modules/underscore/cjs/splice.js +6 -0
- package/node_modules/underscore/cjs/tap.js +9 -0
- package/node_modules/underscore/cjs/template.js +95 -0
- package/node_modules/underscore/cjs/templateSettings.js +11 -0
- package/node_modules/underscore/cjs/throttle.js +49 -0
- package/node_modules/underscore/cjs/times.js +11 -0
- package/node_modules/underscore/cjs/toArray.js +22 -0
- package/node_modules/underscore/cjs/toPath.js +11 -0
- package/node_modules/underscore/cjs/toString.js +9 -0
- package/node_modules/underscore/cjs/underscore-array-methods.js +31 -0
- package/node_modules/underscore/cjs/underscore.js +27 -0
- package/node_modules/underscore/cjs/unescape.js +7 -0
- package/node_modules/underscore/cjs/union.js +11 -0
- package/node_modules/underscore/cjs/uniq.js +38 -0
- package/node_modules/underscore/cjs/uniqueId.js +9 -0
- package/node_modules/underscore/cjs/unshift.js +6 -0
- package/node_modules/underscore/cjs/unzip.js +17 -0
- package/node_modules/underscore/cjs/value.js +9 -0
- package/node_modules/underscore/cjs/values.js +14 -0
- package/node_modules/underscore/cjs/where.js +10 -0
- package/node_modules/underscore/cjs/without.js +9 -0
- package/node_modules/underscore/cjs/wrap.js +10 -0
- package/node_modules/underscore/cjs/zip.js +8 -0
- package/node_modules/underscore/modules/.eslintrc +12 -0
- package/node_modules/underscore/modules/_baseCreate.js +18 -0
- package/node_modules/underscore/modules/_baseIteratee.js +17 -0
- package/node_modules/underscore/modules/_cb.js +10 -0
- package/node_modules/underscore/modules/_chainResult.js +6 -0
- package/node_modules/underscore/modules/_collectNonEnumProps.js +40 -0
- package/node_modules/underscore/modules/_createAssigner.js +18 -0
- package/node_modules/underscore/modules/_createEscaper.js +17 -0
- package/node_modules/underscore/modules/_createIndexFinder.js +28 -0
- package/node_modules/underscore/modules/_createPredicateIndexFinder.js +15 -0
- package/node_modules/underscore/modules/_createReduce.js +28 -0
- package/node_modules/underscore/modules/_createSizePropertyCheck.js +9 -0
- package/node_modules/underscore/modules/_deepGet.js +9 -0
- package/node_modules/underscore/modules/_escapeMap.js +9 -0
- package/node_modules/underscore/modules/_executeBound.js +13 -0
- package/node_modules/underscore/modules/_flatten.js +31 -0
- package/node_modules/underscore/modules/_getByteLength.js +4 -0
- package/node_modules/underscore/modules/_getLength.js +4 -0
- package/node_modules/underscore/modules/_group.js +15 -0
- package/node_modules/underscore/modules/_has.js +6 -0
- package/node_modules/underscore/modules/_hasObjectTag.js +3 -0
- package/node_modules/underscore/modules/_isArrayLike.js +8 -0
- package/node_modules/underscore/modules/_isBufferLike.js +6 -0
- package/node_modules/underscore/modules/_keyInObj.js +5 -0
- package/node_modules/underscore/modules/_methodFingerprint.js +37 -0
- package/node_modules/underscore/modules/_optimizeCb.js +21 -0
- package/node_modules/underscore/modules/_setup.js +43 -0
- package/node_modules/underscore/modules/_shallowProperty.js +6 -0
- package/node_modules/underscore/modules/_stringTagBug.js +10 -0
- package/node_modules/underscore/modules/_tagTester.js +9 -0
- package/node_modules/underscore/modules/_toBufferView.js +11 -0
- package/node_modules/underscore/modules/_toPath.js +8 -0
- package/node_modules/underscore/modules/_unescapeMap.js +5 -0
- package/node_modules/underscore/modules/after.js +8 -0
- package/node_modules/underscore/modules/allKeys.js +13 -0
- package/node_modules/underscore/modules/before.js +12 -0
- package/node_modules/underscore/modules/bind.js +13 -0
- package/node_modules/underscore/modules/bindAll.js +17 -0
- package/node_modules/underscore/modules/chain.js +8 -0
- package/node_modules/underscore/modules/chunk.js +13 -0
- package/node_modules/underscore/modules/clone.js +9 -0
- package/node_modules/underscore/modules/compact.js +6 -0
- package/node_modules/underscore/modules/compose.js +12 -0
- package/node_modules/underscore/modules/constant.js +6 -0
- package/node_modules/underscore/modules/contains.js +10 -0
- package/node_modules/underscore/modules/countBy.js +9 -0
- package/node_modules/underscore/modules/create.js +11 -0
- package/node_modules/underscore/modules/debounce.js +40 -0
- package/node_modules/underscore/modules/defaults.js +5 -0
- package/node_modules/underscore/modules/defer.js +7 -0
- package/node_modules/underscore/modules/delay.js +9 -0
- package/node_modules/underscore/modules/difference.js +13 -0
- package/node_modules/underscore/modules/each.js +23 -0
- package/node_modules/underscore/modules/escape.js +5 -0
- package/node_modules/underscore/modules/every.js +15 -0
- package/node_modules/underscore/modules/extend.js +5 -0
- package/node_modules/underscore/modules/extendOwn.js +7 -0
- package/node_modules/underscore/modules/filter.js +12 -0
- package/node_modules/underscore/modules/find.js +10 -0
- package/node_modules/underscore/modules/findIndex.js +4 -0
- package/node_modules/underscore/modules/findKey.js +12 -0
- package/node_modules/underscore/modules/findLastIndex.js +4 -0
- package/node_modules/underscore/modules/findWhere.js +8 -0
- package/node_modules/underscore/modules/first.js +9 -0
- package/node_modules/underscore/modules/flatten.js +7 -0
- package/node_modules/underscore/modules/functions.js +10 -0
- package/node_modules/underscore/modules/get.js +12 -0
- package/node_modules/underscore/modules/groupBy.js +8 -0
- package/node_modules/underscore/modules/has.js +16 -0
- package/node_modules/underscore/modules/identity.js +4 -0
- package/node_modules/underscore/modules/index-all.js +18 -0
- package/node_modules/underscore/modules/index-default.js +27 -0
- package/node_modules/underscore/modules/index.js +200 -0
- package/node_modules/underscore/modules/indexBy.js +7 -0
- package/node_modules/underscore/modules/indexOf.js +9 -0
- package/node_modules/underscore/modules/initial.js +8 -0
- package/node_modules/underscore/modules/intersection.js +19 -0
- package/node_modules/underscore/modules/invert.js +11 -0
- package/node_modules/underscore/modules/invoke.js +28 -0
- package/node_modules/underscore/modules/isArguments.js +16 -0
- package/node_modules/underscore/modules/isArray.js +6 -0
- package/node_modules/underscore/modules/isArrayBuffer.js +3 -0
- package/node_modules/underscore/modules/isBoolean.js +6 -0
- package/node_modules/underscore/modules/isDataView.js +14 -0
- package/node_modules/underscore/modules/isDate.js +3 -0
- package/node_modules/underscore/modules/isElement.js +4 -0
- package/node_modules/underscore/modules/isEmpty.js +18 -0
- package/node_modules/underscore/modules/isEqual.js +138 -0
- package/node_modules/underscore/modules/isError.js +3 -0
- package/node_modules/underscore/modules/isFinite.js +7 -0
- package/node_modules/underscore/modules/isFunction.js +15 -0
- package/node_modules/underscore/modules/isMap.js +5 -0
- package/node_modules/underscore/modules/isMatch.js +13 -0
- package/node_modules/underscore/modules/isNaN.js +7 -0
- package/node_modules/underscore/modules/isNull.js +4 -0
- package/node_modules/underscore/modules/isNumber.js +3 -0
- package/node_modules/underscore/modules/isObject.js +5 -0
- package/node_modules/underscore/modules/isRegExp.js +3 -0
- package/node_modules/underscore/modules/isSet.js +5 -0
- package/node_modules/underscore/modules/isString.js +3 -0
- package/node_modules/underscore/modules/isSymbol.js +3 -0
- package/node_modules/underscore/modules/isTypedArray.js +15 -0
- package/node_modules/underscore/modules/isUndefined.js +4 -0
- package/node_modules/underscore/modules/isWeakMap.js +5 -0
- package/node_modules/underscore/modules/isWeakSet.js +3 -0
- package/node_modules/underscore/modules/iteratee.js +10 -0
- package/node_modules/underscore/modules/keys.js +16 -0
- package/node_modules/underscore/modules/last.js +9 -0
- package/node_modules/underscore/modules/lastIndexOf.js +6 -0
- package/node_modules/underscore/modules/map.js +16 -0
- package/node_modules/underscore/modules/mapObject.js +16 -0
- package/node_modules/underscore/modules/matcher.js +11 -0
- package/node_modules/underscore/modules/max.js +29 -0
- package/node_modules/underscore/modules/memoize.js +13 -0
- package/node_modules/underscore/modules/min.js +29 -0
- package/node_modules/underscore/modules/mixin.js +18 -0
- package/node_modules/underscore/modules/negate.js +6 -0
- package/node_modules/underscore/modules/noop.js +2 -0
- package/node_modules/underscore/modules/now.js +4 -0
- package/node_modules/underscore/modules/object.js +16 -0
- package/node_modules/underscore/modules/omit.js +22 -0
- package/node_modules/underscore/modules/once.js +6 -0
- package/node_modules/underscore/modules/pairs.js +13 -0
- package/node_modules/underscore/modules/partial.js +24 -0
- package/node_modules/underscore/modules/partition.js +7 -0
- package/node_modules/underscore/modules/pick.js +26 -0
- package/node_modules/underscore/modules/pluck.js +7 -0
- package/node_modules/underscore/modules/property.js +11 -0
- package/node_modules/underscore/modules/propertyOf.js +10 -0
- package/node_modules/underscore/modules/random.js +8 -0
- package/node_modules/underscore/modules/range.js +21 -0
- package/node_modules/underscore/modules/reduce.js +5 -0
- package/node_modules/underscore/modules/reduceRight.js +4 -0
- package/node_modules/underscore/modules/reject.js +8 -0
- package/node_modules/underscore/modules/rest.js +8 -0
- package/node_modules/underscore/modules/restArguments.js +27 -0
- package/node_modules/underscore/modules/result.js +22 -0
- package/node_modules/underscore/modules/sample.js +27 -0
- package/node_modules/underscore/modules/shuffle.js +6 -0
- package/node_modules/underscore/modules/size.js +8 -0
- package/node_modules/underscore/modules/some.js +15 -0
- package/node_modules/underscore/modules/sortBy.js +24 -0
- package/node_modules/underscore/modules/sortedIndex.js +15 -0
- package/node_modules/underscore/modules/tap.js +7 -0
- package/node_modules/underscore/modules/template.js +93 -0
- package/node_modules/underscore/modules/templateSettings.js +9 -0
- package/node_modules/underscore/modules/throttle.js +47 -0
- package/node_modules/underscore/modules/times.js +9 -0
- package/node_modules/underscore/modules/toArray.js +20 -0
- package/node_modules/underscore/modules/toPath.js +9 -0
- package/node_modules/underscore/modules/underscore-array-methods.js +31 -0
- package/node_modules/underscore/modules/underscore.js +25 -0
- package/node_modules/underscore/modules/unescape.js +5 -0
- package/node_modules/underscore/modules/union.js +9 -0
- package/node_modules/underscore/modules/uniq.js +36 -0
- package/node_modules/underscore/modules/uniqueId.js +7 -0
- package/node_modules/underscore/modules/unzip.js +15 -0
- package/node_modules/underscore/modules/values.js +12 -0
- package/node_modules/underscore/modules/where.js +8 -0
- package/node_modules/underscore/modules/without.js +7 -0
- package/node_modules/underscore/modules/wrap.js +8 -0
- package/node_modules/underscore/modules/zip.js +6 -0
- package/node_modules/underscore/package.json +76 -0
- package/node_modules/underscore/underscore-esm-min.js +5 -0
- package/node_modules/underscore/underscore-esm-min.js.map +1 -0
- package/node_modules/underscore/underscore-esm.js +2026 -0
- package/node_modules/underscore/underscore-esm.js.map +1 -0
- package/node_modules/underscore/underscore-min.js +6 -0
- package/node_modules/underscore/underscore-min.js.map +1 -0
- package/node_modules/underscore/underscore.js +2034 -0
- package/node_modules/underscore/underscore.js.map +1 -0
- package/node_modules/word-wrap/LICENSE +21 -0
- package/node_modules/word-wrap/README.md +201 -0
- package/node_modules/word-wrap/index.d.ts +50 -0
- package/node_modules/word-wrap/index.js +61 -0
- package/node_modules/word-wrap/package.json +77 -0
- package/package.json +5 -1
|
@@ -0,0 +1,721 @@
|
|
|
1
|
+
/* parser generated by jison 0.4.13 */
|
|
2
|
+
/*
|
|
3
|
+
Returns a Parser object of the following structure:
|
|
4
|
+
|
|
5
|
+
Parser: {
|
|
6
|
+
yy: {}
|
|
7
|
+
}
|
|
8
|
+
|
|
9
|
+
Parser.prototype: {
|
|
10
|
+
yy: {},
|
|
11
|
+
trace: function(),
|
|
12
|
+
symbols_: {associative list: name ==> number},
|
|
13
|
+
terminals_: {associative list: number ==> name},
|
|
14
|
+
productions_: [...],
|
|
15
|
+
performAction: function anonymous(yytext, yyleng, yylineno, yy, yystate, $$, _$),
|
|
16
|
+
table: [...],
|
|
17
|
+
defaultActions: {...},
|
|
18
|
+
parseError: function(str, hash),
|
|
19
|
+
parse: function(input),
|
|
20
|
+
|
|
21
|
+
lexer: {
|
|
22
|
+
EOF: 1,
|
|
23
|
+
parseError: function(str, hash),
|
|
24
|
+
setInput: function(input),
|
|
25
|
+
input: function(),
|
|
26
|
+
unput: function(str),
|
|
27
|
+
more: function(),
|
|
28
|
+
less: function(n),
|
|
29
|
+
pastInput: function(),
|
|
30
|
+
upcomingInput: function(),
|
|
31
|
+
showPosition: function(),
|
|
32
|
+
test_match: function(regex_match_array, rule_index),
|
|
33
|
+
next: function(),
|
|
34
|
+
lex: function(),
|
|
35
|
+
begin: function(condition),
|
|
36
|
+
popState: function(),
|
|
37
|
+
_currentRules: function(),
|
|
38
|
+
topState: function(),
|
|
39
|
+
pushState: function(condition),
|
|
40
|
+
|
|
41
|
+
options: {
|
|
42
|
+
ranges: boolean (optional: true ==> token location info will include a .range[] member)
|
|
43
|
+
flex: boolean (optional: true ==> flex-like lexing behaviour where the rules are tested exhaustively to find the longest match)
|
|
44
|
+
backtrack_lexer: boolean (optional: true ==> lexer regexes are tested in order and for each matching regex the action code is invoked; the lexer terminates the scan when a token is returned by the action code)
|
|
45
|
+
},
|
|
46
|
+
|
|
47
|
+
performAction: function(yy, yy_, $avoiding_name_collisions, YY_START),
|
|
48
|
+
rules: [...],
|
|
49
|
+
conditions: {associative list: name ==> set},
|
|
50
|
+
}
|
|
51
|
+
}
|
|
52
|
+
|
|
53
|
+
|
|
54
|
+
token location info (@$, _$, etc.): {
|
|
55
|
+
first_line: n,
|
|
56
|
+
last_line: n,
|
|
57
|
+
first_column: n,
|
|
58
|
+
last_column: n,
|
|
59
|
+
range: [start_number, end_number] (where the numbers are indexes into the input string, regular zero-based)
|
|
60
|
+
}
|
|
61
|
+
|
|
62
|
+
|
|
63
|
+
the parseError function receives a 'hash' object with these members for lexer and parser errors: {
|
|
64
|
+
text: (matched text)
|
|
65
|
+
token: (the produced terminal token, if any)
|
|
66
|
+
line: (yylineno)
|
|
67
|
+
}
|
|
68
|
+
while parser (grammar) errors will also provide these members, i.e. parser errors deliver a superset of attributes: {
|
|
69
|
+
loc: (yylloc)
|
|
70
|
+
expected: (string describing the set of expected tokens)
|
|
71
|
+
recoverable: (boolean: TRUE when the parser has a error recovery rule available for this particular error)
|
|
72
|
+
}
|
|
73
|
+
*/
|
|
74
|
+
var parser = (function(){
|
|
75
|
+
var parser = {trace: function trace() { },
|
|
76
|
+
yy: {},
|
|
77
|
+
symbols_: {"error":2,"JSON_PATH":3,"DOLLAR":4,"PATH_COMPONENTS":5,"LEADING_CHILD_MEMBER_EXPRESSION":6,"PATH_COMPONENT":7,"MEMBER_COMPONENT":8,"SUBSCRIPT_COMPONENT":9,"CHILD_MEMBER_COMPONENT":10,"DESCENDANT_MEMBER_COMPONENT":11,"DOT":12,"MEMBER_EXPRESSION":13,"DOT_DOT":14,"STAR":15,"IDENTIFIER":16,"SCRIPT_EXPRESSION":17,"INTEGER":18,"END":19,"CHILD_SUBSCRIPT_COMPONENT":20,"DESCENDANT_SUBSCRIPT_COMPONENT":21,"[":22,"SUBSCRIPT":23,"]":24,"SUBSCRIPT_EXPRESSION":25,"SUBSCRIPT_EXPRESSION_LIST":26,"SUBSCRIPT_EXPRESSION_LISTABLE":27,",":28,"STRING_LITERAL":29,"ARRAY_SLICE":30,"FILTER_EXPRESSION":31,"QQ_STRING":32,"Q_STRING":33,"$accept":0,"$end":1},
|
|
78
|
+
terminals_: {2:"error",4:"DOLLAR",12:"DOT",14:"DOT_DOT",15:"STAR",16:"IDENTIFIER",17:"SCRIPT_EXPRESSION",18:"INTEGER",19:"END",22:"[",24:"]",28:",",30:"ARRAY_SLICE",31:"FILTER_EXPRESSION",32:"QQ_STRING",33:"Q_STRING"},
|
|
79
|
+
productions_: [0,[3,1],[3,2],[3,1],[3,2],[5,1],[5,2],[7,1],[7,1],[8,1],[8,1],[10,2],[6,1],[11,2],[13,1],[13,1],[13,1],[13,1],[13,1],[9,1],[9,1],[20,3],[21,4],[23,1],[23,1],[26,1],[26,3],[27,1],[27,1],[27,1],[25,1],[25,1],[25,1],[29,1],[29,1]],
|
|
80
|
+
performAction: function anonymous(yytext, yyleng, yylineno, yy, yystate /* action[1] */, $$ /* vstack */, _$ /* lstack */
|
|
81
|
+
/**/) {
|
|
82
|
+
/* this == yyval */
|
|
83
|
+
if (!yy.ast) {
|
|
84
|
+
yy.ast = _ast;
|
|
85
|
+
_ast.initialize();
|
|
86
|
+
}
|
|
87
|
+
|
|
88
|
+
var $0 = $$.length - 1;
|
|
89
|
+
switch (yystate) {
|
|
90
|
+
case 1:yy.ast.set({ expression: { type: "root", value: $$[$0] } }); yy.ast.unshift(); return yy.ast.yield()
|
|
91
|
+
break;
|
|
92
|
+
case 2:yy.ast.set({ expression: { type: "root", value: $$[$0-1] } }); yy.ast.unshift(); return yy.ast.yield()
|
|
93
|
+
break;
|
|
94
|
+
case 3:yy.ast.unshift(); return yy.ast.yield()
|
|
95
|
+
break;
|
|
96
|
+
case 4:yy.ast.set({ operation: "member", scope: "child", expression: { type: "identifier", value: $$[$0-1] }}); yy.ast.unshift(); return yy.ast.yield()
|
|
97
|
+
break;
|
|
98
|
+
case 5:
|
|
99
|
+
break;
|
|
100
|
+
case 6:
|
|
101
|
+
break;
|
|
102
|
+
case 7:yy.ast.set({ operation: "member" }); yy.ast.push()
|
|
103
|
+
break;
|
|
104
|
+
case 8:yy.ast.set({ operation: "subscript" }); yy.ast.push()
|
|
105
|
+
break;
|
|
106
|
+
case 9:yy.ast.set({ scope: "child" })
|
|
107
|
+
break;
|
|
108
|
+
case 10:yy.ast.set({ scope: "descendant" })
|
|
109
|
+
break;
|
|
110
|
+
case 11:
|
|
111
|
+
break;
|
|
112
|
+
case 12:yy.ast.set({ scope: "child", operation: "member" })
|
|
113
|
+
break;
|
|
114
|
+
case 13:
|
|
115
|
+
break;
|
|
116
|
+
case 14:yy.ast.set({ expression: { type: "wildcard", value: $$[$0] } })
|
|
117
|
+
break;
|
|
118
|
+
case 15:yy.ast.set({ expression: { type: "identifier", value: $$[$0] } })
|
|
119
|
+
break;
|
|
120
|
+
case 16:yy.ast.set({ expression: { type: "script_expression", value: $$[$0] } })
|
|
121
|
+
break;
|
|
122
|
+
case 17:yy.ast.set({ expression: { type: "numeric_literal", value: parseInt($$[$0]) } })
|
|
123
|
+
break;
|
|
124
|
+
case 18:
|
|
125
|
+
break;
|
|
126
|
+
case 19:yy.ast.set({ scope: "child" })
|
|
127
|
+
break;
|
|
128
|
+
case 20:yy.ast.set({ scope: "descendant" })
|
|
129
|
+
break;
|
|
130
|
+
case 21:
|
|
131
|
+
break;
|
|
132
|
+
case 22:
|
|
133
|
+
break;
|
|
134
|
+
case 23:
|
|
135
|
+
break;
|
|
136
|
+
case 24:$$[$0].length > 1? yy.ast.set({ expression: { type: "union", value: $$[$0] } }) : this.$ = $$[$0]
|
|
137
|
+
break;
|
|
138
|
+
case 25:this.$ = [$$[$0]]
|
|
139
|
+
break;
|
|
140
|
+
case 26:this.$ = $$[$0-2].concat($$[$0])
|
|
141
|
+
break;
|
|
142
|
+
case 27:this.$ = { expression: { type: "numeric_literal", value: parseInt($$[$0]) } }; yy.ast.set(this.$)
|
|
143
|
+
break;
|
|
144
|
+
case 28:this.$ = { expression: { type: "string_literal", value: $$[$0] } }; yy.ast.set(this.$)
|
|
145
|
+
break;
|
|
146
|
+
case 29:this.$ = { expression: { type: "slice", value: $$[$0] } }; yy.ast.set(this.$)
|
|
147
|
+
break;
|
|
148
|
+
case 30:this.$ = { expression: { type: "wildcard", value: $$[$0] } }; yy.ast.set(this.$)
|
|
149
|
+
break;
|
|
150
|
+
case 31:this.$ = { expression: { type: "script_expression", value: $$[$0] } }; yy.ast.set(this.$)
|
|
151
|
+
break;
|
|
152
|
+
case 32:this.$ = { expression: { type: "filter_expression", value: $$[$0] } }; yy.ast.set(this.$)
|
|
153
|
+
break;
|
|
154
|
+
case 33:this.$ = $$[$0]
|
|
155
|
+
break;
|
|
156
|
+
case 34:this.$ = $$[$0]
|
|
157
|
+
break;
|
|
158
|
+
}
|
|
159
|
+
},
|
|
160
|
+
table: [{3:1,4:[1,2],6:3,13:4,15:[1,5],16:[1,6],17:[1,7],18:[1,8],19:[1,9]},{1:[3]},{1:[2,1],5:10,7:11,8:12,9:13,10:14,11:15,12:[1,18],14:[1,19],20:16,21:17,22:[1,20]},{1:[2,3],5:21,7:11,8:12,9:13,10:14,11:15,12:[1,18],14:[1,19],20:16,21:17,22:[1,20]},{1:[2,12],12:[2,12],14:[2,12],22:[2,12]},{1:[2,14],12:[2,14],14:[2,14],22:[2,14]},{1:[2,15],12:[2,15],14:[2,15],22:[2,15]},{1:[2,16],12:[2,16],14:[2,16],22:[2,16]},{1:[2,17],12:[2,17],14:[2,17],22:[2,17]},{1:[2,18],12:[2,18],14:[2,18],22:[2,18]},{1:[2,2],7:22,8:12,9:13,10:14,11:15,12:[1,18],14:[1,19],20:16,21:17,22:[1,20]},{1:[2,5],12:[2,5],14:[2,5],22:[2,5]},{1:[2,7],12:[2,7],14:[2,7],22:[2,7]},{1:[2,8],12:[2,8],14:[2,8],22:[2,8]},{1:[2,9],12:[2,9],14:[2,9],22:[2,9]},{1:[2,10],12:[2,10],14:[2,10],22:[2,10]},{1:[2,19],12:[2,19],14:[2,19],22:[2,19]},{1:[2,20],12:[2,20],14:[2,20],22:[2,20]},{13:23,15:[1,5],16:[1,6],17:[1,7],18:[1,8],19:[1,9]},{13:24,15:[1,5],16:[1,6],17:[1,7],18:[1,8],19:[1,9],22:[1,25]},{15:[1,29],17:[1,30],18:[1,33],23:26,25:27,26:28,27:32,29:34,30:[1,35],31:[1,31],32:[1,36],33:[1,37]},{1:[2,4],7:22,8:12,9:13,10:14,11:15,12:[1,18],14:[1,19],20:16,21:17,22:[1,20]},{1:[2,6],12:[2,6],14:[2,6],22:[2,6]},{1:[2,11],12:[2,11],14:[2,11],22:[2,11]},{1:[2,13],12:[2,13],14:[2,13],22:[2,13]},{15:[1,29],17:[1,30],18:[1,33],23:38,25:27,26:28,27:32,29:34,30:[1,35],31:[1,31],32:[1,36],33:[1,37]},{24:[1,39]},{24:[2,23]},{24:[2,24],28:[1,40]},{24:[2,30]},{24:[2,31]},{24:[2,32]},{24:[2,25],28:[2,25]},{24:[2,27],28:[2,27]},{24:[2,28],28:[2,28]},{24:[2,29],28:[2,29]},{24:[2,33],28:[2,33]},{24:[2,34],28:[2,34]},{24:[1,41]},{1:[2,21],12:[2,21],14:[2,21],22:[2,21]},{18:[1,33],27:42,29:34,30:[1,35],32:[1,36],33:[1,37]},{1:[2,22],12:[2,22],14:[2,22],22:[2,22]},{24:[2,26],28:[2,26]}],
|
|
161
|
+
defaultActions: {27:[2,23],29:[2,30],30:[2,31],31:[2,32]},
|
|
162
|
+
parseError: function parseError(str, hash) {
|
|
163
|
+
if (hash.recoverable) {
|
|
164
|
+
this.trace(str);
|
|
165
|
+
} else {
|
|
166
|
+
throw new Error(str);
|
|
167
|
+
}
|
|
168
|
+
},
|
|
169
|
+
parse: function parse(input) {
|
|
170
|
+
var self = this, stack = [0], vstack = [null], lstack = [], table = this.table, yytext = '', yylineno = 0, yyleng = 0, recovering = 0, TERROR = 2, EOF = 1;
|
|
171
|
+
var args = lstack.slice.call(arguments, 1);
|
|
172
|
+
this.lexer.setInput(input);
|
|
173
|
+
this.lexer.yy = this.yy;
|
|
174
|
+
this.yy.lexer = this.lexer;
|
|
175
|
+
this.yy.parser = this;
|
|
176
|
+
if (typeof this.lexer.yylloc == 'undefined') {
|
|
177
|
+
this.lexer.yylloc = {};
|
|
178
|
+
}
|
|
179
|
+
var yyloc = this.lexer.yylloc;
|
|
180
|
+
lstack.push(yyloc);
|
|
181
|
+
var ranges = this.lexer.options && this.lexer.options.ranges;
|
|
182
|
+
if (typeof this.yy.parseError === 'function') {
|
|
183
|
+
this.parseError = this.yy.parseError;
|
|
184
|
+
} else {
|
|
185
|
+
this.parseError = Object.getPrototypeOf(this).parseError;
|
|
186
|
+
}
|
|
187
|
+
function popStack(n) {
|
|
188
|
+
stack.length = stack.length - 2 * n;
|
|
189
|
+
vstack.length = vstack.length - n;
|
|
190
|
+
lstack.length = lstack.length - n;
|
|
191
|
+
}
|
|
192
|
+
function lex() {
|
|
193
|
+
var token;
|
|
194
|
+
token = self.lexer.lex() || EOF;
|
|
195
|
+
if (typeof token !== 'number') {
|
|
196
|
+
token = self.symbols_[token] || token;
|
|
197
|
+
}
|
|
198
|
+
return token;
|
|
199
|
+
}
|
|
200
|
+
var symbol, preErrorSymbol, state, action, a, r, yyval = {}, p, len, newState, expected;
|
|
201
|
+
while (true) {
|
|
202
|
+
state = stack[stack.length - 1];
|
|
203
|
+
if (this.defaultActions[state]) {
|
|
204
|
+
action = this.defaultActions[state];
|
|
205
|
+
} else {
|
|
206
|
+
if (symbol === null || typeof symbol == 'undefined') {
|
|
207
|
+
symbol = lex();
|
|
208
|
+
}
|
|
209
|
+
action = table[state] && table[state][symbol];
|
|
210
|
+
}
|
|
211
|
+
if (typeof action === 'undefined' || !action.length || !action[0]) {
|
|
212
|
+
var errStr = '';
|
|
213
|
+
expected = [];
|
|
214
|
+
for (p in table[state]) {
|
|
215
|
+
if (this.terminals_[p] && p > TERROR) {
|
|
216
|
+
expected.push('\'' + this.terminals_[p] + '\'');
|
|
217
|
+
}
|
|
218
|
+
}
|
|
219
|
+
if (this.lexer.showPosition) {
|
|
220
|
+
errStr = 'Parse error on line ' + (yylineno + 1) + ':\n' + this.lexer.showPosition() + '\nExpecting ' + expected.join(', ') + ', got \'' + (this.terminals_[symbol] || symbol) + '\'';
|
|
221
|
+
} else {
|
|
222
|
+
errStr = 'Parse error on line ' + (yylineno + 1) + ': Unexpected ' + (symbol == EOF ? 'end of input' : '\'' + (this.terminals_[symbol] || symbol) + '\'');
|
|
223
|
+
}
|
|
224
|
+
this.parseError(errStr, {
|
|
225
|
+
text: this.lexer.match,
|
|
226
|
+
token: this.terminals_[symbol] || symbol,
|
|
227
|
+
line: this.lexer.yylineno,
|
|
228
|
+
loc: yyloc,
|
|
229
|
+
expected: expected
|
|
230
|
+
});
|
|
231
|
+
}
|
|
232
|
+
if (action[0] instanceof Array && action.length > 1) {
|
|
233
|
+
throw new Error('Parse Error: multiple actions possible at state: ' + state + ', token: ' + symbol);
|
|
234
|
+
}
|
|
235
|
+
switch (action[0]) {
|
|
236
|
+
case 1:
|
|
237
|
+
stack.push(symbol);
|
|
238
|
+
vstack.push(this.lexer.yytext);
|
|
239
|
+
lstack.push(this.lexer.yylloc);
|
|
240
|
+
stack.push(action[1]);
|
|
241
|
+
symbol = null;
|
|
242
|
+
if (!preErrorSymbol) {
|
|
243
|
+
yyleng = this.lexer.yyleng;
|
|
244
|
+
yytext = this.lexer.yytext;
|
|
245
|
+
yylineno = this.lexer.yylineno;
|
|
246
|
+
yyloc = this.lexer.yylloc;
|
|
247
|
+
if (recovering > 0) {
|
|
248
|
+
recovering--;
|
|
249
|
+
}
|
|
250
|
+
} else {
|
|
251
|
+
symbol = preErrorSymbol;
|
|
252
|
+
preErrorSymbol = null;
|
|
253
|
+
}
|
|
254
|
+
break;
|
|
255
|
+
case 2:
|
|
256
|
+
len = this.productions_[action[1]][1];
|
|
257
|
+
yyval.$ = vstack[vstack.length - len];
|
|
258
|
+
yyval._$ = {
|
|
259
|
+
first_line: lstack[lstack.length - (len || 1)].first_line,
|
|
260
|
+
last_line: lstack[lstack.length - 1].last_line,
|
|
261
|
+
first_column: lstack[lstack.length - (len || 1)].first_column,
|
|
262
|
+
last_column: lstack[lstack.length - 1].last_column
|
|
263
|
+
};
|
|
264
|
+
if (ranges) {
|
|
265
|
+
yyval._$.range = [
|
|
266
|
+
lstack[lstack.length - (len || 1)].range[0],
|
|
267
|
+
lstack[lstack.length - 1].range[1]
|
|
268
|
+
];
|
|
269
|
+
}
|
|
270
|
+
r = this.performAction.apply(yyval, [
|
|
271
|
+
yytext,
|
|
272
|
+
yyleng,
|
|
273
|
+
yylineno,
|
|
274
|
+
this.yy,
|
|
275
|
+
action[1],
|
|
276
|
+
vstack,
|
|
277
|
+
lstack
|
|
278
|
+
].concat(args));
|
|
279
|
+
if (typeof r !== 'undefined') {
|
|
280
|
+
return r;
|
|
281
|
+
}
|
|
282
|
+
if (len) {
|
|
283
|
+
stack = stack.slice(0, -1 * len * 2);
|
|
284
|
+
vstack = vstack.slice(0, -1 * len);
|
|
285
|
+
lstack = lstack.slice(0, -1 * len);
|
|
286
|
+
}
|
|
287
|
+
stack.push(this.productions_[action[1]][0]);
|
|
288
|
+
vstack.push(yyval.$);
|
|
289
|
+
lstack.push(yyval._$);
|
|
290
|
+
newState = table[stack[stack.length - 2]][stack[stack.length - 1]];
|
|
291
|
+
stack.push(newState);
|
|
292
|
+
break;
|
|
293
|
+
case 3:
|
|
294
|
+
return true;
|
|
295
|
+
}
|
|
296
|
+
}
|
|
297
|
+
return true;
|
|
298
|
+
}};
|
|
299
|
+
var _ast = {
|
|
300
|
+
|
|
301
|
+
initialize: function() {
|
|
302
|
+
this._nodes = [];
|
|
303
|
+
this._node = {};
|
|
304
|
+
this._stash = [];
|
|
305
|
+
},
|
|
306
|
+
|
|
307
|
+
set: function(props) {
|
|
308
|
+
for (var k in props) this._node[k] = props[k];
|
|
309
|
+
return this._node;
|
|
310
|
+
},
|
|
311
|
+
|
|
312
|
+
node: function(obj) {
|
|
313
|
+
if (arguments.length) this._node = obj;
|
|
314
|
+
return this._node;
|
|
315
|
+
},
|
|
316
|
+
|
|
317
|
+
push: function() {
|
|
318
|
+
this._nodes.push(this._node);
|
|
319
|
+
this._node = {};
|
|
320
|
+
},
|
|
321
|
+
|
|
322
|
+
unshift: function() {
|
|
323
|
+
this._nodes.unshift(this._node);
|
|
324
|
+
this._node = {};
|
|
325
|
+
},
|
|
326
|
+
|
|
327
|
+
yield: function() {
|
|
328
|
+
var _nodes = this._nodes;
|
|
329
|
+
this.initialize();
|
|
330
|
+
return _nodes;
|
|
331
|
+
}
|
|
332
|
+
};
|
|
333
|
+
/* generated by jison-lex 0.2.1 */
|
|
334
|
+
var lexer = (function(){
|
|
335
|
+
var lexer = {
|
|
336
|
+
|
|
337
|
+
EOF:1,
|
|
338
|
+
|
|
339
|
+
parseError:function parseError(str, hash) {
|
|
340
|
+
if (this.yy.parser) {
|
|
341
|
+
this.yy.parser.parseError(str, hash);
|
|
342
|
+
} else {
|
|
343
|
+
throw new Error(str);
|
|
344
|
+
}
|
|
345
|
+
},
|
|
346
|
+
|
|
347
|
+
// resets the lexer, sets new input
|
|
348
|
+
setInput:function (input) {
|
|
349
|
+
this._input = input;
|
|
350
|
+
this._more = this._backtrack = this.done = false;
|
|
351
|
+
this.yylineno = this.yyleng = 0;
|
|
352
|
+
this.yytext = this.matched = this.match = '';
|
|
353
|
+
this.conditionStack = ['INITIAL'];
|
|
354
|
+
this.yylloc = {
|
|
355
|
+
first_line: 1,
|
|
356
|
+
first_column: 0,
|
|
357
|
+
last_line: 1,
|
|
358
|
+
last_column: 0
|
|
359
|
+
};
|
|
360
|
+
if (this.options.ranges) {
|
|
361
|
+
this.yylloc.range = [0,0];
|
|
362
|
+
}
|
|
363
|
+
this.offset = 0;
|
|
364
|
+
return this;
|
|
365
|
+
},
|
|
366
|
+
|
|
367
|
+
// consumes and returns one char from the input
|
|
368
|
+
input:function () {
|
|
369
|
+
var ch = this._input[0];
|
|
370
|
+
this.yytext += ch;
|
|
371
|
+
this.yyleng++;
|
|
372
|
+
this.offset++;
|
|
373
|
+
this.match += ch;
|
|
374
|
+
this.matched += ch;
|
|
375
|
+
var lines = ch.match(/(?:\r\n?|\n).*/g);
|
|
376
|
+
if (lines) {
|
|
377
|
+
this.yylineno++;
|
|
378
|
+
this.yylloc.last_line++;
|
|
379
|
+
} else {
|
|
380
|
+
this.yylloc.last_column++;
|
|
381
|
+
}
|
|
382
|
+
if (this.options.ranges) {
|
|
383
|
+
this.yylloc.range[1]++;
|
|
384
|
+
}
|
|
385
|
+
|
|
386
|
+
this._input = this._input.slice(1);
|
|
387
|
+
return ch;
|
|
388
|
+
},
|
|
389
|
+
|
|
390
|
+
// unshifts one char (or a string) into the input
|
|
391
|
+
unput:function (ch) {
|
|
392
|
+
var len = ch.length;
|
|
393
|
+
var lines = ch.split(/(?:\r\n?|\n)/g);
|
|
394
|
+
|
|
395
|
+
this._input = ch + this._input;
|
|
396
|
+
this.yytext = this.yytext.substr(0, this.yytext.length - len - 1);
|
|
397
|
+
//this.yyleng -= len;
|
|
398
|
+
this.offset -= len;
|
|
399
|
+
var oldLines = this.match.split(/(?:\r\n?|\n)/g);
|
|
400
|
+
this.match = this.match.substr(0, this.match.length - 1);
|
|
401
|
+
this.matched = this.matched.substr(0, this.matched.length - 1);
|
|
402
|
+
|
|
403
|
+
if (lines.length - 1) {
|
|
404
|
+
this.yylineno -= lines.length - 1;
|
|
405
|
+
}
|
|
406
|
+
var r = this.yylloc.range;
|
|
407
|
+
|
|
408
|
+
this.yylloc = {
|
|
409
|
+
first_line: this.yylloc.first_line,
|
|
410
|
+
last_line: this.yylineno + 1,
|
|
411
|
+
first_column: this.yylloc.first_column,
|
|
412
|
+
last_column: lines ?
|
|
413
|
+
(lines.length === oldLines.length ? this.yylloc.first_column : 0)
|
|
414
|
+
+ oldLines[oldLines.length - lines.length].length - lines[0].length :
|
|
415
|
+
this.yylloc.first_column - len
|
|
416
|
+
};
|
|
417
|
+
|
|
418
|
+
if (this.options.ranges) {
|
|
419
|
+
this.yylloc.range = [r[0], r[0] + this.yyleng - len];
|
|
420
|
+
}
|
|
421
|
+
this.yyleng = this.yytext.length;
|
|
422
|
+
return this;
|
|
423
|
+
},
|
|
424
|
+
|
|
425
|
+
// When called from action, caches matched text and appends it on next action
|
|
426
|
+
more:function () {
|
|
427
|
+
this._more = true;
|
|
428
|
+
return this;
|
|
429
|
+
},
|
|
430
|
+
|
|
431
|
+
// When called from action, signals the lexer that this rule fails to match the input, so the next matching rule (regex) should be tested instead.
|
|
432
|
+
reject:function () {
|
|
433
|
+
if (this.options.backtrack_lexer) {
|
|
434
|
+
this._backtrack = true;
|
|
435
|
+
} else {
|
|
436
|
+
return this.parseError('Lexical error on line ' + (this.yylineno + 1) + '. You can only invoke reject() in the lexer when the lexer is of the backtracking persuasion (options.backtrack_lexer = true).\n' + this.showPosition(), {
|
|
437
|
+
text: "",
|
|
438
|
+
token: null,
|
|
439
|
+
line: this.yylineno
|
|
440
|
+
});
|
|
441
|
+
|
|
442
|
+
}
|
|
443
|
+
return this;
|
|
444
|
+
},
|
|
445
|
+
|
|
446
|
+
// retain first n characters of the match
|
|
447
|
+
less:function (n) {
|
|
448
|
+
this.unput(this.match.slice(n));
|
|
449
|
+
},
|
|
450
|
+
|
|
451
|
+
// displays already matched input, i.e. for error messages
|
|
452
|
+
pastInput:function () {
|
|
453
|
+
var past = this.matched.substr(0, this.matched.length - this.match.length);
|
|
454
|
+
return (past.length > 20 ? '...':'') + past.substr(-20).replace(/\n/g, "");
|
|
455
|
+
},
|
|
456
|
+
|
|
457
|
+
// displays upcoming input, i.e. for error messages
|
|
458
|
+
upcomingInput:function () {
|
|
459
|
+
var next = this.match;
|
|
460
|
+
if (next.length < 20) {
|
|
461
|
+
next += this._input.substr(0, 20-next.length);
|
|
462
|
+
}
|
|
463
|
+
return (next.substr(0,20) + (next.length > 20 ? '...' : '')).replace(/\n/g, "");
|
|
464
|
+
},
|
|
465
|
+
|
|
466
|
+
// displays the character position where the lexing error occurred, i.e. for error messages
|
|
467
|
+
showPosition:function () {
|
|
468
|
+
var pre = this.pastInput();
|
|
469
|
+
var c = new Array(pre.length + 1).join("-");
|
|
470
|
+
return pre + this.upcomingInput() + "\n" + c + "^";
|
|
471
|
+
},
|
|
472
|
+
|
|
473
|
+
// test the lexed token: return FALSE when not a match, otherwise return token
|
|
474
|
+
test_match:function (match, indexed_rule) {
|
|
475
|
+
var token,
|
|
476
|
+
lines,
|
|
477
|
+
backup;
|
|
478
|
+
|
|
479
|
+
if (this.options.backtrack_lexer) {
|
|
480
|
+
// save context
|
|
481
|
+
backup = {
|
|
482
|
+
yylineno: this.yylineno,
|
|
483
|
+
yylloc: {
|
|
484
|
+
first_line: this.yylloc.first_line,
|
|
485
|
+
last_line: this.last_line,
|
|
486
|
+
first_column: this.yylloc.first_column,
|
|
487
|
+
last_column: this.yylloc.last_column
|
|
488
|
+
},
|
|
489
|
+
yytext: this.yytext,
|
|
490
|
+
match: this.match,
|
|
491
|
+
matches: this.matches,
|
|
492
|
+
matched: this.matched,
|
|
493
|
+
yyleng: this.yyleng,
|
|
494
|
+
offset: this.offset,
|
|
495
|
+
_more: this._more,
|
|
496
|
+
_input: this._input,
|
|
497
|
+
yy: this.yy,
|
|
498
|
+
conditionStack: this.conditionStack.slice(0),
|
|
499
|
+
done: this.done
|
|
500
|
+
};
|
|
501
|
+
if (this.options.ranges) {
|
|
502
|
+
backup.yylloc.range = this.yylloc.range.slice(0);
|
|
503
|
+
}
|
|
504
|
+
}
|
|
505
|
+
|
|
506
|
+
lines = match[0].match(/(?:\r\n?|\n).*/g);
|
|
507
|
+
if (lines) {
|
|
508
|
+
this.yylineno += lines.length;
|
|
509
|
+
}
|
|
510
|
+
this.yylloc = {
|
|
511
|
+
first_line: this.yylloc.last_line,
|
|
512
|
+
last_line: this.yylineno + 1,
|
|
513
|
+
first_column: this.yylloc.last_column,
|
|
514
|
+
last_column: lines ?
|
|
515
|
+
lines[lines.length - 1].length - lines[lines.length - 1].match(/\r?\n?/)[0].length :
|
|
516
|
+
this.yylloc.last_column + match[0].length
|
|
517
|
+
};
|
|
518
|
+
this.yytext += match[0];
|
|
519
|
+
this.match += match[0];
|
|
520
|
+
this.matches = match;
|
|
521
|
+
this.yyleng = this.yytext.length;
|
|
522
|
+
if (this.options.ranges) {
|
|
523
|
+
this.yylloc.range = [this.offset, this.offset += this.yyleng];
|
|
524
|
+
}
|
|
525
|
+
this._more = false;
|
|
526
|
+
this._backtrack = false;
|
|
527
|
+
this._input = this._input.slice(match[0].length);
|
|
528
|
+
this.matched += match[0];
|
|
529
|
+
token = this.performAction.call(this, this.yy, this, indexed_rule, this.conditionStack[this.conditionStack.length - 1]);
|
|
530
|
+
if (this.done && this._input) {
|
|
531
|
+
this.done = false;
|
|
532
|
+
}
|
|
533
|
+
if (token) {
|
|
534
|
+
return token;
|
|
535
|
+
} else if (this._backtrack) {
|
|
536
|
+
// recover context
|
|
537
|
+
for (var k in backup) {
|
|
538
|
+
this[k] = backup[k];
|
|
539
|
+
}
|
|
540
|
+
return false; // rule action called reject() implying the next rule should be tested instead.
|
|
541
|
+
}
|
|
542
|
+
return false;
|
|
543
|
+
},
|
|
544
|
+
|
|
545
|
+
// return next match in input
|
|
546
|
+
next:function () {
|
|
547
|
+
if (this.done) {
|
|
548
|
+
return this.EOF;
|
|
549
|
+
}
|
|
550
|
+
if (!this._input) {
|
|
551
|
+
this.done = true;
|
|
552
|
+
}
|
|
553
|
+
|
|
554
|
+
var token,
|
|
555
|
+
match,
|
|
556
|
+
tempMatch,
|
|
557
|
+
index;
|
|
558
|
+
if (!this._more) {
|
|
559
|
+
this.yytext = '';
|
|
560
|
+
this.match = '';
|
|
561
|
+
}
|
|
562
|
+
var rules = this._currentRules();
|
|
563
|
+
for (var i = 0; i < rules.length; i++) {
|
|
564
|
+
tempMatch = this._input.match(this.rules[rules[i]]);
|
|
565
|
+
if (tempMatch && (!match || tempMatch[0].length > match[0].length)) {
|
|
566
|
+
match = tempMatch;
|
|
567
|
+
index = i;
|
|
568
|
+
if (this.options.backtrack_lexer) {
|
|
569
|
+
token = this.test_match(tempMatch, rules[i]);
|
|
570
|
+
if (token !== false) {
|
|
571
|
+
return token;
|
|
572
|
+
} else if (this._backtrack) {
|
|
573
|
+
match = false;
|
|
574
|
+
continue; // rule action called reject() implying a rule MISmatch.
|
|
575
|
+
} else {
|
|
576
|
+
// else: this is a lexer rule which consumes input without producing a token (e.g. whitespace)
|
|
577
|
+
return false;
|
|
578
|
+
}
|
|
579
|
+
} else if (!this.options.flex) {
|
|
580
|
+
break;
|
|
581
|
+
}
|
|
582
|
+
}
|
|
583
|
+
}
|
|
584
|
+
if (match) {
|
|
585
|
+
token = this.test_match(match, rules[index]);
|
|
586
|
+
if (token !== false) {
|
|
587
|
+
return token;
|
|
588
|
+
}
|
|
589
|
+
// else: this is a lexer rule which consumes input without producing a token (e.g. whitespace)
|
|
590
|
+
return false;
|
|
591
|
+
}
|
|
592
|
+
if (this._input === "") {
|
|
593
|
+
return this.EOF;
|
|
594
|
+
} else {
|
|
595
|
+
return this.parseError('Lexical error on line ' + (this.yylineno + 1) + '. Unrecognized text.\n' + this.showPosition(), {
|
|
596
|
+
text: "",
|
|
597
|
+
token: null,
|
|
598
|
+
line: this.yylineno
|
|
599
|
+
});
|
|
600
|
+
}
|
|
601
|
+
},
|
|
602
|
+
|
|
603
|
+
// return next match that has a token
|
|
604
|
+
lex:function lex() {
|
|
605
|
+
var r = this.next();
|
|
606
|
+
if (r) {
|
|
607
|
+
return r;
|
|
608
|
+
} else {
|
|
609
|
+
return this.lex();
|
|
610
|
+
}
|
|
611
|
+
},
|
|
612
|
+
|
|
613
|
+
// activates a new lexer condition state (pushes the new lexer condition state onto the condition stack)
|
|
614
|
+
begin:function begin(condition) {
|
|
615
|
+
this.conditionStack.push(condition);
|
|
616
|
+
},
|
|
617
|
+
|
|
618
|
+
// pop the previously active lexer condition state off the condition stack
|
|
619
|
+
popState:function popState() {
|
|
620
|
+
var n = this.conditionStack.length - 1;
|
|
621
|
+
if (n > 0) {
|
|
622
|
+
return this.conditionStack.pop();
|
|
623
|
+
} else {
|
|
624
|
+
return this.conditionStack[0];
|
|
625
|
+
}
|
|
626
|
+
},
|
|
627
|
+
|
|
628
|
+
// produce the lexer rule set which is active for the currently active lexer condition state
|
|
629
|
+
_currentRules:function _currentRules() {
|
|
630
|
+
if (this.conditionStack.length && this.conditionStack[this.conditionStack.length - 1]) {
|
|
631
|
+
return this.conditions[this.conditionStack[this.conditionStack.length - 1]].rules;
|
|
632
|
+
} else {
|
|
633
|
+
return this.conditions["INITIAL"].rules;
|
|
634
|
+
}
|
|
635
|
+
},
|
|
636
|
+
|
|
637
|
+
// return the currently active lexer condition state; when an index argument is provided it produces the N-th previous condition state, if available
|
|
638
|
+
topState:function topState(n) {
|
|
639
|
+
n = this.conditionStack.length - 1 - Math.abs(n || 0);
|
|
640
|
+
if (n >= 0) {
|
|
641
|
+
return this.conditionStack[n];
|
|
642
|
+
} else {
|
|
643
|
+
return "INITIAL";
|
|
644
|
+
}
|
|
645
|
+
},
|
|
646
|
+
|
|
647
|
+
// alias for begin(condition)
|
|
648
|
+
pushState:function pushState(condition) {
|
|
649
|
+
this.begin(condition);
|
|
650
|
+
},
|
|
651
|
+
|
|
652
|
+
// return the number of states currently on the stack
|
|
653
|
+
stateStackSize:function stateStackSize() {
|
|
654
|
+
return this.conditionStack.length;
|
|
655
|
+
},
|
|
656
|
+
options: {},
|
|
657
|
+
performAction: function anonymous(yy,yy_,$avoiding_name_collisions,YY_START
|
|
658
|
+
/**/) {
|
|
659
|
+
|
|
660
|
+
var YYSTATE=YY_START;
|
|
661
|
+
switch($avoiding_name_collisions) {
|
|
662
|
+
case 0:return 4
|
|
663
|
+
break;
|
|
664
|
+
case 1:return 14
|
|
665
|
+
break;
|
|
666
|
+
case 2:return 12
|
|
667
|
+
break;
|
|
668
|
+
case 3:return 15
|
|
669
|
+
break;
|
|
670
|
+
case 4:return 16
|
|
671
|
+
break;
|
|
672
|
+
case 5:return 22
|
|
673
|
+
break;
|
|
674
|
+
case 6:return 24
|
|
675
|
+
break;
|
|
676
|
+
case 7:return 28
|
|
677
|
+
break;
|
|
678
|
+
case 8:return 30
|
|
679
|
+
break;
|
|
680
|
+
case 9:return 18
|
|
681
|
+
break;
|
|
682
|
+
case 10:yy_.yytext = yy_.yytext.substr(1,yy_.yyleng-2); return 32;
|
|
683
|
+
break;
|
|
684
|
+
case 11:yy_.yytext = yy_.yytext.substr(1,yy_.yyleng-2); return 33;
|
|
685
|
+
break;
|
|
686
|
+
case 12:return 17
|
|
687
|
+
break;
|
|
688
|
+
case 13:return 31
|
|
689
|
+
break;
|
|
690
|
+
}
|
|
691
|
+
},
|
|
692
|
+
rules: [/^(?:\$)/,/^(?:\.\.)/,/^(?:\.)/,/^(?:\*)/,/^(?:[a-zA-Z_]+[a-zA-Z0-9_]*)/,/^(?:\[)/,/^(?:\])/,/^(?:,)/,/^(?:((-?(?:0|[1-9][0-9]*)))?\:((-?(?:0|[1-9][0-9]*)))?(\:((-?(?:0|[1-9][0-9]*)))?)?)/,/^(?:(-?(?:0|[1-9][0-9]*)))/,/^(?:"(?:\\["bfnrt/\\]|\\u[a-fA-F0-9]{4}|[^"\\])*")/,/^(?:'(?:\\['bfnrt/\\]|\\u[a-fA-F0-9]{4}|[^'\\])*')/,/^(?:\(.+?\)(?=\]))/,/^(?:\?\(.+?\)(?=\]))/],
|
|
693
|
+
conditions: {"INITIAL":{"rules":[0,1,2,3,4,5,6,7,8,9,10,11,12,13],"inclusive":true}}
|
|
694
|
+
};
|
|
695
|
+
return lexer;
|
|
696
|
+
})();
|
|
697
|
+
parser.lexer = lexer;
|
|
698
|
+
function Parser () {
|
|
699
|
+
this.yy = {};
|
|
700
|
+
}
|
|
701
|
+
Parser.prototype = parser;parser.Parser = Parser;
|
|
702
|
+
return new Parser;
|
|
703
|
+
})();
|
|
704
|
+
|
|
705
|
+
|
|
706
|
+
if (typeof require !== 'undefined' && typeof exports !== 'undefined') {
|
|
707
|
+
exports.parser = parser;
|
|
708
|
+
exports.Parser = parser.Parser;
|
|
709
|
+
exports.parse = function () { return parser.parse.apply(parser, arguments); };
|
|
710
|
+
exports.main = function commonjsMain(args) {
|
|
711
|
+
if (!args[1]) {
|
|
712
|
+
console.log('Usage: '+args[0]+' FILE');
|
|
713
|
+
process.exit(1);
|
|
714
|
+
}
|
|
715
|
+
var source = require('fs').readFileSync(require('path').normalize(args[1]), "utf8");
|
|
716
|
+
return exports.parser.parse(source);
|
|
717
|
+
};
|
|
718
|
+
if (typeof module !== 'undefined' && require.main === module) {
|
|
719
|
+
exports.main(process.argv.slice(1));
|
|
720
|
+
}
|
|
721
|
+
}
|