@plumile/ui 0.1.113 → 0.1.115
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/lib/esm/_virtual/_rolldown/runtime.js +5 -5
- package/lib/esm/atomic/atoms/modal/Modal.js +14 -14
- package/lib/esm/atomic/atoms/modal/Modal.js.map +1 -1
- package/lib/esm/atomic/molecules/markdown/components/MarkdownArticleContainer.css.js +1 -0
- package/lib/esm/atomic/molecules/markdown/components/MarkdownTableCell.css.js +0 -1
- package/lib/esm/focus/focusable.js +1 -1
- package/lib/esm/focus/focusable.js.map +1 -1
- package/lib/esm/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/architecture-7EHR7CIX.js +3 -0
- package/lib/esm/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/chunk-4EGX6M5U.js +37 -0
- package/lib/esm/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/chunk-4EGX6M5U.js.map +1 -0
- package/lib/esm/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/chunk-5DO6E6H7.js +25 -0
- package/lib/esm/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/chunk-5DO6E6H7.js.map +1 -0
- package/lib/esm/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/{chunk-LIHQZDEY.js → chunk-BR22UD5L.js} +18 -21
- package/lib/esm/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/chunk-BR22UD5L.js.map +1 -0
- package/lib/esm/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/chunk-FHYWG6QK.js +25 -0
- package/lib/esm/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/chunk-FHYWG6QK.js.map +1 -0
- package/lib/esm/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/chunk-MPE355IW.js +25 -0
- package/lib/esm/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/chunk-MPE355IW.js.map +1 -0
- package/lib/esm/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/chunk-MZUSXYTE.js +32 -0
- package/lib/esm/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/chunk-MZUSXYTE.js.map +1 -0
- package/lib/esm/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/chunk-N66VUXT2.js +56 -0
- package/lib/esm/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/chunk-N66VUXT2.js.map +1 -0
- package/lib/esm/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/chunk-NNHCCRGN.js +20648 -0
- package/lib/esm/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/chunk-NNHCCRGN.js.map +1 -0
- package/lib/esm/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/chunk-PUPMXCY4.js +25 -0
- package/lib/esm/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/chunk-PUPMXCY4.js.map +1 -0
- package/lib/esm/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/chunk-UIBZB4QT.js +25 -0
- package/lib/esm/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/chunk-UIBZB4QT.js.map +1 -0
- package/lib/esm/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/chunk-WCWK7LTN.js +33 -0
- package/lib/esm/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/chunk-WCWK7LTN.js.map +1 -0
- package/lib/esm/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/eventmodeling-FCH6USID.js +3 -0
- package/lib/esm/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/gitGraph-WXDBUCRP.js +3 -0
- package/lib/esm/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/info-J43DQDTF.js +3 -0
- package/lib/esm/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/packet-YPE3B663.js +3 -0
- package/lib/esm/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/pie-LRSECV5Y.js +3 -0
- package/lib/esm/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/radar-GUYGQ44K.js +3 -0
- package/lib/esm/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/treeView-BLDUP644.js +3 -0
- package/lib/esm/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/treemap-LRROVOQU.js +3 -0
- package/lib/esm/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/wardley-L42UT6IY.js +3 -0
- package/lib/esm/node_modules/@mermaid-js/parser/dist/mermaid-parser.core.js +24 -19
- package/lib/esm/node_modules/@mermaid-js/parser/dist/mermaid-parser.core.js.map +1 -1
- package/lib/esm/node_modules/dagre-d3-es/src/dagre/greedy-fas.js +8 -8
- package/lib/esm/node_modules/dagre-d3-es/src/dagre/layout.js +105 -105
- package/lib/esm/node_modules/dagre-d3-es/src/dagre/nesting-graph.js +12 -12
- package/lib/esm/node_modules/dagre-d3-es/src/dagre/order/cross-count.js +8 -8
- package/lib/esm/node_modules/dagre-d3-es/src/dagre/order/index.js +12 -12
- package/lib/esm/node_modules/dagre-d3-es/src/dagre/order/init-order.js +6 -6
- package/lib/esm/node_modules/dagre-d3-es/src/dagre/order/resolve-conflicts.js +7 -7
- package/lib/esm/node_modules/dagre-d3-es/src/dagre/order/sort-subgraph.js +9 -9
- package/lib/esm/node_modules/dagre-d3-es/src/dagre/order/sort.js +7 -7
- package/lib/esm/node_modules/dagre-d3-es/src/dagre/position/bk.js +53 -53
- package/lib/esm/node_modules/dagre-d3-es/src/dagre/position/index.js +5 -5
- package/lib/esm/node_modules/dagre-d3-es/src/dagre/rank/network-simplex.js +26 -26
- package/lib/esm/node_modules/dagre-d3-es/src/dagre/rank/util.js +9 -9
- package/lib/esm/node_modules/dagre-d3-es/src/dagre/util.js +54 -54
- package/lib/esm/node_modules/dagre-d3-es/src/graphlib/graph.js +45 -45
- package/lib/esm/node_modules/dagre-d3-es/src/graphlib/json.js +18 -18
- package/lib/esm/node_modules/lodash-es/_arrayLikeKeys.js +8 -8
- package/lib/esm/node_modules/lodash-es/_baseAssign.js +3 -3
- package/lib/esm/node_modules/lodash-es/_baseClone.js +24 -24
- package/lib/esm/node_modules/lodash-es/_baseForOwn.js +3 -3
- package/lib/esm/node_modules/lodash-es/_baseGetAllKeys.js +3 -3
- package/lib/esm/node_modules/lodash-es/_baseIsEqualDeep.js +12 -12
- package/lib/esm/node_modules/lodash-es/_baseIteratee.js +4 -4
- package/lib/esm/node_modules/lodash-es/_baseMatchesProperty.js +9 -9
- package/lib/esm/node_modules/lodash-es/_baseMerge.js +6 -6
- package/lib/esm/node_modules/lodash-es/_baseMergeDeep.js +15 -15
- package/lib/esm/node_modules/lodash-es/_baseOrderBy.js +14 -14
- package/lib/esm/node_modules/lodash-es/_baseSet.js +8 -8
- package/lib/esm/node_modules/lodash-es/_baseSetToString.js +5 -5
- package/lib/esm/node_modules/lodash-es/_baseToString.js +11 -11
- package/lib/esm/node_modules/lodash-es/_baseUniq.js +7 -7
- package/lib/esm/node_modules/lodash-es/_copySymbols.js +3 -3
- package/lib/esm/node_modules/lodash-es/_createSet.js +6 -6
- package/lib/esm/node_modules/lodash-es/_equalByTag.js +18 -18
- package/lib/esm/node_modules/lodash-es/_flatRest.js +4 -4
- package/lib/esm/node_modules/lodash-es/_getAllKeys.js +3 -3
- package/lib/esm/node_modules/lodash-es/_getAllKeysIn.js +4 -4
- package/lib/esm/node_modules/lodash-es/_getSymbolsIn.js +3 -3
- package/lib/esm/node_modules/lodash-es/_hasPath.js +5 -5
- package/lib/esm/node_modules/lodash-es/_initCloneObject.js +4 -4
- package/lib/esm/node_modules/lodash-es/_isFlattenable.js +3 -3
- package/lib/esm/node_modules/lodash-es/_isIterateeCall.js +6 -6
- package/lib/esm/node_modules/lodash-es/_mapCacheClear.js +6 -6
- package/lib/esm/node_modules/lodash-es/findIndex.js +4 -4
- package/lib/esm/node_modules/lodash-es/forEach.js +3 -3
- package/lib/esm/node_modules/lodash-es/forIn.js +3 -3
- package/lib/esm/node_modules/lodash-es/isEmpty.js +8 -8
- package/lib/esm/node_modules/lodash-es/isPlainObject.js +4 -4
- package/lib/esm/node_modules/lodash-es/isString.js +3 -3
- package/lib/esm/node_modules/lodash-es/keys.js +4 -4
- package/lib/esm/node_modules/lodash-es/keysIn.js +3 -3
- package/lib/esm/node_modules/lodash-es/map.js +3 -3
- package/lib/esm/node_modules/lodash-es/mapValues.js +5 -5
- package/lib/esm/node_modules/lodash-es/max.js +3 -3
- package/lib/esm/node_modules/lodash-es/min.js +3 -3
- package/lib/esm/node_modules/lodash-es/minBy.js +3 -3
- package/lib/esm/node_modules/lodash-es/reduce.js +5 -5
- package/lib/esm/node_modules/lodash-es/size.js +4 -4
- package/lib/esm/node_modules/lodash-es/sortBy.js +6 -6
- package/lib/esm/node_modules/lodash-es/union.js +6 -6
- package/lib/esm/node_modules/mermaid/dist/chunks/mermaid.core/chunk-5PVQY5BW.js +146 -146
- package/lib/esm/node_modules/mermaid/dist/chunks/mermaid.core/chunk-5PVQY5BW.js.map +1 -1
- package/lib/esm/node_modules/mermaid/dist/mermaid.core.js +374 -374
- package/lib/esm/node_modules/mermaid/dist/mermaid.core.js.map +1 -1
- package/lib/types/atomic/atoms/modal/Modal.d.ts.map +1 -1
- package/package.json +2 -2
- package/lib/esm/node_modules/@chevrotain/gast/lib/src/helpers.js +0 -27
- package/lib/esm/node_modules/@chevrotain/gast/lib/src/helpers.js.map +0 -1
- package/lib/esm/node_modules/@chevrotain/gast/lib/src/model.js +0 -155
- package/lib/esm/node_modules/@chevrotain/gast/lib/src/model.js.map +0 -1
- package/lib/esm/node_modules/@chevrotain/gast/lib/src/visitor.js +0 -45
- package/lib/esm/node_modules/@chevrotain/gast/lib/src/visitor.js.map +0 -1
- package/lib/esm/node_modules/@chevrotain/regexp-to-ast/lib/src/api.js +0 -2
- package/lib/esm/node_modules/@chevrotain/regexp-to-ast/lib/src/base-regexp-visitor.js +0 -89
- package/lib/esm/node_modules/@chevrotain/regexp-to-ast/lib/src/base-regexp-visitor.js.map +0 -1
- package/lib/esm/node_modules/@chevrotain/regexp-to-ast/lib/src/character-classes.js +0 -39
- package/lib/esm/node_modules/@chevrotain/regexp-to-ast/lib/src/character-classes.js.map +0 -1
- package/lib/esm/node_modules/@chevrotain/regexp-to-ast/lib/src/regexp-parser.js +0 -600
- package/lib/esm/node_modules/@chevrotain/regexp-to-ast/lib/src/regexp-parser.js.map +0 -1
- package/lib/esm/node_modules/@chevrotain/regexp-to-ast/lib/src/utils.js +0 -29
- package/lib/esm/node_modules/@chevrotain/regexp-to-ast/lib/src/utils.js.map +0 -1
- package/lib/esm/node_modules/@chevrotain/utils/lib/src/print.js +0 -13
- package/lib/esm/node_modules/@chevrotain/utils/lib/src/print.js.map +0 -1
- package/lib/esm/node_modules/@chevrotain/utils/lib/src/timer.js +0 -12
- package/lib/esm/node_modules/@chevrotain/utils/lib/src/timer.js.map +0 -1
- package/lib/esm/node_modules/@chevrotain/utils/lib/src/to-fast-properties.js +0 -14
- package/lib/esm/node_modules/@chevrotain/utils/lib/src/to-fast-properties.js.map +0 -1
- package/lib/esm/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/architecture-YZFGNWBL.js +0 -3
- package/lib/esm/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/chunk-2KRD3SAO.js +0 -28
- package/lib/esm/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/chunk-2KRD3SAO.js.map +0 -1
- package/lib/esm/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/chunk-67CJDMHE.js +0 -28
- package/lib/esm/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/chunk-67CJDMHE.js.map +0 -1
- package/lib/esm/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/chunk-7N4EOEYR.js +0 -40
- package/lib/esm/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/chunk-7N4EOEYR.js.map +0 -1
- package/lib/esm/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/chunk-AA7GKIK3.js +0 -35
- package/lib/esm/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/chunk-AA7GKIK3.js.map +0 -1
- package/lib/esm/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/chunk-CIAEETIT.js +0 -28
- package/lib/esm/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/chunk-CIAEETIT.js.map +0 -1
- package/lib/esm/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/chunk-FOC6F5B3.js +0 -28
- package/lib/esm/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/chunk-FOC6F5B3.js.map +0 -1
- package/lib/esm/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/chunk-K5T4RW27.js +0 -1210
- package/lib/esm/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/chunk-K5T4RW27.js.map +0 -1
- package/lib/esm/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/chunk-KGLVRYIC.js +0 -28
- package/lib/esm/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/chunk-KGLVRYIC.js.map +0 -1
- package/lib/esm/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/chunk-LIHQZDEY.js.map +0 -1
- package/lib/esm/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/chunk-ORNJ4GCN.js +0 -36
- package/lib/esm/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/chunk-ORNJ4GCN.js.map +0 -1
- package/lib/esm/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/gitGraph-7Q5UKJZL.js +0 -3
- package/lib/esm/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/info-OMHHGYJF.js +0 -3
- package/lib/esm/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/packet-4T2RLAQJ.js +0 -3
- package/lib/esm/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/pie-ZZUOXDRM.js +0 -3
- package/lib/esm/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/radar-PYXPWWZC.js +0 -3
- package/lib/esm/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/treeView-SZITEDCU.js +0 -3
- package/lib/esm/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/treemap-W4RFUUIX.js +0 -3
- package/lib/esm/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/wardley-RL74JXVD.js +0 -3
- package/lib/esm/node_modules/chevrotain/lib/src/api.js +0 -10
- package/lib/esm/node_modules/chevrotain/lib/src/lang/lang_extensions.js +0 -14
- package/lib/esm/node_modules/chevrotain/lib/src/lang/lang_extensions.js.map +0 -1
- package/lib/esm/node_modules/chevrotain/lib/src/parse/constants.js +0 -6
- package/lib/esm/node_modules/chevrotain/lib/src/parse/constants.js.map +0 -1
- package/lib/esm/node_modules/chevrotain/lib/src/parse/cst/cst.js +0 -17
- package/lib/esm/node_modules/chevrotain/lib/src/parse/cst/cst.js.map +0 -1
- package/lib/esm/node_modules/chevrotain/lib/src/parse/cst/cst_visitor.js +0 -53
- package/lib/esm/node_modules/chevrotain/lib/src/parse/cst/cst_visitor.js.map +0 -1
- package/lib/esm/node_modules/chevrotain/lib/src/parse/errors_public.js +0 -81
- package/lib/esm/node_modules/chevrotain/lib/src/parse/errors_public.js.map +0 -1
- package/lib/esm/node_modules/chevrotain/lib/src/parse/exceptions_public.js +0 -37
- package/lib/esm/node_modules/chevrotain/lib/src/parse/exceptions_public.js.map +0 -1
- package/lib/esm/node_modules/chevrotain/lib/src/parse/grammar/checks.js +0 -279
- package/lib/esm/node_modules/chevrotain/lib/src/parse/grammar/checks.js.map +0 -1
- package/lib/esm/node_modules/chevrotain/lib/src/parse/grammar/first.js +0 -27
- package/lib/esm/node_modules/chevrotain/lib/src/parse/grammar/first.js.map +0 -1
- package/lib/esm/node_modules/chevrotain/lib/src/parse/grammar/follow.js +0 -32
- package/lib/esm/node_modules/chevrotain/lib/src/parse/grammar/follow.js.map +0 -1
- package/lib/esm/node_modules/chevrotain/lib/src/parse/grammar/gast/gast_resolver_public.js +0 -18
- package/lib/esm/node_modules/chevrotain/lib/src/parse/grammar/gast/gast_resolver_public.js.map +0 -1
- package/lib/esm/node_modules/chevrotain/lib/src/parse/grammar/interpreter.js +0 -269
- package/lib/esm/node_modules/chevrotain/lib/src/parse/grammar/interpreter.js.map +0 -1
- package/lib/esm/node_modules/chevrotain/lib/src/parse/grammar/keys.js +0 -8
- package/lib/esm/node_modules/chevrotain/lib/src/parse/grammar/keys.js.map +0 -1
- package/lib/esm/node_modules/chevrotain/lib/src/parse/grammar/llk_lookahead.js +0 -45
- package/lib/esm/node_modules/chevrotain/lib/src/parse/grammar/llk_lookahead.js.map +0 -1
- package/lib/esm/node_modules/chevrotain/lib/src/parse/grammar/lookahead.js +0 -245
- package/lib/esm/node_modules/chevrotain/lib/src/parse/grammar/lookahead.js.map +0 -1
- package/lib/esm/node_modules/chevrotain/lib/src/parse/grammar/resolver.js +0 -34
- package/lib/esm/node_modules/chevrotain/lib/src/parse/grammar/resolver.js.map +0 -1
- package/lib/esm/node_modules/chevrotain/lib/src/parse/grammar/rest.js +0 -60
- package/lib/esm/node_modules/chevrotain/lib/src/parse/grammar/rest.js.map +0 -1
- package/lib/esm/node_modules/chevrotain/lib/src/parse/parser/parser.js +0 -118
- package/lib/esm/node_modules/chevrotain/lib/src/parse/parser/parser.js.map +0 -1
- package/lib/esm/node_modules/chevrotain/lib/src/parse/parser/traits/error_handler.js +0 -50
- package/lib/esm/node_modules/chevrotain/lib/src/parse/parser/traits/error_handler.js.map +0 -1
- package/lib/esm/node_modules/chevrotain/lib/src/parse/parser/traits/gast_recorder.js +0 -170
- package/lib/esm/node_modules/chevrotain/lib/src/parse/parser/traits/gast_recorder.js.map +0 -1
- package/lib/esm/node_modules/chevrotain/lib/src/parse/parser/traits/lexer_adapter.js +0 -47
- package/lib/esm/node_modules/chevrotain/lib/src/parse/parser/traits/lexer_adapter.js.map +0 -1
- package/lib/esm/node_modules/chevrotain/lib/src/parse/parser/traits/looksahead.js +0 -111
- package/lib/esm/node_modules/chevrotain/lib/src/parse/parser/traits/looksahead.js.map +0 -1
- package/lib/esm/node_modules/chevrotain/lib/src/parse/parser/traits/perf_tracer.js +0 -25
- package/lib/esm/node_modules/chevrotain/lib/src/parse/parser/traits/perf_tracer.js.map +0 -1
- package/lib/esm/node_modules/chevrotain/lib/src/parse/parser/traits/recognizer_api.js +0 -316
- package/lib/esm/node_modules/chevrotain/lib/src/parse/parser/traits/recognizer_api.js.map +0 -1
- package/lib/esm/node_modules/chevrotain/lib/src/parse/parser/traits/recognizer_engine.js +0 -291
- package/lib/esm/node_modules/chevrotain/lib/src/parse/parser/traits/recognizer_engine.js.map +0 -1
- package/lib/esm/node_modules/chevrotain/lib/src/parse/parser/traits/recoverable.js +0 -147
- package/lib/esm/node_modules/chevrotain/lib/src/parse/parser/traits/recoverable.js.map +0 -1
- package/lib/esm/node_modules/chevrotain/lib/src/parse/parser/traits/tree_builder.js +0 -96
- package/lib/esm/node_modules/chevrotain/lib/src/parse/parser/traits/tree_builder.js.map +0 -1
- package/lib/esm/node_modules/chevrotain/lib/src/parse/parser/utils/apply_mixins.js +0 -15
- package/lib/esm/node_modules/chevrotain/lib/src/parse/parser/utils/apply_mixins.js.map +0 -1
- package/lib/esm/node_modules/chevrotain/lib/src/scan/lexer.js +0 -439
- package/lib/esm/node_modules/chevrotain/lib/src/scan/lexer.js.map +0 -1
- package/lib/esm/node_modules/chevrotain/lib/src/scan/lexer_errors_public.js +0 -13
- package/lib/esm/node_modules/chevrotain/lib/src/scan/lexer_errors_public.js.map +0 -1
- package/lib/esm/node_modules/chevrotain/lib/src/scan/lexer_public.js +0 -257
- package/lib/esm/node_modules/chevrotain/lib/src/scan/lexer_public.js.map +0 -1
- package/lib/esm/node_modules/chevrotain/lib/src/scan/reg_exp.js +0 -157
- package/lib/esm/node_modules/chevrotain/lib/src/scan/reg_exp.js.map +0 -1
- package/lib/esm/node_modules/chevrotain/lib/src/scan/reg_exp_parser.js +0 -19
- package/lib/esm/node_modules/chevrotain/lib/src/scan/reg_exp_parser.js.map +0 -1
- package/lib/esm/node_modules/chevrotain/lib/src/scan/tokens.js +0 -68
- package/lib/esm/node_modules/chevrotain/lib/src/scan/tokens.js.map +0 -1
- package/lib/esm/node_modules/chevrotain/lib/src/scan/tokens_public.js +0 -43
- package/lib/esm/node_modules/chevrotain/lib/src/scan/tokens_public.js.map +0 -1
- package/lib/esm/node_modules/chevrotain-allstar/lib/all-star-lookahead.js +0 -365
- package/lib/esm/node_modules/chevrotain-allstar/lib/all-star-lookahead.js.map +0 -1
- package/lib/esm/node_modules/chevrotain-allstar/lib/atn.js +0 -197
- package/lib/esm/node_modules/chevrotain-allstar/lib/atn.js.map +0 -1
- package/lib/esm/node_modules/chevrotain-allstar/lib/dfa.js +0 -35
- package/lib/esm/node_modules/chevrotain-allstar/lib/dfa.js.map +0 -1
- package/lib/esm/node_modules/chevrotain-allstar/lib/index.js +0 -1
- package/lib/esm/node_modules/langium/lib/default-module.js +0 -89
- package/lib/esm/node_modules/langium/lib/default-module.js.map +0 -1
- package/lib/esm/node_modules/langium/lib/dependency-injection.js +0 -62
- package/lib/esm/node_modules/langium/lib/dependency-injection.js.map +0 -1
- package/lib/esm/node_modules/langium/lib/documentation/comment-provider.js +0 -15
- package/lib/esm/node_modules/langium/lib/documentation/comment-provider.js.map +0 -1
- package/lib/esm/node_modules/langium/lib/documentation/documentation-provider.js +0 -40
- package/lib/esm/node_modules/langium/lib/documentation/documentation-provider.js.map +0 -1
- package/lib/esm/node_modules/langium/lib/documentation/jsdoc.js +0 -307
- package/lib/esm/node_modules/langium/lib/documentation/jsdoc.js.map +0 -1
- package/lib/esm/node_modules/langium/lib/languages/generated/ast.js +0 -900
- package/lib/esm/node_modules/langium/lib/languages/generated/ast.js.map +0 -1
- package/lib/esm/node_modules/langium/lib/languages/grammar-config.js +0 -17
- package/lib/esm/node_modules/langium/lib/languages/grammar-config.js.map +0 -1
- package/lib/esm/node_modules/langium/lib/parser/async-parser.js +0 -13
- package/lib/esm/node_modules/langium/lib/parser/async-parser.js.map +0 -1
- package/lib/esm/node_modules/langium/lib/parser/completion-parser-builder.js +0 -11
- package/lib/esm/node_modules/langium/lib/parser/completion-parser-builder.js.map +0 -1
- package/lib/esm/node_modules/langium/lib/parser/cst-node-builder.js +0 -164
- package/lib/esm/node_modules/langium/lib/parser/cst-node-builder.js.map +0 -1
- package/lib/esm/node_modules/langium/lib/parser/langium-parser-builder.js +0 -15
- package/lib/esm/node_modules/langium/lib/parser/langium-parser-builder.js.map +0 -1
- package/lib/esm/node_modules/langium/lib/parser/langium-parser.js +0 -397
- package/lib/esm/node_modules/langium/lib/parser/langium-parser.js.map +0 -1
- package/lib/esm/node_modules/langium/lib/parser/lexer.js +0 -54
- package/lib/esm/node_modules/langium/lib/parser/lexer.js.map +0 -1
- package/lib/esm/node_modules/langium/lib/parser/parser-builder-base.js +0 -278
- package/lib/esm/node_modules/langium/lib/parser/parser-builder-base.js.map +0 -1
- package/lib/esm/node_modules/langium/lib/parser/token-builder.js +0 -65
- package/lib/esm/node_modules/langium/lib/parser/token-builder.js.map +0 -1
- package/lib/esm/node_modules/langium/lib/parser/value-converter.js +0 -82
- package/lib/esm/node_modules/langium/lib/parser/value-converter.js.map +0 -1
- package/lib/esm/node_modules/langium/lib/references/linker.js +0 -195
- package/lib/esm/node_modules/langium/lib/references/linker.js.map +0 -1
- package/lib/esm/node_modules/langium/lib/references/name-provider.js +0 -17
- package/lib/esm/node_modules/langium/lib/references/name-provider.js.map +0 -1
- package/lib/esm/node_modules/langium/lib/references/references.js +0 -80
- package/lib/esm/node_modules/langium/lib/references/references.js.map +0 -1
- package/lib/esm/node_modules/langium/lib/references/scope-computation.js +0 -39
- package/lib/esm/node_modules/langium/lib/references/scope-computation.js.map +0 -1
- package/lib/esm/node_modules/langium/lib/references/scope-provider.js +0 -38
- package/lib/esm/node_modules/langium/lib/references/scope-provider.js.map +0 -1
- package/lib/esm/node_modules/langium/lib/references/scope.js +0 -46
- package/lib/esm/node_modules/langium/lib/references/scope.js.map +0 -1
- package/lib/esm/node_modules/langium/lib/serializer/hydrator.js +0 -129
- package/lib/esm/node_modules/langium/lib/serializer/hydrator.js.map +0 -1
- package/lib/esm/node_modules/langium/lib/serializer/json-serializer.js +0 -149
- package/lib/esm/node_modules/langium/lib/serializer/json-serializer.js.map +0 -1
- package/lib/esm/node_modules/langium/lib/service-registry.js +0 -41
- package/lib/esm/node_modules/langium/lib/service-registry.js.map +0 -1
- package/lib/esm/node_modules/langium/lib/syntax-tree.js +0 -74
- package/lib/esm/node_modules/langium/lib/syntax-tree.js.map +0 -1
- package/lib/esm/node_modules/langium/lib/utils/ast-utils.js +0 -124
- package/lib/esm/node_modules/langium/lib/utils/ast-utils.js.map +0 -1
- package/lib/esm/node_modules/langium/lib/utils/caching.js +0 -84
- package/lib/esm/node_modules/langium/lib/utils/caching.js.map +0 -1
- package/lib/esm/node_modules/langium/lib/utils/cancellation.js +0 -9
- package/lib/esm/node_modules/langium/lib/utils/cancellation.js.map +0 -1
- package/lib/esm/node_modules/langium/lib/utils/collections.js +0 -89
- package/lib/esm/node_modules/langium/lib/utils/collections.js.map +0 -1
- package/lib/esm/node_modules/langium/lib/utils/cst-utils.js +0 -77
- package/lib/esm/node_modules/langium/lib/utils/cst-utils.js.map +0 -1
- package/lib/esm/node_modules/langium/lib/utils/disposable.js +0 -12
- package/lib/esm/node_modules/langium/lib/utils/disposable.js.map +0 -1
- package/lib/esm/node_modules/langium/lib/utils/errors.js +0 -13
- package/lib/esm/node_modules/langium/lib/utils/errors.js.map +0 -1
- package/lib/esm/node_modules/langium/lib/utils/event.js +0 -9
- package/lib/esm/node_modules/langium/lib/utils/event.js.map +0 -1
- package/lib/esm/node_modules/langium/lib/utils/grammar-loader.js +0 -26
- package/lib/esm/node_modules/langium/lib/utils/grammar-loader.js.map +0 -1
- package/lib/esm/node_modules/langium/lib/utils/grammar-utils.js +0 -221
- package/lib/esm/node_modules/langium/lib/utils/grammar-utils.js.map +0 -1
- package/lib/esm/node_modules/langium/lib/utils/promise-utils.js +0 -31
- package/lib/esm/node_modules/langium/lib/utils/promise-utils.js.map +0 -1
- package/lib/esm/node_modules/langium/lib/utils/regexp-utils.js +0 -146
- package/lib/esm/node_modules/langium/lib/utils/regexp-utils.js.map +0 -1
- package/lib/esm/node_modules/langium/lib/utils/stream.js +0 -331
- package/lib/esm/node_modules/langium/lib/utils/stream.js.map +0 -1
- package/lib/esm/node_modules/langium/lib/utils/uri-utils.js +0 -111
- package/lib/esm/node_modules/langium/lib/utils/uri-utils.js.map +0 -1
- package/lib/esm/node_modules/langium/lib/validation/document-validator.js +0 -213
- package/lib/esm/node_modules/langium/lib/validation/document-validator.js.map +0 -1
- package/lib/esm/node_modules/langium/lib/validation/validation-registry.js +0 -90
- package/lib/esm/node_modules/langium/lib/validation/validation-registry.js.map +0 -1
- package/lib/esm/node_modules/langium/lib/workspace/ast-descriptions.js +0 -61
- package/lib/esm/node_modules/langium/lib/workspace/ast-descriptions.js.map +0 -1
- package/lib/esm/node_modules/langium/lib/workspace/ast-node-locator.js +0 -32
- package/lib/esm/node_modules/langium/lib/workspace/ast-node-locator.js.map +0 -1
- package/lib/esm/node_modules/langium/lib/workspace/configuration.js +0 -55
- package/lib/esm/node_modules/langium/lib/workspace/configuration.js.map +0 -1
- package/lib/esm/node_modules/langium/lib/workspace/document-builder.js +0 -200
- package/lib/esm/node_modules/langium/lib/workspace/document-builder.js.map +0 -1
- package/lib/esm/node_modules/langium/lib/workspace/documents.js +0 -146
- package/lib/esm/node_modules/langium/lib/workspace/documents.js.map +0 -1
- package/lib/esm/node_modules/langium/lib/workspace/file-system-provider.js +0 -37
- package/lib/esm/node_modules/langium/lib/workspace/file-system-provider.js.map +0 -1
- package/lib/esm/node_modules/langium/lib/workspace/index-manager.js +0 -53
- package/lib/esm/node_modules/langium/lib/workspace/index-manager.js.map +0 -1
- package/lib/esm/node_modules/langium/lib/workspace/workspace-lock.js +0 -46
- package/lib/esm/node_modules/langium/lib/workspace/workspace-lock.js.map +0 -1
- package/lib/esm/node_modules/langium/lib/workspace/workspace-manager.js +0 -70
- package/lib/esm/node_modules/langium/lib/workspace/workspace-manager.js.map +0 -1
- package/lib/esm/node_modules/lodash-es/flatMap.js +0 -10
- package/lib/esm/node_modules/lodash-es/flatMap.js.map +0 -1
- package/lib/esm/node_modules/lodash-es/uniqBy.js +0 -10
- package/lib/esm/node_modules/lodash-es/uniqBy.js.map +0 -1
- package/lib/esm/node_modules/vscode-jsonrpc/lib/common/cancellation.js +0 -61
- package/lib/esm/node_modules/vscode-jsonrpc/lib/common/cancellation.js.map +0 -1
- package/lib/esm/node_modules/vscode-jsonrpc/lib/common/events.js +0 -68
- package/lib/esm/node_modules/vscode-jsonrpc/lib/common/events.js.map +0 -1
- package/lib/esm/node_modules/vscode-jsonrpc/lib/common/is.js +0 -38
- package/lib/esm/node_modules/vscode-jsonrpc/lib/common/is.js.map +0 -1
- package/lib/esm/node_modules/vscode-jsonrpc/lib/common/ral.js +0 -22
- package/lib/esm/node_modules/vscode-jsonrpc/lib/common/ral.js.map +0 -1
- package/lib/esm/node_modules/vscode-languageserver-protocol/lib/browser/main.js +0 -32
- package/lib/esm/node_modules/vscode-languageserver-protocol/lib/browser/main.js.map +0 -1
- package/lib/esm/node_modules/vscode-languageserver-protocol/lib/common/api.js +0 -40
- package/lib/esm/node_modules/vscode-languageserver-protocol/lib/common/api.js.map +0 -1
- package/lib/esm/node_modules/vscode-languageserver-protocol/lib/common/connection.js +0 -16
- package/lib/esm/node_modules/vscode-languageserver-protocol/lib/common/connection.js.map +0 -1
- package/lib/esm/node_modules/vscode-languageserver-protocol/lib/common/messages.js +0 -35
- package/lib/esm/node_modules/vscode-languageserver-protocol/lib/common/messages.js.map +0 -1
- package/lib/esm/node_modules/vscode-languageserver-protocol/lib/common/protocol.callHierarchy.js +0 -23
- package/lib/esm/node_modules/vscode-languageserver-protocol/lib/common/protocol.callHierarchy.js.map +0 -1
- package/lib/esm/node_modules/vscode-languageserver-protocol/lib/common/protocol.colorProvider.js +0 -19
- package/lib/esm/node_modules/vscode-languageserver-protocol/lib/common/protocol.colorProvider.js.map +0 -1
- package/lib/esm/node_modules/vscode-languageserver-protocol/lib/common/protocol.configuration.js +0 -15
- package/lib/esm/node_modules/vscode-languageserver-protocol/lib/common/protocol.configuration.js.map +0 -1
- package/lib/esm/node_modules/vscode-languageserver-protocol/lib/common/protocol.declaration.js +0 -15
- package/lib/esm/node_modules/vscode-languageserver-protocol/lib/common/protocol.declaration.js.map +0 -1
- package/lib/esm/node_modules/vscode-languageserver-protocol/lib/common/protocol.diagnostic.js +0 -37
- package/lib/esm/node_modules/vscode-languageserver-protocol/lib/common/protocol.diagnostic.js.map +0 -1
- package/lib/esm/node_modules/vscode-languageserver-protocol/lib/common/protocol.fileOperations.js +0 -39
- package/lib/esm/node_modules/vscode-languageserver-protocol/lib/common/protocol.fileOperations.js.map +0 -1
- package/lib/esm/node_modules/vscode-languageserver-protocol/lib/common/protocol.foldingRange.js +0 -19
- package/lib/esm/node_modules/vscode-languageserver-protocol/lib/common/protocol.foldingRange.js.map +0 -1
- package/lib/esm/node_modules/vscode-languageserver-protocol/lib/common/protocol.implementation.js +0 -15
- package/lib/esm/node_modules/vscode-languageserver-protocol/lib/common/protocol.implementation.js.map +0 -1
- package/lib/esm/node_modules/vscode-languageserver-protocol/lib/common/protocol.inlayHint.js +0 -23
- package/lib/esm/node_modules/vscode-languageserver-protocol/lib/common/protocol.inlayHint.js.map +0 -1
- package/lib/esm/node_modules/vscode-languageserver-protocol/lib/common/protocol.inlineCompletion.js +0 -15
- package/lib/esm/node_modules/vscode-languageserver-protocol/lib/common/protocol.inlineCompletion.js.map +0 -1
- package/lib/esm/node_modules/vscode-languageserver-protocol/lib/common/protocol.inlineValue.js +0 -19
- package/lib/esm/node_modules/vscode-languageserver-protocol/lib/common/protocol.inlineValue.js.map +0 -1
- package/lib/esm/node_modules/vscode-languageserver-protocol/lib/common/protocol.js +0 -678
- package/lib/esm/node_modules/vscode-languageserver-protocol/lib/common/protocol.js.map +0 -1
- package/lib/esm/node_modules/vscode-languageserver-protocol/lib/common/protocol.linkedEditingRange.js +0 -15
- package/lib/esm/node_modules/vscode-languageserver-protocol/lib/common/protocol.linkedEditingRange.js.map +0 -1
- package/lib/esm/node_modules/vscode-languageserver-protocol/lib/common/protocol.moniker.js +0 -23
- package/lib/esm/node_modules/vscode-languageserver-protocol/lib/common/protocol.moniker.js.map +0 -1
- package/lib/esm/node_modules/vscode-languageserver-protocol/lib/common/protocol.notebook.js +0 -130
- package/lib/esm/node_modules/vscode-languageserver-protocol/lib/common/protocol.notebook.js.map +0 -1
- package/lib/esm/node_modules/vscode-languageserver-protocol/lib/common/protocol.progress.js +0 -28
- package/lib/esm/node_modules/vscode-languageserver-protocol/lib/common/protocol.progress.js.map +0 -1
- package/lib/esm/node_modules/vscode-languageserver-protocol/lib/common/protocol.selectionRange.js +0 -15
- package/lib/esm/node_modules/vscode-languageserver-protocol/lib/common/protocol.selectionRange.js.map +0 -1
- package/lib/esm/node_modules/vscode-languageserver-protocol/lib/common/protocol.semanticTokens.js +0 -35
- package/lib/esm/node_modules/vscode-languageserver-protocol/lib/common/protocol.semanticTokens.js.map +0 -1
- package/lib/esm/node_modules/vscode-languageserver-protocol/lib/common/protocol.showDocument.js +0 -15
- package/lib/esm/node_modules/vscode-languageserver-protocol/lib/common/protocol.showDocument.js.map +0 -1
- package/lib/esm/node_modules/vscode-languageserver-protocol/lib/common/protocol.typeDefinition.js +0 -15
- package/lib/esm/node_modules/vscode-languageserver-protocol/lib/common/protocol.typeDefinition.js.map +0 -1
- package/lib/esm/node_modules/vscode-languageserver-protocol/lib/common/protocol.typeHierarchy.js +0 -23
- package/lib/esm/node_modules/vscode-languageserver-protocol/lib/common/protocol.typeHierarchy.js.map +0 -1
- package/lib/esm/node_modules/vscode-languageserver-protocol/lib/common/protocol.workspaceFolder.js +0 -19
- package/lib/esm/node_modules/vscode-languageserver-protocol/lib/common/protocol.workspaceFolder.js.map +0 -1
- package/lib/esm/node_modules/vscode-languageserver-protocol/lib/common/utils/is.js +0 -46
- package/lib/esm/node_modules/vscode-languageserver-protocol/lib/common/utils/is.js.map +0 -1
- package/lib/esm/node_modules/vscode-languageserver-protocol/node_modules/vscode-jsonrpc/browser.js +0 -11
- package/lib/esm/node_modules/vscode-languageserver-protocol/node_modules/vscode-jsonrpc/browser.js.map +0 -1
- package/lib/esm/node_modules/vscode-languageserver-protocol/node_modules/vscode-jsonrpc/lib/browser/main.js +0 -56
- package/lib/esm/node_modules/vscode-languageserver-protocol/node_modules/vscode-jsonrpc/lib/browser/main.js.map +0 -1
- package/lib/esm/node_modules/vscode-languageserver-protocol/node_modules/vscode-jsonrpc/lib/browser/ril.js +0 -124
- package/lib/esm/node_modules/vscode-languageserver-protocol/node_modules/vscode-jsonrpc/lib/browser/ril.js.map +0 -1
- package/lib/esm/node_modules/vscode-languageserver-protocol/node_modules/vscode-jsonrpc/lib/common/api.js +0 -341
- package/lib/esm/node_modules/vscode-languageserver-protocol/node_modules/vscode-jsonrpc/lib/common/api.js.map +0 -1
- package/lib/esm/node_modules/vscode-languageserver-protocol/node_modules/vscode-jsonrpc/lib/common/cancellation.js +0 -61
- package/lib/esm/node_modules/vscode-languageserver-protocol/node_modules/vscode-jsonrpc/lib/common/cancellation.js.map +0 -1
- package/lib/esm/node_modules/vscode-languageserver-protocol/node_modules/vscode-jsonrpc/lib/common/connection.js +0 -651
- package/lib/esm/node_modules/vscode-languageserver-protocol/node_modules/vscode-jsonrpc/lib/common/connection.js.map +0 -1
- package/lib/esm/node_modules/vscode-languageserver-protocol/node_modules/vscode-jsonrpc/lib/common/disposable.js +0 -17
- package/lib/esm/node_modules/vscode-languageserver-protocol/node_modules/vscode-jsonrpc/lib/common/disposable.js.map +0 -1
- package/lib/esm/node_modules/vscode-languageserver-protocol/node_modules/vscode-jsonrpc/lib/common/events.js +0 -68
- package/lib/esm/node_modules/vscode-languageserver-protocol/node_modules/vscode-jsonrpc/lib/common/events.js.map +0 -1
- package/lib/esm/node_modules/vscode-languageserver-protocol/node_modules/vscode-jsonrpc/lib/common/is.js +0 -38
- package/lib/esm/node_modules/vscode-languageserver-protocol/node_modules/vscode-jsonrpc/lib/common/is.js.map +0 -1
- package/lib/esm/node_modules/vscode-languageserver-protocol/node_modules/vscode-jsonrpc/lib/common/linkedMap.js +0 -239
- package/lib/esm/node_modules/vscode-languageserver-protocol/node_modules/vscode-jsonrpc/lib/common/linkedMap.js.map +0 -1
- package/lib/esm/node_modules/vscode-languageserver-protocol/node_modules/vscode-jsonrpc/lib/common/messageBuffer.js +0 -97
- package/lib/esm/node_modules/vscode-languageserver-protocol/node_modules/vscode-jsonrpc/lib/common/messageBuffer.js.map +0 -1
- package/lib/esm/node_modules/vscode-languageserver-protocol/node_modules/vscode-jsonrpc/lib/common/messageReader.js +0 -133
- package/lib/esm/node_modules/vscode-languageserver-protocol/node_modules/vscode-jsonrpc/lib/common/messageReader.js.map +0 -1
- package/lib/esm/node_modules/vscode-languageserver-protocol/node_modules/vscode-jsonrpc/lib/common/messageWriter.js +0 -89
- package/lib/esm/node_modules/vscode-languageserver-protocol/node_modules/vscode-jsonrpc/lib/common/messageWriter.js.map +0 -1
- package/lib/esm/node_modules/vscode-languageserver-protocol/node_modules/vscode-jsonrpc/lib/common/messages.js +0 -165
- package/lib/esm/node_modules/vscode-languageserver-protocol/node_modules/vscode-jsonrpc/lib/common/messages.js.map +0 -1
- package/lib/esm/node_modules/vscode-languageserver-protocol/node_modules/vscode-jsonrpc/lib/common/ral.js +0 -22
- package/lib/esm/node_modules/vscode-languageserver-protocol/node_modules/vscode-jsonrpc/lib/common/ral.js.map +0 -1
- package/lib/esm/node_modules/vscode-languageserver-protocol/node_modules/vscode-jsonrpc/lib/common/semaphore.js +0 -48
- package/lib/esm/node_modules/vscode-languageserver-protocol/node_modules/vscode-jsonrpc/lib/common/semaphore.js.map +0 -1
- package/lib/esm/node_modules/vscode-languageserver-protocol/node_modules/vscode-jsonrpc/lib/common/sharedArrayCancellation.js +0 -62
- package/lib/esm/node_modules/vscode-languageserver-protocol/node_modules/vscode-jsonrpc/lib/common/sharedArrayCancellation.js.map +0 -1
- package/lib/esm/node_modules/vscode-languageserver-textdocument/lib/esm/main.js +0 -142
- package/lib/esm/node_modules/vscode-languageserver-textdocument/lib/esm/main.js.map +0 -1
- package/lib/esm/node_modules/vscode-languageserver-types/lib/esm/main.js +0 -1088
- package/lib/esm/node_modules/vscode-languageserver-types/lib/esm/main.js.map +0 -1
- package/lib/esm/node_modules/vscode-uri/lib/esm/index.js +0 -377
- package/lib/esm/node_modules/vscode-uri/lib/esm/index.js.map +0 -1
|
@@ -1,47 +0,0 @@
|
|
|
1
|
-
import { END_OF_FILE as e } from "../parser.js";
|
|
2
|
-
//#region ../../node_modules/chevrotain/lib/src/parse/parser/traits/lexer_adapter.js
|
|
3
|
-
var t = class {
|
|
4
|
-
initLexerAdapter() {
|
|
5
|
-
this.tokVector = [], this.tokVectorLength = 0, this.currIdx = -1;
|
|
6
|
-
}
|
|
7
|
-
set input(e) {
|
|
8
|
-
if (this.selfAnalysisDone !== !0) throw Error("Missing <performSelfAnalysis> invocation at the end of the Parser's constructor.");
|
|
9
|
-
this.reset(), this.tokVector = e, this.tokVectorLength = e.length;
|
|
10
|
-
}
|
|
11
|
-
get input() {
|
|
12
|
-
return this.tokVector;
|
|
13
|
-
}
|
|
14
|
-
SKIP_TOKEN() {
|
|
15
|
-
return this.currIdx <= this.tokVectorLength - 2 ? (this.consumeToken(), this.LA_FAST(1)) : e;
|
|
16
|
-
}
|
|
17
|
-
LA_FAST(e) {
|
|
18
|
-
let t = this.currIdx + e;
|
|
19
|
-
return this.tokVector[t];
|
|
20
|
-
}
|
|
21
|
-
LA(t) {
|
|
22
|
-
let n = this.currIdx + t;
|
|
23
|
-
return n < 0 || this.tokVectorLength <= n ? e : this.tokVector[n];
|
|
24
|
-
}
|
|
25
|
-
consumeToken() {
|
|
26
|
-
this.currIdx++;
|
|
27
|
-
}
|
|
28
|
-
exportLexerState() {
|
|
29
|
-
return this.currIdx;
|
|
30
|
-
}
|
|
31
|
-
importLexerState(e) {
|
|
32
|
-
this.currIdx = e;
|
|
33
|
-
}
|
|
34
|
-
resetLexerState() {
|
|
35
|
-
this.currIdx = -1;
|
|
36
|
-
}
|
|
37
|
-
moveToTerminatedState() {
|
|
38
|
-
this.currIdx = this.tokVectorLength - 1;
|
|
39
|
-
}
|
|
40
|
-
getLexerPosition() {
|
|
41
|
-
return this.exportLexerState();
|
|
42
|
-
}
|
|
43
|
-
};
|
|
44
|
-
//#endregion
|
|
45
|
-
export { t as LexerAdapter };
|
|
46
|
-
|
|
47
|
-
//# sourceMappingURL=lexer_adapter.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"lexer_adapter.js","names":[],"sources":["../../../../../../../../../../../node_modules/chevrotain/lib/src/parse/parser/traits/lexer_adapter.js"],"sourcesContent":["import { END_OF_FILE } from \"../parser.js\";\n/**\n * Trait responsible abstracting over the interaction with Lexer output (Token vector).\n *\n * This could be generalized to support other kinds of lexers, e.g.\n * - Just in Time Lexing / Lexer-Less parsing.\n * - Streaming Lexer.\n */\nexport class LexerAdapter {\n initLexerAdapter() {\n this.tokVector = [];\n this.tokVectorLength = 0;\n this.currIdx = -1;\n }\n set input(newInput) {\n // @ts-ignore - `this parameter` not supported in setters/getters\n // - https://www.typescriptlang.org/docs/handbook/functions.html#this-parameters\n if (this.selfAnalysisDone !== true) {\n throw Error(`Missing <performSelfAnalysis> invocation at the end of the Parser's constructor.`);\n }\n // @ts-ignore - `this parameter` not supported in setters/getters\n // - https://www.typescriptlang.org/docs/handbook/functions.html#this-parameters\n this.reset();\n this.tokVector = newInput;\n this.tokVectorLength = newInput.length;\n }\n get input() {\n return this.tokVector;\n }\n // skips a token and returns the next token\n SKIP_TOKEN() {\n if (this.currIdx <= this.tokVectorLength - 2) {\n this.consumeToken();\n return this.LA_FAST(1);\n }\n else {\n return END_OF_FILE;\n }\n }\n // Lexer (accessing Token vector) related methods which can be overridden to implement lazy lexers\n // or lexers dependent on parser context.\n // Performance Optimized version of LA without bound checks\n // note that token beyond the end of the token vector EOF Token will still be returned\n // due to using sentinels at the end of the token vector. (for K=max lookahead)\n LA_FAST(howMuch) {\n const soughtIdx = this.currIdx + howMuch;\n return this.tokVector[soughtIdx];\n }\n LA(howMuch) {\n const soughtIdx = this.currIdx + howMuch;\n if (soughtIdx < 0 || this.tokVectorLength <= soughtIdx) {\n return END_OF_FILE;\n }\n else {\n return this.tokVector[soughtIdx];\n }\n }\n consumeToken() {\n this.currIdx++;\n }\n exportLexerState() {\n return this.currIdx;\n }\n importLexerState(newState) {\n this.currIdx = newState;\n }\n resetLexerState() {\n this.currIdx = -1;\n }\n moveToTerminatedState() {\n this.currIdx = this.tokVectorLength - 1;\n }\n getLexerPosition() {\n return this.exportLexerState();\n }\n}\n//# sourceMappingURL=lexer_adapter.js.map"],"x_google_ignoreList":[0],"mappings":";;AAQA,IAAa,IAAb,MAA0B;CACtB,mBAAmB;EAGf,AAFA,KAAK,YAAY,EAAE,EACnB,KAAK,kBAAkB,GACvB,KAAK,UAAU;;CAEnB,IAAI,MAAM,GAAU;EAGhB,IAAI,KAAK,qBAAqB,IAC1B,MAAM,MAAM,mFAAmF;EAMnG,AAFA,KAAK,OAAO,EACZ,KAAK,YAAY,GACjB,KAAK,kBAAkB,EAAS;;CAEpC,IAAI,QAAQ;EACR,OAAO,KAAK;;CAGhB,aAAa;EAML,OALA,KAAK,WAAW,KAAK,kBAAkB,KACvC,KAAK,cAAc,EACZ,KAAK,QAAQ,EAAE,IAGf;;CAQf,QAAQ,GAAS;EACb,IAAM,IAAY,KAAK,UAAU;EACjC,OAAO,KAAK,UAAU;;CAE1B,GAAG,GAAS;EACR,IAAM,IAAY,KAAK,UAAU;EAK7B,OAJA,IAAY,KAAK,KAAK,mBAAmB,IAClC,IAGA,KAAK,UAAU;;CAG9B,eAAe;EACX,KAAK;;CAET,mBAAmB;EACf,OAAO,KAAK;;CAEhB,iBAAiB,GAAU;EACvB,KAAK,UAAU;;CAEnB,kBAAkB;EACd,KAAK,UAAU;;CAEnB,wBAAwB;EACpB,KAAK,UAAU,KAAK,kBAAkB;;CAE1C,mBAAmB;EACf,OAAO,KAAK,kBAAkB"}
|
|
@@ -1,111 +0,0 @@
|
|
|
1
|
-
import { GAstVisitor as e } from "../../../../../../@chevrotain/gast/lib/src/visitor.js";
|
|
2
|
-
import { getProductionDslName as t } from "../../../../../../@chevrotain/gast/lib/src/helpers.js";
|
|
3
|
-
import { AT_LEAST_ONE_IDX as n, AT_LEAST_ONE_SEP_IDX as r, MANY_SEP_IDX as i, getKeyForAutomaticLookahead as a } from "../../grammar/keys.js";
|
|
4
|
-
import { LLkLookaheadStrategy as o } from "../../grammar/llk_lookahead.js";
|
|
5
|
-
import { DEFAULT_PARSER_CONFIG as s } from "../parser.js";
|
|
6
|
-
//#region ../../node_modules/chevrotain/lib/src/parse/parser/traits/looksahead.js
|
|
7
|
-
var c = class {
|
|
8
|
-
initLooksAhead(e) {
|
|
9
|
-
this.dynamicTokensEnabled = Object.hasOwn(e, "dynamicTokensEnabled") ? e.dynamicTokensEnabled : s.dynamicTokensEnabled, this.maxLookahead = Object.hasOwn(e, "maxLookahead") ? e.maxLookahead : s.maxLookahead, this.lookaheadStrategy = Object.hasOwn(e, "lookaheadStrategy") ? e.lookaheadStrategy : new o({ maxLookahead: this.maxLookahead }), this.lookAheadFuncsCache = /* @__PURE__ */ new Map();
|
|
10
|
-
}
|
|
11
|
-
preComputeLookaheadFunctions(e) {
|
|
12
|
-
e.forEach((e) => {
|
|
13
|
-
this.TRACE_INIT(`${e.name} Rule Lookahead`, () => {
|
|
14
|
-
let { alternation: o, repetition: s, option: c, repetitionMandatory: l, repetitionMandatoryWithSeparator: d, repetitionWithSeparator: f } = u(e);
|
|
15
|
-
o.forEach((n) => {
|
|
16
|
-
let r = n.idx === 0 ? "" : n.idx;
|
|
17
|
-
this.TRACE_INIT(`${t(n)}${r}`, () => {
|
|
18
|
-
let t = this.lookaheadStrategy.buildLookaheadForAlternation({
|
|
19
|
-
prodOccurrence: n.idx,
|
|
20
|
-
rule: e,
|
|
21
|
-
maxLookahead: n.maxLookahead || this.maxLookahead,
|
|
22
|
-
hasPredicates: n.hasPredicates,
|
|
23
|
-
dynamicTokensEnabled: this.dynamicTokensEnabled
|
|
24
|
-
}), r = a(this.fullRuleNameToShort[e.name], 256, n.idx);
|
|
25
|
-
this.setLaFuncCache(r, t);
|
|
26
|
-
});
|
|
27
|
-
}), s.forEach((n) => {
|
|
28
|
-
this.computeLookaheadFunc(e, n.idx, 768, "Repetition", n.maxLookahead, t(n));
|
|
29
|
-
}), c.forEach((n) => {
|
|
30
|
-
this.computeLookaheadFunc(e, n.idx, 512, "Option", n.maxLookahead, t(n));
|
|
31
|
-
}), l.forEach((r) => {
|
|
32
|
-
this.computeLookaheadFunc(e, r.idx, n, "RepetitionMandatory", r.maxLookahead, t(r));
|
|
33
|
-
}), d.forEach((n) => {
|
|
34
|
-
this.computeLookaheadFunc(e, n.idx, r, "RepetitionMandatoryWithSeparator", n.maxLookahead, t(n));
|
|
35
|
-
}), f.forEach((n) => {
|
|
36
|
-
this.computeLookaheadFunc(e, n.idx, i, "RepetitionWithSeparator", n.maxLookahead, t(n));
|
|
37
|
-
});
|
|
38
|
-
});
|
|
39
|
-
});
|
|
40
|
-
}
|
|
41
|
-
computeLookaheadFunc(e, t, n, r, i, o) {
|
|
42
|
-
this.TRACE_INIT(`${o}${t === 0 ? "" : t}`, () => {
|
|
43
|
-
let o = this.lookaheadStrategy.buildLookaheadForOptional({
|
|
44
|
-
prodOccurrence: t,
|
|
45
|
-
rule: e,
|
|
46
|
-
maxLookahead: i || this.maxLookahead,
|
|
47
|
-
dynamicTokensEnabled: this.dynamicTokensEnabled,
|
|
48
|
-
prodType: r
|
|
49
|
-
}), s = a(this.fullRuleNameToShort[e.name], n, t);
|
|
50
|
-
this.setLaFuncCache(s, o);
|
|
51
|
-
});
|
|
52
|
-
}
|
|
53
|
-
getKeyForAutomaticLookahead(e, t) {
|
|
54
|
-
return a(this.currRuleShortName, e, t);
|
|
55
|
-
}
|
|
56
|
-
getLaFuncFromCache(e) {
|
|
57
|
-
return this.lookAheadFuncsCache.get(e);
|
|
58
|
-
}
|
|
59
|
-
/* istanbul ignore next */
|
|
60
|
-
setLaFuncCache(e, t) {
|
|
61
|
-
this.lookAheadFuncsCache.set(e, t);
|
|
62
|
-
}
|
|
63
|
-
}, l = new class extends e {
|
|
64
|
-
constructor() {
|
|
65
|
-
super(...arguments), this.dslMethods = {
|
|
66
|
-
option: [],
|
|
67
|
-
alternation: [],
|
|
68
|
-
repetition: [],
|
|
69
|
-
repetitionWithSeparator: [],
|
|
70
|
-
repetitionMandatory: [],
|
|
71
|
-
repetitionMandatoryWithSeparator: []
|
|
72
|
-
};
|
|
73
|
-
}
|
|
74
|
-
reset() {
|
|
75
|
-
this.dslMethods = {
|
|
76
|
-
option: [],
|
|
77
|
-
alternation: [],
|
|
78
|
-
repetition: [],
|
|
79
|
-
repetitionWithSeparator: [],
|
|
80
|
-
repetitionMandatory: [],
|
|
81
|
-
repetitionMandatoryWithSeparator: []
|
|
82
|
-
};
|
|
83
|
-
}
|
|
84
|
-
visitOption(e) {
|
|
85
|
-
this.dslMethods.option.push(e);
|
|
86
|
-
}
|
|
87
|
-
visitRepetitionWithSeparator(e) {
|
|
88
|
-
this.dslMethods.repetitionWithSeparator.push(e);
|
|
89
|
-
}
|
|
90
|
-
visitRepetitionMandatory(e) {
|
|
91
|
-
this.dslMethods.repetitionMandatory.push(e);
|
|
92
|
-
}
|
|
93
|
-
visitRepetitionMandatoryWithSeparator(e) {
|
|
94
|
-
this.dslMethods.repetitionMandatoryWithSeparator.push(e);
|
|
95
|
-
}
|
|
96
|
-
visitRepetition(e) {
|
|
97
|
-
this.dslMethods.repetition.push(e);
|
|
98
|
-
}
|
|
99
|
-
visitAlternation(e) {
|
|
100
|
-
this.dslMethods.alternation.push(e);
|
|
101
|
-
}
|
|
102
|
-
}();
|
|
103
|
-
function u(e) {
|
|
104
|
-
l.reset(), e.accept(l);
|
|
105
|
-
let t = l.dslMethods;
|
|
106
|
-
return l.reset(), t;
|
|
107
|
-
}
|
|
108
|
-
//#endregion
|
|
109
|
-
export { c as LooksAhead };
|
|
110
|
-
|
|
111
|
-
//# sourceMappingURL=looksahead.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"looksahead.js","names":[],"sources":["../../../../../../../../../../../node_modules/chevrotain/lib/src/parse/parser/traits/looksahead.js"],"sourcesContent":["import { DEFAULT_PARSER_CONFIG } from \"../parser.js\";\nimport { AT_LEAST_ONE_IDX, AT_LEAST_ONE_SEP_IDX, getKeyForAutomaticLookahead, MANY_IDX, MANY_SEP_IDX, OPTION_IDX, OR_IDX, } from \"../../grammar/keys.js\";\nimport { GAstVisitor, getProductionDslName, } from \"@chevrotain/gast\";\nimport { LLkLookaheadStrategy } from \"../../grammar/llk_lookahead.js\";\n/**\n * Trait responsible for the lookahead related utilities and optimizations.\n */\nexport class LooksAhead {\n initLooksAhead(config) {\n this.dynamicTokensEnabled = Object.hasOwn(config, \"dynamicTokensEnabled\")\n ? config.dynamicTokensEnabled // assumes end user provides the correct config value/type\n : DEFAULT_PARSER_CONFIG.dynamicTokensEnabled;\n this.maxLookahead = Object.hasOwn(config, \"maxLookahead\")\n ? config.maxLookahead // assumes end user provides the correct config value/type\n : DEFAULT_PARSER_CONFIG.maxLookahead;\n this.lookaheadStrategy = Object.hasOwn(config, \"lookaheadStrategy\")\n ? config.lookaheadStrategy // assumes end user provides the correct config value/type\n : new LLkLookaheadStrategy({ maxLookahead: this.maxLookahead });\n this.lookAheadFuncsCache = new Map();\n }\n preComputeLookaheadFunctions(rules) {\n rules.forEach((currRule) => {\n this.TRACE_INIT(`${currRule.name} Rule Lookahead`, () => {\n const { alternation, repetition, option, repetitionMandatory, repetitionMandatoryWithSeparator, repetitionWithSeparator, } = collectMethods(currRule);\n alternation.forEach((currProd) => {\n const prodIdx = currProd.idx === 0 ? \"\" : currProd.idx;\n this.TRACE_INIT(`${getProductionDslName(currProd)}${prodIdx}`, () => {\n const laFunc = this.lookaheadStrategy.buildLookaheadForAlternation({\n prodOccurrence: currProd.idx,\n rule: currRule,\n maxLookahead: currProd.maxLookahead || this.maxLookahead,\n hasPredicates: currProd.hasPredicates,\n dynamicTokensEnabled: this.dynamicTokensEnabled,\n });\n const key = getKeyForAutomaticLookahead(this.fullRuleNameToShort[currRule.name], OR_IDX, currProd.idx);\n this.setLaFuncCache(key, laFunc);\n });\n });\n repetition.forEach((currProd) => {\n this.computeLookaheadFunc(currRule, currProd.idx, MANY_IDX, \"Repetition\", currProd.maxLookahead, getProductionDslName(currProd));\n });\n option.forEach((currProd) => {\n this.computeLookaheadFunc(currRule, currProd.idx, OPTION_IDX, \"Option\", currProd.maxLookahead, getProductionDslName(currProd));\n });\n repetitionMandatory.forEach((currProd) => {\n this.computeLookaheadFunc(currRule, currProd.idx, AT_LEAST_ONE_IDX, \"RepetitionMandatory\", currProd.maxLookahead, getProductionDslName(currProd));\n });\n repetitionMandatoryWithSeparator.forEach((currProd) => {\n this.computeLookaheadFunc(currRule, currProd.idx, AT_LEAST_ONE_SEP_IDX, \"RepetitionMandatoryWithSeparator\", currProd.maxLookahead, getProductionDslName(currProd));\n });\n repetitionWithSeparator.forEach((currProd) => {\n this.computeLookaheadFunc(currRule, currProd.idx, MANY_SEP_IDX, \"RepetitionWithSeparator\", currProd.maxLookahead, getProductionDslName(currProd));\n });\n });\n });\n }\n computeLookaheadFunc(rule, prodOccurrence, prodKey, prodType, prodMaxLookahead, dslMethodName) {\n this.TRACE_INIT(`${dslMethodName}${prodOccurrence === 0 ? \"\" : prodOccurrence}`, () => {\n const laFunc = this.lookaheadStrategy.buildLookaheadForOptional({\n prodOccurrence,\n rule,\n maxLookahead: prodMaxLookahead || this.maxLookahead,\n dynamicTokensEnabled: this.dynamicTokensEnabled,\n prodType,\n });\n const key = getKeyForAutomaticLookahead(this.fullRuleNameToShort[rule.name], prodKey, prodOccurrence);\n this.setLaFuncCache(key, laFunc);\n });\n }\n // this actually returns a number, but it is always used as a string (object prop key)\n getKeyForAutomaticLookahead(dslMethodIdx, occurrence) {\n return getKeyForAutomaticLookahead(this.currRuleShortName, dslMethodIdx, occurrence);\n }\n getLaFuncFromCache(key) {\n return this.lookAheadFuncsCache.get(key);\n }\n /* istanbul ignore next */\n setLaFuncCache(key, value) {\n this.lookAheadFuncsCache.set(key, value);\n }\n}\nclass DslMethodsCollectorVisitor extends GAstVisitor {\n constructor() {\n super(...arguments);\n this.dslMethods = {\n option: [],\n alternation: [],\n repetition: [],\n repetitionWithSeparator: [],\n repetitionMandatory: [],\n repetitionMandatoryWithSeparator: [],\n };\n }\n reset() {\n this.dslMethods = {\n option: [],\n alternation: [],\n repetition: [],\n repetitionWithSeparator: [],\n repetitionMandatory: [],\n repetitionMandatoryWithSeparator: [],\n };\n }\n visitOption(option) {\n this.dslMethods.option.push(option);\n }\n visitRepetitionWithSeparator(manySep) {\n this.dslMethods.repetitionWithSeparator.push(manySep);\n }\n visitRepetitionMandatory(atLeastOne) {\n this.dslMethods.repetitionMandatory.push(atLeastOne);\n }\n visitRepetitionMandatoryWithSeparator(atLeastOneSep) {\n this.dslMethods.repetitionMandatoryWithSeparator.push(atLeastOneSep);\n }\n visitRepetition(many) {\n this.dslMethods.repetition.push(many);\n }\n visitAlternation(or) {\n this.dslMethods.alternation.push(or);\n }\n}\nconst collectorVisitor = new DslMethodsCollectorVisitor();\nexport function collectMethods(rule) {\n collectorVisitor.reset();\n rule.accept(collectorVisitor);\n const dslMethods = collectorVisitor.dslMethods;\n // avoid uncleaned references\n collectorVisitor.re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AAQ;EAChB,KAAK,WAAW,OAAO,KAAK,EAAO;;CAEvC,6BAA6B,GAAS;EAClC,KAAK,WAAW,wBAAwB,KAAK,EAAQ;;CAEzD,yBAAyB,GAAY;EACjC,KAAK,WAAW,oBAAoB,KAAK,EAAW;;CAExD,sCAAsC,GAAe;EACjD,KAAK,WAAW,iCAAiC,KAAK,EAAc;;CAExE,gBAAgB,GAAM;EAClB,KAAK,WAAW,WAAW,KAAK,EAAK;;CAEzC,iBAAiB,GAAI;EACjB,KAAK,WAAW,YAAY,KAAK,EAAG;;GAGa;AACzD,SAAgB,EAAe,GAAM;CAEjC,AADA,EAAiB,OAAO,EACxB,EAAK,OAAO,EAAiB;CAC7B,IAAM,IAAa,EAAiB;CAGpC,OADA,EAAiB,OAAO,EACjB"}
|
|
@@ -1,25 +0,0 @@
|
|
|
1
|
-
import { timer as e } from "../../../../../../@chevrotain/utils/lib/src/timer.js";
|
|
2
|
-
import { DEFAULT_PARSER_CONFIG as t } from "../parser.js";
|
|
3
|
-
//#region ../../node_modules/chevrotain/lib/src/parse/parser/traits/perf_tracer.js
|
|
4
|
-
var n = class {
|
|
5
|
-
initPerformanceTracer(e) {
|
|
6
|
-
if (Object.hasOwn(e, "traceInitPerf")) {
|
|
7
|
-
let t = e.traceInitPerf, n = typeof t == "number";
|
|
8
|
-
this.traceInitMaxIdent = n ? t : Infinity, this.traceInitPerf = n ? t > 0 : t;
|
|
9
|
-
} else this.traceInitMaxIdent = 0, this.traceInitPerf = t.traceInitPerf;
|
|
10
|
-
this.traceInitIndent = -1;
|
|
11
|
-
}
|
|
12
|
-
TRACE_INIT(t, n) {
|
|
13
|
-
if (this.traceInitPerf === !0) {
|
|
14
|
-
this.traceInitIndent++;
|
|
15
|
-
let r = Array(this.traceInitIndent + 1).join(" ");
|
|
16
|
-
this.traceInitIndent < this.traceInitMaxIdent && console.log(`${r}--> <${t}>`);
|
|
17
|
-
let { time: i, value: a } = e(n), o = i > 10 ? console.warn : console.log;
|
|
18
|
-
return this.traceInitIndent < this.traceInitMaxIdent && o(`${r}<-- <${t}> time: ${i}ms`), this.traceInitIndent--, a;
|
|
19
|
-
} else return n();
|
|
20
|
-
}
|
|
21
|
-
};
|
|
22
|
-
//#endregion
|
|
23
|
-
export { n as PerformanceTracer };
|
|
24
|
-
|
|
25
|
-
//# sourceMappingURL=perf_tracer.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"perf_tracer.js","names":[],"sources":["../../../../../../../../../../../node_modules/chevrotain/lib/src/parse/parser/traits/perf_tracer.js"],"sourcesContent":["import { timer } from \"@chevrotain/utils\";\nimport { DEFAULT_PARSER_CONFIG } from \"../parser.js\";\n/**\n * Trait responsible for runtime parsing errors.\n */\nexport class PerformanceTracer {\n initPerformanceTracer(config) {\n if (Object.hasOwn(config, \"traceInitPerf\")) {\n const userTraceInitPerf = config.traceInitPerf;\n const traceIsNumber = typeof userTraceInitPerf === \"number\";\n this.traceInitMaxIdent = traceIsNumber\n ? userTraceInitPerf\n : Infinity;\n this.traceInitPerf = traceIsNumber\n ? userTraceInitPerf > 0\n : userTraceInitPerf; // assumes end user provides the correct config value/type\n }\n else {\n this.traceInitMaxIdent = 0;\n this.traceInitPerf = DEFAULT_PARSER_CONFIG.traceInitPerf;\n }\n this.traceInitIndent = -1;\n }\n TRACE_INIT(phaseDesc, phaseImpl) {\n // No need to optimize this using NOOP pattern because\n // It is not called in a hot spot...\n if (this.traceInitPerf === true) {\n this.traceInitIndent++;\n const indent = new Array(this.traceInitIndent + 1).join(\"\\t\");\n if (this.traceInitIndent < this.traceInitMaxIdent) {\n console.log(`${indent}--> <${phaseDesc}>`);\n }\n const { time, value } = timer(phaseImpl);\n /* istanbul ignore next - Difficult to reproduce specific performance behavior (>10ms) in tests */\n const traceMethod = time > 10 ? console.warn : console.log;\n if (this.traceInitIndent < this.traceInitMaxIdent) {\n traceMethod(`${indent}<-- <${phaseDesc}> time: ${time}ms`);\n }\n this.traceInitIndent--;\n return value;\n }\n else {\n return phaseImpl();\n }\n }\n}\n//# sourceMappingURL=perf_tracer.js.map"],"x_google_ignoreList":[0],"mappings":";;;AAKA,IAAa,IAAb,MAA+B;CAC3B,sBAAsB,GAAQ;EAC1B,IAAI,OAAO,OAAO,GAAQ,gBAAgB,EAAE;GACxC,IAAM,IAAoB,EAAO,eAC3B,IAAgB,OAAO,KAAsB;GAInD,AAHA,KAAK,oBAAoB,IACnB,IACA,UACN,KAAK,gBAAgB,IACf,IAAoB,IACpB;SAIN,AADA,KAAK,oBAAoB,GACzB,KAAK,gBAAgB,EAAsB;EAE/C,KAAK,kBAAkB;;CAE3B,WAAW,GAAW,GAAW;EAG7B,IAAI,KAAK,kBAAkB,IAAM;GAC7B,KAAK;GACL,IAAM,IAAa,MAAM,KAAK,kBAAkB,EAAE,CAAC,KAAK,IAAK;GAC7D,AAAI,KAAK,kBAAkB,KAAK,qBAC5B,QAAQ,IAAI,GAAG,EAAO,OAAO,EAAU,GAAG;GAE9C,IAAM,EAAE,SAAM,aAAU,EAAM,EAAU,EAElC,IAAc,IAAO,KAAK,QAAQ,OAAO,QAAQ;GAKvD,OAJI,KAAK,kBAAkB,KAAK,qBAC5B,EAAY,GAAG,EAAO,OAAO,EAAU,UAAU,EAAK,IAAI,EAE9D,KAAK,mBACE;SAGP,OAAO,GAAW"}
|
|
@@ -1,316 +0,0 @@
|
|
|
1
|
-
import { serializeGrammar as e } from "../../../../../../@chevrotain/gast/lib/src/model.js";
|
|
2
|
-
import { defaultGrammarValidatorErrorProvider as t } from "../../errors_public.js";
|
|
3
|
-
import { validateRuleIsOverridden as n } from "../../grammar/checks.js";
|
|
4
|
-
import { isRecognitionException as r } from "../../exceptions_public.js";
|
|
5
|
-
import { DEFAULT_RULE_CONFIG as i, ParserDefinitionErrorType as a } from "../parser.js";
|
|
6
|
-
//#region ../../node_modules/chevrotain/lib/src/parse/parser/traits/recognizer_api.js
|
|
7
|
-
var o = class {
|
|
8
|
-
ACTION(e) {
|
|
9
|
-
return e.call(this);
|
|
10
|
-
}
|
|
11
|
-
consume(e, t, n) {
|
|
12
|
-
return this.consumeInternal(t, e, n);
|
|
13
|
-
}
|
|
14
|
-
subrule(e, t, n) {
|
|
15
|
-
return this.subruleInternal(t, e, n);
|
|
16
|
-
}
|
|
17
|
-
option(e, t) {
|
|
18
|
-
return this.optionInternal(t, e);
|
|
19
|
-
}
|
|
20
|
-
or(e, t) {
|
|
21
|
-
return this.orInternal(t, e);
|
|
22
|
-
}
|
|
23
|
-
many(e, t) {
|
|
24
|
-
return this.manyInternal(e, t);
|
|
25
|
-
}
|
|
26
|
-
atLeastOne(e, t) {
|
|
27
|
-
return this.atLeastOneInternal(e, t);
|
|
28
|
-
}
|
|
29
|
-
CONSUME(e, t) {
|
|
30
|
-
return this.consumeInternal(e, 0, t);
|
|
31
|
-
}
|
|
32
|
-
CONSUME1(e, t) {
|
|
33
|
-
return this.consumeInternal(e, 1, t);
|
|
34
|
-
}
|
|
35
|
-
CONSUME2(e, t) {
|
|
36
|
-
return this.consumeInternal(e, 2, t);
|
|
37
|
-
}
|
|
38
|
-
CONSUME3(e, t) {
|
|
39
|
-
return this.consumeInternal(e, 3, t);
|
|
40
|
-
}
|
|
41
|
-
CONSUME4(e, t) {
|
|
42
|
-
return this.consumeInternal(e, 4, t);
|
|
43
|
-
}
|
|
44
|
-
CONSUME5(e, t) {
|
|
45
|
-
return this.consumeInternal(e, 5, t);
|
|
46
|
-
}
|
|
47
|
-
CONSUME6(e, t) {
|
|
48
|
-
return this.consumeInternal(e, 6, t);
|
|
49
|
-
}
|
|
50
|
-
CONSUME7(e, t) {
|
|
51
|
-
return this.consumeInternal(e, 7, t);
|
|
52
|
-
}
|
|
53
|
-
CONSUME8(e, t) {
|
|
54
|
-
return this.consumeInternal(e, 8, t);
|
|
55
|
-
}
|
|
56
|
-
CONSUME9(e, t) {
|
|
57
|
-
return this.consumeInternal(e, 9, t);
|
|
58
|
-
}
|
|
59
|
-
SUBRULE(e, t) {
|
|
60
|
-
return this.subruleInternal(e, 0, t);
|
|
61
|
-
}
|
|
62
|
-
SUBRULE1(e, t) {
|
|
63
|
-
return this.subruleInternal(e, 1, t);
|
|
64
|
-
}
|
|
65
|
-
SUBRULE2(e, t) {
|
|
66
|
-
return this.subruleInternal(e, 2, t);
|
|
67
|
-
}
|
|
68
|
-
SUBRULE3(e, t) {
|
|
69
|
-
return this.subruleInternal(e, 3, t);
|
|
70
|
-
}
|
|
71
|
-
SUBRULE4(e, t) {
|
|
72
|
-
return this.subruleInternal(e, 4, t);
|
|
73
|
-
}
|
|
74
|
-
SUBRULE5(e, t) {
|
|
75
|
-
return this.subruleInternal(e, 5, t);
|
|
76
|
-
}
|
|
77
|
-
SUBRULE6(e, t) {
|
|
78
|
-
return this.subruleInternal(e, 6, t);
|
|
79
|
-
}
|
|
80
|
-
SUBRULE7(e, t) {
|
|
81
|
-
return this.subruleInternal(e, 7, t);
|
|
82
|
-
}
|
|
83
|
-
SUBRULE8(e, t) {
|
|
84
|
-
return this.subruleInternal(e, 8, t);
|
|
85
|
-
}
|
|
86
|
-
SUBRULE9(e, t) {
|
|
87
|
-
return this.subruleInternal(e, 9, t);
|
|
88
|
-
}
|
|
89
|
-
OPTION(e) {
|
|
90
|
-
return this.optionInternal(e, 0);
|
|
91
|
-
}
|
|
92
|
-
OPTION1(e) {
|
|
93
|
-
return this.optionInternal(e, 1);
|
|
94
|
-
}
|
|
95
|
-
OPTION2(e) {
|
|
96
|
-
return this.optionInternal(e, 2);
|
|
97
|
-
}
|
|
98
|
-
OPTION3(e) {
|
|
99
|
-
return this.optionInternal(e, 3);
|
|
100
|
-
}
|
|
101
|
-
OPTION4(e) {
|
|
102
|
-
return this.optionInternal(e, 4);
|
|
103
|
-
}
|
|
104
|
-
OPTION5(e) {
|
|
105
|
-
return this.optionInternal(e, 5);
|
|
106
|
-
}
|
|
107
|
-
OPTION6(e) {
|
|
108
|
-
return this.optionInternal(e, 6);
|
|
109
|
-
}
|
|
110
|
-
OPTION7(e) {
|
|
111
|
-
return this.optionInternal(e, 7);
|
|
112
|
-
}
|
|
113
|
-
OPTION8(e) {
|
|
114
|
-
return this.optionInternal(e, 8);
|
|
115
|
-
}
|
|
116
|
-
OPTION9(e) {
|
|
117
|
-
return this.optionInternal(e, 9);
|
|
118
|
-
}
|
|
119
|
-
OR(e) {
|
|
120
|
-
return this.orInternal(e, 0);
|
|
121
|
-
}
|
|
122
|
-
OR1(e) {
|
|
123
|
-
return this.orInternal(e, 1);
|
|
124
|
-
}
|
|
125
|
-
OR2(e) {
|
|
126
|
-
return this.orInternal(e, 2);
|
|
127
|
-
}
|
|
128
|
-
OR3(e) {
|
|
129
|
-
return this.orInternal(e, 3);
|
|
130
|
-
}
|
|
131
|
-
OR4(e) {
|
|
132
|
-
return this.orInternal(e, 4);
|
|
133
|
-
}
|
|
134
|
-
OR5(e) {
|
|
135
|
-
return this.orInternal(e, 5);
|
|
136
|
-
}
|
|
137
|
-
OR6(e) {
|
|
138
|
-
return this.orInternal(e, 6);
|
|
139
|
-
}
|
|
140
|
-
OR7(e) {
|
|
141
|
-
return this.orInternal(e, 7);
|
|
142
|
-
}
|
|
143
|
-
OR8(e) {
|
|
144
|
-
return this.orInternal(e, 8);
|
|
145
|
-
}
|
|
146
|
-
OR9(e) {
|
|
147
|
-
return this.orInternal(e, 9);
|
|
148
|
-
}
|
|
149
|
-
MANY(e) {
|
|
150
|
-
this.manyInternal(0, e);
|
|
151
|
-
}
|
|
152
|
-
MANY1(e) {
|
|
153
|
-
this.manyInternal(1, e);
|
|
154
|
-
}
|
|
155
|
-
MANY2(e) {
|
|
156
|
-
this.manyInternal(2, e);
|
|
157
|
-
}
|
|
158
|
-
MANY3(e) {
|
|
159
|
-
this.manyInternal(3, e);
|
|
160
|
-
}
|
|
161
|
-
MANY4(e) {
|
|
162
|
-
this.manyInternal(4, e);
|
|
163
|
-
}
|
|
164
|
-
MANY5(e) {
|
|
165
|
-
this.manyInternal(5, e);
|
|
166
|
-
}
|
|
167
|
-
MANY6(e) {
|
|
168
|
-
this.manyInternal(6, e);
|
|
169
|
-
}
|
|
170
|
-
MANY7(e) {
|
|
171
|
-
this.manyInternal(7, e);
|
|
172
|
-
}
|
|
173
|
-
MANY8(e) {
|
|
174
|
-
this.manyInternal(8, e);
|
|
175
|
-
}
|
|
176
|
-
MANY9(e) {
|
|
177
|
-
this.manyInternal(9, e);
|
|
178
|
-
}
|
|
179
|
-
MANY_SEP(e) {
|
|
180
|
-
this.manySepFirstInternal(0, e);
|
|
181
|
-
}
|
|
182
|
-
MANY_SEP1(e) {
|
|
183
|
-
this.manySepFirstInternal(1, e);
|
|
184
|
-
}
|
|
185
|
-
MANY_SEP2(e) {
|
|
186
|
-
this.manySepFirstInternal(2, e);
|
|
187
|
-
}
|
|
188
|
-
MANY_SEP3(e) {
|
|
189
|
-
this.manySepFirstInternal(3, e);
|
|
190
|
-
}
|
|
191
|
-
MANY_SEP4(e) {
|
|
192
|
-
this.manySepFirstInternal(4, e);
|
|
193
|
-
}
|
|
194
|
-
MANY_SEP5(e) {
|
|
195
|
-
this.manySepFirstInternal(5, e);
|
|
196
|
-
}
|
|
197
|
-
MANY_SEP6(e) {
|
|
198
|
-
this.manySepFirstInternal(6, e);
|
|
199
|
-
}
|
|
200
|
-
MANY_SEP7(e) {
|
|
201
|
-
this.manySepFirstInternal(7, e);
|
|
202
|
-
}
|
|
203
|
-
MANY_SEP8(e) {
|
|
204
|
-
this.manySepFirstInternal(8, e);
|
|
205
|
-
}
|
|
206
|
-
MANY_SEP9(e) {
|
|
207
|
-
this.manySepFirstInternal(9, e);
|
|
208
|
-
}
|
|
209
|
-
AT_LEAST_ONE(e) {
|
|
210
|
-
this.atLeastOneInternal(0, e);
|
|
211
|
-
}
|
|
212
|
-
AT_LEAST_ONE1(e) {
|
|
213
|
-
return this.atLeastOneInternal(1, e);
|
|
214
|
-
}
|
|
215
|
-
AT_LEAST_ONE2(e) {
|
|
216
|
-
this.atLeastOneInternal(2, e);
|
|
217
|
-
}
|
|
218
|
-
AT_LEAST_ONE3(e) {
|
|
219
|
-
this.atLeastOneInternal(3, e);
|
|
220
|
-
}
|
|
221
|
-
AT_LEAST_ONE4(e) {
|
|
222
|
-
this.atLeastOneInternal(4, e);
|
|
223
|
-
}
|
|
224
|
-
AT_LEAST_ONE5(e) {
|
|
225
|
-
this.atLeastOneInternal(5, e);
|
|
226
|
-
}
|
|
227
|
-
AT_LEAST_ONE6(e) {
|
|
228
|
-
this.atLeastOneInternal(6, e);
|
|
229
|
-
}
|
|
230
|
-
AT_LEAST_ONE7(e) {
|
|
231
|
-
this.atLeastOneInternal(7, e);
|
|
232
|
-
}
|
|
233
|
-
AT_LEAST_ONE8(e) {
|
|
234
|
-
this.atLeastOneInternal(8, e);
|
|
235
|
-
}
|
|
236
|
-
AT_LEAST_ONE9(e) {
|
|
237
|
-
this.atLeastOneInternal(9, e);
|
|
238
|
-
}
|
|
239
|
-
AT_LEAST_ONE_SEP(e) {
|
|
240
|
-
this.atLeastOneSepFirstInternal(0, e);
|
|
241
|
-
}
|
|
242
|
-
AT_LEAST_ONE_SEP1(e) {
|
|
243
|
-
this.atLeastOneSepFirstInternal(1, e);
|
|
244
|
-
}
|
|
245
|
-
AT_LEAST_ONE_SEP2(e) {
|
|
246
|
-
this.atLeastOneSepFirstInternal(2, e);
|
|
247
|
-
}
|
|
248
|
-
AT_LEAST_ONE_SEP3(e) {
|
|
249
|
-
this.atLeastOneSepFirstInternal(3, e);
|
|
250
|
-
}
|
|
251
|
-
AT_LEAST_ONE_SEP4(e) {
|
|
252
|
-
this.atLeastOneSepFirstInternal(4, e);
|
|
253
|
-
}
|
|
254
|
-
AT_LEAST_ONE_SEP5(e) {
|
|
255
|
-
this.atLeastOneSepFirstInternal(5, e);
|
|
256
|
-
}
|
|
257
|
-
AT_LEAST_ONE_SEP6(e) {
|
|
258
|
-
this.atLeastOneSepFirstInternal(6, e);
|
|
259
|
-
}
|
|
260
|
-
AT_LEAST_ONE_SEP7(e) {
|
|
261
|
-
this.atLeastOneSepFirstInternal(7, e);
|
|
262
|
-
}
|
|
263
|
-
AT_LEAST_ONE_SEP8(e) {
|
|
264
|
-
this.atLeastOneSepFirstInternal(8, e);
|
|
265
|
-
}
|
|
266
|
-
AT_LEAST_ONE_SEP9(e) {
|
|
267
|
-
this.atLeastOneSepFirstInternal(9, e);
|
|
268
|
-
}
|
|
269
|
-
RULE(e, n, r = i) {
|
|
270
|
-
if (this.definedRulesNames.includes(e)) {
|
|
271
|
-
let n = {
|
|
272
|
-
message: t.buildDuplicateRuleNameError({
|
|
273
|
-
topLevelRule: e,
|
|
274
|
-
grammarName: this.className
|
|
275
|
-
}),
|
|
276
|
-
type: a.DUPLICATE_RULE_NAME,
|
|
277
|
-
ruleName: e
|
|
278
|
-
};
|
|
279
|
-
this.definitionErrors.push(n);
|
|
280
|
-
}
|
|
281
|
-
this.definedRulesNames.push(e);
|
|
282
|
-
let o = this.defineRule(e, n, r);
|
|
283
|
-
return this[e] = o, o;
|
|
284
|
-
}
|
|
285
|
-
OVERRIDE_RULE(e, t, r = i) {
|
|
286
|
-
let a = n(e, this.definedRulesNames, this.className);
|
|
287
|
-
this.definitionErrors = this.definitionErrors.concat(a);
|
|
288
|
-
let o = this.defineRule(e, t, r);
|
|
289
|
-
return this[e] = o, o;
|
|
290
|
-
}
|
|
291
|
-
BACKTRACK(e, t) {
|
|
292
|
-
let n = e.coreRule ?? e;
|
|
293
|
-
return function() {
|
|
294
|
-
this.isBackTrackingStack.push(1);
|
|
295
|
-
let e = this.saveRecogState();
|
|
296
|
-
try {
|
|
297
|
-
return n.apply(this, t), !0;
|
|
298
|
-
} catch (e) {
|
|
299
|
-
if (r(e)) return !1;
|
|
300
|
-
throw e;
|
|
301
|
-
} finally {
|
|
302
|
-
this.reloadRecogState(e), this.isBackTrackingStack.pop();
|
|
303
|
-
}
|
|
304
|
-
};
|
|
305
|
-
}
|
|
306
|
-
getGAstProductions() {
|
|
307
|
-
return this.gastProductionsCache;
|
|
308
|
-
}
|
|
309
|
-
getSerializedGastProductions() {
|
|
310
|
-
return e(Object.values(this.gastProductionsCache));
|
|
311
|
-
}
|
|
312
|
-
};
|
|
313
|
-
//#endregion
|
|
314
|
-
export { o as RecognizerApi };
|
|
315
|
-
|
|
316
|
-
//# sourceMappingURL=recognizer_api.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"recognizer_api.js","names":[],"sources":["../../../../../../../../../../../node_modules/chevrotain/lib/src/parse/parser/traits/recognizer_api.js"],"sourcesContent":["import { isRecognitionException } from \"../../exceptions_public.js\";\nimport { DEFAULT_RULE_CONFIG, ParserDefinitionErrorType } from \"../parser.js\";\nimport { defaultGrammarValidatorErrorProvider } from \"../../errors_public.js\";\nimport { validateRuleIsOverridden } from \"../../grammar/checks.js\";\nimport { serializeGrammar } from \"@chevrotain/gast\";\n/**\n * This trait is responsible for implementing the public API\n * for defining Chevrotain parsers, i.e:\n * - CONSUME\n * - RULE\n * - OPTION\n * - ...\n */\nexport class RecognizerApi {\n ACTION(impl) {\n return impl.call(this);\n }\n consume(idx, tokType, options) {\n return this.consumeInternal(tokType, idx, options);\n }\n subrule(idx, ruleToCall, options) {\n return this.subruleInternal(ruleToCall, idx, options);\n }\n option(idx, actionORMethodDef) {\n return this.optionInternal(actionORMethodDef, idx);\n }\n or(idx, altsOrOpts) {\n return this.orInternal(altsOrOpts, idx);\n }\n many(idx, actionORMethodDef) {\n return this.manyInternal(idx, actionORMethodDef);\n }\n atLeastOne(idx, actionORMethodDef) {\n return this.atLeastOneInternal(idx, actionORMethodDef);\n }\n CONSUME(tokType, options) {\n return this.consumeInternal(tokType, 0, options);\n }\n CONSUME1(tokType, options) {\n return this.consumeInternal(tokType, 1, options);\n }\n CONSUME2(tokType, options) {\n return this.consumeInternal(tokType, 2, options);\n }\n CONSUME3(tokType, options) {\n return this.consumeInternal(tokType, 3, options);\n }\n CONSUME4(tokType, options) {\n return this.consumeInternal(tokType, 4, options);\n }\n CONSUME5(tokType, options) {\n return this.consumeInternal(tokType, 5, options);\n }\n CONSUME6(tokType, options) {\n return this.consumeInternal(tokType, 6, options);\n }\n CONSUME7(tokType, options) {\n return this.consumeInternal(tokType, 7, options);\n }\n CONSUME8(tokType, options) {\n return this.consumeInternal(tokType, 8, options);\n }\n CONSUME9(tokType, options) {\n return this.consumeInternal(tokType, 9, options);\n }\n SUBRULE(ruleToCall, options) {\n return this.subruleInternal(ruleToCall, 0, options);\n }\n SUBRULE1(ruleToCall, options) {\n return this.subruleInternal(ruleToCall, 1, options);\n }\n SUBRULE2(ruleToCall, options) {\n return this.subruleInternal(ruleToCall, 2, options);\n }\n SUBRULE3(ruleToCall, options) {\n return this.subruleInternal(ruleToCall, 3, options);\n }\n SUBRULE4(ruleToCall, options) {\n return this.subruleInternal(ruleToCall, 4, options);\n }\n SUBRULE5(ruleToCall, options) {\n return this.subruleInternal(ruleToCall, 5, options);\n }\n SUBRULE6(ruleToCall, options) {\n return this.subruleInternal(ruleToCall, 6, options);\n }\n SUBRULE7(ruleToCall, options) {\n return this.subruleInternal(ruleToCall, 7, options);\n }\n SUBRULE8(ruleToCall, options) {\n return this.subruleInternal(ruleToCall, 8, options);\n }\n SUBRULE9(ruleToCall, options) {\n return this.subruleInternal(ruleToCall, 9, options);\n }\n OPTION(actionORMethodDef) {\n return this.optionInternal(actionORMethodDef, 0);\n }\n OPTION1(actionORMethodDef) {\n return this.optionInternal(actionORMethodDef, 1);\n }\n OPTION2(actionORMethodDef) {\n return this.optionInternal(actionORMethodDef, 2);\n }\n OPTION3(actionORMethodDef) {\n return this.optionInternal(actionORMethodDef, 3);\n }\n OPTION4(actionORMethodDef) {\n return this.optionInternal(actionORMethodDef, 4);\n }\n OPTION5(actionORMethodDef) {\n return this.optionInternal(actionORMethodDef, 5);\n }\n OPTION6(actionORMethodDef) {\n return this.optionInternal(actionORMethodDef, 6);\n }\n OPTION7(actionORMethodDef) {\n return this.optionInternal(actionORMethodDef, 7);\n }\n OPTION8(actionORMethodDef) {\n return this.optionInternal(actionORMethodDef, 8);\n }\n OPTION9(actionORMethodDef) {\n return this.optionInternal(actionORMethodDef, 9);\n }\n OR(altsOrOpts) {\n return this.orInternal(altsOrOpts, 0);\n }\n OR1(altsOrOpts) {\n return this.orInternal(altsOrOpts, 1);\n }\n OR2(altsOrOpts) {\n return this.orInternal(altsOrOpts, 2);\n }\n OR3(altsOrOpts) {\n return this.orInternal(altsOrOpts, 3);\n }\n OR4(altsOrOpts) {\n return this.orInternal(altsOrOpts, 4);\n }\n OR5(altsOrOpts) {\n return this.orInternal(altsOrOpts, 5);\n }\n OR6(altsOrOpts) {\n return this.orInternal(altsOrOpts, 6);\n }\n OR7(altsOrOpts) {\n return this.orInternal(altsOrOpts, 7);\n }\n OR8(altsOrOpts) {\n return this.orInternal(altsOrOpts, 8);\n }\n OR9(altsOrOpts) {\n return this.orInternal(altsOrOpts, 9);\n }\n MANY(actionORMethodDef) {\n this.manyInternal(0, actionORMethodDef);\n }\n MANY1(actionORMethodDef) {\n this.manyInternal(1, actionORMethodDef);\n }\n MANY2(actionORMethodDef) {\n this.manyInternal(2, actionORMethodDef);\n }\n MANY3(actionORMethodDef) {\n this.manyInternal(3, actionORMethodDef);\n }\n MANY4(actionORMethodDef) {\n this.manyInternal(4, actionORMethodDef);\n }\n MANY5(actionORMethodDef) {\n this.manyInternal(5, actionORMethodDef);\n }\n MANY6(actionORMethodDef) {\n this.manyInternal(6, actionORMethodDef);\n }\n MANY7(actionORMethodDef) {\n this.manyInternal(7, actionORMethodDef);\n }\n MANY8(actionORMethodDef) {\n this.manyInternal(8, actionORMethodDef);\n }\n MANY9(actionORMethodDef) {\n this.manyInternal(9, actionORMethodDef);\n }\n MANY_SEP(options) {\n this.manySepFirstInternal(0, options);\n }\n MANY_SEP1(options) {\n this.manySepFirstInternal(1, options);\n }\n MANY_SEP2(options) {\n this.manySepFirstInternal(2, options);\n }\n MANY_SEP3(options) {\n this.manySepFirstInternal(3, options);\n }\n MANY_SEP4(options) {\n this.manySepFirstInternal(4, options);\n }\n MANY_SEP5(options) {\n this.manySepFirstInternal(5, options);\n }\n MANY_SEP6(options) {\n this.manySepFirstInternal(6, options);\n }\n MANY_SEP7(options) {\n this.manySepFirstInternal(7, options);\n }\n MANY_SEP8(options) {\n this.manySepFirstInternal(8, options);\n }\n MANY_SEP9(options) {\n this.manySepFirstInternal(9, options);\n }\n AT_LEAST_ONE(actionORMethodDef) {\n this.atLeastOneInternal(0, actionORMethodDef);\n }\n AT_LEAST_ONE1(actionORMethodDef) {\n return this.atLeastOneInternal(1, actionORMethodDef);\n }\n AT_LEAST_ONE2(actionORMethodDef) {\n this.atLeastOneInternal(2, actionORMethodDef);\n }\n AT_LEAST_ONE3(actionORMethodDef) {\n this.atLeastOneInternal(3, actionORMethodDef);\n }\n AT_LEAST_ONE4(actionORMethodDef) {\n this.atLeastOneInternal(4, actionORMethodDef);\n }\n AT_LEAST_ONE5(actionORMethodDef) {\n this.atLeastOneInternal(5, actionORMethodDef);\n }\n AT_LEAST_ONE6(actionORMethodDef) {\n this.atLeastOneInternal(6, actionORMethodDef);\n }\n AT_LEAST_ONE7(actionORMethodDef) {\n this.atLeastOneInternal(7, actionORMethodDef);\n }\n AT_LEAST_ONE8(actionORMethodDef) {\n this.atLeastOneInternal(8, actionORMethodDef);\n }\n AT_LEAST_ONE9(actionORMethodDef) {\n this.atLeastOneInternal(9, actionORMethodDef);\n }\n AT_LEAST_ONE_SEP(options) {\n this.atLeastOneSepFirstInternal(0, options);\n }\n AT_LEAST_ONE_SEP1(options) {\n this.atLeastOneSepFirstInternal(1, options);\n }\n AT_LEAST_ONE_SEP2(options) {\n this.atLeastOneSepFirstInternal(2, options);\n }\n AT_LEAST_ONE_SEP3(options) {\n this.atLeastOneSepFirstInternal(3, options);\n }\n AT_LEAST_ONE_SEP4(options) {\n this.atLeastOneSepFirstInternal(4, options);\n }\n AT_LEAST_ONE_SEP5(options) {\n this.atLeastOneSepFirstInternal(5, options);\n }\n AT_LEAST_ONE_SEP6(options) {\n this.atLeastOneSepFirstInternal(6, options);\n }\n AT_LEAST_ONE_SEP7(options) {\n this.atLeastOneSepFirstInternal(7, options);\n }\n AT_LEAST_ONE_SEP8(options) {\n this.atLeastOneSepFirstInternal(8, options);\n }\n AT_LEAST_ONE_SEP9(options) {\n this.atLeastOneSepFirstInternal(9, options);\n }\n RULE(name, implementation, config = DEFAULT_RULE_CONFIG) {\n if (this.definedRulesNames.includes(name)) {\n const errMsg = defaultGrammarValidatorErrorProvider.buildDuplicateRuleNameError({\n topLevelRule: name,\n grammarName: this.className,\n });\n const error = {\n message: errMsg,\n type: ParserDefinitionErrorType.DUPLICATE_RULE_NAME,\n ruleName: name,\n };\n this.definitionErrors.push(error);\n }\n this.definedRulesNames.push(name);\n const ruleImplementation = this.defineRule(name, implementation, config);\n this[name] = ruleImplementation;\n return ruleImplementation;\n }\n OVERRIDE_RULE(name, impl, config = DEFAULT_RULE_CONFIG) {\n const ruleErrors = validateRuleIsOverridden(name, this.definedRulesNames, this.className);\n this.definitionErrors = this.definitionErrors.concat(ruleErrors);\n const ruleImplementation = this.defineRule(name, impl, config);\n this[name] = ruleImplementation;\n return ruleImplementation;\n }\n BACKTRACK(grammarRule, args) {\n var _a;\n // Use coreRule to bypass root-level hooks (onBeforeParse/onAfterParse).\n // Backtracking is speculative and should not trigger parse lifecycle hooks.\n const ruleToCall = (_a = grammarRule.coreRule) !== null && _a !== void 0 ? _a : grammarRule;\n return function () {\n // save org state\n this.isBackTrackingStack.push(1);\n const orgState = this.saveRecogState();\n try {\n ruleToCall.apply(this, args);\n // if no exception was thrown we have succeed parsing the rule.\n return true;\n }\n catch (e) {\n if (isRecognitionException(e)) {\n return false;\n }\n else {\n throw e;\n }\n }\n finally {\n this.reloadRecogState(orgState);\n this.isBackTrackingStack.pop();\n }\n };\n }\n // GAST export APIs\n getGAstProductions() {\n return this.gastProductionsCache;\n }\n getSerializedGastProductions() {\n return serializeGrammar(Object.values(this.gastProductionsCache));\n }\n}\n//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