@farukada/aws-langgraph-dynamodb-ts 0.0.5 → 0.0.6
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/index.d.ts +0 -1
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +0 -1
- package/dist/index.js.map +1 -1
- package/dist/store/actions/put-operation.d.ts.map +1 -1
- package/dist/store/actions/put-operation.js +4 -6
- package/dist/store/actions/put-operation.js.map +1 -1
- package/package.json +3 -8
- package/dist/esbuild-bundle-hints.d.ts +0 -7
- package/dist/esbuild-bundle-hints.d.ts.map +0 -1
- package/dist/esbuild-bundle-hints.js +0 -10
- package/dist/esbuild-bundle-hints.js.map +0 -1
- package/node_modules/deep-is/.travis.yml +0 -5
- package/node_modules/deep-is/LICENSE +0 -22
- package/node_modules/deep-is/README.markdown +0 -70
- package/node_modules/deep-is/example/cmp.js +0 -11
- package/node_modules/deep-is/index.js +0 -102
- package/node_modules/deep-is/package.json +0 -58
- package/node_modules/deep-is/test/NaN.js +0 -16
- package/node_modules/deep-is/test/cmp.js +0 -23
- package/node_modules/deep-is/test/neg-vs-pos-0.js +0 -15
- package/node_modules/escodegen/LICENSE.BSD +0 -21
- package/node_modules/escodegen/README.md +0 -84
- package/node_modules/escodegen/bin/escodegen.js +0 -77
- package/node_modules/escodegen/bin/esgenerate.js +0 -64
- package/node_modules/escodegen/escodegen.js +0 -2626
- package/node_modules/escodegen/node_modules/estraverse/.jshintrc +0 -16
- package/node_modules/escodegen/node_modules/estraverse/LICENSE.BSD +0 -19
- package/node_modules/escodegen/node_modules/estraverse/README.md +0 -153
- package/node_modules/escodegen/node_modules/estraverse/estraverse.js +0 -782
- package/node_modules/escodegen/node_modules/estraverse/gulpfile.js +0 -70
- package/node_modules/escodegen/node_modules/estraverse/package.json +0 -40
- package/node_modules/escodegen/node_modules/levn/LICENSE +0 -22
- package/node_modules/escodegen/node_modules/levn/README.md +0 -196
- package/node_modules/escodegen/node_modules/levn/lib/cast.js +0 -298
- package/node_modules/escodegen/node_modules/levn/lib/coerce.js +0 -285
- package/node_modules/escodegen/node_modules/levn/lib/index.js +0 -22
- package/node_modules/escodegen/node_modules/levn/lib/parse-string.js +0 -113
- package/node_modules/escodegen/node_modules/levn/lib/parse.js +0 -102
- package/node_modules/escodegen/node_modules/levn/package.json +0 -47
- package/node_modules/escodegen/node_modules/optionator/CHANGELOG.md +0 -56
- package/node_modules/escodegen/node_modules/optionator/LICENSE +0 -22
- package/node_modules/escodegen/node_modules/optionator/README.md +0 -238
- package/node_modules/escodegen/node_modules/optionator/lib/help.js +0 -260
- package/node_modules/escodegen/node_modules/optionator/lib/index.js +0 -465
- package/node_modules/escodegen/node_modules/optionator/lib/util.js +0 -54
- package/node_modules/escodegen/node_modules/optionator/package.json +0 -44
- package/node_modules/escodegen/node_modules/prelude-ls/CHANGELOG.md +0 -99
- package/node_modules/escodegen/node_modules/prelude-ls/LICENSE +0 -22
- package/node_modules/escodegen/node_modules/prelude-ls/README.md +0 -15
- package/node_modules/escodegen/node_modules/prelude-ls/lib/Func.js +0 -65
- package/node_modules/escodegen/node_modules/prelude-ls/lib/List.js +0 -686
- package/node_modules/escodegen/node_modules/prelude-ls/lib/Num.js +0 -130
- package/node_modules/escodegen/node_modules/prelude-ls/lib/Obj.js +0 -154
- package/node_modules/escodegen/node_modules/prelude-ls/lib/Str.js +0 -92
- package/node_modules/escodegen/node_modules/prelude-ls/lib/index.js +0 -178
- package/node_modules/escodegen/node_modules/prelude-ls/package.json +0 -52
- package/node_modules/escodegen/node_modules/type-check/LICENSE +0 -22
- package/node_modules/escodegen/node_modules/type-check/README.md +0 -210
- package/node_modules/escodegen/node_modules/type-check/lib/check.js +0 -126
- package/node_modules/escodegen/node_modules/type-check/lib/index.js +0 -16
- package/node_modules/escodegen/node_modules/type-check/lib/parse-type.js +0 -196
- package/node_modules/escodegen/node_modules/type-check/package.json +0 -40
- package/node_modules/escodegen/package.json +0 -61
- package/node_modules/esprima/ChangeLog +0 -235
- package/node_modules/esprima/LICENSE.BSD +0 -21
- package/node_modules/esprima/README.md +0 -46
- package/node_modules/esprima/bin/esparse.js +0 -139
- package/node_modules/esprima/bin/esvalidate.js +0 -236
- package/node_modules/esprima/dist/esprima.js +0 -6709
- package/node_modules/esprima/package.json +0 -112
- package/node_modules/esutils/LICENSE.BSD +0 -19
- package/node_modules/esutils/README.md +0 -174
- package/node_modules/esutils/lib/ast.js +0 -144
- package/node_modules/esutils/lib/code.js +0 -135
- package/node_modules/esutils/lib/keyword.js +0 -165
- package/node_modules/esutils/lib/utils.js +0 -33
- package/node_modules/esutils/package.json +0 -44
- package/node_modules/fast-levenshtein/LICENSE.md +0 -25
- package/node_modules/fast-levenshtein/README.md +0 -104
- package/node_modules/fast-levenshtein/levenshtein.js +0 -136
- package/node_modules/fast-levenshtein/package.json +0 -39
- package/node_modules/jsonpath/.jscsrc +0 -60
- package/node_modules/jsonpath/.jshintrc +0 -9
- package/node_modules/jsonpath/.travis.yml +0 -3
- package/node_modules/jsonpath/Dockerfile +0 -1
- package/node_modules/jsonpath/Gruntfile.js +0 -83
- package/node_modules/jsonpath/LICENSE +0 -7
- package/node_modules/jsonpath/README.md +0 -216
- package/node_modules/jsonpath/bin/generate_parser.js +0 -8
- package/node_modules/jsonpath/fig.yml +0 -5
- package/node_modules/jsonpath/generated/parser.js +0 -721
- package/node_modules/jsonpath/include/action.js +0 -4
- package/node_modules/jsonpath/include/module.js +0 -34
- package/node_modules/jsonpath/index.js +0 -1
- package/node_modules/jsonpath/jsonpath.js +0 -6842
- package/node_modules/jsonpath/jsonpath.min.js +0 -4
- package/node_modules/jsonpath/lib/aesprim.js +0 -18
- package/node_modules/jsonpath/lib/dict.js +0 -6
- package/node_modules/jsonpath/lib/grammar.js +0 -106
- package/node_modules/jsonpath/lib/handlers.js +0 -260
- package/node_modules/jsonpath/lib/index.js +0 -249
- package/node_modules/jsonpath/lib/parser.js +0 -21
- package/node_modules/jsonpath/lib/slice.js +0 -41
- package/node_modules/jsonpath/node_modules/esprima/README.md +0 -24
- package/node_modules/jsonpath/node_modules/esprima/bin/esparse.js +0 -127
- package/node_modules/jsonpath/node_modules/esprima/bin/esvalidate.js +0 -199
- package/node_modules/jsonpath/node_modules/esprima/esprima.js +0 -3756
- package/node_modules/jsonpath/node_modules/esprima/package.json +0 -83
- package/node_modules/jsonpath/node_modules/esprima/test/compat.js +0 -241
- package/node_modules/jsonpath/node_modules/esprima/test/reflect.js +0 -422
- package/node_modules/jsonpath/node_modules/esprima/test/run.js +0 -67
- package/node_modules/jsonpath/node_modules/esprima/test/runner.js +0 -495
- package/node_modules/jsonpath/node_modules/esprima/test/test.js +0 -25241
- package/node_modules/jsonpath/package.json +0 -45
- package/node_modules/jsonpath/test/data/store.json +0 -31
- package/node_modules/jsonpath/test/lessons.js +0 -38
- package/node_modules/jsonpath/test/parse.js +0 -164
- package/node_modules/jsonpath/test/query.js +0 -359
- package/node_modules/jsonpath/test/slice.js +0 -57
- package/node_modules/jsonpath/test/stringify.js +0 -54
- package/node_modules/jsonpath/test/sugar.js +0 -72
- package/node_modules/source-map/CHANGELOG.md +0 -301
- package/node_modules/source-map/LICENSE +0 -28
- package/node_modules/source-map/README.md +0 -742
- package/node_modules/source-map/dist/source-map.debug.js +0 -3234
- package/node_modules/source-map/dist/source-map.js +0 -3233
- package/node_modules/source-map/dist/source-map.min.js +0 -2
- package/node_modules/source-map/dist/source-map.min.js.map +0 -1
- package/node_modules/source-map/lib/array-set.js +0 -121
- package/node_modules/source-map/lib/base64-vlq.js +0 -140
- package/node_modules/source-map/lib/base64.js +0 -67
- package/node_modules/source-map/lib/binary-search.js +0 -111
- package/node_modules/source-map/lib/mapping-list.js +0 -79
- package/node_modules/source-map/lib/quick-sort.js +0 -114
- package/node_modules/source-map/lib/source-map-consumer.js +0 -1145
- package/node_modules/source-map/lib/source-map-generator.js +0 -425
- package/node_modules/source-map/lib/source-node.js +0 -413
- package/node_modules/source-map/lib/util.js +0 -488
- package/node_modules/source-map/package.json +0 -73
- package/node_modules/source-map/source-map.d.ts +0 -98
- package/node_modules/source-map/source-map.js +0 -8
- package/node_modules/static-eval/.travis.yml +0 -4
- package/node_modules/static-eval/LICENSE +0 -18
- package/node_modules/static-eval/example/eval.js +0 -7
- package/node_modules/static-eval/example/vars.js +0 -11
- package/node_modules/static-eval/index.js +0 -178
- package/node_modules/static-eval/package.json +0 -48
- package/node_modules/static-eval/readme.markdown +0 -87
- package/node_modules/static-eval/test/eval.js +0 -82
- package/node_modules/static-eval/test/prop.js +0 -16
- package/node_modules/static-eval/test/template-strings.js +0 -33
- package/node_modules/underscore/LICENSE +0 -23
- package/node_modules/underscore/README.md +0 -28
- package/node_modules/underscore/amd/_apply.js +0 -7
- package/node_modules/underscore/amd/_applyProperty.js +0 -14
- package/node_modules/underscore/amd/_arrayAccessors.js +0 -11
- package/node_modules/underscore/amd/_arrayMutators.js +0 -15
- package/node_modules/underscore/amd/_baseCreate.js +0 -21
- package/node_modules/underscore/amd/_baseIteratee.js +0 -15
- package/node_modules/underscore/amd/_binarySearch.js +0 -17
- package/node_modules/underscore/amd/_bindCb.js +0 -14
- package/node_modules/underscore/amd/_bindCb4.js +0 -17
- package/node_modules/underscore/amd/_byValue.js +0 -11
- package/node_modules/underscore/amd/_cb.js +0 -12
- package/node_modules/underscore/amd/_chainResult.js +0 -10
- package/node_modules/underscore/amd/_collectNonEnumProps.js +0 -42
- package/node_modules/underscore/amd/_createAssigner.js +0 -24
- package/node_modules/underscore/amd/_createEscaper.js +0 -21
- package/node_modules/underscore/amd/_createIndexFinder.js +0 -30
- package/node_modules/underscore/amd/_createPredicateIndexFinder.js +0 -18
- package/node_modules/underscore/amd/_createReduce.js +0 -30
- package/node_modules/underscore/amd/_createSizePropertyCheck.js +0 -13
- package/node_modules/underscore/amd/_deepGet.js +0 -15
- package/node_modules/underscore/amd/_escapeMap.js +0 -15
- package/node_modules/underscore/amd/_executeBound.js +0 -16
- package/node_modules/underscore/amd/_extremum.js +0 -35
- package/node_modules/underscore/amd/_flatten.js +0 -32
- package/node_modules/underscore/amd/_forceNumericMinMax.js +0 -16
- package/node_modules/underscore/amd/_getByteLength.js +0 -8
- package/node_modules/underscore/amd/_getLength.js +0 -8
- package/node_modules/underscore/amd/_greater.js +0 -10
- package/node_modules/underscore/amd/_group.js +0 -18
- package/node_modules/underscore/amd/_has.js +0 -10
- package/node_modules/underscore/amd/_hasObjectTag.js +0 -7
- package/node_modules/underscore/amd/_isArrayLike.js +0 -11
- package/node_modules/underscore/amd/_isBufferLike.js +0 -9
- package/node_modules/underscore/amd/_keyInObj.js +0 -11
- package/node_modules/underscore/amd/_less.js +0 -10
- package/node_modules/underscore/amd/_lessEqual.js +0 -10
- package/node_modules/underscore/amd/_linearSearch.js +0 -31
- package/node_modules/underscore/amd/_mapReduce.js +0 -5
- package/node_modules/underscore/amd/_methodFingerprint.js +0 -44
- package/node_modules/underscore/amd/_optimizeCb.js +0 -27
- package/node_modules/underscore/amd/_push.js +0 -7
- package/node_modules/underscore/amd/_pusher.js +0 -13
- package/node_modules/underscore/amd/_sequence.js +0 -18
- package/node_modules/underscore/amd/_setup.js +0 -70
- package/node_modules/underscore/amd/_shallowProperty.js +0 -12
- package/node_modules/underscore/amd/_slice.js +0 -7
- package/node_modules/underscore/amd/_strictEqual.js +0 -9
- package/node_modules/underscore/amd/_stringTagBug.js +0 -16
- package/node_modules/underscore/amd/_tagTester.js +0 -13
- package/node_modules/underscore/amd/_toBufferView.js +0 -15
- package/node_modules/underscore/amd/_toPath.js +0 -11
- package/node_modules/underscore/amd/_unescapeMap.js +0 -8
- package/node_modules/underscore/amd/_unmethodize.js +0 -9
- package/node_modules/underscore/amd/_wrapArrayAccessor.js +0 -15
- package/node_modules/underscore/amd/_wrapArrayMutator.js +0 -28
- package/node_modules/underscore/amd/after.js +0 -14
- package/node_modules/underscore/amd/allKeys.js +0 -15
- package/node_modules/underscore/amd/before.js +0 -18
- package/node_modules/underscore/amd/bind.js +0 -15
- package/node_modules/underscore/amd/bindAll.js +0 -19
- package/node_modules/underscore/amd/chain.js +0 -12
- package/node_modules/underscore/amd/chunk.js +0 -17
- package/node_modules/underscore/amd/clone.js +0 -11
- package/node_modules/underscore/amd/compact.js +0 -10
- package/node_modules/underscore/amd/compose.js +0 -18
- package/node_modules/underscore/amd/concat.js +0 -7
- package/node_modules/underscore/amd/constant.js +0 -12
- package/node_modules/underscore/amd/contains.js +0 -12
- package/node_modules/underscore/amd/countBy.js +0 -12
- package/node_modules/underscore/amd/create.js +0 -14
- package/node_modules/underscore/amd/debounce.js +0 -43
- package/node_modules/underscore/amd/defaults.js +0 -8
- package/node_modules/underscore/amd/defer.js +0 -9
- package/node_modules/underscore/amd/delay.js +0 -13
- package/node_modules/underscore/amd/difference.js +0 -14
- package/node_modules/underscore/amd/each.js +0 -25
- package/node_modules/underscore/amd/escape.js +0 -8
- package/node_modules/underscore/amd/every.js +0 -17
- package/node_modules/underscore/amd/extend.js +0 -8
- package/node_modules/underscore/amd/extendOwn.js +0 -10
- package/node_modules/underscore/amd/filter.js +0 -15
- package/node_modules/underscore/amd/find.js +0 -12
- package/node_modules/underscore/amd/findIndex.js +0 -8
- package/node_modules/underscore/amd/findKey.js +0 -15
- package/node_modules/underscore/amd/findLastIndex.js +0 -8
- package/node_modules/underscore/amd/findWhere.js +0 -11
- package/node_modules/underscore/amd/first.js +0 -13
- package/node_modules/underscore/amd/flatten.js +0 -11
- package/node_modules/underscore/amd/functions.js +0 -14
- package/node_modules/underscore/amd/get.js +0 -14
- package/node_modules/underscore/amd/groupBy.js +0 -11
- package/node_modules/underscore/amd/has.js +0 -19
- package/node_modules/underscore/amd/identity.js +0 -10
- package/node_modules/underscore/amd/index-default.js +0 -12
- package/node_modules/underscore/amd/index.js +0 -154
- package/node_modules/underscore/amd/indexBy.js +0 -11
- package/node_modules/underscore/amd/indexOf.js +0 -11
- package/node_modules/underscore/amd/initial.js +0 -12
- package/node_modules/underscore/amd/intersection.js +0 -22
- package/node_modules/underscore/amd/invert.js +0 -15
- package/node_modules/underscore/amd/invoke.js +0 -28
- package/node_modules/underscore/amd/isArguments.js +0 -19
- package/node_modules/underscore/amd/isArray.js +0 -9
- package/node_modules/underscore/amd/isArrayBuffer.js +0 -7
- package/node_modules/underscore/amd/isBoolean.js +0 -10
- package/node_modules/underscore/amd/isDataView.js +0 -15
- package/node_modules/underscore/amd/isDate.js +0 -7
- package/node_modules/underscore/amd/isElement.js +0 -10
- package/node_modules/underscore/amd/isEmpty.js +0 -18
- package/node_modules/underscore/amd/isEqual.js +0 -133
- package/node_modules/underscore/amd/isError.js +0 -7
- package/node_modules/underscore/amd/isFinite.js +0 -10
- package/node_modules/underscore/amd/isFunction.js +0 -18
- package/node_modules/underscore/amd/isMap.js +0 -7
- package/node_modules/underscore/amd/isMatch.js +0 -17
- package/node_modules/underscore/amd/isNaN.js +0 -10
- package/node_modules/underscore/amd/isNull.js +0 -10
- package/node_modules/underscore/amd/isNumber.js +0 -7
- package/node_modules/underscore/amd/isObject.js +0 -11
- package/node_modules/underscore/amd/isRegExp.js +0 -7
- package/node_modules/underscore/amd/isSet.js +0 -7
- package/node_modules/underscore/amd/isString.js +0 -7
- package/node_modules/underscore/amd/isSymbol.js +0 -7
- package/node_modules/underscore/amd/isTypedArray.js +0 -16
- package/node_modules/underscore/amd/isUndefined.js +0 -10
- package/node_modules/underscore/amd/isWeakMap.js +0 -7
- package/node_modules/underscore/amd/isWeakSet.js +0 -7
- package/node_modules/underscore/amd/iteratee.js +0 -13
- package/node_modules/underscore/amd/join.js +0 -7
- package/node_modules/underscore/amd/keys.js +0 -17
- package/node_modules/underscore/amd/last.js +0 -13
- package/node_modules/underscore/amd/lastIndexOf.js +0 -9
- package/node_modules/underscore/amd/map.js +0 -18
- package/node_modules/underscore/amd/mapObject.js +0 -19
- package/node_modules/underscore/amd/matcher.js +0 -14
- package/node_modules/underscore/amd/max.js +0 -30
- package/node_modules/underscore/amd/memoize.js +0 -17
- package/node_modules/underscore/amd/min.js +0 -30
- package/node_modules/underscore/amd/mixin.js +0 -18
- package/node_modules/underscore/amd/negate.js +0 -12
- package/node_modules/underscore/amd/noop.js +0 -8
- package/node_modules/underscore/amd/now.js +0 -10
- package/node_modules/underscore/amd/object.js +0 -20
- package/node_modules/underscore/amd/omit.js +0 -20
- package/node_modules/underscore/amd/once.js +0 -9
- package/node_modules/underscore/amd/pairs.js +0 -17
- package/node_modules/underscore/amd/partial.js +0 -25
- package/node_modules/underscore/amd/partition.js +0 -11
- package/node_modules/underscore/amd/pick.js +0 -25
- package/node_modules/underscore/amd/pluck.js +0 -10
- package/node_modules/underscore/amd/pop.js +0 -7
- package/node_modules/underscore/amd/property.js +0 -14
- package/node_modules/underscore/amd/propertyOf.js +0 -13
- package/node_modules/underscore/amd/push.js +0 -7
- package/node_modules/underscore/amd/random.js +0 -14
- package/node_modules/underscore/amd/range.js +0 -27
- package/node_modules/underscore/amd/reduce.js +0 -9
- package/node_modules/underscore/amd/reduceRight.js +0 -8
- package/node_modules/underscore/amd/reject.js +0 -10
- package/node_modules/underscore/amd/rest.js +0 -12
- package/node_modules/underscore/amd/restArguments.js +0 -33
- package/node_modules/underscore/amd/result.js +0 -25
- package/node_modules/underscore/amd/reverse.js +0 -7
- package/node_modules/underscore/amd/sample.js +0 -27
- package/node_modules/underscore/amd/shift.js +0 -7
- package/node_modules/underscore/amd/shuffle.js +0 -10
- package/node_modules/underscore/amd/size.js +0 -11
- package/node_modules/underscore/amd/slice.js +0 -7
- package/node_modules/underscore/amd/some.js +0 -17
- package/node_modules/underscore/amd/sort.js +0 -7
- package/node_modules/underscore/amd/sortBy.js +0 -26
- package/node_modules/underscore/amd/sortedIndex.js +0 -18
- package/node_modules/underscore/amd/sortedLastIndex.js +0 -11
- package/node_modules/underscore/amd/splice.js +0 -7
- package/node_modules/underscore/amd/tap.js +0 -13
- package/node_modules/underscore/amd/template.js +0 -95
- package/node_modules/underscore/amd/templateSettings.js +0 -13
- package/node_modules/underscore/amd/throttle.js +0 -51
- package/node_modules/underscore/amd/times.js +0 -13
- package/node_modules/underscore/amd/toArray.js +0 -18
- package/node_modules/underscore/amd/toPath.js +0 -12
- package/node_modules/underscore/amd/toString.js +0 -11
- package/node_modules/underscore/amd/underscore-array-methods.js +0 -30
- package/node_modules/underscore/amd/underscore.js +0 -29
- package/node_modules/underscore/amd/unescape.js +0 -8
- package/node_modules/underscore/amd/union.js +0 -11
- package/node_modules/underscore/amd/uniq.js +0 -37
- package/node_modules/underscore/amd/uniqueId.js +0 -13
- package/node_modules/underscore/amd/unshift.js +0 -7
- package/node_modules/underscore/amd/unzip.js +0 -17
- package/node_modules/underscore/amd/value.js +0 -13
- package/node_modules/underscore/amd/values.js +0 -16
- package/node_modules/underscore/amd/where.js +0 -11
- package/node_modules/underscore/amd/without.js +0 -10
- package/node_modules/underscore/amd/wrap.js +0 -12
- package/node_modules/underscore/amd/zip.js +0 -9
- package/node_modules/underscore/cjs/_apply.js +0 -6
- package/node_modules/underscore/cjs/_applyProperty.js +0 -10
- package/node_modules/underscore/cjs/_arrayAccessors.js +0 -11
- package/node_modules/underscore/cjs/_arrayMutators.js +0 -19
- package/node_modules/underscore/cjs/_baseCreate.js +0 -20
- package/node_modules/underscore/cjs/_baseIteratee.js +0 -19
- package/node_modules/underscore/cjs/_binarySearch.js +0 -15
- package/node_modules/underscore/cjs/_bindCb.js +0 -10
- package/node_modules/underscore/cjs/_bindCb4.js +0 -13
- package/node_modules/underscore/cjs/_byValue.js +0 -7
- package/node_modules/underscore/cjs/_cb.js +0 -12
- package/node_modules/underscore/cjs/_chainResult.js +0 -8
- package/node_modules/underscore/cjs/_collectNonEnumProps.js +0 -42
- package/node_modules/underscore/cjs/_createAssigner.js +0 -20
- package/node_modules/underscore/cjs/_createEscaper.js +0 -19
- package/node_modules/underscore/cjs/_createIndexFinder.js +0 -30
- package/node_modules/underscore/cjs/_createPredicateIndexFinder.js +0 -17
- package/node_modules/underscore/cjs/_createReduce.js +0 -30
- package/node_modules/underscore/cjs/_createSizePropertyCheck.js +0 -11
- package/node_modules/underscore/cjs/_deepGet.js +0 -11
- package/node_modules/underscore/cjs/_escapeMap.js +0 -11
- package/node_modules/underscore/cjs/_executeBound.js +0 -15
- package/node_modules/underscore/cjs/_extremum.js +0 -35
- package/node_modules/underscore/cjs/_flatten.js +0 -33
- package/node_modules/underscore/cjs/_forceNumericMinMax.js +0 -14
- package/node_modules/underscore/cjs/_getByteLength.js +0 -6
- package/node_modules/underscore/cjs/_getLength.js +0 -6
- package/node_modules/underscore/cjs/_greater.js +0 -6
- package/node_modules/underscore/cjs/_group.js +0 -17
- package/node_modules/underscore/cjs/_has.js +0 -8
- package/node_modules/underscore/cjs/_hasObjectTag.js +0 -5
- package/node_modules/underscore/cjs/_isArrayLike.js +0 -10
- package/node_modules/underscore/cjs/_isBufferLike.js +0 -8
- package/node_modules/underscore/cjs/_keyInObj.js +0 -7
- package/node_modules/underscore/cjs/_less.js +0 -6
- package/node_modules/underscore/cjs/_lessEqual.js +0 -6
- package/node_modules/underscore/cjs/_linearSearch.js +0 -30
- package/node_modules/underscore/cjs/_mapReduce.js +0 -1
- package/node_modules/underscore/cjs/_methodFingerprint.js +0 -44
- package/node_modules/underscore/cjs/_optimizeCb.js +0 -23
- package/node_modules/underscore/cjs/_push.js +0 -6
- package/node_modules/underscore/cjs/_pusher.js +0 -9
- package/node_modules/underscore/cjs/_sequence.js +0 -14
- package/node_modules/underscore/cjs/_setup.js +0 -66
- package/node_modules/underscore/cjs/_shallowProperty.js +0 -8
- package/node_modules/underscore/cjs/_slice.js +0 -6
- package/node_modules/underscore/cjs/_strictEqual.js +0 -5
- package/node_modules/underscore/cjs/_stringTagBug.js +0 -15
- package/node_modules/underscore/cjs/_tagTester.js +0 -11
- package/node_modules/underscore/cjs/_toBufferView.js +0 -13
- package/node_modules/underscore/cjs/_toPath.js +0 -10
- package/node_modules/underscore/cjs/_unescapeMap.js +0 -7
- package/node_modules/underscore/cjs/_unmethodize.js +0 -8
- package/node_modules/underscore/cjs/_wrapArrayAccessor.js +0 -14
- package/node_modules/underscore/cjs/_wrapArrayMutator.js +0 -29
- package/node_modules/underscore/cjs/after.js +0 -10
- package/node_modules/underscore/cjs/allKeys.js +0 -15
- package/node_modules/underscore/cjs/before.js +0 -14
- package/node_modules/underscore/cjs/bind.js +0 -15
- package/node_modules/underscore/cjs/bindAll.js +0 -19
- package/node_modules/underscore/cjs/chain.js +0 -10
- package/node_modules/underscore/cjs/chunk.js +0 -15
- package/node_modules/underscore/cjs/clone.js +0 -11
- package/node_modules/underscore/cjs/compact.js +0 -8
- package/node_modules/underscore/cjs/compose.js +0 -14
- package/node_modules/underscore/cjs/concat.js +0 -6
- package/node_modules/underscore/cjs/constant.js +0 -8
- package/node_modules/underscore/cjs/contains.js +0 -12
- package/node_modules/underscore/cjs/countBy.js +0 -11
- package/node_modules/underscore/cjs/create.js +0 -13
- package/node_modules/underscore/cjs/debounce.js +0 -42
- package/node_modules/underscore/cjs/defaults.js +0 -7
- package/node_modules/underscore/cjs/defer.js +0 -9
- package/node_modules/underscore/cjs/delay.js +0 -11
- package/node_modules/underscore/cjs/difference.js +0 -15
- package/node_modules/underscore/cjs/each.js +0 -25
- package/node_modules/underscore/cjs/escape.js +0 -7
- package/node_modules/underscore/cjs/every.js +0 -17
- package/node_modules/underscore/cjs/extend.js +0 -7
- package/node_modules/underscore/cjs/extendOwn.js +0 -9
- package/node_modules/underscore/cjs/filter.js +0 -14
- package/node_modules/underscore/cjs/find.js +0 -12
- package/node_modules/underscore/cjs/findIndex.js +0 -6
- package/node_modules/underscore/cjs/findKey.js +0 -14
- package/node_modules/underscore/cjs/findLastIndex.js +0 -6
- package/node_modules/underscore/cjs/findWhere.js +0 -10
- package/node_modules/underscore/cjs/first.js +0 -11
- package/node_modules/underscore/cjs/flatten.js +0 -9
- package/node_modules/underscore/cjs/functions.js +0 -12
- package/node_modules/underscore/cjs/get.js +0 -14
- package/node_modules/underscore/cjs/groupBy.js +0 -10
- package/node_modules/underscore/cjs/has.js +0 -18
- package/node_modules/underscore/cjs/identity.js +0 -6
- package/node_modules/underscore/cjs/index-default.js +0 -11
- package/node_modules/underscore/cjs/index.js +0 -277
- package/node_modules/underscore/cjs/indexBy.js +0 -9
- package/node_modules/underscore/cjs/indexOf.js +0 -11
- package/node_modules/underscore/cjs/initial.js +0 -10
- package/node_modules/underscore/cjs/intersection.js +0 -21
- package/node_modules/underscore/cjs/invert.js +0 -13
- package/node_modules/underscore/cjs/invoke.js +0 -30
- package/node_modules/underscore/cjs/isArguments.js +0 -18
- package/node_modules/underscore/cjs/isArray.js +0 -8
- package/node_modules/underscore/cjs/isArrayBuffer.js +0 -5
- package/node_modules/underscore/cjs/isBoolean.js +0 -8
- package/node_modules/underscore/cjs/isDataView.js +0 -16
- package/node_modules/underscore/cjs/isDate.js +0 -5
- package/node_modules/underscore/cjs/isElement.js +0 -6
- package/node_modules/underscore/cjs/isEmpty.js +0 -20
- package/node_modules/underscore/cjs/isEqual.js +0 -140
- package/node_modules/underscore/cjs/isError.js +0 -5
- package/node_modules/underscore/cjs/isFinite.js +0 -9
- package/node_modules/underscore/cjs/isFunction.js +0 -17
- package/node_modules/underscore/cjs/isMap.js +0 -7
- package/node_modules/underscore/cjs/isMatch.js +0 -15
- package/node_modules/underscore/cjs/isNaN.js +0 -9
- package/node_modules/underscore/cjs/isNull.js +0 -6
- package/node_modules/underscore/cjs/isNumber.js +0 -5
- package/node_modules/underscore/cjs/isObject.js +0 -7
- package/node_modules/underscore/cjs/isRegExp.js +0 -5
- package/node_modules/underscore/cjs/isSet.js +0 -7
- package/node_modules/underscore/cjs/isString.js +0 -5
- package/node_modules/underscore/cjs/isSymbol.js +0 -5
- package/node_modules/underscore/cjs/isTypedArray.js +0 -17
- package/node_modules/underscore/cjs/isUndefined.js +0 -6
- package/node_modules/underscore/cjs/isWeakMap.js +0 -7
- package/node_modules/underscore/cjs/isWeakSet.js +0 -5
- package/node_modules/underscore/cjs/iteratee.js +0 -12
- package/node_modules/underscore/cjs/join.js +0 -6
- package/node_modules/underscore/cjs/keys.js +0 -18
- package/node_modules/underscore/cjs/last.js +0 -11
- package/node_modules/underscore/cjs/lastIndexOf.js +0 -8
- package/node_modules/underscore/cjs/map.js +0 -18
- package/node_modules/underscore/cjs/mapObject.js +0 -18
- package/node_modules/underscore/cjs/matcher.js +0 -13
- package/node_modules/underscore/cjs/max.js +0 -31
- package/node_modules/underscore/cjs/memoize.js +0 -15
- package/node_modules/underscore/cjs/min.js +0 -31
- package/node_modules/underscore/cjs/mixin.js +0 -20
- package/node_modules/underscore/cjs/negate.js +0 -8
- package/node_modules/underscore/cjs/noop.js +0 -4
- package/node_modules/underscore/cjs/now.js +0 -6
- package/node_modules/underscore/cjs/object.js +0 -18
- package/node_modules/underscore/cjs/omit.js +0 -24
- package/node_modules/underscore/cjs/once.js +0 -8
- package/node_modules/underscore/cjs/pairs.js +0 -15
- package/node_modules/underscore/cjs/partial.js +0 -25
- package/node_modules/underscore/cjs/partition.js +0 -9
- package/node_modules/underscore/cjs/pick.js +0 -28
- package/node_modules/underscore/cjs/pluck.js +0 -9
- package/node_modules/underscore/cjs/pop.js +0 -6
- package/node_modules/underscore/cjs/property.js +0 -13
- package/node_modules/underscore/cjs/propertyOf.js +0 -12
- package/node_modules/underscore/cjs/push.js +0 -6
- package/node_modules/underscore/cjs/random.js +0 -10
- package/node_modules/underscore/cjs/range.js +0 -23
- package/node_modules/underscore/cjs/reduce.js +0 -7
- package/node_modules/underscore/cjs/reduceRight.js +0 -6
- package/node_modules/underscore/cjs/reject.js +0 -10
- package/node_modules/underscore/cjs/rest.js +0 -10
- package/node_modules/underscore/cjs/restArguments.js +0 -29
- package/node_modules/underscore/cjs/result.js +0 -24
- package/node_modules/underscore/cjs/reverse.js +0 -6
- package/node_modules/underscore/cjs/sample.js +0 -29
- package/node_modules/underscore/cjs/shift.js +0 -6
- package/node_modules/underscore/cjs/shuffle.js +0 -8
- package/node_modules/underscore/cjs/size.js +0 -10
- package/node_modules/underscore/cjs/slice.js +0 -6
- package/node_modules/underscore/cjs/some.js +0 -17
- package/node_modules/underscore/cjs/sort.js +0 -6
- package/node_modules/underscore/cjs/sortBy.js +0 -26
- package/node_modules/underscore/cjs/sortedIndex.js +0 -17
- package/node_modules/underscore/cjs/sortedLastIndex.js +0 -11
- package/node_modules/underscore/cjs/splice.js +0 -6
- package/node_modules/underscore/cjs/tap.js +0 -9
- package/node_modules/underscore/cjs/template.js +0 -95
- package/node_modules/underscore/cjs/templateSettings.js +0 -11
- package/node_modules/underscore/cjs/throttle.js +0 -49
- package/node_modules/underscore/cjs/times.js +0 -11
- package/node_modules/underscore/cjs/toArray.js +0 -22
- package/node_modules/underscore/cjs/toPath.js +0 -11
- package/node_modules/underscore/cjs/toString.js +0 -9
- package/node_modules/underscore/cjs/underscore-array-methods.js +0 -31
- package/node_modules/underscore/cjs/underscore.js +0 -27
- package/node_modules/underscore/cjs/unescape.js +0 -7
- package/node_modules/underscore/cjs/union.js +0 -11
- package/node_modules/underscore/cjs/uniq.js +0 -38
- package/node_modules/underscore/cjs/uniqueId.js +0 -9
- package/node_modules/underscore/cjs/unshift.js +0 -6
- package/node_modules/underscore/cjs/unzip.js +0 -17
- package/node_modules/underscore/cjs/value.js +0 -9
- package/node_modules/underscore/cjs/values.js +0 -14
- package/node_modules/underscore/cjs/where.js +0 -10
- package/node_modules/underscore/cjs/without.js +0 -9
- package/node_modules/underscore/cjs/wrap.js +0 -10
- package/node_modules/underscore/cjs/zip.js +0 -8
- package/node_modules/underscore/modules/.eslintrc +0 -12
- package/node_modules/underscore/modules/_baseCreate.js +0 -18
- package/node_modules/underscore/modules/_baseIteratee.js +0 -17
- package/node_modules/underscore/modules/_cb.js +0 -10
- package/node_modules/underscore/modules/_chainResult.js +0 -6
- package/node_modules/underscore/modules/_collectNonEnumProps.js +0 -40
- package/node_modules/underscore/modules/_createAssigner.js +0 -18
- package/node_modules/underscore/modules/_createEscaper.js +0 -17
- package/node_modules/underscore/modules/_createIndexFinder.js +0 -28
- package/node_modules/underscore/modules/_createPredicateIndexFinder.js +0 -15
- package/node_modules/underscore/modules/_createReduce.js +0 -28
- package/node_modules/underscore/modules/_createSizePropertyCheck.js +0 -9
- package/node_modules/underscore/modules/_deepGet.js +0 -9
- package/node_modules/underscore/modules/_escapeMap.js +0 -9
- package/node_modules/underscore/modules/_executeBound.js +0 -13
- package/node_modules/underscore/modules/_flatten.js +0 -31
- package/node_modules/underscore/modules/_getByteLength.js +0 -4
- package/node_modules/underscore/modules/_getLength.js +0 -4
- package/node_modules/underscore/modules/_group.js +0 -15
- package/node_modules/underscore/modules/_has.js +0 -6
- package/node_modules/underscore/modules/_hasObjectTag.js +0 -3
- package/node_modules/underscore/modules/_isArrayLike.js +0 -8
- package/node_modules/underscore/modules/_isBufferLike.js +0 -6
- package/node_modules/underscore/modules/_keyInObj.js +0 -5
- package/node_modules/underscore/modules/_methodFingerprint.js +0 -37
- package/node_modules/underscore/modules/_optimizeCb.js +0 -21
- package/node_modules/underscore/modules/_setup.js +0 -43
- package/node_modules/underscore/modules/_shallowProperty.js +0 -6
- package/node_modules/underscore/modules/_stringTagBug.js +0 -10
- package/node_modules/underscore/modules/_tagTester.js +0 -9
- package/node_modules/underscore/modules/_toBufferView.js +0 -11
- package/node_modules/underscore/modules/_toPath.js +0 -8
- package/node_modules/underscore/modules/_unescapeMap.js +0 -5
- package/node_modules/underscore/modules/after.js +0 -8
- package/node_modules/underscore/modules/allKeys.js +0 -13
- package/node_modules/underscore/modules/before.js +0 -12
- package/node_modules/underscore/modules/bind.js +0 -13
- package/node_modules/underscore/modules/bindAll.js +0 -17
- package/node_modules/underscore/modules/chain.js +0 -8
- package/node_modules/underscore/modules/chunk.js +0 -13
- package/node_modules/underscore/modules/clone.js +0 -9
- package/node_modules/underscore/modules/compact.js +0 -6
- package/node_modules/underscore/modules/compose.js +0 -12
- package/node_modules/underscore/modules/constant.js +0 -6
- package/node_modules/underscore/modules/contains.js +0 -10
- package/node_modules/underscore/modules/countBy.js +0 -9
- package/node_modules/underscore/modules/create.js +0 -11
- package/node_modules/underscore/modules/debounce.js +0 -40
- package/node_modules/underscore/modules/defaults.js +0 -5
- package/node_modules/underscore/modules/defer.js +0 -7
- package/node_modules/underscore/modules/delay.js +0 -9
- package/node_modules/underscore/modules/difference.js +0 -13
- package/node_modules/underscore/modules/each.js +0 -23
- package/node_modules/underscore/modules/escape.js +0 -5
- package/node_modules/underscore/modules/every.js +0 -15
- package/node_modules/underscore/modules/extend.js +0 -5
- package/node_modules/underscore/modules/extendOwn.js +0 -7
- package/node_modules/underscore/modules/filter.js +0 -12
- package/node_modules/underscore/modules/find.js +0 -10
- package/node_modules/underscore/modules/findIndex.js +0 -4
- package/node_modules/underscore/modules/findKey.js +0 -12
- package/node_modules/underscore/modules/findLastIndex.js +0 -4
- package/node_modules/underscore/modules/findWhere.js +0 -8
- package/node_modules/underscore/modules/first.js +0 -9
- package/node_modules/underscore/modules/flatten.js +0 -7
- package/node_modules/underscore/modules/functions.js +0 -10
- package/node_modules/underscore/modules/get.js +0 -12
- package/node_modules/underscore/modules/groupBy.js +0 -8
- package/node_modules/underscore/modules/has.js +0 -16
- package/node_modules/underscore/modules/identity.js +0 -4
- package/node_modules/underscore/modules/index-all.js +0 -18
- package/node_modules/underscore/modules/index-default.js +0 -27
- package/node_modules/underscore/modules/index.js +0 -200
- package/node_modules/underscore/modules/indexBy.js +0 -7
- package/node_modules/underscore/modules/indexOf.js +0 -9
- package/node_modules/underscore/modules/initial.js +0 -8
- package/node_modules/underscore/modules/intersection.js +0 -19
- package/node_modules/underscore/modules/invert.js +0 -11
- package/node_modules/underscore/modules/invoke.js +0 -28
- package/node_modules/underscore/modules/isArguments.js +0 -16
- package/node_modules/underscore/modules/isArray.js +0 -6
- package/node_modules/underscore/modules/isArrayBuffer.js +0 -3
- package/node_modules/underscore/modules/isBoolean.js +0 -6
- package/node_modules/underscore/modules/isDataView.js +0 -14
- package/node_modules/underscore/modules/isDate.js +0 -3
- package/node_modules/underscore/modules/isElement.js +0 -4
- package/node_modules/underscore/modules/isEmpty.js +0 -18
- package/node_modules/underscore/modules/isEqual.js +0 -138
- package/node_modules/underscore/modules/isError.js +0 -3
- package/node_modules/underscore/modules/isFinite.js +0 -7
- package/node_modules/underscore/modules/isFunction.js +0 -15
- package/node_modules/underscore/modules/isMap.js +0 -5
- package/node_modules/underscore/modules/isMatch.js +0 -13
- package/node_modules/underscore/modules/isNaN.js +0 -7
- package/node_modules/underscore/modules/isNull.js +0 -4
- package/node_modules/underscore/modules/isNumber.js +0 -3
- package/node_modules/underscore/modules/isObject.js +0 -5
- package/node_modules/underscore/modules/isRegExp.js +0 -3
- package/node_modules/underscore/modules/isSet.js +0 -5
- package/node_modules/underscore/modules/isString.js +0 -3
- package/node_modules/underscore/modules/isSymbol.js +0 -3
- package/node_modules/underscore/modules/isTypedArray.js +0 -15
- package/node_modules/underscore/modules/isUndefined.js +0 -4
- package/node_modules/underscore/modules/isWeakMap.js +0 -5
- package/node_modules/underscore/modules/isWeakSet.js +0 -3
- package/node_modules/underscore/modules/iteratee.js +0 -10
- package/node_modules/underscore/modules/keys.js +0 -16
- package/node_modules/underscore/modules/last.js +0 -9
- package/node_modules/underscore/modules/lastIndexOf.js +0 -6
- package/node_modules/underscore/modules/map.js +0 -16
- package/node_modules/underscore/modules/mapObject.js +0 -16
- package/node_modules/underscore/modules/matcher.js +0 -11
- package/node_modules/underscore/modules/max.js +0 -29
- package/node_modules/underscore/modules/memoize.js +0 -13
- package/node_modules/underscore/modules/min.js +0 -29
- package/node_modules/underscore/modules/mixin.js +0 -18
- package/node_modules/underscore/modules/negate.js +0 -6
- package/node_modules/underscore/modules/noop.js +0 -2
- package/node_modules/underscore/modules/now.js +0 -4
- package/node_modules/underscore/modules/object.js +0 -16
- package/node_modules/underscore/modules/omit.js +0 -22
- package/node_modules/underscore/modules/once.js +0 -6
- package/node_modules/underscore/modules/pairs.js +0 -13
- package/node_modules/underscore/modules/partial.js +0 -24
- package/node_modules/underscore/modules/partition.js +0 -7
- package/node_modules/underscore/modules/pick.js +0 -26
- package/node_modules/underscore/modules/pluck.js +0 -7
- package/node_modules/underscore/modules/property.js +0 -11
- package/node_modules/underscore/modules/propertyOf.js +0 -10
- package/node_modules/underscore/modules/random.js +0 -8
- package/node_modules/underscore/modules/range.js +0 -21
- package/node_modules/underscore/modules/reduce.js +0 -5
- package/node_modules/underscore/modules/reduceRight.js +0 -4
- package/node_modules/underscore/modules/reject.js +0 -8
- package/node_modules/underscore/modules/rest.js +0 -8
- package/node_modules/underscore/modules/restArguments.js +0 -27
- package/node_modules/underscore/modules/result.js +0 -22
- package/node_modules/underscore/modules/sample.js +0 -27
- package/node_modules/underscore/modules/shuffle.js +0 -6
- package/node_modules/underscore/modules/size.js +0 -8
- package/node_modules/underscore/modules/some.js +0 -15
- package/node_modules/underscore/modules/sortBy.js +0 -24
- package/node_modules/underscore/modules/sortedIndex.js +0 -15
- package/node_modules/underscore/modules/tap.js +0 -7
- package/node_modules/underscore/modules/template.js +0 -93
- package/node_modules/underscore/modules/templateSettings.js +0 -9
- package/node_modules/underscore/modules/throttle.js +0 -47
- package/node_modules/underscore/modules/times.js +0 -9
- package/node_modules/underscore/modules/toArray.js +0 -20
- package/node_modules/underscore/modules/toPath.js +0 -9
- package/node_modules/underscore/modules/underscore-array-methods.js +0 -31
- package/node_modules/underscore/modules/underscore.js +0 -25
- package/node_modules/underscore/modules/unescape.js +0 -5
- package/node_modules/underscore/modules/union.js +0 -9
- package/node_modules/underscore/modules/uniq.js +0 -36
- package/node_modules/underscore/modules/uniqueId.js +0 -7
- package/node_modules/underscore/modules/unzip.js +0 -15
- package/node_modules/underscore/modules/values.js +0 -12
- package/node_modules/underscore/modules/where.js +0 -8
- package/node_modules/underscore/modules/without.js +0 -7
- package/node_modules/underscore/modules/wrap.js +0 -8
- package/node_modules/underscore/modules/zip.js +0 -6
- package/node_modules/underscore/package.json +0 -76
- package/node_modules/underscore/underscore-esm-min.js +0 -5
- package/node_modules/underscore/underscore-esm-min.js.map +0 -1
- package/node_modules/underscore/underscore-esm.js +0 -2026
- package/node_modules/underscore/underscore-esm.js.map +0 -1
- package/node_modules/underscore/underscore-min.js +0 -6
- package/node_modules/underscore/underscore-min.js.map +0 -1
- package/node_modules/underscore/underscore.js +0 -2034
- package/node_modules/underscore/underscore.js.map +0 -1
- package/node_modules/word-wrap/LICENSE +0 -21
- package/node_modules/word-wrap/README.md +0 -201
- package/node_modules/word-wrap/index.d.ts +0 -50
- package/node_modules/word-wrap/index.js +0 -61
- package/node_modules/word-wrap/package.json +0 -77
|
@@ -1,721 +0,0 @@
|
|
|
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
|
-
}
|