@loopstack/loopstack-studio 0.27.0 → 0.29.0
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/_virtual/rolldown_runtime.js +13 -15
- package/dist/components/ai-elements/code-block.js +2 -2
- package/dist/components/dynamic-form/Form.js +49 -52
- package/dist/components/loopstack-elements/tool.js +18 -9
- package/dist/config.js +6 -0
- package/dist/features/debug/components/WorkflowFlowViewer.js +94 -81
- package/dist/features/debug/components/workflow-flow/StateNode.js +154 -79
- package/dist/features/debug/components/workflow-flow/WorkflowGraph.js +43 -31
- package/dist/features/debug/components/workflow-flow/WorkflowTransitionEdge.js +52 -51
- package/dist/features/debug/lib/edge-paths.js +45 -30
- package/dist/features/debug/lib/flow-types.js +2 -0
- package/dist/features/debug/lib/flow-utils.js +66 -64
- package/dist/features/documents/DocumentRenderer.js +2 -2
- package/dist/features/documents/components/DocumentList.js +19 -18
- package/dist/features/documents/renderers/LlmMessage.js +89 -0
- package/dist/features/workbench/WorkflowItem.js +4 -3
- package/dist/features/workbench/components/EmbedLogsContent.js +5 -0
- package/dist/features/workbench/components/PreviewEmptyState.js +10 -0
- package/dist/features/workbench/components/PreviewWorkbench.js +14 -0
- package/dist/features/workbench/components/RecentRunItem.js +48 -0
- package/dist/features/workbench/components/WorkflowForms.js +4 -3
- package/dist/features/workbench/hooks/useEmbedBridge.js +3 -0
- package/dist/features/workbench/hooks/useWorkflowData.js +9 -9
- package/dist/features/workbench/index.js +4 -0
- package/dist/features/workspaces/components/ExecutionTimeline.js +9 -8
- package/dist/loopstack-studio.css +1 -1
- package/dist/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/{architecture-YZFGNWBL.js → architecture-7EHR7CIX.js} +2 -2
- package/dist/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/{chunk-7N4EOEYR.js → chunk-4EGX6M5U.js} +9 -13
- package/dist/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/{chunk-KGLVRYIC.js → chunk-5DO6E6H7.js} +3 -7
- package/dist/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/chunk-BR22UD5L.js +56 -0
- package/dist/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/{chunk-2KRD3SAO.js → chunk-FHYWG6QK.js} +3 -7
- package/dist/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/{chunk-FOC6F5B3.js → chunk-MPE355IW.js} +3 -7
- package/dist/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/chunk-MZUSXYTE.js +24 -0
- package/dist/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/chunk-N66VUXT2.js +48 -0
- package/dist/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/chunk-NNHCCRGN.js +20219 -0
- package/dist/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/chunk-PUPMXCY4.js +19 -0
- package/dist/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/{chunk-67CJDMHE.js → chunk-UIBZB4QT.js} +3 -7
- package/dist/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/chunk-WCWK7LTN.js +25 -0
- package/dist/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/eventmodeling-FCH6USID.js +3 -0
- package/dist/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/{gitGraph-7Q5UKJZL.js → gitGraph-WXDBUCRP.js} +2 -2
- package/dist/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/info-J43DQDTF.js +3 -0
- package/dist/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/packet-YPE3B663.js +3 -0
- package/dist/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/pie-LRSECV5Y.js +3 -0
- package/dist/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/radar-GUYGQ44K.js +3 -0
- package/dist/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/{treeView-SZITEDCU.js → treeView-BLDUP644.js} +2 -2
- package/dist/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/treemap-LRROVOQU.js +3 -0
- package/dist/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/wardley-L42UT6IY.js +3 -0
- package/dist/node_modules/@mermaid-js/parser/dist/mermaid-parser.core.js +24 -19
- package/dist/node_modules/@ungap/structured-clone/esm/deserialize.js +36 -26
- package/dist/node_modules/@xyflow/react/dist/esm/index.js +1 -1
- package/dist/node_modules/cytoscape/dist/cytoscape.esm.js +257 -254
- package/dist/node_modules/dagre-d3-es/src/dagre/greedy-fas.js +19 -19
- package/dist/node_modules/dagre-d3-es/src/dagre/layout.js +48 -48
- package/dist/node_modules/dagre-d3-es/src/dagre/nesting-graph.js +9 -9
- package/dist/node_modules/dagre-d3-es/src/dagre/order/cross-count.js +3 -3
- package/dist/node_modules/dagre-d3-es/src/dagre/order/index.js +11 -11
- package/dist/node_modules/dagre-d3-es/src/dagre/order/init-order.js +4 -4
- package/dist/node_modules/dagre-d3-es/src/dagre/order/resolve-conflicts.js +4 -4
- package/dist/node_modules/dagre-d3-es/src/dagre/order/sort-subgraph.js +8 -8
- package/dist/node_modules/dagre-d3-es/src/dagre/order/sort.js +5 -5
- package/dist/node_modules/dagre-d3-es/src/dagre/position/bk.js +72 -72
- package/dist/node_modules/dagre-d3-es/src/dagre/position/index.js +1 -1
- package/dist/node_modules/dagre-d3-es/src/dagre/rank/network-simplex.js +25 -25
- package/dist/node_modules/dagre-d3-es/src/dagre/rank/util.js +8 -8
- package/dist/node_modules/dagre-d3-es/src/dagre/util.js +48 -48
- package/dist/node_modules/dagre-d3-es/src/graphlib/graph.js +109 -109
- package/dist/node_modules/dagre-d3-es/src/graphlib/json.js +17 -17
- package/dist/node_modules/dompurify/dist/purify.es.js +301 -209
- package/dist/node_modules/es-toolkit/dist/_internal/globalThis.js +4 -0
- package/dist/node_modules/es-toolkit/dist/_internal/isUnsafeProperty.js +4 -0
- package/dist/node_modules/es-toolkit/dist/compat/_internal/getSymbols.js +4 -0
- package/dist/node_modules/es-toolkit/dist/compat/_internal/getTag.js +4 -0
- package/dist/node_modules/es-toolkit/dist/compat/_internal/isPrototype.js +5 -0
- package/dist/node_modules/es-toolkit/dist/compat/_internal/tags.js +2 -0
- package/dist/node_modules/es-toolkit/dist/compat/function/memoize.js +12 -0
- package/dist/node_modules/es-toolkit/dist/compat/object/clone.js +97 -0
- package/dist/node_modules/es-toolkit/dist/compat/object/cloneDeep.js +5 -0
- package/dist/node_modules/es-toolkit/dist/compat/object/cloneDeepWith.js +29 -0
- package/dist/node_modules/es-toolkit/dist/compat/object/merge.js +6 -0
- package/dist/node_modules/es-toolkit/dist/compat/object/mergeWith.js +49 -0
- package/dist/node_modules/es-toolkit/dist/compat/predicate/isArguments.js +5 -0
- package/dist/node_modules/es-toolkit/dist/compat/predicate/isArray.js +4 -0
- package/dist/node_modules/es-toolkit/dist/compat/predicate/isArrayLike.js +5 -0
- package/dist/node_modules/es-toolkit/dist/compat/predicate/isArrayLikeObject.js +6 -0
- package/dist/node_modules/es-toolkit/dist/compat/predicate/isEmpty.js +16 -0
- package/dist/node_modules/es-toolkit/dist/compat/predicate/isObjectLike.js +4 -0
- package/dist/node_modules/es-toolkit/dist/compat/predicate/isPlainObject.js +12 -0
- package/dist/node_modules/es-toolkit/dist/compat/predicate/isTypedArray.js +5 -0
- package/dist/node_modules/es-toolkit/dist/function/noop.js +2 -0
- package/dist/node_modules/es-toolkit/dist/object/clone.js +29 -0
- package/dist/node_modules/es-toolkit/dist/object/cloneDeepWith.js +114 -0
- package/dist/node_modules/es-toolkit/dist/predicate/isBuffer.js +5 -0
- package/dist/node_modules/es-toolkit/dist/predicate/isLength.js +4 -0
- package/dist/node_modules/es-toolkit/dist/predicate/isPrimitive.js +4 -0
- package/dist/node_modules/es-toolkit/dist/predicate/isTypedArray.js +4 -0
- package/dist/node_modules/hast-util-raw/node_modules/parse5/dist/tokenizer/index.js +2 -2
- package/dist/node_modules/internmap/src/index.js +1 -1
- package/dist/node_modules/katex/dist/katex.js +379 -417
- package/dist/node_modules/lodash-es/_arrayLikeKeys.js +3 -3
- package/dist/node_modules/lodash-es/_assignMergeValue.js +1 -1
- package/dist/node_modules/lodash-es/_assignValue.js +1 -1
- package/dist/node_modules/lodash-es/_baseClone.js +9 -9
- package/dist/node_modules/lodash-es/_baseForOwn.js +1 -1
- package/dist/node_modules/lodash-es/_baseIsEqualDeep.js +1 -1
- package/dist/node_modules/lodash-es/_baseMatchesProperty.js +6 -6
- package/dist/node_modules/lodash-es/_baseMerge.js +2 -2
- package/dist/node_modules/lodash-es/_baseMergeDeep.js +7 -7
- package/dist/node_modules/lodash-es/_baseOrderBy.js +12 -12
- package/dist/node_modules/lodash-es/_baseRest.js +1 -1
- package/dist/node_modules/lodash-es/_baseSet.js +1 -1
- package/dist/node_modules/lodash-es/_baseSetToString.js +3 -3
- package/dist/node_modules/lodash-es/_baseToString.js +2 -2
- package/dist/node_modules/lodash-es/_baseUniq.js +1 -1
- package/dist/node_modules/lodash-es/_createRange.js +1 -1
- package/dist/node_modules/lodash-es/_createSet.js +3 -3
- package/dist/node_modules/lodash-es/_flatRest.js +1 -1
- package/dist/node_modules/lodash-es/_getAllKeys.js +2 -2
- package/dist/node_modules/lodash-es/_getAllKeysIn.js +1 -1
- package/dist/node_modules/lodash-es/_getSymbolsIn.js +1 -1
- package/dist/node_modules/lodash-es/_getTag.js +1 -1
- package/dist/node_modules/lodash-es/_hasPath.js +2 -2
- package/dist/node_modules/lodash-es/_initCloneByTag.js +1 -1
- package/dist/node_modules/lodash-es/_initCloneObject.js +1 -1
- package/dist/node_modules/lodash-es/_isFlattenable.js +1 -1
- package/dist/node_modules/lodash-es/_isIterateeCall.js +1 -1
- package/dist/node_modules/lodash-es/_isKey.js +1 -1
- package/dist/node_modules/lodash-es/_setToString.js +1 -1
- package/dist/node_modules/lodash-es/defaults.js +1 -1
- package/dist/node_modules/lodash-es/findIndex.js +2 -2
- package/dist/node_modules/lodash-es/forEach.js +1 -1
- package/dist/node_modules/lodash-es/forIn.js +1 -1
- package/dist/node_modules/lodash-es/isEmpty.js +2 -2
- package/dist/node_modules/lodash-es/isPlainObject.js +1 -1
- package/dist/node_modules/lodash-es/map.js +1 -1
- package/dist/node_modules/lodash-es/max.js +1 -1
- package/dist/node_modules/lodash-es/merge.js +3 -3
- package/dist/node_modules/lodash-es/min.js +1 -1
- package/dist/node_modules/lodash-es/minBy.js +1 -1
- package/dist/node_modules/lodash-es/reduce.js +1 -1
- package/dist/node_modules/lodash-es/toNumber.js +1 -1
- package/dist/node_modules/lodash-es/union.js +3 -3
- package/dist/node_modules/mermaid/dist/chunks/mermaid.core/{architectureDiagram-Q4EWVU46.js → architectureDiagram-3BPJPVTR.js} +310 -308
- package/dist/node_modules/mermaid/dist/chunks/mermaid.core/{blockDiagram-DXYQGD6D.js → blockDiagram-GPEHLZMM.js} +215 -190
- package/dist/node_modules/mermaid/dist/chunks/mermaid.core/{c4Diagram-AHTNJAMY.js → c4Diagram-AAUBKEIU.js} +3 -3
- package/dist/node_modules/mermaid/dist/chunks/mermaid.core/{chunk-EDXVE4YY.js → chunk-2J33WTMH.js} +1 -1
- package/dist/node_modules/mermaid/dist/chunks/mermaid.core/{chunk-5FUZZQ4R.js → chunk-3OPIFGDE.js} +48 -20
- package/dist/node_modules/mermaid/dist/chunks/mermaid.core/{chunk-5PVQY5BW.js → chunk-5ZQYHXKU.js} +8 -8
- package/dist/node_modules/mermaid/dist/chunks/mermaid.core/{chunk-4TB4RGXK.js → chunk-727SXJPM.js} +555 -459
- package/dist/node_modules/mermaid/dist/chunks/mermaid.core/{chunk-OYMX7WX6.js → chunk-AQP2D5EJ.js} +155 -145
- package/dist/node_modules/mermaid/dist/chunks/mermaid.core/{chunk-ICPOFSXX.js → chunk-CSCIHK7Q.js} +106 -12
- package/dist/node_modules/mermaid/dist/chunks/mermaid.core/{chunk-ENJZ2VHE.js → chunk-KSCS5N6A.js} +12 -12
- package/dist/node_modules/mermaid/dist/chunks/mermaid.core/{chunk-ZZ45TVLE.js → chunk-L5ZTLDWV.js} +2 -2
- package/dist/node_modules/mermaid/dist/chunks/mermaid.core/{chunk-336JU56O.js → chunk-LZXEDZCA.js} +5 -5
- package/dist/node_modules/mermaid/dist/chunks/mermaid.core/{chunk-YZCP3GAM.js → chunk-ND2GUHAM.js} +1 -1
- package/dist/node_modules/mermaid/dist/chunks/mermaid.core/{chunk-X2U36JSP.js → chunk-NZK2D7GU.js} +1 -1
- package/dist/node_modules/mermaid/dist/chunks/mermaid.core/{chunk-U2HBQHQK.js → chunk-O5CBEL6O.js} +2 -2
- package/dist/node_modules/mermaid/dist/chunks/mermaid.core/{chunk-426QAEUC.js → chunk-WU5MYG2G.js} +1 -1
- package/dist/node_modules/mermaid/dist/chunks/mermaid.core/{classDiagram-6PBFFD2Q.js → classDiagram-4FO5ZUOK.js} +11 -11
- package/dist/node_modules/mermaid/dist/chunks/mermaid.core/{classDiagram-v2-HSJHXN6E.js → classDiagram-v2-Q7XG4LA2.js} +11 -11
- package/dist/node_modules/mermaid/dist/chunks/mermaid.core/{dagre-KV5264BT.js → dagre-BM42HDAG.js} +8 -8
- package/dist/node_modules/mermaid/dist/chunks/mermaid.core/{diagram-MMDJMWI5.js → diagram-2AECGRRQ.js} +3 -3
- package/dist/node_modules/mermaid/dist/chunks/mermaid.core/{diagram-5BDNPKRD.js → diagram-5GNKFQAL.js} +3 -3
- package/dist/node_modules/mermaid/dist/chunks/mermaid.core/diagram-KO2AKTUF.js +433 -0
- package/dist/node_modules/mermaid/dist/chunks/mermaid.core/{diagram-TYMM5635.js → diagram-LMA3HP47.js} +3 -3
- package/dist/node_modules/mermaid/dist/chunks/mermaid.core/{diagram-G4DWMVQ6.js → diagram-OG6HWLK6.js} +5 -5
- package/dist/node_modules/mermaid/dist/chunks/mermaid.core/{erDiagram-SMLLAGMA.js → erDiagram-TEJ5UH35.js} +9 -9
- package/dist/node_modules/mermaid/dist/chunks/mermaid.core/{flowDiagram-DWJPFMVM.js → flowDiagram-I6XJVG4X.js} +10 -10
- package/dist/node_modules/mermaid/dist/chunks/mermaid.core/{ganttDiagram-T4ZO3ILL.js → ganttDiagram-6RSMTGT7.js} +7 -4
- package/dist/node_modules/mermaid/dist/chunks/mermaid.core/{gitGraphDiagram-UUTBAWPF.js → gitGraphDiagram-PVQCEYII.js} +2 -2
- package/dist/node_modules/mermaid/dist/chunks/mermaid.core/{infoDiagram-42DDH7IO.js → infoDiagram-5YYISTIA.js} +3 -3
- package/dist/node_modules/mermaid/dist/chunks/mermaid.core/{ishikawaDiagram-UXIWVN3A.js → ishikawaDiagram-YF4QCWOH.js} +3 -3
- package/dist/node_modules/mermaid/dist/chunks/mermaid.core/{journeyDiagram-VCZTEJTY.js → journeyDiagram-JHISSGLW.js} +2 -2
- package/dist/node_modules/mermaid/dist/chunks/mermaid.core/{kanban-definition-6JOO6SKY.js → kanban-definition-UN3LZRKU.js} +7 -7
- package/dist/node_modules/mermaid/dist/chunks/mermaid.core/{mindmap-definition-QFDTVHPH.js → mindmap-definition-RKZ34NQL.js} +9 -9
- package/dist/node_modules/mermaid/dist/chunks/mermaid.core/{pieDiagram-DEJITSTG.js → pieDiagram-4H26LBE5.js} +3 -3
- package/dist/node_modules/mermaid/dist/chunks/mermaid.core/{quadrantDiagram-34T5L4WZ.js → quadrantDiagram-W4KKPZXB.js} +364 -337
- package/dist/node_modules/mermaid/dist/chunks/mermaid.core/{requirementDiagram-MS252O5E.js → requirementDiagram-4Y6WPE33.js} +9 -9
- package/dist/node_modules/mermaid/dist/chunks/mermaid.core/{sankeyDiagram-XADWPNL6.js → sankeyDiagram-5OEKKPKP.js} +187 -138
- package/dist/node_modules/mermaid/dist/chunks/mermaid.core/{sequenceDiagram-FGHM5R23.js → sequenceDiagram-3UESZ5HK.js} +15 -8
- package/dist/node_modules/mermaid/dist/chunks/mermaid.core/{stateDiagram-FHFEXIEX.js → stateDiagram-AJRCARHV.js} +10 -10
- package/dist/node_modules/mermaid/dist/chunks/mermaid.core/{stateDiagram-v2-QKLJ7IA2.js → stateDiagram-v2-BHNVJYJU.js} +10 -10
- package/dist/node_modules/mermaid/dist/chunks/mermaid.core/{timeline-definition-GMOUNBTQ.js → timeline-definition-PNZ67QCA.js} +3 -3
- package/dist/node_modules/mermaid/dist/chunks/mermaid.core/{vennDiagram-DHZGUBPP.js → vennDiagram-CIIHVFJN.js} +3 -3
- package/dist/node_modules/mermaid/dist/chunks/mermaid.core/wardleyDiagram-YWT4CUSO.js +640 -0
- package/dist/node_modules/mermaid/dist/chunks/mermaid.core/{xychartDiagram-5P7HB3ND.js → xychartDiagram-2RQKCTM6.js} +4 -4
- package/dist/node_modules/mermaid/dist/mermaid.core.js +96 -70
- package/dist/node_modules/stylis/src/Enum.js +2 -2
- package/dist/node_modules/stylis/src/Middleware.js +9 -0
- package/dist/node_modules/stylis/src/Parser.js +55 -44
- package/dist/node_modules/stylis/src/Utility.js +9 -12
- package/dist/node_modules/unified/lib/index.js +1 -1
- package/dist/packages/contracts/dist/enums/index.js +4 -24
- package/dist/packages/contracts/dist/enums/registry.enum.js +9 -20
- package/dist/packages/contracts/dist/enums/sort-order.enum.js +5 -10
- package/dist/packages/contracts/dist/enums/user-type.enum.js +5 -10
- package/dist/packages/contracts/dist/enums/workflow-state.enum.js +5 -10
- package/dist/pages/EmbedWorkbenchPage.js +4 -3
- package/dist/pages/PreviewWorkbenchPage.js +126 -124
- package/dist/pages/StudioLandingPage.js +28 -72
- package/package.json +2 -2
- package/dist/features/documents/renderers/ClaudeMessage.js +0 -96
- package/dist/node_modules/@chevrotain/gast/lib/src/helpers.js +0 -23
- package/dist/node_modules/@chevrotain/gast/lib/src/model.js +0 -151
- package/dist/node_modules/@chevrotain/gast/lib/src/visitor.js +0 -40
- package/dist/node_modules/@chevrotain/regexp-to-ast/lib/src/api.js +0 -2
- package/dist/node_modules/@chevrotain/regexp-to-ast/lib/src/base-regexp-visitor.js +0 -85
- package/dist/node_modules/@chevrotain/regexp-to-ast/lib/src/character-classes.js +0 -35
- package/dist/node_modules/@chevrotain/regexp-to-ast/lib/src/regexp-parser.js +0 -570
- package/dist/node_modules/@chevrotain/regexp-to-ast/lib/src/utils.js +0 -25
- package/dist/node_modules/@chevrotain/utils/lib/src/print.js +0 -9
- package/dist/node_modules/@chevrotain/utils/lib/src/timer.js +0 -8
- package/dist/node_modules/@chevrotain/utils/lib/src/to-fast-properties.js +0 -10
- package/dist/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/chunk-AA7GKIK3.js +0 -28
- package/dist/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/chunk-CIAEETIT.js +0 -23
- package/dist/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/chunk-K5T4RW27.js +0 -1197
- package/dist/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/chunk-LIHQZDEY.js +0 -60
- package/dist/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/chunk-ORNJ4GCN.js +0 -29
- package/dist/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/info-OMHHGYJF.js +0 -3
- package/dist/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/packet-4T2RLAQJ.js +0 -3
- package/dist/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/pie-ZZUOXDRM.js +0 -3
- package/dist/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/radar-PYXPWWZC.js +0 -3
- package/dist/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/treemap-W4RFUUIX.js +0 -3
- package/dist/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/wardley-RL74JXVD.js +0 -3
- package/dist/node_modules/chevrotain/lib/src/api.js +0 -10
- package/dist/node_modules/chevrotain/lib/src/lang/lang_extensions.js +0 -10
- package/dist/node_modules/chevrotain/lib/src/parse/constants.js +0 -2
- package/dist/node_modules/chevrotain/lib/src/parse/cst/cst.js +0 -13
- package/dist/node_modules/chevrotain/lib/src/parse/cst/cst_visitor.js +0 -49
- package/dist/node_modules/chevrotain/lib/src/parse/errors_public.js +0 -77
- package/dist/node_modules/chevrotain/lib/src/parse/exceptions_public.js +0 -33
- package/dist/node_modules/chevrotain/lib/src/parse/grammar/checks.js +0 -275
- package/dist/node_modules/chevrotain/lib/src/parse/grammar/first.js +0 -23
- package/dist/node_modules/chevrotain/lib/src/parse/grammar/follow.js +0 -28
- package/dist/node_modules/chevrotain/lib/src/parse/grammar/gast/gast_resolver_public.js +0 -14
- package/dist/node_modules/chevrotain/lib/src/parse/grammar/interpreter.js +0 -262
- package/dist/node_modules/chevrotain/lib/src/parse/grammar/keys.js +0 -5
- package/dist/node_modules/chevrotain/lib/src/parse/grammar/llk_lookahead.js +0 -41
- package/dist/node_modules/chevrotain/lib/src/parse/grammar/lookahead.js +0 -241
- package/dist/node_modules/chevrotain/lib/src/parse/grammar/resolver.js +0 -30
- package/dist/node_modules/chevrotain/lib/src/parse/grammar/rest.js +0 -56
- package/dist/node_modules/chevrotain/lib/src/parse/parser/parser.js +0 -114
- package/dist/node_modules/chevrotain/lib/src/parse/parser/traits/error_handler.js +0 -46
- package/dist/node_modules/chevrotain/lib/src/parse/parser/traits/gast_recorder.js +0 -166
- package/dist/node_modules/chevrotain/lib/src/parse/parser/traits/lexer_adapter.js +0 -43
- package/dist/node_modules/chevrotain/lib/src/parse/parser/traits/looksahead.js +0 -107
- package/dist/node_modules/chevrotain/lib/src/parse/parser/traits/perf_tracer.js +0 -21
- package/dist/node_modules/chevrotain/lib/src/parse/parser/traits/recognizer_api.js +0 -312
- package/dist/node_modules/chevrotain/lib/src/parse/parser/traits/recognizer_engine.js +0 -285
- package/dist/node_modules/chevrotain/lib/src/parse/parser/traits/recoverable.js +0 -144
- package/dist/node_modules/chevrotain/lib/src/parse/parser/traits/tree_builder.js +0 -92
- package/dist/node_modules/chevrotain/lib/src/parse/parser/utils/apply_mixins.js +0 -11
- package/dist/node_modules/chevrotain/lib/src/scan/lexer.js +0 -437
- package/dist/node_modules/chevrotain/lib/src/scan/lexer_errors_public.js +0 -9
- package/dist/node_modules/chevrotain/lib/src/scan/lexer_public.js +0 -253
- package/dist/node_modules/chevrotain/lib/src/scan/reg_exp.js +0 -152
- package/dist/node_modules/chevrotain/lib/src/scan/reg_exp_parser.js +0 -15
- package/dist/node_modules/chevrotain/lib/src/scan/tokens.js +0 -65
- package/dist/node_modules/chevrotain/lib/src/scan/tokens_public.js +0 -39
- package/dist/node_modules/chevrotain-allstar/lib/all-star-lookahead.js +0 -346
- package/dist/node_modules/chevrotain-allstar/lib/atn.js +0 -194
- package/dist/node_modules/chevrotain-allstar/lib/dfa.js +0 -32
- package/dist/node_modules/chevrotain-allstar/lib/index.js +0 -1
- package/dist/node_modules/langium/lib/default-module.js +0 -85
- package/dist/node_modules/langium/lib/dependency-injection.js +0 -62
- package/dist/node_modules/langium/lib/documentation/comment-provider.js +0 -11
- package/dist/node_modules/langium/lib/documentation/documentation-provider.js +0 -36
- package/dist/node_modules/langium/lib/documentation/jsdoc.js +0 -303
- package/dist/node_modules/langium/lib/index.js +0 -182
- package/dist/node_modules/langium/lib/languages/generated/ast.js +0 -1089
- package/dist/node_modules/langium/lib/languages/grammar-config.js +0 -13
- package/dist/node_modules/langium/lib/parser/async-parser.js +0 -83
- package/dist/node_modules/langium/lib/parser/completion-parser-builder.js +0 -7
- package/dist/node_modules/langium/lib/parser/cst-node-builder.js +0 -160
- package/dist/node_modules/langium/lib/parser/indentation-aware.js +0 -141
- package/dist/node_modules/langium/lib/parser/langium-parser-builder.js +0 -11
- package/dist/node_modules/langium/lib/parser/langium-parser.js +0 -388
- package/dist/node_modules/langium/lib/parser/lexer.js +0 -50
- package/dist/node_modules/langium/lib/parser/parser-builder-base.js +0 -275
- package/dist/node_modules/langium/lib/parser/token-builder.js +0 -61
- package/dist/node_modules/langium/lib/parser/value-converter.js +0 -78
- package/dist/node_modules/langium/lib/references/linker.js +0 -190
- package/dist/node_modules/langium/lib/references/name-provider.js +0 -13
- package/dist/node_modules/langium/lib/references/references.js +0 -76
- package/dist/node_modules/langium/lib/references/scope-computation.js +0 -35
- package/dist/node_modules/langium/lib/references/scope-provider.js +0 -34
- package/dist/node_modules/langium/lib/references/scope.js +0 -73
- package/dist/node_modules/langium/lib/serializer/hydrator.js +0 -125
- package/dist/node_modules/langium/lib/serializer/json-serializer.js +0 -145
- package/dist/node_modules/langium/lib/service-registry.js +0 -37
- package/dist/node_modules/langium/lib/syntax-tree.js +0 -70
- package/dist/node_modules/langium/lib/utils/ast-utils.js +0 -157
- package/dist/node_modules/langium/lib/utils/caching.js +0 -91
- package/dist/node_modules/langium/lib/utils/cancellation.js +0 -5
- package/dist/node_modules/langium/lib/utils/collections.js +0 -85
- package/dist/node_modules/langium/lib/utils/cst-utils.js +0 -190
- package/dist/node_modules/langium/lib/utils/disposable.js +0 -8
- package/dist/node_modules/langium/lib/utils/errors.js +0 -12
- package/dist/node_modules/langium/lib/utils/event.js +0 -5
- package/dist/node_modules/langium/lib/utils/grammar-loader.js +0 -22
- package/dist/node_modules/langium/lib/utils/grammar-utils.js +0 -296
- package/dist/node_modules/langium/lib/utils/index.js +0 -53
- package/dist/node_modules/langium/lib/utils/promise-utils.js +0 -30
- package/dist/node_modules/langium/lib/utils/regexp-utils.js +0 -167
- package/dist/node_modules/langium/lib/utils/stream.js +0 -327
- package/dist/node_modules/langium/lib/utils/uri-utils.js +0 -107
- package/dist/node_modules/langium/lib/validation/document-validator.js +0 -210
- package/dist/node_modules/langium/lib/validation/validation-registry.js +0 -87
- package/dist/node_modules/langium/lib/workspace/ast-descriptions.js +0 -57
- package/dist/node_modules/langium/lib/workspace/ast-node-locator.js +0 -28
- package/dist/node_modules/langium/lib/workspace/configuration.js +0 -51
- package/dist/node_modules/langium/lib/workspace/document-builder.js +0 -201
- package/dist/node_modules/langium/lib/workspace/documents.js +0 -142
- package/dist/node_modules/langium/lib/workspace/file-system-provider.js +0 -34
- package/dist/node_modules/langium/lib/workspace/index-manager.js +0 -49
- package/dist/node_modules/langium/lib/workspace/profiler.js +0 -89
- package/dist/node_modules/langium/lib/workspace/workspace-lock.js +0 -42
- package/dist/node_modules/langium/lib/workspace/workspace-manager.js +0 -66
- package/dist/node_modules/lodash-es/flatMap.js +0 -7
- package/dist/node_modules/lodash-es/uniqBy.js +0 -7
- package/dist/node_modules/mermaid/dist/chunks/mermaid.core/wardleyDiagram-NUSXRM2D.js +0 -574
- package/dist/node_modules/vscode-jsonrpc/browser.js +0 -7
- package/dist/node_modules/vscode-jsonrpc/lib/browser/main.js +0 -52
- package/dist/node_modules/vscode-jsonrpc/lib/browser/ril.js +0 -120
- package/dist/node_modules/vscode-jsonrpc/lib/common/api.js +0 -337
- package/dist/node_modules/vscode-jsonrpc/lib/common/cancellation.js +0 -57
- package/dist/node_modules/vscode-jsonrpc/lib/common/connection.js +0 -647
- package/dist/node_modules/vscode-jsonrpc/lib/common/disposable.js +0 -13
- package/dist/node_modules/vscode-jsonrpc/lib/common/events.js +0 -64
- package/dist/node_modules/vscode-jsonrpc/lib/common/is.js +0 -34
- package/dist/node_modules/vscode-jsonrpc/lib/common/linkedMap.js +0 -235
- package/dist/node_modules/vscode-jsonrpc/lib/common/messageBuffer.js +0 -93
- package/dist/node_modules/vscode-jsonrpc/lib/common/messageReader.js +0 -129
- package/dist/node_modules/vscode-jsonrpc/lib/common/messageWriter.js +0 -85
- package/dist/node_modules/vscode-jsonrpc/lib/common/messages.js +0 -161
- package/dist/node_modules/vscode-jsonrpc/lib/common/ral.js +0 -18
- package/dist/node_modules/vscode-jsonrpc/lib/common/semaphore.js +0 -44
- package/dist/node_modules/vscode-jsonrpc/lib/common/sharedArrayCancellation.js +0 -58
- package/dist/node_modules/vscode-languageserver-protocol/lib/browser/main.js +0 -28
- package/dist/node_modules/vscode-languageserver-protocol/lib/common/api.js +0 -36
- package/dist/node_modules/vscode-languageserver-protocol/lib/common/connection.js +0 -12
- package/dist/node_modules/vscode-languageserver-protocol/lib/common/messages.js +0 -31
- package/dist/node_modules/vscode-languageserver-protocol/lib/common/protocol.callHierarchy.js +0 -19
- package/dist/node_modules/vscode-languageserver-protocol/lib/common/protocol.colorProvider.js +0 -15
- package/dist/node_modules/vscode-languageserver-protocol/lib/common/protocol.configuration.js +0 -11
- package/dist/node_modules/vscode-languageserver-protocol/lib/common/protocol.declaration.js +0 -11
- package/dist/node_modules/vscode-languageserver-protocol/lib/common/protocol.diagnostic.js +0 -33
- package/dist/node_modules/vscode-languageserver-protocol/lib/common/protocol.fileOperations.js +0 -35
- package/dist/node_modules/vscode-languageserver-protocol/lib/common/protocol.foldingRange.js +0 -15
- package/dist/node_modules/vscode-languageserver-protocol/lib/common/protocol.implementation.js +0 -11
- package/dist/node_modules/vscode-languageserver-protocol/lib/common/protocol.inlayHint.js +0 -19
- package/dist/node_modules/vscode-languageserver-protocol/lib/common/protocol.inlineCompletion.js +0 -11
- package/dist/node_modules/vscode-languageserver-protocol/lib/common/protocol.inlineValue.js +0 -15
- package/dist/node_modules/vscode-languageserver-protocol/lib/common/protocol.js +0 -674
- package/dist/node_modules/vscode-languageserver-protocol/lib/common/protocol.linkedEditingRange.js +0 -11
- package/dist/node_modules/vscode-languageserver-protocol/lib/common/protocol.moniker.js +0 -19
- package/dist/node_modules/vscode-languageserver-protocol/lib/common/protocol.notebook.js +0 -126
- package/dist/node_modules/vscode-languageserver-protocol/lib/common/protocol.progress.js +0 -24
- package/dist/node_modules/vscode-languageserver-protocol/lib/common/protocol.selectionRange.js +0 -11
- package/dist/node_modules/vscode-languageserver-protocol/lib/common/protocol.semanticTokens.js +0 -31
- package/dist/node_modules/vscode-languageserver-protocol/lib/common/protocol.showDocument.js +0 -11
- package/dist/node_modules/vscode-languageserver-protocol/lib/common/protocol.typeDefinition.js +0 -11
- package/dist/node_modules/vscode-languageserver-protocol/lib/common/protocol.typeHierarchy.js +0 -19
- package/dist/node_modules/vscode-languageserver-protocol/lib/common/protocol.workspaceFolder.js +0 -15
- package/dist/node_modules/vscode-languageserver-protocol/lib/common/utils/is.js +0 -42
- package/dist/node_modules/vscode-languageserver-textdocument/lib/esm/main.js +0 -138
- package/dist/node_modules/vscode-languageserver-types/lib/esm/main.js +0 -1084
- package/dist/node_modules/vscode-uri/lib/esm/index.js +0 -373
- /package/dist/node_modules/{entities → hast-util-raw/node_modules/entities}/dist/esm/decode-codepoint.js +0 -0
- /package/dist/node_modules/{entities → hast-util-raw/node_modules/entities}/dist/esm/decode.js +0 -0
- /package/dist/node_modules/{entities → hast-util-raw/node_modules/entities}/dist/esm/generated/decode-data-html.js +0 -0
- /package/dist/node_modules/{unified/node_modules/is-plain-obj → is-plain-obj}/index.js +0 -0
|
@@ -1,312 +0,0 @@
|
|
|
1
|
-
import { serializeGrammar } from "../../../../../../@chevrotain/gast/lib/src/model.js";
|
|
2
|
-
import { defaultGrammarValidatorErrorProvider } from "../../errors_public.js";
|
|
3
|
-
import { validateRuleIsOverridden } from "../../grammar/checks.js";
|
|
4
|
-
import { isRecognitionException } from "../../exceptions_public.js";
|
|
5
|
-
import { DEFAULT_RULE_CONFIG, ParserDefinitionErrorType } from "../parser.js";
|
|
6
|
-
var RecognizerApi = class {
|
|
7
|
-
ACTION(e) {
|
|
8
|
-
return e.call(this);
|
|
9
|
-
}
|
|
10
|
-
consume(e, n, r) {
|
|
11
|
-
return this.consumeInternal(n, e, r);
|
|
12
|
-
}
|
|
13
|
-
subrule(e, n, r) {
|
|
14
|
-
return this.subruleInternal(n, e, r);
|
|
15
|
-
}
|
|
16
|
-
option(e, n) {
|
|
17
|
-
return this.optionInternal(n, e);
|
|
18
|
-
}
|
|
19
|
-
or(e, n) {
|
|
20
|
-
return this.orInternal(n, e);
|
|
21
|
-
}
|
|
22
|
-
many(e, n) {
|
|
23
|
-
return this.manyInternal(e, n);
|
|
24
|
-
}
|
|
25
|
-
atLeastOne(e, n) {
|
|
26
|
-
return this.atLeastOneInternal(e, n);
|
|
27
|
-
}
|
|
28
|
-
CONSUME(e, n) {
|
|
29
|
-
return this.consumeInternal(e, 0, n);
|
|
30
|
-
}
|
|
31
|
-
CONSUME1(e, n) {
|
|
32
|
-
return this.consumeInternal(e, 1, n);
|
|
33
|
-
}
|
|
34
|
-
CONSUME2(e, n) {
|
|
35
|
-
return this.consumeInternal(e, 2, n);
|
|
36
|
-
}
|
|
37
|
-
CONSUME3(e, n) {
|
|
38
|
-
return this.consumeInternal(e, 3, n);
|
|
39
|
-
}
|
|
40
|
-
CONSUME4(e, n) {
|
|
41
|
-
return this.consumeInternal(e, 4, n);
|
|
42
|
-
}
|
|
43
|
-
CONSUME5(e, n) {
|
|
44
|
-
return this.consumeInternal(e, 5, n);
|
|
45
|
-
}
|
|
46
|
-
CONSUME6(e, n) {
|
|
47
|
-
return this.consumeInternal(e, 6, n);
|
|
48
|
-
}
|
|
49
|
-
CONSUME7(e, n) {
|
|
50
|
-
return this.consumeInternal(e, 7, n);
|
|
51
|
-
}
|
|
52
|
-
CONSUME8(e, n) {
|
|
53
|
-
return this.consumeInternal(e, 8, n);
|
|
54
|
-
}
|
|
55
|
-
CONSUME9(e, n) {
|
|
56
|
-
return this.consumeInternal(e, 9, n);
|
|
57
|
-
}
|
|
58
|
-
SUBRULE(e, n) {
|
|
59
|
-
return this.subruleInternal(e, 0, n);
|
|
60
|
-
}
|
|
61
|
-
SUBRULE1(e, n) {
|
|
62
|
-
return this.subruleInternal(e, 1, n);
|
|
63
|
-
}
|
|
64
|
-
SUBRULE2(e, n) {
|
|
65
|
-
return this.subruleInternal(e, 2, n);
|
|
66
|
-
}
|
|
67
|
-
SUBRULE3(e, n) {
|
|
68
|
-
return this.subruleInternal(e, 3, n);
|
|
69
|
-
}
|
|
70
|
-
SUBRULE4(e, n) {
|
|
71
|
-
return this.subruleInternal(e, 4, n);
|
|
72
|
-
}
|
|
73
|
-
SUBRULE5(e, n) {
|
|
74
|
-
return this.subruleInternal(e, 5, n);
|
|
75
|
-
}
|
|
76
|
-
SUBRULE6(e, n) {
|
|
77
|
-
return this.subruleInternal(e, 6, n);
|
|
78
|
-
}
|
|
79
|
-
SUBRULE7(e, n) {
|
|
80
|
-
return this.subruleInternal(e, 7, n);
|
|
81
|
-
}
|
|
82
|
-
SUBRULE8(e, n) {
|
|
83
|
-
return this.subruleInternal(e, 8, n);
|
|
84
|
-
}
|
|
85
|
-
SUBRULE9(e, n) {
|
|
86
|
-
return this.subruleInternal(e, 9, n);
|
|
87
|
-
}
|
|
88
|
-
OPTION(e) {
|
|
89
|
-
return this.optionInternal(e, 0);
|
|
90
|
-
}
|
|
91
|
-
OPTION1(e) {
|
|
92
|
-
return this.optionInternal(e, 1);
|
|
93
|
-
}
|
|
94
|
-
OPTION2(e) {
|
|
95
|
-
return this.optionInternal(e, 2);
|
|
96
|
-
}
|
|
97
|
-
OPTION3(e) {
|
|
98
|
-
return this.optionInternal(e, 3);
|
|
99
|
-
}
|
|
100
|
-
OPTION4(e) {
|
|
101
|
-
return this.optionInternal(e, 4);
|
|
102
|
-
}
|
|
103
|
-
OPTION5(e) {
|
|
104
|
-
return this.optionInternal(e, 5);
|
|
105
|
-
}
|
|
106
|
-
OPTION6(e) {
|
|
107
|
-
return this.optionInternal(e, 6);
|
|
108
|
-
}
|
|
109
|
-
OPTION7(e) {
|
|
110
|
-
return this.optionInternal(e, 7);
|
|
111
|
-
}
|
|
112
|
-
OPTION8(e) {
|
|
113
|
-
return this.optionInternal(e, 8);
|
|
114
|
-
}
|
|
115
|
-
OPTION9(e) {
|
|
116
|
-
return this.optionInternal(e, 9);
|
|
117
|
-
}
|
|
118
|
-
OR(e) {
|
|
119
|
-
return this.orInternal(e, 0);
|
|
120
|
-
}
|
|
121
|
-
OR1(e) {
|
|
122
|
-
return this.orInternal(e, 1);
|
|
123
|
-
}
|
|
124
|
-
OR2(e) {
|
|
125
|
-
return this.orInternal(e, 2);
|
|
126
|
-
}
|
|
127
|
-
OR3(e) {
|
|
128
|
-
return this.orInternal(e, 3);
|
|
129
|
-
}
|
|
130
|
-
OR4(e) {
|
|
131
|
-
return this.orInternal(e, 4);
|
|
132
|
-
}
|
|
133
|
-
OR5(e) {
|
|
134
|
-
return this.orInternal(e, 5);
|
|
135
|
-
}
|
|
136
|
-
OR6(e) {
|
|
137
|
-
return this.orInternal(e, 6);
|
|
138
|
-
}
|
|
139
|
-
OR7(e) {
|
|
140
|
-
return this.orInternal(e, 7);
|
|
141
|
-
}
|
|
142
|
-
OR8(e) {
|
|
143
|
-
return this.orInternal(e, 8);
|
|
144
|
-
}
|
|
145
|
-
OR9(e) {
|
|
146
|
-
return this.orInternal(e, 9);
|
|
147
|
-
}
|
|
148
|
-
MANY(e) {
|
|
149
|
-
this.manyInternal(0, e);
|
|
150
|
-
}
|
|
151
|
-
MANY1(e) {
|
|
152
|
-
this.manyInternal(1, e);
|
|
153
|
-
}
|
|
154
|
-
MANY2(e) {
|
|
155
|
-
this.manyInternal(2, e);
|
|
156
|
-
}
|
|
157
|
-
MANY3(e) {
|
|
158
|
-
this.manyInternal(3, e);
|
|
159
|
-
}
|
|
160
|
-
MANY4(e) {
|
|
161
|
-
this.manyInternal(4, e);
|
|
162
|
-
}
|
|
163
|
-
MANY5(e) {
|
|
164
|
-
this.manyInternal(5, e);
|
|
165
|
-
}
|
|
166
|
-
MANY6(e) {
|
|
167
|
-
this.manyInternal(6, e);
|
|
168
|
-
}
|
|
169
|
-
MANY7(e) {
|
|
170
|
-
this.manyInternal(7, e);
|
|
171
|
-
}
|
|
172
|
-
MANY8(e) {
|
|
173
|
-
this.manyInternal(8, e);
|
|
174
|
-
}
|
|
175
|
-
MANY9(e) {
|
|
176
|
-
this.manyInternal(9, e);
|
|
177
|
-
}
|
|
178
|
-
MANY_SEP(e) {
|
|
179
|
-
this.manySepFirstInternal(0, e);
|
|
180
|
-
}
|
|
181
|
-
MANY_SEP1(e) {
|
|
182
|
-
this.manySepFirstInternal(1, e);
|
|
183
|
-
}
|
|
184
|
-
MANY_SEP2(e) {
|
|
185
|
-
this.manySepFirstInternal(2, e);
|
|
186
|
-
}
|
|
187
|
-
MANY_SEP3(e) {
|
|
188
|
-
this.manySepFirstInternal(3, e);
|
|
189
|
-
}
|
|
190
|
-
MANY_SEP4(e) {
|
|
191
|
-
this.manySepFirstInternal(4, e);
|
|
192
|
-
}
|
|
193
|
-
MANY_SEP5(e) {
|
|
194
|
-
this.manySepFirstInternal(5, e);
|
|
195
|
-
}
|
|
196
|
-
MANY_SEP6(e) {
|
|
197
|
-
this.manySepFirstInternal(6, e);
|
|
198
|
-
}
|
|
199
|
-
MANY_SEP7(e) {
|
|
200
|
-
this.manySepFirstInternal(7, e);
|
|
201
|
-
}
|
|
202
|
-
MANY_SEP8(e) {
|
|
203
|
-
this.manySepFirstInternal(8, e);
|
|
204
|
-
}
|
|
205
|
-
MANY_SEP9(e) {
|
|
206
|
-
this.manySepFirstInternal(9, e);
|
|
207
|
-
}
|
|
208
|
-
AT_LEAST_ONE(e) {
|
|
209
|
-
this.atLeastOneInternal(0, e);
|
|
210
|
-
}
|
|
211
|
-
AT_LEAST_ONE1(e) {
|
|
212
|
-
return this.atLeastOneInternal(1, e);
|
|
213
|
-
}
|
|
214
|
-
AT_LEAST_ONE2(e) {
|
|
215
|
-
this.atLeastOneInternal(2, e);
|
|
216
|
-
}
|
|
217
|
-
AT_LEAST_ONE3(e) {
|
|
218
|
-
this.atLeastOneInternal(3, e);
|
|
219
|
-
}
|
|
220
|
-
AT_LEAST_ONE4(e) {
|
|
221
|
-
this.atLeastOneInternal(4, e);
|
|
222
|
-
}
|
|
223
|
-
AT_LEAST_ONE5(e) {
|
|
224
|
-
this.atLeastOneInternal(5, e);
|
|
225
|
-
}
|
|
226
|
-
AT_LEAST_ONE6(e) {
|
|
227
|
-
this.atLeastOneInternal(6, e);
|
|
228
|
-
}
|
|
229
|
-
AT_LEAST_ONE7(e) {
|
|
230
|
-
this.atLeastOneInternal(7, e);
|
|
231
|
-
}
|
|
232
|
-
AT_LEAST_ONE8(e) {
|
|
233
|
-
this.atLeastOneInternal(8, e);
|
|
234
|
-
}
|
|
235
|
-
AT_LEAST_ONE9(e) {
|
|
236
|
-
this.atLeastOneInternal(9, e);
|
|
237
|
-
}
|
|
238
|
-
AT_LEAST_ONE_SEP(e) {
|
|
239
|
-
this.atLeastOneSepFirstInternal(0, e);
|
|
240
|
-
}
|
|
241
|
-
AT_LEAST_ONE_SEP1(e) {
|
|
242
|
-
this.atLeastOneSepFirstInternal(1, e);
|
|
243
|
-
}
|
|
244
|
-
AT_LEAST_ONE_SEP2(e) {
|
|
245
|
-
this.atLeastOneSepFirstInternal(2, e);
|
|
246
|
-
}
|
|
247
|
-
AT_LEAST_ONE_SEP3(e) {
|
|
248
|
-
this.atLeastOneSepFirstInternal(3, e);
|
|
249
|
-
}
|
|
250
|
-
AT_LEAST_ONE_SEP4(e) {
|
|
251
|
-
this.atLeastOneSepFirstInternal(4, e);
|
|
252
|
-
}
|
|
253
|
-
AT_LEAST_ONE_SEP5(e) {
|
|
254
|
-
this.atLeastOneSepFirstInternal(5, e);
|
|
255
|
-
}
|
|
256
|
-
AT_LEAST_ONE_SEP6(e) {
|
|
257
|
-
this.atLeastOneSepFirstInternal(6, e);
|
|
258
|
-
}
|
|
259
|
-
AT_LEAST_ONE_SEP7(e) {
|
|
260
|
-
this.atLeastOneSepFirstInternal(7, e);
|
|
261
|
-
}
|
|
262
|
-
AT_LEAST_ONE_SEP8(e) {
|
|
263
|
-
this.atLeastOneSepFirstInternal(8, e);
|
|
264
|
-
}
|
|
265
|
-
AT_LEAST_ONE_SEP9(e) {
|
|
266
|
-
this.atLeastOneSepFirstInternal(9, e);
|
|
267
|
-
}
|
|
268
|
-
RULE(e, r, i = DEFAULT_RULE_CONFIG) {
|
|
269
|
-
if (this.definedRulesNames.includes(e)) {
|
|
270
|
-
let r = {
|
|
271
|
-
message: defaultGrammarValidatorErrorProvider.buildDuplicateRuleNameError({
|
|
272
|
-
topLevelRule: e,
|
|
273
|
-
grammarName: this.className
|
|
274
|
-
}),
|
|
275
|
-
type: ParserDefinitionErrorType.DUPLICATE_RULE_NAME,
|
|
276
|
-
ruleName: e
|
|
277
|
-
};
|
|
278
|
-
this.definitionErrors.push(r);
|
|
279
|
-
}
|
|
280
|
-
this.definedRulesNames.push(e);
|
|
281
|
-
let o = this.defineRule(e, r, i);
|
|
282
|
-
return this[e] = o, o;
|
|
283
|
-
}
|
|
284
|
-
OVERRIDE_RULE(e, n, i = DEFAULT_RULE_CONFIG) {
|
|
285
|
-
let a = validateRuleIsOverridden(e, this.definedRulesNames, this.className);
|
|
286
|
-
this.definitionErrors = this.definitionErrors.concat(a);
|
|
287
|
-
let o = this.defineRule(e, n, i);
|
|
288
|
-
return this[e] = o, o;
|
|
289
|
-
}
|
|
290
|
-
BACKTRACK(e, n) {
|
|
291
|
-
let r = e.coreRule ?? e;
|
|
292
|
-
return function() {
|
|
293
|
-
this.isBackTrackingStack.push(1);
|
|
294
|
-
let e = this.saveRecogState();
|
|
295
|
-
try {
|
|
296
|
-
return r.apply(this, n), !0;
|
|
297
|
-
} catch (e) {
|
|
298
|
-
if (isRecognitionException(e)) return !1;
|
|
299
|
-
throw e;
|
|
300
|
-
} finally {
|
|
301
|
-
this.reloadRecogState(e), this.isBackTrackingStack.pop();
|
|
302
|
-
}
|
|
303
|
-
};
|
|
304
|
-
}
|
|
305
|
-
getGAstProductions() {
|
|
306
|
-
return this.gastProductionsCache;
|
|
307
|
-
}
|
|
308
|
-
getSerializedGastProductions() {
|
|
309
|
-
return serializeGrammar(Object.values(this.gastProductionsCache));
|
|
310
|
-
}
|
|
311
|
-
};
|
|
312
|
-
export { RecognizerApi };
|
|
@@ -1,285 +0,0 @@
|
|
|
1
|
-
import { augmentTokenTypes, isTokenType, tokenStructuredMatcher, tokenStructuredMatcherNoCategories } from "../../../scan/tokens.js";
|
|
2
|
-
import { EOF } from "../../../scan/tokens_public.js";
|
|
3
|
-
import { NextTerminalAfterAtLeastOneSepWalker, NextTerminalAfterAtLeastOneWalker, NextTerminalAfterManySepWalker, NextTerminalAfterManyWalker } from "../../grammar/interpreter.js";
|
|
4
|
-
import { PROD_TYPE } from "../../grammar/lookahead.js";
|
|
5
|
-
import { MismatchedTokenException, NotAllInputParsedException, isRecognitionException } from "../../exceptions_public.js";
|
|
6
|
-
import { IN_RULE_RECOVERY_EXCEPTION } from "./recoverable.js";
|
|
7
|
-
import { AT_LEAST_ONE_IDX, AT_LEAST_ONE_SEP_IDX, BITS_FOR_METHOD_TYPE, BITS_FOR_OCCURRENCE_IDX, MANY_IDX, MANY_SEP_IDX, OPTION_IDX, OR_IDX } from "../../grammar/keys.js";
|
|
8
|
-
import { DEFAULT_RULE_CONFIG, END_OF_FILE } from "../parser.js";
|
|
9
|
-
var RecognizerEngine = class {
|
|
10
|
-
initRecognizerEngine(C, w) {
|
|
11
|
-
if (this.className = this.constructor.name, this.shortRuleNameToFull = {}, this.fullRuleNameToShort = {}, this.ruleShortNameIdx = 256, this.tokenMatcher = tokenStructuredMatcherNoCategories, this.subruleIdx = 0, this.currRuleShortName = 0, this.definedRulesNames = [], this.tokensMap = {}, this.isBackTrackingStack = [], this.RULE_STACK = [], this.RULE_STACK_IDX = -1, this.RULE_OCCURRENCE_STACK = [], this.RULE_OCCURRENCE_STACK_IDX = -1, this.gastProductionsCache = {}, Object.hasOwn(w, "serializedGrammar")) throw Error("The Parser's configuration can no longer contain a <serializedGrammar> property.\n See: https://chevrotain.io/docs/changes/BREAKING_CHANGES.html#_6-0-0\n For Further details.");
|
|
12
|
-
if (Array.isArray(C)) {
|
|
13
|
-
if (C.length === 0) throw Error("A Token Vocabulary cannot be empty.\n Note that the first argument for the parser constructor\n is no longer a Token vector (since v4.0).");
|
|
14
|
-
if (typeof C[0].startOffset == "number") throw Error("The Parser constructor no longer accepts a token vector as the first argument.\n See: https://chevrotain.io/docs/changes/BREAKING_CHANGES.html#_4-0-0\n For Further details.");
|
|
15
|
-
}
|
|
16
|
-
if (Array.isArray(C)) this.tokensMap = C.reduce((e, y) => (e[y.name] = y, e), {});
|
|
17
|
-
else if (Object.hasOwn(C, "modes") && Object.values(C.modes).flat().every(isTokenType)) {
|
|
18
|
-
let e = Object.values(C.modes).flat();
|
|
19
|
-
this.tokensMap = [...new Set(e)].reduce((e, y) => (e[y.name] = y, e), {});
|
|
20
|
-
} else if (typeof C == "object" && C) this.tokensMap = Object.assign({}, C);
|
|
21
|
-
else throw Error("<tokensDictionary> argument must be An Array of Token constructors, A dictionary of Token constructors or an IMultiModeLexerDefinition");
|
|
22
|
-
this.tokensMap.EOF = EOF, this.tokenMatcher = (Object.hasOwn(C, "modes") ? Object.values(C.modes).flat() : Object.values(C)).every((e) => e.categoryMatches?.length == 0) ? tokenStructuredMatcherNoCategories : tokenStructuredMatcher, augmentTokenTypes(Object.values(this.tokensMap));
|
|
23
|
-
}
|
|
24
|
-
defineRule(e, y, b) {
|
|
25
|
-
if (this.selfAnalysisDone) throw Error(`Grammar rule <${e}> may not be defined after the 'performSelfAnalysis' method has been called'\nMake sure that all grammar rule definitions are done before 'performSelfAnalysis' is called.`);
|
|
26
|
-
let x = Object.hasOwn(b, "resyncEnabled") ? b.resyncEnabled : DEFAULT_RULE_CONFIG.resyncEnabled, S = Object.hasOwn(b, "recoveryValueFunc") ? b.recoveryValueFunc : DEFAULT_RULE_CONFIG.recoveryValueFunc, C = this.ruleShortNameIdx << 12;
|
|
27
|
-
this.ruleShortNameIdx++, this.shortRuleNameToFull[C] = e, this.fullRuleNameToShort[e] = C;
|
|
28
|
-
let w;
|
|
29
|
-
return w = this.outputCst === !0 ? function(...b) {
|
|
30
|
-
try {
|
|
31
|
-
this.ruleInvocationStateUpdate(C, e, this.subruleIdx), y.apply(this, b);
|
|
32
|
-
let x = this.CST_STACK[this.CST_STACK.length - 1];
|
|
33
|
-
return this.cstPostRule(x), x;
|
|
34
|
-
} catch (e) {
|
|
35
|
-
return this.invokeRuleCatch(e, x, S);
|
|
36
|
-
} finally {
|
|
37
|
-
this.ruleFinallyStateUpdate();
|
|
38
|
-
}
|
|
39
|
-
} : function(...b) {
|
|
40
|
-
try {
|
|
41
|
-
return this.ruleInvocationStateUpdate(C, e, this.subruleIdx), y.apply(this, b);
|
|
42
|
-
} catch (e) {
|
|
43
|
-
return this.invokeRuleCatch(e, x, S);
|
|
44
|
-
} finally {
|
|
45
|
-
this.ruleFinallyStateUpdate();
|
|
46
|
-
}
|
|
47
|
-
}, Object.assign(function(...y) {
|
|
48
|
-
this.onBeforeParse(e);
|
|
49
|
-
try {
|
|
50
|
-
return w.apply(this, y);
|
|
51
|
-
} finally {
|
|
52
|
-
this.onAfterParse(e);
|
|
53
|
-
}
|
|
54
|
-
}, {
|
|
55
|
-
ruleName: e,
|
|
56
|
-
originalGrammarAction: y,
|
|
57
|
-
coreRule: w
|
|
58
|
-
});
|
|
59
|
-
}
|
|
60
|
-
invokeRuleCatch(e, y, b) {
|
|
61
|
-
let x = this.RULE_STACK_IDX === 0, S = y && !this.isBackTracking() && this.recoveryEnabled;
|
|
62
|
-
if (isRecognitionException(e)) {
|
|
63
|
-
let y = e;
|
|
64
|
-
if (S) {
|
|
65
|
-
let x = this.findReSyncTokenType();
|
|
66
|
-
if (this.isInCurrentRuleReSyncSet(x)) if (y.resyncedTokens = this.reSyncTo(x), this.outputCst) {
|
|
67
|
-
let e = this.CST_STACK[this.CST_STACK.length - 1];
|
|
68
|
-
return e.recoveredNode = !0, e;
|
|
69
|
-
} else return b(e);
|
|
70
|
-
else {
|
|
71
|
-
if (this.outputCst) {
|
|
72
|
-
let e = this.CST_STACK[this.CST_STACK.length - 1];
|
|
73
|
-
e.recoveredNode = !0, y.partialCstResult = e;
|
|
74
|
-
}
|
|
75
|
-
throw y;
|
|
76
|
-
}
|
|
77
|
-
} else if (x) return this.moveToTerminatedState(), b(e);
|
|
78
|
-
else throw y;
|
|
79
|
-
} else throw e;
|
|
80
|
-
}
|
|
81
|
-
optionInternal(e, y) {
|
|
82
|
-
let b = this.getKeyForAutomaticLookahead(512, y);
|
|
83
|
-
return this.optionInternalLogic(e, y, b);
|
|
84
|
-
}
|
|
85
|
-
optionInternalLogic(e, y, b) {
|
|
86
|
-
let x = this.getLaFuncFromCache(b), S;
|
|
87
|
-
if (typeof e != "function") {
|
|
88
|
-
S = e.DEF;
|
|
89
|
-
let y = e.GATE;
|
|
90
|
-
if (y !== void 0) {
|
|
91
|
-
let e = x;
|
|
92
|
-
x = () => y.call(this) && e.call(this);
|
|
93
|
-
}
|
|
94
|
-
} else S = e;
|
|
95
|
-
if (x.call(this) === !0) return S.call(this);
|
|
96
|
-
}
|
|
97
|
-
atLeastOneInternal(e, y) {
|
|
98
|
-
let b = this.getKeyForAutomaticLookahead(AT_LEAST_ONE_IDX, e);
|
|
99
|
-
return this.atLeastOneInternalLogic(e, y, b);
|
|
100
|
-
}
|
|
101
|
-
atLeastOneInternalLogic(e, y, b) {
|
|
102
|
-
let x = this.getLaFuncFromCache(b), S;
|
|
103
|
-
if (typeof y != "function") {
|
|
104
|
-
S = y.DEF;
|
|
105
|
-
let e = y.GATE;
|
|
106
|
-
if (e !== void 0) {
|
|
107
|
-
let y = x;
|
|
108
|
-
x = () => e.call(this) && y.call(this);
|
|
109
|
-
}
|
|
110
|
-
} else S = y;
|
|
111
|
-
if (x.call(this) === !0) {
|
|
112
|
-
let e = this.doSingleRepetition(S);
|
|
113
|
-
for (; x.call(this) === !0 && e === !0;) e = this.doSingleRepetition(S);
|
|
114
|
-
} else throw this.raiseEarlyExitException(e, PROD_TYPE.REPETITION_MANDATORY, y.ERR_MSG);
|
|
115
|
-
this.attemptInRepetitionRecovery(this.atLeastOneInternal, [e, y], x, AT_LEAST_ONE_IDX, e, NextTerminalAfterAtLeastOneWalker);
|
|
116
|
-
}
|
|
117
|
-
atLeastOneSepFirstInternal(e, y) {
|
|
118
|
-
let b = this.getKeyForAutomaticLookahead(AT_LEAST_ONE_SEP_IDX, e);
|
|
119
|
-
this.atLeastOneSepFirstInternalLogic(e, y, b);
|
|
120
|
-
}
|
|
121
|
-
atLeastOneSepFirstInternalLogic(e, y, b) {
|
|
122
|
-
let x = y.DEF, S = y.SEP;
|
|
123
|
-
if (this.getLaFuncFromCache(b).call(this) === !0) {
|
|
124
|
-
x.call(this);
|
|
125
|
-
let y = () => this.tokenMatcher(this.LA_FAST(1), S);
|
|
126
|
-
for (; this.tokenMatcher(this.LA_FAST(1), S) === !0;) this.CONSUME(S), x.call(this);
|
|
127
|
-
this.attemptInRepetitionRecovery(this.repetitionSepSecondInternal, [
|
|
128
|
-
e,
|
|
129
|
-
S,
|
|
130
|
-
y,
|
|
131
|
-
x,
|
|
132
|
-
NextTerminalAfterAtLeastOneSepWalker
|
|
133
|
-
], y, AT_LEAST_ONE_SEP_IDX, e, NextTerminalAfterAtLeastOneSepWalker);
|
|
134
|
-
} else throw this.raiseEarlyExitException(e, PROD_TYPE.REPETITION_MANDATORY_WITH_SEPARATOR, y.ERR_MSG);
|
|
135
|
-
}
|
|
136
|
-
manyInternal(e, y) {
|
|
137
|
-
let b = this.getKeyForAutomaticLookahead(768, e);
|
|
138
|
-
return this.manyInternalLogic(e, y, b);
|
|
139
|
-
}
|
|
140
|
-
manyInternalLogic(e, y, b) {
|
|
141
|
-
let x = this.getLaFuncFromCache(b), S;
|
|
142
|
-
if (typeof y != "function") {
|
|
143
|
-
S = y.DEF;
|
|
144
|
-
let e = y.GATE;
|
|
145
|
-
if (e !== void 0) {
|
|
146
|
-
let y = x;
|
|
147
|
-
x = () => e.call(this) && y.call(this);
|
|
148
|
-
}
|
|
149
|
-
} else S = y;
|
|
150
|
-
let C = !0;
|
|
151
|
-
for (; x.call(this) === !0 && C === !0;) C = this.doSingleRepetition(S);
|
|
152
|
-
this.attemptInRepetitionRecovery(this.manyInternal, [e, y], x, 768, e, NextTerminalAfterManyWalker, C);
|
|
153
|
-
}
|
|
154
|
-
manySepFirstInternal(e, y) {
|
|
155
|
-
let b = this.getKeyForAutomaticLookahead(MANY_SEP_IDX, e);
|
|
156
|
-
this.manySepFirstInternalLogic(e, y, b);
|
|
157
|
-
}
|
|
158
|
-
manySepFirstInternalLogic(e, y, b) {
|
|
159
|
-
let x = y.DEF, S = y.SEP;
|
|
160
|
-
if (this.getLaFuncFromCache(b).call(this) === !0) {
|
|
161
|
-
x.call(this);
|
|
162
|
-
let y = () => this.tokenMatcher(this.LA_FAST(1), S);
|
|
163
|
-
for (; this.tokenMatcher(this.LA_FAST(1), S) === !0;) this.CONSUME(S), x.call(this);
|
|
164
|
-
this.attemptInRepetitionRecovery(this.repetitionSepSecondInternal, [
|
|
165
|
-
e,
|
|
166
|
-
S,
|
|
167
|
-
y,
|
|
168
|
-
x,
|
|
169
|
-
NextTerminalAfterManySepWalker
|
|
170
|
-
], y, MANY_SEP_IDX, e, NextTerminalAfterManySepWalker);
|
|
171
|
-
}
|
|
172
|
-
}
|
|
173
|
-
repetitionSepSecondInternal(e, y, b, x, S) {
|
|
174
|
-
for (; b();) this.CONSUME(y), x.call(this);
|
|
175
|
-
/* istanbul ignore else */
|
|
176
|
-
this.attemptInRepetitionRecovery(this.repetitionSepSecondInternal, [
|
|
177
|
-
e,
|
|
178
|
-
y,
|
|
179
|
-
b,
|
|
180
|
-
x,
|
|
181
|
-
S
|
|
182
|
-
], b, AT_LEAST_ONE_SEP_IDX, e, S);
|
|
183
|
-
}
|
|
184
|
-
doSingleRepetition(e) {
|
|
185
|
-
let y = this.getLexerPosition();
|
|
186
|
-
return e.call(this), this.getLexerPosition() > y;
|
|
187
|
-
}
|
|
188
|
-
orInternal(e, y) {
|
|
189
|
-
let b = this.getKeyForAutomaticLookahead(256, y), x = Array.isArray(e) ? e : e.DEF, S = this.getLaFuncFromCache(b).call(this, x);
|
|
190
|
-
if (S !== void 0) return x[S].ALT.call(this);
|
|
191
|
-
this.raiseNoAltException(y, e.ERR_MSG);
|
|
192
|
-
}
|
|
193
|
-
ruleFinallyStateUpdate() {
|
|
194
|
-
this.RULE_STACK_IDX--, this.RULE_OCCURRENCE_STACK_IDX--, this.RULE_STACK_IDX >= 0 && (this.currRuleShortName = this.RULE_STACK[this.RULE_STACK_IDX]), this.cstFinallyStateUpdate();
|
|
195
|
-
}
|
|
196
|
-
subruleInternal(e, y, b) {
|
|
197
|
-
let x;
|
|
198
|
-
try {
|
|
199
|
-
let S = b === void 0 ? void 0 : b.ARGS;
|
|
200
|
-
return this.subruleIdx = y, x = e.coreRule.apply(this, S), this.cstPostNonTerminal(x, b !== void 0 && b.LABEL !== void 0 ? b.LABEL : e.ruleName), x;
|
|
201
|
-
} catch (y) {
|
|
202
|
-
throw this.subruleInternalError(y, b, e.ruleName);
|
|
203
|
-
}
|
|
204
|
-
}
|
|
205
|
-
subruleInternalError(e, y, b) {
|
|
206
|
-
throw isRecognitionException(e) && e.partialCstResult !== void 0 && (this.cstPostNonTerminal(e.partialCstResult, y !== void 0 && y.LABEL !== void 0 ? y.LABEL : b), delete e.partialCstResult), e;
|
|
207
|
-
}
|
|
208
|
-
consumeInternal(e, y, b) {
|
|
209
|
-
let x;
|
|
210
|
-
try {
|
|
211
|
-
let y = this.LA_FAST(1);
|
|
212
|
-
this.tokenMatcher(y, e) === !0 ? (this.consumeToken(), x = y) : this.consumeInternalError(e, y, b);
|
|
213
|
-
} catch (b) {
|
|
214
|
-
x = this.consumeInternalRecovery(e, y, b);
|
|
215
|
-
}
|
|
216
|
-
return this.cstPostTerminal(b !== void 0 && b.LABEL !== void 0 ? b.LABEL : e.name, x), x;
|
|
217
|
-
}
|
|
218
|
-
consumeInternalError(e, y, b) {
|
|
219
|
-
let x, S = this.LA(0);
|
|
220
|
-
throw x = b !== void 0 && b.ERR_MSG ? b.ERR_MSG : this.errorMessageProvider.buildMismatchTokenMessage({
|
|
221
|
-
expected: e,
|
|
222
|
-
actual: y,
|
|
223
|
-
previous: S,
|
|
224
|
-
ruleName: this.getCurrRuleFullName()
|
|
225
|
-
}), this.SAVE_ERROR(new MismatchedTokenException(x, y, S));
|
|
226
|
-
}
|
|
227
|
-
consumeInternalRecovery(e, y, b) {
|
|
228
|
-
if (this.recoveryEnabled && b.name === "MismatchedTokenException" && !this.isBackTracking()) {
|
|
229
|
-
let x = this.getFollowsForInRuleRecovery(e, y);
|
|
230
|
-
try {
|
|
231
|
-
return this.tryInRuleRecovery(e, x);
|
|
232
|
-
} catch (e) {
|
|
233
|
-
throw e.name === "InRuleRecoveryException" ? b : e;
|
|
234
|
-
}
|
|
235
|
-
} else throw b;
|
|
236
|
-
}
|
|
237
|
-
saveRecogState() {
|
|
238
|
-
let e = this.errors, y = this.RULE_STACK.slice(0, this.RULE_STACK_IDX + 1);
|
|
239
|
-
return {
|
|
240
|
-
errors: e,
|
|
241
|
-
lexerState: this.exportLexerState(),
|
|
242
|
-
RULE_STACK: y,
|
|
243
|
-
CST_STACK: this.CST_STACK
|
|
244
|
-
};
|
|
245
|
-
}
|
|
246
|
-
reloadRecogState(e) {
|
|
247
|
-
this.errors = e.errors, this.importLexerState(e.lexerState);
|
|
248
|
-
let y = e.RULE_STACK;
|
|
249
|
-
for (let e = 0; e < y.length; e++) this.RULE_STACK[e] = y[e];
|
|
250
|
-
this.RULE_STACK_IDX = y.length - 1, this.RULE_STACK_IDX >= 0 && (this.currRuleShortName = this.RULE_STACK[this.RULE_STACK_IDX]);
|
|
251
|
-
}
|
|
252
|
-
ruleInvocationStateUpdate(e, y, b) {
|
|
253
|
-
this.RULE_OCCURRENCE_STACK[++this.RULE_OCCURRENCE_STACK_IDX] = b, this.RULE_STACK[++this.RULE_STACK_IDX] = e, this.currRuleShortName = e, this.cstInvocationStateUpdate(y);
|
|
254
|
-
}
|
|
255
|
-
isBackTracking() {
|
|
256
|
-
return this.isBackTrackingStack.length !== 0;
|
|
257
|
-
}
|
|
258
|
-
getCurrRuleFullName() {
|
|
259
|
-
let e = this.currRuleShortName;
|
|
260
|
-
return this.shortRuleNameToFull[e];
|
|
261
|
-
}
|
|
262
|
-
shortRuleNameToFullName(e) {
|
|
263
|
-
return this.shortRuleNameToFull[e];
|
|
264
|
-
}
|
|
265
|
-
isAtEndOfInput() {
|
|
266
|
-
return this.tokenMatcher(this.LA(1), EOF);
|
|
267
|
-
}
|
|
268
|
-
reset() {
|
|
269
|
-
this.resetLexerState(), this.subruleIdx = 0, this.currRuleShortName = 0, this.isBackTrackingStack = [], this.errors = [], this.RULE_STACK_IDX = -1, this.RULE_OCCURRENCE_STACK_IDX = -1, this.CST_STACK = [];
|
|
270
|
-
}
|
|
271
|
-
onBeforeParse(e) {
|
|
272
|
-
for (let e = 0; e < this.maxLookahead + 1; e++) this.tokVector.push(END_OF_FILE);
|
|
273
|
-
}
|
|
274
|
-
onAfterParse(e) {
|
|
275
|
-
if (this.isAtEndOfInput() === !1) {
|
|
276
|
-
let e = this.LA(1), y = this.errorMessageProvider.buildNotAllInputParsedMessage({
|
|
277
|
-
firstRedundant: e,
|
|
278
|
-
ruleName: this.getCurrRuleFullName()
|
|
279
|
-
});
|
|
280
|
-
this.SAVE_ERROR(new NotAllInputParsedException(y, e));
|
|
281
|
-
}
|
|
282
|
-
for (; this.tokVector.at(-1) === END_OF_FILE;) this.tokVector.pop();
|
|
283
|
-
}
|
|
284
|
-
};
|
|
285
|
-
export { RecognizerEngine };
|