@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.
Files changed (440) hide show
  1. package/lib/esm/_virtual/_rolldown/runtime.js +5 -5
  2. package/lib/esm/atomic/atoms/modal/Modal.js +14 -14
  3. package/lib/esm/atomic/atoms/modal/Modal.js.map +1 -1
  4. package/lib/esm/atomic/molecules/markdown/components/MarkdownArticleContainer.css.js +1 -0
  5. package/lib/esm/atomic/molecules/markdown/components/MarkdownTableCell.css.js +0 -1
  6. package/lib/esm/focus/focusable.js +1 -1
  7. package/lib/esm/focus/focusable.js.map +1 -1
  8. package/lib/esm/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/architecture-7EHR7CIX.js +3 -0
  9. package/lib/esm/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/chunk-4EGX6M5U.js +37 -0
  10. package/lib/esm/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/chunk-4EGX6M5U.js.map +1 -0
  11. package/lib/esm/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/chunk-5DO6E6H7.js +25 -0
  12. package/lib/esm/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/chunk-5DO6E6H7.js.map +1 -0
  13. package/lib/esm/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/{chunk-LIHQZDEY.js → chunk-BR22UD5L.js} +18 -21
  14. package/lib/esm/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/chunk-BR22UD5L.js.map +1 -0
  15. package/lib/esm/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/chunk-FHYWG6QK.js +25 -0
  16. package/lib/esm/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/chunk-FHYWG6QK.js.map +1 -0
  17. package/lib/esm/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/chunk-MPE355IW.js +25 -0
  18. package/lib/esm/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/chunk-MPE355IW.js.map +1 -0
  19. package/lib/esm/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/chunk-MZUSXYTE.js +32 -0
  20. package/lib/esm/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/chunk-MZUSXYTE.js.map +1 -0
  21. package/lib/esm/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/chunk-N66VUXT2.js +56 -0
  22. package/lib/esm/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/chunk-N66VUXT2.js.map +1 -0
  23. package/lib/esm/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/chunk-NNHCCRGN.js +20648 -0
  24. package/lib/esm/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/chunk-NNHCCRGN.js.map +1 -0
  25. package/lib/esm/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/chunk-PUPMXCY4.js +25 -0
  26. package/lib/esm/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/chunk-PUPMXCY4.js.map +1 -0
  27. package/lib/esm/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/chunk-UIBZB4QT.js +25 -0
  28. package/lib/esm/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/chunk-UIBZB4QT.js.map +1 -0
  29. package/lib/esm/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/chunk-WCWK7LTN.js +33 -0
  30. package/lib/esm/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/chunk-WCWK7LTN.js.map +1 -0
  31. package/lib/esm/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/eventmodeling-FCH6USID.js +3 -0
  32. package/lib/esm/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/gitGraph-WXDBUCRP.js +3 -0
  33. package/lib/esm/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/info-J43DQDTF.js +3 -0
  34. package/lib/esm/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/packet-YPE3B663.js +3 -0
  35. package/lib/esm/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/pie-LRSECV5Y.js +3 -0
  36. package/lib/esm/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/radar-GUYGQ44K.js +3 -0
  37. package/lib/esm/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/treeView-BLDUP644.js +3 -0
  38. package/lib/esm/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/treemap-LRROVOQU.js +3 -0
  39. package/lib/esm/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/wardley-L42UT6IY.js +3 -0
  40. package/lib/esm/node_modules/@mermaid-js/parser/dist/mermaid-parser.core.js +24 -19
  41. package/lib/esm/node_modules/@mermaid-js/parser/dist/mermaid-parser.core.js.map +1 -1
  42. package/lib/esm/node_modules/dagre-d3-es/src/dagre/greedy-fas.js +8 -8
  43. package/lib/esm/node_modules/dagre-d3-es/src/dagre/layout.js +105 -105
  44. package/lib/esm/node_modules/dagre-d3-es/src/dagre/nesting-graph.js +12 -12
  45. package/lib/esm/node_modules/dagre-d3-es/src/dagre/order/cross-count.js +8 -8
  46. package/lib/esm/node_modules/dagre-d3-es/src/dagre/order/index.js +12 -12
  47. package/lib/esm/node_modules/dagre-d3-es/src/dagre/order/init-order.js +6 -6
  48. package/lib/esm/node_modules/dagre-d3-es/src/dagre/order/resolve-conflicts.js +7 -7
  49. package/lib/esm/node_modules/dagre-d3-es/src/dagre/order/sort-subgraph.js +9 -9
  50. package/lib/esm/node_modules/dagre-d3-es/src/dagre/order/sort.js +7 -7
  51. package/lib/esm/node_modules/dagre-d3-es/src/dagre/position/bk.js +53 -53
  52. package/lib/esm/node_modules/dagre-d3-es/src/dagre/position/index.js +5 -5
  53. package/lib/esm/node_modules/dagre-d3-es/src/dagre/rank/network-simplex.js +26 -26
  54. package/lib/esm/node_modules/dagre-d3-es/src/dagre/rank/util.js +9 -9
  55. package/lib/esm/node_modules/dagre-d3-es/src/dagre/util.js +54 -54
  56. package/lib/esm/node_modules/dagre-d3-es/src/graphlib/graph.js +45 -45
  57. package/lib/esm/node_modules/dagre-d3-es/src/graphlib/json.js +18 -18
  58. package/lib/esm/node_modules/lodash-es/_arrayLikeKeys.js +8 -8
  59. package/lib/esm/node_modules/lodash-es/_baseAssign.js +3 -3
  60. package/lib/esm/node_modules/lodash-es/_baseClone.js +24 -24
  61. package/lib/esm/node_modules/lodash-es/_baseForOwn.js +3 -3
  62. package/lib/esm/node_modules/lodash-es/_baseGetAllKeys.js +3 -3
  63. package/lib/esm/node_modules/lodash-es/_baseIsEqualDeep.js +12 -12
  64. package/lib/esm/node_modules/lodash-es/_baseIteratee.js +4 -4
  65. package/lib/esm/node_modules/lodash-es/_baseMatchesProperty.js +9 -9
  66. package/lib/esm/node_modules/lodash-es/_baseMerge.js +6 -6
  67. package/lib/esm/node_modules/lodash-es/_baseMergeDeep.js +15 -15
  68. package/lib/esm/node_modules/lodash-es/_baseOrderBy.js +14 -14
  69. package/lib/esm/node_modules/lodash-es/_baseSet.js +8 -8
  70. package/lib/esm/node_modules/lodash-es/_baseSetToString.js +5 -5
  71. package/lib/esm/node_modules/lodash-es/_baseToString.js +11 -11
  72. package/lib/esm/node_modules/lodash-es/_baseUniq.js +7 -7
  73. package/lib/esm/node_modules/lodash-es/_copySymbols.js +3 -3
  74. package/lib/esm/node_modules/lodash-es/_createSet.js +6 -6
  75. package/lib/esm/node_modules/lodash-es/_equalByTag.js +18 -18
  76. package/lib/esm/node_modules/lodash-es/_flatRest.js +4 -4
  77. package/lib/esm/node_modules/lodash-es/_getAllKeys.js +3 -3
  78. package/lib/esm/node_modules/lodash-es/_getAllKeysIn.js +4 -4
  79. package/lib/esm/node_modules/lodash-es/_getSymbolsIn.js +3 -3
  80. package/lib/esm/node_modules/lodash-es/_hasPath.js +5 -5
  81. package/lib/esm/node_modules/lodash-es/_initCloneObject.js +4 -4
  82. package/lib/esm/node_modules/lodash-es/_isFlattenable.js +3 -3
  83. package/lib/esm/node_modules/lodash-es/_isIterateeCall.js +6 -6
  84. package/lib/esm/node_modules/lodash-es/_mapCacheClear.js +6 -6
  85. package/lib/esm/node_modules/lodash-es/findIndex.js +4 -4
  86. package/lib/esm/node_modules/lodash-es/forEach.js +3 -3
  87. package/lib/esm/node_modules/lodash-es/forIn.js +3 -3
  88. package/lib/esm/node_modules/lodash-es/isEmpty.js +8 -8
  89. package/lib/esm/node_modules/lodash-es/isPlainObject.js +4 -4
  90. package/lib/esm/node_modules/lodash-es/isString.js +3 -3
  91. package/lib/esm/node_modules/lodash-es/keys.js +4 -4
  92. package/lib/esm/node_modules/lodash-es/keysIn.js +3 -3
  93. package/lib/esm/node_modules/lodash-es/map.js +3 -3
  94. package/lib/esm/node_modules/lodash-es/mapValues.js +5 -5
  95. package/lib/esm/node_modules/lodash-es/max.js +3 -3
  96. package/lib/esm/node_modules/lodash-es/min.js +3 -3
  97. package/lib/esm/node_modules/lodash-es/minBy.js +3 -3
  98. package/lib/esm/node_modules/lodash-es/reduce.js +5 -5
  99. package/lib/esm/node_modules/lodash-es/size.js +4 -4
  100. package/lib/esm/node_modules/lodash-es/sortBy.js +6 -6
  101. package/lib/esm/node_modules/lodash-es/union.js +6 -6
  102. package/lib/esm/node_modules/mermaid/dist/chunks/mermaid.core/chunk-5PVQY5BW.js +146 -146
  103. package/lib/esm/node_modules/mermaid/dist/chunks/mermaid.core/chunk-5PVQY5BW.js.map +1 -1
  104. package/lib/esm/node_modules/mermaid/dist/mermaid.core.js +374 -374
  105. package/lib/esm/node_modules/mermaid/dist/mermaid.core.js.map +1 -1
  106. package/lib/types/atomic/atoms/modal/Modal.d.ts.map +1 -1
  107. package/package.json +2 -2
  108. package/lib/esm/node_modules/@chevrotain/gast/lib/src/helpers.js +0 -27
  109. package/lib/esm/node_modules/@chevrotain/gast/lib/src/helpers.js.map +0 -1
  110. package/lib/esm/node_modules/@chevrotain/gast/lib/src/model.js +0 -155
  111. package/lib/esm/node_modules/@chevrotain/gast/lib/src/model.js.map +0 -1
  112. package/lib/esm/node_modules/@chevrotain/gast/lib/src/visitor.js +0 -45
  113. package/lib/esm/node_modules/@chevrotain/gast/lib/src/visitor.js.map +0 -1
  114. package/lib/esm/node_modules/@chevrotain/regexp-to-ast/lib/src/api.js +0 -2
  115. package/lib/esm/node_modules/@chevrotain/regexp-to-ast/lib/src/base-regexp-visitor.js +0 -89
  116. package/lib/esm/node_modules/@chevrotain/regexp-to-ast/lib/src/base-regexp-visitor.js.map +0 -1
  117. package/lib/esm/node_modules/@chevrotain/regexp-to-ast/lib/src/character-classes.js +0 -39
  118. package/lib/esm/node_modules/@chevrotain/regexp-to-ast/lib/src/character-classes.js.map +0 -1
  119. package/lib/esm/node_modules/@chevrotain/regexp-to-ast/lib/src/regexp-parser.js +0 -600
  120. package/lib/esm/node_modules/@chevrotain/regexp-to-ast/lib/src/regexp-parser.js.map +0 -1
  121. package/lib/esm/node_modules/@chevrotain/regexp-to-ast/lib/src/utils.js +0 -29
  122. package/lib/esm/node_modules/@chevrotain/regexp-to-ast/lib/src/utils.js.map +0 -1
  123. package/lib/esm/node_modules/@chevrotain/utils/lib/src/print.js +0 -13
  124. package/lib/esm/node_modules/@chevrotain/utils/lib/src/print.js.map +0 -1
  125. package/lib/esm/node_modules/@chevrotain/utils/lib/src/timer.js +0 -12
  126. package/lib/esm/node_modules/@chevrotain/utils/lib/src/timer.js.map +0 -1
  127. package/lib/esm/node_modules/@chevrotain/utils/lib/src/to-fast-properties.js +0 -14
  128. package/lib/esm/node_modules/@chevrotain/utils/lib/src/to-fast-properties.js.map +0 -1
  129. package/lib/esm/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/architecture-YZFGNWBL.js +0 -3
  130. package/lib/esm/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/chunk-2KRD3SAO.js +0 -28
  131. package/lib/esm/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/chunk-2KRD3SAO.js.map +0 -1
  132. package/lib/esm/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/chunk-67CJDMHE.js +0 -28
  133. package/lib/esm/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/chunk-67CJDMHE.js.map +0 -1
  134. package/lib/esm/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/chunk-7N4EOEYR.js +0 -40
  135. package/lib/esm/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/chunk-7N4EOEYR.js.map +0 -1
  136. package/lib/esm/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/chunk-AA7GKIK3.js +0 -35
  137. package/lib/esm/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/chunk-AA7GKIK3.js.map +0 -1
  138. package/lib/esm/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/chunk-CIAEETIT.js +0 -28
  139. package/lib/esm/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/chunk-CIAEETIT.js.map +0 -1
  140. package/lib/esm/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/chunk-FOC6F5B3.js +0 -28
  141. package/lib/esm/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/chunk-FOC6F5B3.js.map +0 -1
  142. package/lib/esm/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/chunk-K5T4RW27.js +0 -1210
  143. package/lib/esm/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/chunk-K5T4RW27.js.map +0 -1
  144. package/lib/esm/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/chunk-KGLVRYIC.js +0 -28
  145. package/lib/esm/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/chunk-KGLVRYIC.js.map +0 -1
  146. package/lib/esm/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/chunk-LIHQZDEY.js.map +0 -1
  147. package/lib/esm/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/chunk-ORNJ4GCN.js +0 -36
  148. package/lib/esm/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/chunk-ORNJ4GCN.js.map +0 -1
  149. package/lib/esm/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/gitGraph-7Q5UKJZL.js +0 -3
  150. package/lib/esm/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/info-OMHHGYJF.js +0 -3
  151. package/lib/esm/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/packet-4T2RLAQJ.js +0 -3
  152. package/lib/esm/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/pie-ZZUOXDRM.js +0 -3
  153. package/lib/esm/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/radar-PYXPWWZC.js +0 -3
  154. package/lib/esm/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/treeView-SZITEDCU.js +0 -3
  155. package/lib/esm/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/treemap-W4RFUUIX.js +0 -3
  156. package/lib/esm/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/wardley-RL74JXVD.js +0 -3
  157. package/lib/esm/node_modules/chevrotain/lib/src/api.js +0 -10
  158. package/lib/esm/node_modules/chevrotain/lib/src/lang/lang_extensions.js +0 -14
  159. package/lib/esm/node_modules/chevrotain/lib/src/lang/lang_extensions.js.map +0 -1
  160. package/lib/esm/node_modules/chevrotain/lib/src/parse/constants.js +0 -6
  161. package/lib/esm/node_modules/chevrotain/lib/src/parse/constants.js.map +0 -1
  162. package/lib/esm/node_modules/chevrotain/lib/src/parse/cst/cst.js +0 -17
  163. package/lib/esm/node_modules/chevrotain/lib/src/parse/cst/cst.js.map +0 -1
  164. package/lib/esm/node_modules/chevrotain/lib/src/parse/cst/cst_visitor.js +0 -53
  165. package/lib/esm/node_modules/chevrotain/lib/src/parse/cst/cst_visitor.js.map +0 -1
  166. package/lib/esm/node_modules/chevrotain/lib/src/parse/errors_public.js +0 -81
  167. package/lib/esm/node_modules/chevrotain/lib/src/parse/errors_public.js.map +0 -1
  168. package/lib/esm/node_modules/chevrotain/lib/src/parse/exceptions_public.js +0 -37
  169. package/lib/esm/node_modules/chevrotain/lib/src/parse/exceptions_public.js.map +0 -1
  170. package/lib/esm/node_modules/chevrotain/lib/src/parse/grammar/checks.js +0 -279
  171. package/lib/esm/node_modules/chevrotain/lib/src/parse/grammar/checks.js.map +0 -1
  172. package/lib/esm/node_modules/chevrotain/lib/src/parse/grammar/first.js +0 -27
  173. package/lib/esm/node_modules/chevrotain/lib/src/parse/grammar/first.js.map +0 -1
  174. package/lib/esm/node_modules/chevrotain/lib/src/parse/grammar/follow.js +0 -32
  175. package/lib/esm/node_modules/chevrotain/lib/src/parse/grammar/follow.js.map +0 -1
  176. package/lib/esm/node_modules/chevrotain/lib/src/parse/grammar/gast/gast_resolver_public.js +0 -18
  177. package/lib/esm/node_modules/chevrotain/lib/src/parse/grammar/gast/gast_resolver_public.js.map +0 -1
  178. package/lib/esm/node_modules/chevrotain/lib/src/parse/grammar/interpreter.js +0 -269
  179. package/lib/esm/node_modules/chevrotain/lib/src/parse/grammar/interpreter.js.map +0 -1
  180. package/lib/esm/node_modules/chevrotain/lib/src/parse/grammar/keys.js +0 -8
  181. package/lib/esm/node_modules/chevrotain/lib/src/parse/grammar/keys.js.map +0 -1
  182. package/lib/esm/node_modules/chevrotain/lib/src/parse/grammar/llk_lookahead.js +0 -45
  183. package/lib/esm/node_modules/chevrotain/lib/src/parse/grammar/llk_lookahead.js.map +0 -1
  184. package/lib/esm/node_modules/chevrotain/lib/src/parse/grammar/lookahead.js +0 -245
  185. package/lib/esm/node_modules/chevrotain/lib/src/parse/grammar/lookahead.js.map +0 -1
  186. package/lib/esm/node_modules/chevrotain/lib/src/parse/grammar/resolver.js +0 -34
  187. package/lib/esm/node_modules/chevrotain/lib/src/parse/grammar/resolver.js.map +0 -1
  188. package/lib/esm/node_modules/chevrotain/lib/src/parse/grammar/rest.js +0 -60
  189. package/lib/esm/node_modules/chevrotain/lib/src/parse/grammar/rest.js.map +0 -1
  190. package/lib/esm/node_modules/chevrotain/lib/src/parse/parser/parser.js +0 -118
  191. package/lib/esm/node_modules/chevrotain/lib/src/parse/parser/parser.js.map +0 -1
  192. package/lib/esm/node_modules/chevrotain/lib/src/parse/parser/traits/error_handler.js +0 -50
  193. package/lib/esm/node_modules/chevrotain/lib/src/parse/parser/traits/error_handler.js.map +0 -1
  194. package/lib/esm/node_modules/chevrotain/lib/src/parse/parser/traits/gast_recorder.js +0 -170
  195. package/lib/esm/node_modules/chevrotain/lib/src/parse/parser/traits/gast_recorder.js.map +0 -1
  196. package/lib/esm/node_modules/chevrotain/lib/src/parse/parser/traits/lexer_adapter.js +0 -47
  197. package/lib/esm/node_modules/chevrotain/lib/src/parse/parser/traits/lexer_adapter.js.map +0 -1
  198. package/lib/esm/node_modules/chevrotain/lib/src/parse/parser/traits/looksahead.js +0 -111
  199. package/lib/esm/node_modules/chevrotain/lib/src/parse/parser/traits/looksahead.js.map +0 -1
  200. package/lib/esm/node_modules/chevrotain/lib/src/parse/parser/traits/perf_tracer.js +0 -25
  201. package/lib/esm/node_modules/chevrotain/lib/src/parse/parser/traits/perf_tracer.js.map +0 -1
  202. package/lib/esm/node_modules/chevrotain/lib/src/parse/parser/traits/recognizer_api.js +0 -316
  203. package/lib/esm/node_modules/chevrotain/lib/src/parse/parser/traits/recognizer_api.js.map +0 -1
  204. package/lib/esm/node_modules/chevrotain/lib/src/parse/parser/traits/recognizer_engine.js +0 -291
  205. package/lib/esm/node_modules/chevrotain/lib/src/parse/parser/traits/recognizer_engine.js.map +0 -1
  206. package/lib/esm/node_modules/chevrotain/lib/src/parse/parser/traits/recoverable.js +0 -147
  207. package/lib/esm/node_modules/chevrotain/lib/src/parse/parser/traits/recoverable.js.map +0 -1
  208. package/lib/esm/node_modules/chevrotain/lib/src/parse/parser/traits/tree_builder.js +0 -96
  209. package/lib/esm/node_modules/chevrotain/lib/src/parse/parser/traits/tree_builder.js.map +0 -1
  210. package/lib/esm/node_modules/chevrotain/lib/src/parse/parser/utils/apply_mixins.js +0 -15
  211. package/lib/esm/node_modules/chevrotain/lib/src/parse/parser/utils/apply_mixins.js.map +0 -1
  212. package/lib/esm/node_modules/chevrotain/lib/src/scan/lexer.js +0 -439
  213. package/lib/esm/node_modules/chevrotain/lib/src/scan/lexer.js.map +0 -1
  214. package/lib/esm/node_modules/chevrotain/lib/src/scan/lexer_errors_public.js +0 -13
  215. package/lib/esm/node_modules/chevrotain/lib/src/scan/lexer_errors_public.js.map +0 -1
  216. package/lib/esm/node_modules/chevrotain/lib/src/scan/lexer_public.js +0 -257
  217. package/lib/esm/node_modules/chevrotain/lib/src/scan/lexer_public.js.map +0 -1
  218. package/lib/esm/node_modules/chevrotain/lib/src/scan/reg_exp.js +0 -157
  219. package/lib/esm/node_modules/chevrotain/lib/src/scan/reg_exp.js.map +0 -1
  220. package/lib/esm/node_modules/chevrotain/lib/src/scan/reg_exp_parser.js +0 -19
  221. package/lib/esm/node_modules/chevrotain/lib/src/scan/reg_exp_parser.js.map +0 -1
  222. package/lib/esm/node_modules/chevrotain/lib/src/scan/tokens.js +0 -68
  223. package/lib/esm/node_modules/chevrotain/lib/src/scan/tokens.js.map +0 -1
  224. package/lib/esm/node_modules/chevrotain/lib/src/scan/tokens_public.js +0 -43
  225. package/lib/esm/node_modules/chevrotain/lib/src/scan/tokens_public.js.map +0 -1
  226. package/lib/esm/node_modules/chevrotain-allstar/lib/all-star-lookahead.js +0 -365
  227. package/lib/esm/node_modules/chevrotain-allstar/lib/all-star-lookahead.js.map +0 -1
  228. package/lib/esm/node_modules/chevrotain-allstar/lib/atn.js +0 -197
  229. package/lib/esm/node_modules/chevrotain-allstar/lib/atn.js.map +0 -1
  230. package/lib/esm/node_modules/chevrotain-allstar/lib/dfa.js +0 -35
  231. package/lib/esm/node_modules/chevrotain-allstar/lib/dfa.js.map +0 -1
  232. package/lib/esm/node_modules/chevrotain-allstar/lib/index.js +0 -1
  233. package/lib/esm/node_modules/langium/lib/default-module.js +0 -89
  234. package/lib/esm/node_modules/langium/lib/default-module.js.map +0 -1
  235. package/lib/esm/node_modules/langium/lib/dependency-injection.js +0 -62
  236. package/lib/esm/node_modules/langium/lib/dependency-injection.js.map +0 -1
  237. package/lib/esm/node_modules/langium/lib/documentation/comment-provider.js +0 -15
  238. package/lib/esm/node_modules/langium/lib/documentation/comment-provider.js.map +0 -1
  239. package/lib/esm/node_modules/langium/lib/documentation/documentation-provider.js +0 -40
  240. package/lib/esm/node_modules/langium/lib/documentation/documentation-provider.js.map +0 -1
  241. package/lib/esm/node_modules/langium/lib/documentation/jsdoc.js +0 -307
  242. package/lib/esm/node_modules/langium/lib/documentation/jsdoc.js.map +0 -1
  243. package/lib/esm/node_modules/langium/lib/languages/generated/ast.js +0 -900
  244. package/lib/esm/node_modules/langium/lib/languages/generated/ast.js.map +0 -1
  245. package/lib/esm/node_modules/langium/lib/languages/grammar-config.js +0 -17
  246. package/lib/esm/node_modules/langium/lib/languages/grammar-config.js.map +0 -1
  247. package/lib/esm/node_modules/langium/lib/parser/async-parser.js +0 -13
  248. package/lib/esm/node_modules/langium/lib/parser/async-parser.js.map +0 -1
  249. package/lib/esm/node_modules/langium/lib/parser/completion-parser-builder.js +0 -11
  250. package/lib/esm/node_modules/langium/lib/parser/completion-parser-builder.js.map +0 -1
  251. package/lib/esm/node_modules/langium/lib/parser/cst-node-builder.js +0 -164
  252. package/lib/esm/node_modules/langium/lib/parser/cst-node-builder.js.map +0 -1
  253. package/lib/esm/node_modules/langium/lib/parser/langium-parser-builder.js +0 -15
  254. package/lib/esm/node_modules/langium/lib/parser/langium-parser-builder.js.map +0 -1
  255. package/lib/esm/node_modules/langium/lib/parser/langium-parser.js +0 -397
  256. package/lib/esm/node_modules/langium/lib/parser/langium-parser.js.map +0 -1
  257. package/lib/esm/node_modules/langium/lib/parser/lexer.js +0 -54
  258. package/lib/esm/node_modules/langium/lib/parser/lexer.js.map +0 -1
  259. package/lib/esm/node_modules/langium/lib/parser/parser-builder-base.js +0 -278
  260. package/lib/esm/node_modules/langium/lib/parser/parser-builder-base.js.map +0 -1
  261. package/lib/esm/node_modules/langium/lib/parser/token-builder.js +0 -65
  262. package/lib/esm/node_modules/langium/lib/parser/token-builder.js.map +0 -1
  263. package/lib/esm/node_modules/langium/lib/parser/value-converter.js +0 -82
  264. package/lib/esm/node_modules/langium/lib/parser/value-converter.js.map +0 -1
  265. package/lib/esm/node_modules/langium/lib/references/linker.js +0 -195
  266. package/lib/esm/node_modules/langium/lib/references/linker.js.map +0 -1
  267. package/lib/esm/node_modules/langium/lib/references/name-provider.js +0 -17
  268. package/lib/esm/node_modules/langium/lib/references/name-provider.js.map +0 -1
  269. package/lib/esm/node_modules/langium/lib/references/references.js +0 -80
  270. package/lib/esm/node_modules/langium/lib/references/references.js.map +0 -1
  271. package/lib/esm/node_modules/langium/lib/references/scope-computation.js +0 -39
  272. package/lib/esm/node_modules/langium/lib/references/scope-computation.js.map +0 -1
  273. package/lib/esm/node_modules/langium/lib/references/scope-provider.js +0 -38
  274. package/lib/esm/node_modules/langium/lib/references/scope-provider.js.map +0 -1
  275. package/lib/esm/node_modules/langium/lib/references/scope.js +0 -46
  276. package/lib/esm/node_modules/langium/lib/references/scope.js.map +0 -1
  277. package/lib/esm/node_modules/langium/lib/serializer/hydrator.js +0 -129
  278. package/lib/esm/node_modules/langium/lib/serializer/hydrator.js.map +0 -1
  279. package/lib/esm/node_modules/langium/lib/serializer/json-serializer.js +0 -149
  280. package/lib/esm/node_modules/langium/lib/serializer/json-serializer.js.map +0 -1
  281. package/lib/esm/node_modules/langium/lib/service-registry.js +0 -41
  282. package/lib/esm/node_modules/langium/lib/service-registry.js.map +0 -1
  283. package/lib/esm/node_modules/langium/lib/syntax-tree.js +0 -74
  284. package/lib/esm/node_modules/langium/lib/syntax-tree.js.map +0 -1
  285. package/lib/esm/node_modules/langium/lib/utils/ast-utils.js +0 -124
  286. package/lib/esm/node_modules/langium/lib/utils/ast-utils.js.map +0 -1
  287. package/lib/esm/node_modules/langium/lib/utils/caching.js +0 -84
  288. package/lib/esm/node_modules/langium/lib/utils/caching.js.map +0 -1
  289. package/lib/esm/node_modules/langium/lib/utils/cancellation.js +0 -9
  290. package/lib/esm/node_modules/langium/lib/utils/cancellation.js.map +0 -1
  291. package/lib/esm/node_modules/langium/lib/utils/collections.js +0 -89
  292. package/lib/esm/node_modules/langium/lib/utils/collections.js.map +0 -1
  293. package/lib/esm/node_modules/langium/lib/utils/cst-utils.js +0 -77
  294. package/lib/esm/node_modules/langium/lib/utils/cst-utils.js.map +0 -1
  295. package/lib/esm/node_modules/langium/lib/utils/disposable.js +0 -12
  296. package/lib/esm/node_modules/langium/lib/utils/disposable.js.map +0 -1
  297. package/lib/esm/node_modules/langium/lib/utils/errors.js +0 -13
  298. package/lib/esm/node_modules/langium/lib/utils/errors.js.map +0 -1
  299. package/lib/esm/node_modules/langium/lib/utils/event.js +0 -9
  300. package/lib/esm/node_modules/langium/lib/utils/event.js.map +0 -1
  301. package/lib/esm/node_modules/langium/lib/utils/grammar-loader.js +0 -26
  302. package/lib/esm/node_modules/langium/lib/utils/grammar-loader.js.map +0 -1
  303. package/lib/esm/node_modules/langium/lib/utils/grammar-utils.js +0 -221
  304. package/lib/esm/node_modules/langium/lib/utils/grammar-utils.js.map +0 -1
  305. package/lib/esm/node_modules/langium/lib/utils/promise-utils.js +0 -31
  306. package/lib/esm/node_modules/langium/lib/utils/promise-utils.js.map +0 -1
  307. package/lib/esm/node_modules/langium/lib/utils/regexp-utils.js +0 -146
  308. package/lib/esm/node_modules/langium/lib/utils/regexp-utils.js.map +0 -1
  309. package/lib/esm/node_modules/langium/lib/utils/stream.js +0 -331
  310. package/lib/esm/node_modules/langium/lib/utils/stream.js.map +0 -1
  311. package/lib/esm/node_modules/langium/lib/utils/uri-utils.js +0 -111
  312. package/lib/esm/node_modules/langium/lib/utils/uri-utils.js.map +0 -1
  313. package/lib/esm/node_modules/langium/lib/validation/document-validator.js +0 -213
  314. package/lib/esm/node_modules/langium/lib/validation/document-validator.js.map +0 -1
  315. package/lib/esm/node_modules/langium/lib/validation/validation-registry.js +0 -90
  316. package/lib/esm/node_modules/langium/lib/validation/validation-registry.js.map +0 -1
  317. package/lib/esm/node_modules/langium/lib/workspace/ast-descriptions.js +0 -61
  318. package/lib/esm/node_modules/langium/lib/workspace/ast-descriptions.js.map +0 -1
  319. package/lib/esm/node_modules/langium/lib/workspace/ast-node-locator.js +0 -32
  320. package/lib/esm/node_modules/langium/lib/workspace/ast-node-locator.js.map +0 -1
  321. package/lib/esm/node_modules/langium/lib/workspace/configuration.js +0 -55
  322. package/lib/esm/node_modules/langium/lib/workspace/configuration.js.map +0 -1
  323. package/lib/esm/node_modules/langium/lib/workspace/document-builder.js +0 -200
  324. package/lib/esm/node_modules/langium/lib/workspace/document-builder.js.map +0 -1
  325. package/lib/esm/node_modules/langium/lib/workspace/documents.js +0 -146
  326. package/lib/esm/node_modules/langium/lib/workspace/documents.js.map +0 -1
  327. package/lib/esm/node_modules/langium/lib/workspace/file-system-provider.js +0 -37
  328. package/lib/esm/node_modules/langium/lib/workspace/file-system-provider.js.map +0 -1
  329. package/lib/esm/node_modules/langium/lib/workspace/index-manager.js +0 -53
  330. package/lib/esm/node_modules/langium/lib/workspace/index-manager.js.map +0 -1
  331. package/lib/esm/node_modules/langium/lib/workspace/workspace-lock.js +0 -46
  332. package/lib/esm/node_modules/langium/lib/workspace/workspace-lock.js.map +0 -1
  333. package/lib/esm/node_modules/langium/lib/workspace/workspace-manager.js +0 -70
  334. package/lib/esm/node_modules/langium/lib/workspace/workspace-manager.js.map +0 -1
  335. package/lib/esm/node_modules/lodash-es/flatMap.js +0 -10
  336. package/lib/esm/node_modules/lodash-es/flatMap.js.map +0 -1
  337. package/lib/esm/node_modules/lodash-es/uniqBy.js +0 -10
  338. package/lib/esm/node_modules/lodash-es/uniqBy.js.map +0 -1
  339. package/lib/esm/node_modules/vscode-jsonrpc/lib/common/cancellation.js +0 -61
  340. package/lib/esm/node_modules/vscode-jsonrpc/lib/common/cancellation.js.map +0 -1
  341. package/lib/esm/node_modules/vscode-jsonrpc/lib/common/events.js +0 -68
  342. package/lib/esm/node_modules/vscode-jsonrpc/lib/common/events.js.map +0 -1
  343. package/lib/esm/node_modules/vscode-jsonrpc/lib/common/is.js +0 -38
  344. package/lib/esm/node_modules/vscode-jsonrpc/lib/common/is.js.map +0 -1
  345. package/lib/esm/node_modules/vscode-jsonrpc/lib/common/ral.js +0 -22
  346. package/lib/esm/node_modules/vscode-jsonrpc/lib/common/ral.js.map +0 -1
  347. package/lib/esm/node_modules/vscode-languageserver-protocol/lib/browser/main.js +0 -32
  348. package/lib/esm/node_modules/vscode-languageserver-protocol/lib/browser/main.js.map +0 -1
  349. package/lib/esm/node_modules/vscode-languageserver-protocol/lib/common/api.js +0 -40
  350. package/lib/esm/node_modules/vscode-languageserver-protocol/lib/common/api.js.map +0 -1
  351. package/lib/esm/node_modules/vscode-languageserver-protocol/lib/common/connection.js +0 -16
  352. package/lib/esm/node_modules/vscode-languageserver-protocol/lib/common/connection.js.map +0 -1
  353. package/lib/esm/node_modules/vscode-languageserver-protocol/lib/common/messages.js +0 -35
  354. package/lib/esm/node_modules/vscode-languageserver-protocol/lib/common/messages.js.map +0 -1
  355. package/lib/esm/node_modules/vscode-languageserver-protocol/lib/common/protocol.callHierarchy.js +0 -23
  356. package/lib/esm/node_modules/vscode-languageserver-protocol/lib/common/protocol.callHierarchy.js.map +0 -1
  357. package/lib/esm/node_modules/vscode-languageserver-protocol/lib/common/protocol.colorProvider.js +0 -19
  358. package/lib/esm/node_modules/vscode-languageserver-protocol/lib/common/protocol.colorProvider.js.map +0 -1
  359. package/lib/esm/node_modules/vscode-languageserver-protocol/lib/common/protocol.configuration.js +0 -15
  360. package/lib/esm/node_modules/vscode-languageserver-protocol/lib/common/protocol.configuration.js.map +0 -1
  361. package/lib/esm/node_modules/vscode-languageserver-protocol/lib/common/protocol.declaration.js +0 -15
  362. package/lib/esm/node_modules/vscode-languageserver-protocol/lib/common/protocol.declaration.js.map +0 -1
  363. package/lib/esm/node_modules/vscode-languageserver-protocol/lib/common/protocol.diagnostic.js +0 -37
  364. package/lib/esm/node_modules/vscode-languageserver-protocol/lib/common/protocol.diagnostic.js.map +0 -1
  365. package/lib/esm/node_modules/vscode-languageserver-protocol/lib/common/protocol.fileOperations.js +0 -39
  366. package/lib/esm/node_modules/vscode-languageserver-protocol/lib/common/protocol.fileOperations.js.map +0 -1
  367. package/lib/esm/node_modules/vscode-languageserver-protocol/lib/common/protocol.foldingRange.js +0 -19
  368. package/lib/esm/node_modules/vscode-languageserver-protocol/lib/common/protocol.foldingRange.js.map +0 -1
  369. package/lib/esm/node_modules/vscode-languageserver-protocol/lib/common/protocol.implementation.js +0 -15
  370. package/lib/esm/node_modules/vscode-languageserver-protocol/lib/common/protocol.implementation.js.map +0 -1
  371. package/lib/esm/node_modules/vscode-languageserver-protocol/lib/common/protocol.inlayHint.js +0 -23
  372. package/lib/esm/node_modules/vscode-languageserver-protocol/lib/common/protocol.inlayHint.js.map +0 -1
  373. package/lib/esm/node_modules/vscode-languageserver-protocol/lib/common/protocol.inlineCompletion.js +0 -15
  374. package/lib/esm/node_modules/vscode-languageserver-protocol/lib/common/protocol.inlineCompletion.js.map +0 -1
  375. package/lib/esm/node_modules/vscode-languageserver-protocol/lib/common/protocol.inlineValue.js +0 -19
  376. package/lib/esm/node_modules/vscode-languageserver-protocol/lib/common/protocol.inlineValue.js.map +0 -1
  377. package/lib/esm/node_modules/vscode-languageserver-protocol/lib/common/protocol.js +0 -678
  378. package/lib/esm/node_modules/vscode-languageserver-protocol/lib/common/protocol.js.map +0 -1
  379. package/lib/esm/node_modules/vscode-languageserver-protocol/lib/common/protocol.linkedEditingRange.js +0 -15
  380. package/lib/esm/node_modules/vscode-languageserver-protocol/lib/common/protocol.linkedEditingRange.js.map +0 -1
  381. package/lib/esm/node_modules/vscode-languageserver-protocol/lib/common/protocol.moniker.js +0 -23
  382. package/lib/esm/node_modules/vscode-languageserver-protocol/lib/common/protocol.moniker.js.map +0 -1
  383. package/lib/esm/node_modules/vscode-languageserver-protocol/lib/common/protocol.notebook.js +0 -130
  384. package/lib/esm/node_modules/vscode-languageserver-protocol/lib/common/protocol.notebook.js.map +0 -1
  385. package/lib/esm/node_modules/vscode-languageserver-protocol/lib/common/protocol.progress.js +0 -28
  386. package/lib/esm/node_modules/vscode-languageserver-protocol/lib/common/protocol.progress.js.map +0 -1
  387. package/lib/esm/node_modules/vscode-languageserver-protocol/lib/common/protocol.selectionRange.js +0 -15
  388. package/lib/esm/node_modules/vscode-languageserver-protocol/lib/common/protocol.selectionRange.js.map +0 -1
  389. package/lib/esm/node_modules/vscode-languageserver-protocol/lib/common/protocol.semanticTokens.js +0 -35
  390. package/lib/esm/node_modules/vscode-languageserver-protocol/lib/common/protocol.semanticTokens.js.map +0 -1
  391. package/lib/esm/node_modules/vscode-languageserver-protocol/lib/common/protocol.showDocument.js +0 -15
  392. package/lib/esm/node_modules/vscode-languageserver-protocol/lib/common/protocol.showDocument.js.map +0 -1
  393. package/lib/esm/node_modules/vscode-languageserver-protocol/lib/common/protocol.typeDefinition.js +0 -15
  394. package/lib/esm/node_modules/vscode-languageserver-protocol/lib/common/protocol.typeDefinition.js.map +0 -1
  395. package/lib/esm/node_modules/vscode-languageserver-protocol/lib/common/protocol.typeHierarchy.js +0 -23
  396. package/lib/esm/node_modules/vscode-languageserver-protocol/lib/common/protocol.typeHierarchy.js.map +0 -1
  397. package/lib/esm/node_modules/vscode-languageserver-protocol/lib/common/protocol.workspaceFolder.js +0 -19
  398. package/lib/esm/node_modules/vscode-languageserver-protocol/lib/common/protocol.workspaceFolder.js.map +0 -1
  399. package/lib/esm/node_modules/vscode-languageserver-protocol/lib/common/utils/is.js +0 -46
  400. package/lib/esm/node_modules/vscode-languageserver-protocol/lib/common/utils/is.js.map +0 -1
  401. package/lib/esm/node_modules/vscode-languageserver-protocol/node_modules/vscode-jsonrpc/browser.js +0 -11
  402. package/lib/esm/node_modules/vscode-languageserver-protocol/node_modules/vscode-jsonrpc/browser.js.map +0 -1
  403. package/lib/esm/node_modules/vscode-languageserver-protocol/node_modules/vscode-jsonrpc/lib/browser/main.js +0 -56
  404. package/lib/esm/node_modules/vscode-languageserver-protocol/node_modules/vscode-jsonrpc/lib/browser/main.js.map +0 -1
  405. package/lib/esm/node_modules/vscode-languageserver-protocol/node_modules/vscode-jsonrpc/lib/browser/ril.js +0 -124
  406. package/lib/esm/node_modules/vscode-languageserver-protocol/node_modules/vscode-jsonrpc/lib/browser/ril.js.map +0 -1
  407. package/lib/esm/node_modules/vscode-languageserver-protocol/node_modules/vscode-jsonrpc/lib/common/api.js +0 -341
  408. package/lib/esm/node_modules/vscode-languageserver-protocol/node_modules/vscode-jsonrpc/lib/common/api.js.map +0 -1
  409. package/lib/esm/node_modules/vscode-languageserver-protocol/node_modules/vscode-jsonrpc/lib/common/cancellation.js +0 -61
  410. package/lib/esm/node_modules/vscode-languageserver-protocol/node_modules/vscode-jsonrpc/lib/common/cancellation.js.map +0 -1
  411. package/lib/esm/node_modules/vscode-languageserver-protocol/node_modules/vscode-jsonrpc/lib/common/connection.js +0 -651
  412. package/lib/esm/node_modules/vscode-languageserver-protocol/node_modules/vscode-jsonrpc/lib/common/connection.js.map +0 -1
  413. package/lib/esm/node_modules/vscode-languageserver-protocol/node_modules/vscode-jsonrpc/lib/common/disposable.js +0 -17
  414. package/lib/esm/node_modules/vscode-languageserver-protocol/node_modules/vscode-jsonrpc/lib/common/disposable.js.map +0 -1
  415. package/lib/esm/node_modules/vscode-languageserver-protocol/node_modules/vscode-jsonrpc/lib/common/events.js +0 -68
  416. package/lib/esm/node_modules/vscode-languageserver-protocol/node_modules/vscode-jsonrpc/lib/common/events.js.map +0 -1
  417. package/lib/esm/node_modules/vscode-languageserver-protocol/node_modules/vscode-jsonrpc/lib/common/is.js +0 -38
  418. package/lib/esm/node_modules/vscode-languageserver-protocol/node_modules/vscode-jsonrpc/lib/common/is.js.map +0 -1
  419. package/lib/esm/node_modules/vscode-languageserver-protocol/node_modules/vscode-jsonrpc/lib/common/linkedMap.js +0 -239
  420. package/lib/esm/node_modules/vscode-languageserver-protocol/node_modules/vscode-jsonrpc/lib/common/linkedMap.js.map +0 -1
  421. package/lib/esm/node_modules/vscode-languageserver-protocol/node_modules/vscode-jsonrpc/lib/common/messageBuffer.js +0 -97
  422. package/lib/esm/node_modules/vscode-languageserver-protocol/node_modules/vscode-jsonrpc/lib/common/messageBuffer.js.map +0 -1
  423. package/lib/esm/node_modules/vscode-languageserver-protocol/node_modules/vscode-jsonrpc/lib/common/messageReader.js +0 -133
  424. package/lib/esm/node_modules/vscode-languageserver-protocol/node_modules/vscode-jsonrpc/lib/common/messageReader.js.map +0 -1
  425. package/lib/esm/node_modules/vscode-languageserver-protocol/node_modules/vscode-jsonrpc/lib/common/messageWriter.js +0 -89
  426. package/lib/esm/node_modules/vscode-languageserver-protocol/node_modules/vscode-jsonrpc/lib/common/messageWriter.js.map +0 -1
  427. package/lib/esm/node_modules/vscode-languageserver-protocol/node_modules/vscode-jsonrpc/lib/common/messages.js +0 -165
  428. package/lib/esm/node_modules/vscode-languageserver-protocol/node_modules/vscode-jsonrpc/lib/common/messages.js.map +0 -1
  429. package/lib/esm/node_modules/vscode-languageserver-protocol/node_modules/vscode-jsonrpc/lib/common/ral.js +0 -22
  430. package/lib/esm/node_modules/vscode-languageserver-protocol/node_modules/vscode-jsonrpc/lib/common/ral.js.map +0 -1
  431. package/lib/esm/node_modules/vscode-languageserver-protocol/node_modules/vscode-jsonrpc/lib/common/semaphore.js +0 -48
  432. package/lib/esm/node_modules/vscode-languageserver-protocol/node_modules/vscode-jsonrpc/lib/common/semaphore.js.map +0 -1
  433. package/lib/esm/node_modules/vscode-languageserver-protocol/node_modules/vscode-jsonrpc/lib/common/sharedArrayCancellation.js +0 -62
  434. package/lib/esm/node_modules/vscode-languageserver-protocol/node_modules/vscode-jsonrpc/lib/common/sharedArrayCancellation.js.map +0 -1
  435. package/lib/esm/node_modules/vscode-languageserver-textdocument/lib/esm/main.js +0 -142
  436. package/lib/esm/node_modules/vscode-languageserver-textdocument/lib/esm/main.js.map +0 -1
  437. package/lib/esm/node_modules/vscode-languageserver-types/lib/esm/main.js +0 -1088
  438. package/lib/esm/node_modules/vscode-languageserver-types/lib/esm/main.js.map +0 -1
  439. package/lib/esm/node_modules/vscode-uri/lib/esm/index.js +0 -377
  440. package/lib/esm/node_modules/vscode-uri/lib/esm/index.js.map +0 -1
@@ -1 +0,0 @@
1
- {"version":3,"file":"lookahead.js","names":["AlternativeGAST"],"sources":["../../../../../../../../../../node_modules/chevrotain/lib/src/parse/grammar/lookahead.js"],"sourcesContent":["import { possiblePathsFrom } from \"./interpreter.js\";\nimport { RestWalker } from \"./rest.js\";\nimport { tokenStructuredMatcher, tokenStructuredMatcherNoCategories, } from \"../../scan/tokens.js\";\nimport { Alternation, Alternative as AlternativeGAST, GAstVisitor, Option, Repetition, RepetitionMandatory, RepetitionMandatoryWithSeparator, RepetitionWithSeparator, } from \"@chevrotain/gast\";\nexport var PROD_TYPE;\n(function (PROD_TYPE) {\n PROD_TYPE[PROD_TYPE[\"OPTION\"] = 0] = \"OPTION\";\n PROD_TYPE[PROD_TYPE[\"REPETITION\"] = 1] = \"REPETITION\";\n PROD_TYPE[PROD_TYPE[\"REPETITION_MANDATORY\"] = 2] = \"REPETITION_MANDATORY\";\n PROD_TYPE[PROD_TYPE[\"REPETITION_MANDATORY_WITH_SEPARATOR\"] = 3] = \"REPETITION_MANDATORY_WITH_SEPARATOR\";\n PROD_TYPE[PROD_TYPE[\"REPETITION_WITH_SEPARATOR\"] = 4] = \"REPETITION_WITH_SEPARATOR\";\n PROD_TYPE[PROD_TYPE[\"ALTERNATION\"] = 5] = \"ALTERNATION\";\n})(PROD_TYPE || (PROD_TYPE = {}));\nexport function getProdType(prod) {\n /* istanbul ignore else */\n if (prod instanceof Option || prod === \"Option\") {\n return PROD_TYPE.OPTION;\n }\n else if (prod instanceof Repetition || prod === \"Repetition\") {\n return PROD_TYPE.REPETITION;\n }\n else if (prod instanceof RepetitionMandatory ||\n prod === \"RepetitionMandatory\") {\n return PROD_TYPE.REPETITION_MANDATORY;\n }\n else if (prod instanceof RepetitionMandatoryWithSeparator ||\n prod === \"RepetitionMandatoryWithSeparator\") {\n return PROD_TYPE.REPETITION_MANDATORY_WITH_SEPARATOR;\n }\n else if (prod instanceof RepetitionWithSeparator ||\n prod === \"RepetitionWithSeparator\") {\n return PROD_TYPE.REPETITION_WITH_SEPARATOR;\n }\n else if (prod instanceof Alternation || prod === \"Alternation\") {\n return PROD_TYPE.ALTERNATION;\n }\n else {\n throw Error(\"non exhaustive match\");\n }\n}\nexport function getLookaheadPaths(options) {\n const { occurrence, rule, prodType, maxLookahead } = options;\n const type = getProdType(prodType);\n if (type === PROD_TYPE.ALTERNATION) {\n return getLookaheadPathsForOr(occurrence, rule, maxLookahead);\n }\n else {\n return getLookaheadPathsForOptionalProd(occurrence, rule, type, maxLookahead);\n }\n}\nexport function buildLookaheadFuncForOr(occurrence, ruleGrammar, maxLookahead, hasPredicates, dynamicTokensEnabled, laFuncBuilder) {\n const lookAheadPaths = getLookaheadPathsForOr(occurrence, ruleGrammar, maxLookahead);\n const tokenMatcher = areTokenCategoriesNotUsed(lookAheadPaths)\n ? tokenStructuredMatcherNoCategories\n : tokenStructuredMatcher;\n return laFuncBuilder(lookAheadPaths, hasPredicates, tokenMatcher, dynamicTokensEnabled);\n}\n/**\n * When dealing with an Optional production (OPTION/MANY/2nd iteration of AT_LEAST_ONE/...) we need to compare\n * the lookahead \"inside\" the production and the lookahead immediately \"after\" it in the same top level rule (context free).\n *\n * Example: given a production:\n * ABC(DE)?DF\n *\n * The optional '(DE)?' should only be entered if we see 'DE'. a single Token 'D' is not sufficient to distinguish between the two\n * alternatives.\n *\n * @returns A Lookahead function which will return true IFF the parser should parse the Optional production.\n */\nexport function buildLookaheadFuncForOptionalProd(occurrence, ruleGrammar, k, dynamicTokensEnabled, prodType, lookaheadBuilder) {\n const lookAheadPaths = getLookaheadPathsForOptionalProd(occurrence, ruleGrammar, prodType, k);\n const tokenMatcher = areTokenCategoriesNotUsed(lookAheadPaths)\n ? tokenStructuredMatcherNoCategories\n : tokenStructuredMatcher;\n return lookaheadBuilder(lookAheadPaths[0], tokenMatcher, dynamicTokensEnabled);\n}\nexport function buildAlternativesLookAheadFunc(alts, hasPredicates, tokenMatcher, dynamicTokensEnabled) {\n const numOfAlts = alts.length;\n const areAllOneTokenLookahead = alts.every((currAlt) => {\n return currAlt.every((currPath) => {\n return currPath.length === 1;\n });\n });\n // This version takes into account the predicates as well.\n if (hasPredicates) {\n /**\n * @returns {number} - The chosen alternative index\n */\n return function (orAlts) {\n // unfortunately the predicates must be extracted every single time\n // as they cannot be cached due to references to parameters(vars) which are no longer valid.\n // note that in the common case of no predicates, no cpu time will be wasted on this (see else block)\n const predicates = orAlts.map((currAlt) => currAlt.GATE);\n for (let t = 0; t < numOfAlts; t++) {\n const currAlt = alts[t];\n const currNumOfPaths = currAlt.length;\n const currPredicate = predicates[t];\n if (currPredicate !== undefined && currPredicate.call(this) === false) {\n // if the predicate does not match there is no point in checking the paths\n continue;\n }\n nextPath: for (let j = 0; j < currNumOfPaths; j++) {\n const currPath = currAlt[j];\n const currPathLength = currPath.length;\n for (let i = 0; i < currPathLength; i++) {\n const nextToken = this.LA_FAST(i + 1);\n if (tokenMatcher(nextToken, currPath[i]) === false) {\n // mismatch in current path\n // try the next pth\n continue nextPath;\n }\n }\n // found a full path that matches.\n // this will also work for an empty ALT as the loop will be skipped\n return t;\n }\n // none of the paths for the current alternative matched\n // try the next alternative\n }\n // none of the alternatives could be matched\n return undefined;\n };\n }\n else if (areAllOneTokenLookahead && !dynamicTokensEnabled) {\n // optimized (common) case of all the lookaheads paths requiring only\n // a single token lookahead. These Optimizations cannot work if dynamically defined Tokens are used.\n const singleTokenAlts = alts.map((currAlt) => {\n return currAlt.flat();\n });\n const choiceToAlt = singleTokenAlts.reduce((result, currAlt, idx) => {\n currAlt.forEach((currTokType) => {\n if (!(currTokType.tokenTypeIdx in result)) {\n result[currTokType.tokenTypeIdx] = idx;\n }\n currTokType.categoryMatches.forEach((currExtendingType) => {\n if (!Object.hasOwn(result, currExtendingType)) {\n result[currExtendingType] = idx;\n }\n });\n });\n return result;\n }, {});\n /**\n * @returns {number} - The chosen alternative index\n */\n return function () {\n const nextToken = this.LA_FAST(1);\n return choiceToAlt[nextToken.tokenTypeIdx];\n };\n }\n else {\n // optimized lookahead without needing to check the predicates at all.\n // this causes code duplication which is intentional to improve performance.\n /**\n * @returns {number} - The chosen alternative index\n */\n return function () {\n for (let t = 0; t < numOfAlts; t++) {\n const currAlt = alts[t];\n const currNumOfPaths = currAlt.length;\n nextPath: for (let j = 0; j < currNumOfPaths; j++) {\n const currPath = currAlt[j];\n const currPathLength = currPath.length;\n for (let i = 0; i < currPathLength; i++) {\n const nextToken = this.LA_FAST(i + 1);\n if (tokenMatcher(nextToken, currPath[i]) === false) {\n // mismatch in current path\n // try the next pth\n continue nextPath;\n }\n }\n // found a full path that matches.\n // this will also work for an empty ALT as the loop will be skipped\n return t;\n }\n // none of the paths for the current alternative matched\n // try the next alternative\n }\n // none of the alternatives could be matched\n return undefined;\n };\n }\n}\nexport function buildSingleAlternativeLookaheadFunction(alt, tokenMatcher, dynamicTokensEnabled) {\n const areAllOneTokenLookahead = alt.every((currPath) => {\n return currPath.length === 1;\n });\n const numOfPaths = alt.length;\n // optimized (common) case of all the lookaheads paths requiring only\n // a single token lookahead.\n if (areAllOneTokenLookahead && !dynamicTokensEnabled) {\n const singleTokensTypes = alt.flat();\n if (singleTokensTypes.length === 1 &&\n singleTokensTypes[0].categoryMatches.length === 0) {\n const expectedTokenType = singleTokensTypes[0];\n const expectedTokenUniqueKey = expectedTokenType.tokenTypeIdx;\n return function () {\n return this.LA_FAST(1).tokenTypeIdx === expectedTokenUniqueKey;\n };\n }\n else {\n const choiceToAlt = singleTokensTypes.reduce((result, currTokType, idx) => {\n result[currTokType.tokenTypeIdx] = true;\n currTokType.categoryMatches.forEach((currExtendingType) => {\n result[currExtendingType] = true;\n });\n return result;\n }, []);\n return function () {\n const nextToken = this.LA_FAST(1);\n return choiceToAlt[nextToken.tokenTypeIdx] === true;\n };\n }\n }\n else {\n return function () {\n nextPath: for (let j = 0; j < numOfPaths; j++) {\n const currPath = alt[j];\n const currPathLength = currPath.length;\n for (let i = 0; i < currPathLength; i++) {\n const nextToken = this.LA_FAST(i + 1);\n if (tokenMatcher(nextToken, currPath[i]) === false) {\n // mismatch in current path\n // try the next pth\n continue nextPath;\n }\n }\n // found a full path that matches.\n return true;\n }\n // none of the paths matched\n return false;\n };\n }\n}\nclass RestDefinitionFinderWalker extends RestWalker {\n constructor(topProd, targetOccurrence, targetProdType) {\n super();\n this.topProd = topProd;\n this.targetOccurrence = targetOccurrence;\n this.targetProdType = targetProdType;\n }\n startWalking() {\n this.walk(this.topProd);\n return this.restDef;\n }\n checkIsTarget(node, expectedProdType, currRest, prevRest) {\n if (node.idx === this.targetOccurrence &&\n this.targetProdType === expectedProdType) {\n this.restDef = currRest.concat(prevRest);\n return true;\n }\n // performance optimization, do not iterate over the entire Grammar ast after we have found the target\n return false;\n }\n walkOption(optionProd, currRest, prevRest) {\n if (!this.checkIsTarget(optionProd, PROD_TYPE.OPTION, currRest, prevRest)) {\n super.walkOption(optionProd, currRest, prevRest);\n }\n }\n walkAtLeastOne(atLeastOneProd, currRest, prevRest) {\n if (!this.checkIsTarget(atLeastOneProd, PROD_TYPE.REPETITION_MANDATORY, currRest, prevRest)) {\n super.walkOption(atLeastOneProd, currRest, prevRest);\n }\n }\n walkAtLeastOneSep(atLeastOneSepProd, currRest, prevRest) {\n if (!this.checkIsTarget(atLeastOneSepProd, PROD_TYPE.REPETITION_MANDATORY_WITH_SEPARATOR, currRest, prevRest)) {\n super.walkOption(atLeastOneSepProd, currRest, prevRest);\n }\n }\n walkMany(manyProd, currRest, prevRest) {\n if (!this.checkIsTarget(manyProd, PROD_TYPE.REPETITION, currRest, prevRest)) {\n super.walkOption(manyProd, currRest, prevRest);\n }\n }\n walkManySep(manySepProd, currRest, prevRest) {\n if (!this.checkIsTarget(manySepProd, PROD_TYPE.REPETITION_WITH_SEPARATOR, currRest, prevRest)) {\n super.walkOption(manySepProd, currRest, prevRest);\n }\n }\n}\n/**\n * Returns the definition of a target production in a top level level rule.\n */\nclass InsideDefinitionFinderVisitor extends GAstVisitor {\n constructor(targetOccurrence, targetProdType, targetRef) {\n super();\n this.targetOccurrence = targetOccurrence;\n this.targetProdType = targetProdType;\n this.targetRef = targetRef;\n this.result = [];\n }\n checkIsTarget(node, expectedProdName) {\n if (node.idx === this.targetOccurrence &&\n this.targetProdType === expectedProdName &&\n (this.targetRef === undefined || node === this.targetRef)) {\n this.result = node.definition;\n }\n }\n visitOption(node) {\n this.checkIsTarget(node, PROD_TYPE.OPTION);\n }\n visitRepetition(node) {\n this.checkIsTarget(node, PROD_TYPE.REPETITION);\n }\n visitRepetitionMandatory(node) {\n this.checkIsTarget(node, PROD_TYPE.REPETITION_MANDATORY);\n }\n visitRepetitionMandatoryWithSeparator(node) {\n this.checkIsTarget(node, PROD_TYPE.REPETITION_MANDATORY_WITH_SEPARATOR);\n }\n visitRepetitionWithSeparator(node) {\n this.checkIsTarget(node, PROD_TYPE.REPETITION_WITH_SEPARATOR);\n }\n visitAlternation(node) {\n this.checkIsTarget(node, PROD_TYPE.ALTERNATION);\n }\n}\nfunction initializeArrayOfArrays(size) {\n const result = new Array(size);\n for (let i = 0; i < size; i++) {\n result[i] = [];\n }\n return result;\n}\n/**\n * A sort of hash function between a Path in the grammar and a string.\n * Note that this returns multiple \"hashes\" to support the scenario of token categories.\n * - A single path with categories may match multiple **actual** paths.\n */\nfunction pathToHashKeys(path) {\n let keys = [\"\"];\n for (let i = 0; i < path.length; i++) {\n const tokType = path[i];\n const longerKeys = [];\n for (let j = 0; j < keys.length; j++) {\n const currShorterKey = keys[j];\n longerKeys.push(currShorterKey + \"_\" + tokType.tokenTypeIdx);\n for (let t = 0; t < tokType.categoryMatches.length; t++) {\n const categoriesKeySuffix = \"_\" + tokType.categoryMatches[t];\n longerKeys.push(currShorterKey + categoriesKeySuffix);\n }\n }\n keys = longerKeys;\n }\n return keys;\n}\n/**\n * Imperative style due to being called from a hot spot\n */\nfunction isUniquePrefixHash(altKnownPathsKeys, searchPathKeys, idx) {\n for (let currAltIdx = 0; currAltIdx < altKnownPathsKeys.length; currAltIdx++) {\n // We only want to test vs the other alternatives\n if (currAltIdx === idx) {\n continue;\n }\n const otherAltKnownPathsKeys = altKnownPathsKeys[currAltIdx];\n for (let searchIdx = 0; searchIdx < searchPathKeys.length; searchIdx++) {\n const searchKey = searchPathKeys[searchIdx];\n if (otherAltKnownPathsKeys[searchKey] === true) {\n return false;\n }\n }\n }\n // None of the SearchPathKeys were found in any of the other alternatives\n return true;\n}\nexport function lookAheadSequenceFromAlternatives(altsDefs, k) {\n const partialAlts = altsDefs.map((currAlt) => possiblePathsFrom([currAlt], 1));\n const finalResult = initializeArrayOfArrays(partialAlts.length);\n const altsHashes = partialAlts.map((currAltPaths) => {\n const dict = {};\n currAltPaths.forEach((item) => {\n const keys = pathToHashKeys(item.partialPath);\n keys.forEach((currKey) => {\n dict[currKey] = true;\n });\n });\n return dict;\n });\n let newData = partialAlts;\n // maxLookahead loop\n for (let pathLength = 1; pathLength <= k; pathLength++) {\n const currDataset = newData;\n newData = initializeArrayOfArrays(currDataset.length);\n // alternatives loop\n for (let altIdx = 0; altIdx < currDataset.length; altIdx++) {\n const currAltPathsAndSuffixes = currDataset[altIdx];\n // paths in current alternative loop\n for (let currPathIdx = 0; currPathIdx < currAltPathsAndSuffixes.length; currPathIdx++) {\n const currPathPrefix = currAltPathsAndSuffixes[currPathIdx].partialPath;\n const suffixDef = currAltPathsAndSuffixes[currPathIdx].suffixDef;\n const prefixKeys = pathToHashKeys(currPathPrefix);\n const isUnique = isUniquePrefixHash(altsHashes, prefixKeys, altIdx);\n // End of the line for this path.\n if (isUnique || suffixDef.length === 0 || currPathPrefix.length === k) {\n const currAltResult = finalResult[altIdx];\n // TODO: Can we implement a containsPath using Maps/Dictionaries?\n if (containsPath(currAltResult, currPathPrefix) === false) {\n currAltResult.push(currPathPrefix);\n // Update all new keys for the current path.\n for (let j = 0; j < prefixKeys.length; j++) {\n const currKey = prefixKeys[j];\n altsHashes[altIdx][currKey] = true;\n }\n }\n }\n // Expand longer paths\n else {\n const newPartialPathsAndSuffixes = possiblePathsFrom(suffixDef, pathLength + 1, currPathPrefix);\n newData[altIdx] = newData[altIdx].concat(newPartialPathsAndSuffixes);\n // Update keys for new known paths\n newPartialPathsAndSuffixes.forEach((item) => {\n const prefixKeys = pathToHashKeys(item.partialPath);\n prefixKeys.forEach((key) => {\n altsHashes[altIdx][key] = true;\n });\n });\n }\n }\n }\n }\n return finalResult;\n}\nexport function getLookaheadPathsForOr(occurrence, ruleGrammar, k, orProd) {\n const visitor = new InsideDefinitionFinderVisitor(occurrence, PROD_TYPE.ALTERNATION, orProd);\n ruleGrammar.accept(visitor);\n return lookAheadSequenceFromAlternatives(visitor.result, k);\n}\nexport function getLookaheadPathsForOptionalProd(occurrence, ruleGrammar, prodType, k) {\n const insideDefVisitor = new InsideDefinitionFinderVisitor(occurrence, prodType);\n ruleGrammar.accept(insideDefVisitor);\n const insideDef = insideDefVisitor.result;\n const afterDefWalker = new RestDefinitionFinderWalker(ruleGrammar, occurrence, prodType);\n const afterDef = afterDefWalker.startWalking();\n const insideFlat = new AlternativeGAST({ definition: insideDef });\n const afterFlat = new AlternativeGAST({ definition: afterDef });\n return lookAheadSequenceFromAlternatives([insideFlat, afterFlat], k);\n}\nexport function containsPath(alternative, searchPath) {\n compareOtherPath: for (let i = 0; i < alternative.length; i++) {\n const otherPath = alternative[i];\n if (otherPath.length !== searchPath.length) {\n continue;\n }\n for (let j = 0; j < otherPath.length; j++) {\n const searchTok = searchPath[j];\n const otherTok = otherPath[j];\n const matchingTokens = searchTok === otherTok ||\n otherTok.categoryMatchesMap[searchTok.tokenTypeIdx] !== undefined;\n if (matchingTokens === false) {\n continue compareOtherPath;\n }\n }\n return true;\n }\n return false;\n}\nexport function isStrictPrefixOfPath(prefix, other) {\n return (prefix.length < other.length &&\n prefix.every((tokType, idx) => {\n const otherTokType = other[idx];\n return (tokType === otherTokType ||\n otherTokType.categoryMatchesMap[tokType.tokenTypeIdx]);\n }));\n}\nexport function areTokenCategoriesNotUsed(lookAheadPaths) {\n return lookAheadPaths.every((singleAltPaths) => singleAltPaths.every((singlePath) => singlePath.every((token) => token.categoryMatches.length === 0)));\n}\n//# sourceMappingURL=lookahead.js.map"],"x_google_ignoreList":[0],"mappings":";;;;;;AAIA,IAAW;CACV,SAAU,GAAW;CAMlB,AALA,EAAU,EAAU,SAAY,KAAK,UACrC,EAAU,EAAU,aAAgB,KAAK,cACzC,EAAU,EAAU,uBAA0B,KAAK,wBACnD,EAAU,EAAU,sCAAyC,KAAK,uCAClE,EAAU,EAAU,4BAA+B,KAAK,6BACxD,EAAU,EAAU,cAAiB,KAAK;GAC3C,AAAc,MAAY,EAAE,CAAE;AACjC,SAAgB,EAAY,GAAM;;CAE9B,IAAI,aAAgB,KAAU,MAAS,UACnC,OAAO,EAAU;CAEhB,IAAI,aAAgB,KAAc,MAAS,cAC5C,OAAO,EAAU;CAEhB,IAAI,aAAgB,KACrB,MAAS,uBACT,OAAO,EAAU;CAEhB,IAAI,aAAgB,KACrB,MAAS,oCACT,OAAO,EAAU;CAEhB,IAAI,aAAgB,KACrB,MAAS,2BACT,OAAO,EAAU;CAEhB,IAAI,aAAgB,KAAe,MAAS,eAC7C,OAAO,EAAU;CAGjB,MAAM,MAAM,uBAAuB;;AAG3C,SAAgB,EAAkB,GAAS;CACvC,IAAM,EAAE,eAAY,SAAM,aAAU,oBAAiB,GAC/C,IAAO,EAAY,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,EAAe,OAAO,MAAmB,EAAe,OAAO,MAAe,EAAW,OAAO,MAAU,EAAM,gBAAgB,WAAW,EAAE,CAAC,CAAC"}
@@ -1,34 +0,0 @@
1
- import { GAstVisitor as e } from "../../../../../@chevrotain/gast/lib/src/visitor.js";
2
- import { ParserDefinitionErrorType as t } from "../parser/parser.js";
3
- //#region ../../node_modules/chevrotain/lib/src/parse/grammar/resolver.js
4
- function n(e, t) {
5
- let n = new r(e, t);
6
- return n.resolveRefs(), n.errors;
7
- }
8
- var r = class extends e {
9
- constructor(e, t) {
10
- super(), this.nameToTopRule = e, this.errMsgProvider = t, this.errors = [];
11
- }
12
- resolveRefs() {
13
- Object.values(this.nameToTopRule).forEach((e) => {
14
- this.currTopLevel = e, e.accept(this);
15
- });
16
- }
17
- visitNonTerminal(e) {
18
- let n = this.nameToTopRule[e.nonTerminalName];
19
- if (n) e.referencedRule = n;
20
- else {
21
- let n = this.errMsgProvider.buildRuleNotFoundError(this.currTopLevel, e);
22
- this.errors.push({
23
- message: n,
24
- type: t.UNRESOLVED_SUBRULE_REF,
25
- ruleName: this.currTopLevel.name,
26
- unresolvedRefName: e.nonTerminalName
27
- });
28
- }
29
- }
30
- };
31
- //#endregion
32
- export { n as resolveGrammar };
33
-
34
- //# sourceMappingURL=resolver.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"resolver.js","names":[],"sources":["../../../../../../../../../../node_modules/chevrotain/lib/src/parse/grammar/resolver.js"],"sourcesContent":["import { ParserDefinitionErrorType, } from \"../parser/parser.js\";\nimport { GAstVisitor } from \"@chevrotain/gast\";\nexport function resolveGrammar(topLevels, errMsgProvider) {\n const refResolver = new GastRefResolverVisitor(topLevels, errMsgProvider);\n refResolver.resolveRefs();\n return refResolver.errors;\n}\nexport class GastRefResolverVisitor extends GAstVisitor {\n constructor(nameToTopRule, errMsgProvider) {\n super();\n this.nameToTopRule = nameToTopRule;\n this.errMsgProvider = errMsgProvider;\n this.errors = [];\n }\n resolveRefs() {\n Object.values(this.nameToTopRule).forEach((prod) => {\n this.currTopLevel = prod;\n prod.accept(this);\n });\n }\n visitNonTerminal(node) {\n const ref = this.nameToTopRule[node.nonTerminalName];\n if (!ref) {\n const msg = this.errMsgProvider.buildRuleNotFoundError(this.currTopLevel, node);\n this.errors.push({\n message: msg,\n type: ParserDefinitionErrorType.UNRESOLVED_SUBRULE_REF,\n ruleName: this.currTopLevel.name,\n unresolvedRefName: node.nonTerminalName,\n });\n }\n else {\n node.referencedRule = ref;\n }\n }\n}\n//# sourceMappingURL=resolver.js.map"],"x_google_ignoreList":[0],"mappings":";;;AAEA,SAAgB,EAAe,GAAW,GAAgB;CACtD,IAAM,IAAc,IAAI,EAAuB,GAAW,EAAe;CAEzE,OADA,EAAY,aAAa,EAClB,EAAY;;AAEvB,IAAa,IAAb,cAA4C,EAAY;CACpD,YAAY,GAAe,GAAgB;EAIvC,AAHA,OAAO,EACP,KAAK,gBAAgB,GACrB,KAAK,iBAAiB,GACtB,KAAK,SAAS,EAAE;;CAEpB,cAAc;EACV,OAAO,OAAO,KAAK,cAAc,CAAC,SAAS,MAAS;GAEhD,AADA,KAAK,eAAe,GACpB,EAAK,OAAO,KAAK;IACnB;;CAEN,iBAAiB,GAAM;EACnB,IAAM,IAAM,KAAK,cAAc,EAAK;EACpC,IAAK,GAUD,EAAK,iBAAiB;OAVhB;GACN,IAAM,IAAM,KAAK,eAAe,uBAAuB,KAAK,cAAc,EAAK;GAC/E,KAAK,OAAO,KAAK;IACb,SAAS;IACT,MAAM,EAA0B;IAChC,UAAU,KAAK,aAAa;IAC5B,mBAAmB,EAAK;IAC3B,CAAC"}
@@ -1,60 +0,0 @@
1
- import { Alternation as e, Alternative as t, NonTerminal as n, Option as r, Repetition as i, RepetitionMandatory as a, RepetitionMandatoryWithSeparator as o, RepetitionWithSeparator as s, Terminal as c } from "../../../../../@chevrotain/gast/lib/src/model.js";
2
- //#region ../../node_modules/chevrotain/lib/src/parse/grammar/rest.js
3
- var l = class {
4
- walk(l, u = []) {
5
- l.definition.forEach((d, f) => {
6
- let p = l.definition.slice(f + 1);
7
- /* istanbul ignore else */
8
- if (d instanceof n) this.walkProdRef(d, p, u);
9
- else if (d instanceof c) this.walkTerminal(d, p, u);
10
- else if (d instanceof t) this.walkFlat(d, p, u);
11
- else if (d instanceof r) this.walkOption(d, p, u);
12
- else if (d instanceof a) this.walkAtLeastOne(d, p, u);
13
- else if (d instanceof o) this.walkAtLeastOneSep(d, p, u);
14
- else if (d instanceof s) this.walkManySep(d, p, u);
15
- else if (d instanceof i) this.walkMany(d, p, u);
16
- else if (d instanceof e) this.walkOr(d, p, u);
17
- else throw Error("non exhaustive match");
18
- });
19
- }
20
- walkTerminal(e, t, n) {}
21
- walkProdRef(e, t, n) {}
22
- walkFlat(e, t, n) {
23
- let r = t.concat(n);
24
- this.walk(e, r);
25
- }
26
- walkOption(e, t, n) {
27
- let r = t.concat(n);
28
- this.walk(e, r);
29
- }
30
- walkAtLeastOne(e, t, n) {
31
- let i = [new r({ definition: e.definition })].concat(t, n);
32
- this.walk(e, i);
33
- }
34
- walkAtLeastOneSep(e, t, n) {
35
- let r = u(e, t, n);
36
- this.walk(e, r);
37
- }
38
- walkMany(e, t, n) {
39
- let i = [new r({ definition: e.definition })].concat(t, n);
40
- this.walk(e, i);
41
- }
42
- walkManySep(e, t, n) {
43
- let r = u(e, t, n);
44
- this.walk(e, r);
45
- }
46
- walkOr(e, n, r) {
47
- let i = n.concat(r);
48
- e.definition.forEach((e) => {
49
- let n = new t({ definition: [e] });
50
- this.walk(n, i);
51
- });
52
- }
53
- };
54
- function u(e, t, n) {
55
- return [new r({ definition: [new c({ terminalType: e.separator })].concat(e.definition) })].concat(t, n);
56
- }
57
- //#endregion
58
- export { l as RestWalker };
59
-
60
- //# sourceMappingURL=rest.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"rest.js","names":[],"sources":["../../../../../../../../../../node_modules/chevrotain/lib/src/parse/grammar/rest.js"],"sourcesContent":["import { Alternation, Alternative, NonTerminal, Option, Repetition, RepetitionMandatory, RepetitionMandatoryWithSeparator, RepetitionWithSeparator, Terminal, } from \"@chevrotain/gast\";\n/**\n * A Grammar Walker that computes the \"remaining\" grammar \"after\" a productions in the grammar.\n */\nexport class RestWalker {\n walk(prod, prevRest = []) {\n prod.definition.forEach((subProd, index) => {\n const currRest = prod.definition.slice(index + 1);\n /* istanbul ignore else */\n if (subProd instanceof NonTerminal) {\n this.walkProdRef(subProd, currRest, prevRest);\n }\n else if (subProd instanceof Terminal) {\n this.walkTerminal(subProd, currRest, prevRest);\n }\n else if (subProd instanceof Alternative) {\n this.walkFlat(subProd, currRest, prevRest);\n }\n else if (subProd instanceof Option) {\n this.walkOption(subProd, currRest, prevRest);\n }\n else if (subProd instanceof RepetitionMandatory) {\n this.walkAtLeastOne(subProd, currRest, prevRest);\n }\n else if (subProd instanceof RepetitionMandatoryWithSeparator) {\n this.walkAtLeastOneSep(subProd, currRest, prevRest);\n }\n else if (subProd instanceof RepetitionWithSeparator) {\n this.walkManySep(subProd, currRest, prevRest);\n }\n else if (subProd instanceof Repetition) {\n this.walkMany(subProd, currRest, prevRest);\n }\n else if (subProd instanceof Alternation) {\n this.walkOr(subProd, currRest, prevRest);\n }\n else {\n throw Error(\"non exhaustive match\");\n }\n });\n }\n walkTerminal(terminal, currRest, prevRest) { }\n walkProdRef(refProd, currRest, prevRest) { }\n walkFlat(flatProd, currRest, prevRest) {\n // ABCDEF => after the D the rest is EF\n const fullOrRest = currRest.concat(prevRest);\n this.walk(flatProd, fullOrRest);\n }\n walkOption(optionProd, currRest, prevRest) {\n // ABC(DE)?F => after the (DE)? the rest is F\n const fullOrRest = currRest.concat(prevRest);\n this.walk(optionProd, fullOrRest);\n }\n walkAtLeastOne(atLeastOneProd, currRest, prevRest) {\n // ABC(DE)+F => after the (DE)+ the rest is (DE)?F\n const fullAtLeastOneRest = [\n new Option({ definition: atLeastOneProd.definition }),\n ].concat(currRest, prevRest);\n this.walk(atLeastOneProd, fullAtLeastOneRest);\n }\n walkAtLeastOneSep(atLeastOneSepProd, currRest, prevRest) {\n // ABC DE(,DE)* F => after the (,DE)+ the rest is (,DE)?F\n const fullAtLeastOneSepRest = restForRepetitionWithSeparator(atLeastOneSepProd, currRest, prevRest);\n this.walk(atLeastOneSepProd, fullAtLeastOneSepRest);\n }\n walkMany(manyProd, currRest, prevRest) {\n // ABC(DE)*F => after the (DE)* the rest is (DE)?F\n const fullManyRest = [\n new Option({ definition: manyProd.definition }),\n ].concat(currRest, prevRest);\n this.walk(manyProd, fullManyRest);\n }\n walkManySep(manySepProd, currRest, prevRest) {\n // ABC (DE(,DE)*)? F => after the (,DE)* the rest is (,DE)?F\n const fullManySepRest = restForRepetitionWithSeparator(manySepProd, currRest, prevRest);\n this.walk(manySepProd, fullManySepRest);\n }\n walkOr(orProd, currRest, prevRest) {\n // ABC(D|E|F)G => when finding the (D|E|F) the rest is G\n const fullOrRest = currRest.concat(prevRest);\n // walk all different alternatives\n orProd.definition.forEach((alt) => {\n // wrapping each alternative in a single definition wrapper\n // to avoid errors in computing the rest of that alternative in the invocation to computeInProdFollows\n // (otherwise for OR([alt1,alt2]) alt2 will be considered in 'rest' of alt1\n const prodWrapper = new Alternative({ definition: [alt] });\n this.walk(prodWrapper, fullOrRest);\n });\n }\n}\nfunction restForRepetitionWithSeparator(repSepProd, currRest, prevRest) {\n const repSepRest = [\n new Option({\n definition: [\n new Terminal({ terminalType: repSepProd.separator }),\n ].concat(repSepProd.definition),\n }),\n ];\n const fullRepSepRest = repSepRest.concat(currRest, prevRest);\n return fullRepSepRest;\n}\n//# sourceMappingURL=rest.js.map"],"x_google_ignoreList":[0],"mappings":";;AAIA,IAAa,IAAb,MAAwB;CACpB,KAAK,GAAM,IAAW,EAAE,EAAE;EACtB,EAAK,WAAW,SAAS,GAAS,MAAU;GACxC,IAAM,IAAW,EAAK,WAAW,MAAM,IAAQ,EAAE;;GAEjD,IAAI,aAAmB,GACnB,KAAK,YAAY,GAAS,GAAU,EAA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IAAM,IAAkB,EAA+B,GAAa,GAAU,EAAS;EACvF,KAAK,KAAK,GAAa,EAAgB;;CAE3C,OAAO,GAAQ,GAAU,GAAU;EAE/B,IAAM,IAAa,EAAS,OAAO,EAAS;EAE5C,EAAO,WAAW,SAAS,MAAQ;GAI/B,IAAM,IAAc,IAAI,EAAY,EAAE,YAAY,CAAC,EAAI,EAAE,CAAC;GAC1D,KAAK,KAAK,GAAa,EAAW;IACpC;;;AAGV,SAAS,EAA+B,GAAY,GAAU,GAAU;CASpE,OADuB,CANnB,IAAI,EAAO,EACP,YAAY,CACR,IAAI,EAAS,EAAE,cAAc,EAAW,WAAW,CAAC,CACvD,CAAC,OAAO,EAAW,WAAW,EAClC,CAAC,CAE2B,CAAC,OAAO,GAAU,EAC9B"}
@@ -1,118 +0,0 @@
1
- import { toFastProperties as e } from "../../../../../@chevrotain/utils/lib/src/to-fast-properties.js";
2
- import { computeAllProdsFollows as t } from "../grammar/follow.js";
3
- import { EOF as n, createTokenInstance as r } from "../../scan/tokens_public.js";
4
- import { defaultGrammarValidatorErrorProvider as i, defaultParserErrorProvider as a } from "../errors_public.js";
5
- import { validateLookahead as o } from "../grammar/checks.js";
6
- import { resolveGrammar as s, validateGrammar as c } from "../grammar/gast/gast_resolver_public.js";
7
- import { Recoverable as l } from "./traits/recoverable.js";
8
- import { LooksAhead as u } from "./traits/looksahead.js";
9
- import { TreeBuilder as d } from "./traits/tree_builder.js";
10
- import { LexerAdapter as f } from "./traits/lexer_adapter.js";
11
- import { RecognizerApi as p } from "./traits/recognizer_api.js";
12
- import { RecognizerEngine as m } from "./traits/recognizer_engine.js";
13
- import { ErrorHandler as h } from "./traits/error_handler.js";
14
- import { GastRecorder as g } from "./traits/gast_recorder.js";
15
- import { PerformanceTracer as _ } from "./traits/perf_tracer.js";
16
- import { applyMixins as v } from "./utils/apply_mixins.js";
17
- //#region ../../node_modules/chevrotain/lib/src/parse/parser/parser.js
18
- var y = r(n, "", NaN, NaN, NaN, NaN, NaN, NaN);
19
- Object.freeze(y);
20
- var b = Object.freeze({
21
- recoveryEnabled: !1,
22
- maxLookahead: 3,
23
- dynamicTokensEnabled: !1,
24
- outputCst: !0,
25
- errorMessageProvider: a,
26
- nodeLocationTracking: "none",
27
- traceInitPerf: !1,
28
- skipValidations: !1
29
- }), x = Object.freeze({
30
- recoveryValueFunc: () => void 0,
31
- resyncEnabled: !0
32
- }), S;
33
- (function(e) {
34
- e[e.INVALID_RULE_NAME = 0] = "INVALID_RULE_NAME", e[e.DUPLICATE_RULE_NAME = 1] = "DUPLICATE_RULE_NAME", e[e.INVALID_RULE_OVERRIDE = 2] = "INVALID_RULE_OVERRIDE", e[e.DUPLICATE_PRODUCTIONS = 3] = "DUPLICATE_PRODUCTIONS", e[e.UNRESOLVED_SUBRULE_REF = 4] = "UNRESOLVED_SUBRULE_REF", e[e.LEFT_RECURSION = 5] = "LEFT_RECURSION", e[e.NONE_LAST_EMPTY_ALT = 6] = "NONE_LAST_EMPTY_ALT", e[e.AMBIGUOUS_ALTS = 7] = "AMBIGUOUS_ALTS", e[e.CONFLICT_TOKENS_RULES_NAMESPACE = 8] = "CONFLICT_TOKENS_RULES_NAMESPACE", e[e.INVALID_TOKEN_NAME = 9] = "INVALID_TOKEN_NAME", e[e.NO_NON_EMPTY_LOOKAHEAD = 10] = "NO_NON_EMPTY_LOOKAHEAD", e[e.AMBIGUOUS_PREFIX_ALTS = 11] = "AMBIGUOUS_PREFIX_ALTS", e[e.TOO_MANY_ALTS = 12] = "TOO_MANY_ALTS", e[e.CUSTOM_LOOKAHEAD_VALIDATION = 13] = "CUSTOM_LOOKAHEAD_VALIDATION";
35
- })(S ||= {});
36
- function C(e = void 0) {
37
- return function() {
38
- return e;
39
- };
40
- }
41
- var w = class n {
42
- static performSelfAnalysis(e) {
43
- throw Error("The **static** `performSelfAnalysis` method has been deprecated. \nUse the **instance** method with the same name instead.");
44
- }
45
- performSelfAnalysis() {
46
- this.TRACE_INIT("performSelfAnalysis", () => {
47
- let r;
48
- this.selfAnalysisDone = !0;
49
- let a = this.className;
50
- this.TRACE_INIT("toFastProps", () => {
51
- e(this);
52
- }), this.TRACE_INIT("Grammar Recording", () => {
53
- try {
54
- this.enableRecording(), this.definedRulesNames.forEach((e) => {
55
- let t = this[e].originalGrammarAction, n;
56
- this.TRACE_INIT(`${e} Rule`, () => {
57
- n = this.topLevelRuleRecord(e, t);
58
- }), this.gastProductionsCache[e] = n;
59
- });
60
- } finally {
61
- this.disableRecording();
62
- }
63
- });
64
- let l = [];
65
- if (this.TRACE_INIT("Grammar Resolving", () => {
66
- l = s({ rules: Object.values(this.gastProductionsCache) }), this.definitionErrors = this.definitionErrors.concat(l);
67
- }), this.TRACE_INIT("Grammar Validations", () => {
68
- if (l.length === 0 && this.skipValidations === !1) {
69
- let e = c({
70
- rules: Object.values(this.gastProductionsCache),
71
- tokenTypes: Object.values(this.tokensMap),
72
- errMsgProvider: i,
73
- grammarName: a
74
- }), t = o({
75
- lookaheadStrategy: this.lookaheadStrategy,
76
- rules: Object.values(this.gastProductionsCache),
77
- tokenTypes: Object.values(this.tokensMap),
78
- grammarName: a
79
- });
80
- this.definitionErrors = this.definitionErrors.concat(e, t);
81
- }
82
- }), this.definitionErrors.length === 0 && (this.recoveryEnabled && this.TRACE_INIT("computeAllProdsFollows", () => {
83
- let e = t(Object.values(this.gastProductionsCache));
84
- this.resyncFollows = e;
85
- }), this.TRACE_INIT("ComputeLookaheadFunctions", () => {
86
- var e, t;
87
- (t = (e = this.lookaheadStrategy).initialize) == null || t.call(e, { rules: Object.values(this.gastProductionsCache) }), this.preComputeLookaheadFunctions(Object.values(this.gastProductionsCache));
88
- })), !n.DEFER_DEFINITION_ERRORS_HANDLING && this.definitionErrors.length !== 0) throw r = this.definitionErrors.map((e) => e.message), Error(`Parser Definition Errors detected:\n ${r.join("\n-------------------------------\n")}`);
89
- });
90
- }
91
- constructor(e, t) {
92
- this.definitionErrors = [], this.selfAnalysisDone = !1;
93
- let n = this;
94
- if (n.initErrorHandler(t), n.initLexerAdapter(), n.initLooksAhead(t), n.initRecognizerEngine(e, t), n.initRecoverable(t), n.initTreeBuilder(t), n.initGastRecorder(t), n.initPerformanceTracer(t), Object.hasOwn(t, "ignoredIssues")) throw Error("The <ignoredIssues> IParserConfig property has been deprecated.\n Please use the <IGNORE_AMBIGUITIES> flag on the relevant DSL method instead.\n See: https://chevrotain.io/docs/guide/resolving_grammar_errors.html#IGNORING_AMBIGUITIES\n For further details.");
95
- this.skipValidations = Object.hasOwn(t, "skipValidations") ? t.skipValidations : b.skipValidations;
96
- }
97
- };
98
- w.DEFER_DEFINITION_ERRORS_HANDLING = !1, v(w, [
99
- l,
100
- u,
101
- d,
102
- f,
103
- m,
104
- p,
105
- h,
106
- g,
107
- _
108
- ]);
109
- var T = class extends w {
110
- constructor(e, t = b) {
111
- let n = Object.assign({}, t);
112
- n.outputCst = !1, super(e, n);
113
- }
114
- };
115
- //#endregion
116
- export { b as DEFAULT_PARSER_CONFIG, x as DEFAULT_RULE_CONFIG, C as EMPTY_ALT, y as END_OF_FILE, T as EmbeddedActionsParser, S as ParserDefinitionErrorType };
117
-
118
- //# sourceMappingURL=parser.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"parser.js","names":[],"sources":["../../../../../../../../../../node_modules/chevrotain/lib/src/parse/parser/parser.js"],"sourcesContent":["import { toFastProperties } from \"@chevrotain/utils\";\nimport { computeAllProdsFollows } from \"../grammar/follow.js\";\nimport { createTokenInstance, EOF } from \"../../scan/tokens_public.js\";\nimport { defaultGrammarValidatorErrorProvider, defaultParserErrorProvider, } from \"../errors_public.js\";\nimport { resolveGrammar, validateGrammar, } from \"../grammar/gast/gast_resolver_public.js\";\nimport { Recoverable } from \"./traits/recoverable.js\";\nimport { LooksAhead } from \"./traits/looksahead.js\";\nimport { TreeBuilder } from \"./traits/tree_builder.js\";\nimport { LexerAdapter } from \"./traits/lexer_adapter.js\";\nimport { RecognizerApi } from \"./traits/recognizer_api.js\";\nimport { RecognizerEngine } from \"./traits/recognizer_engine.js\";\nimport { ErrorHandler } from \"./traits/error_handler.js\";\nimport { GastRecorder } from \"./traits/gast_recorder.js\";\nimport { PerformanceTracer } from \"./traits/perf_tracer.js\";\nimport { applyMixins } from \"./utils/apply_mixins.js\";\nimport { validateLookahead } from \"../grammar/checks.js\";\nexport const END_OF_FILE = createTokenInstance(EOF, \"\", NaN, NaN, NaN, NaN, NaN, NaN);\nObject.freeze(END_OF_FILE);\nexport const DEFAULT_PARSER_CONFIG = Object.freeze({\n recoveryEnabled: false,\n maxLookahead: 3,\n dynamicTokensEnabled: false,\n outputCst: true,\n errorMessageProvider: defaultParserErrorProvider,\n nodeLocationTracking: \"none\",\n traceInitPerf: false,\n skipValidations: false,\n});\nexport const DEFAULT_RULE_CONFIG = Object.freeze({\n recoveryValueFunc: () => undefined,\n resyncEnabled: true,\n});\nexport var ParserDefinitionErrorType;\n(function (ParserDefinitionErrorType) {\n ParserDefinitionErrorType[ParserDefinitionErrorType[\"INVALID_RULE_NAME\"] = 0] = \"INVALID_RULE_NAME\";\n ParserDefinitionErrorType[ParserDefinitionErrorType[\"DUPLICATE_RULE_NAME\"] = 1] = \"DUPLICATE_RULE_NAME\";\n ParserDefinitionErrorType[ParserDefinitionErrorType[\"INVALID_RULE_OVERRIDE\"] = 2] = \"INVALID_RULE_OVERRIDE\";\n ParserDefinitionErrorType[ParserDefinitionErrorType[\"DUPLICATE_PRODUCTIONS\"] = 3] = \"DUPLICATE_PRODUCTIONS\";\n ParserDefinitionErrorType[ParserDefinitionErrorType[\"UNRESOLVED_SUBRULE_REF\"] = 4] = \"UNRESOLVED_SUBRULE_REF\";\n ParserDefinitionErrorType[ParserDefinitionErrorType[\"LEFT_RECURSION\"] = 5] = \"LEFT_RECURSION\";\n ParserDefinitionErrorType[ParserDefinitionErrorType[\"NONE_LAST_EMPTY_ALT\"] = 6] = \"NONE_LAST_EMPTY_ALT\";\n ParserDefinitionErrorType[ParserDefinitionErrorType[\"AMBIGUOUS_ALTS\"] = 7] = \"AMBIGUOUS_ALTS\";\n ParserDefinitionErrorType[ParserDefinitionErrorType[\"CONFLICT_TOKENS_RULES_NAMESPACE\"] = 8] = \"CONFLICT_TOKENS_RULES_NAMESPACE\";\n ParserDefinitionErrorType[ParserDefinitionErrorType[\"INVALID_TOKEN_NAME\"] = 9] = \"INVALID_TOKEN_NAME\";\n ParserDefinitionErrorType[ParserDefinitionErrorType[\"NO_NON_EMPTY_LOOKAHEAD\"] = 10] = \"NO_NON_EMPTY_LOOKAHEAD\";\n ParserDefinitionErrorType[ParserDefinitionErrorType[\"AMBIGUOUS_PREFIX_ALTS\"] = 11] = \"AMBIGUOUS_PREFIX_ALTS\";\n ParserDefinitionErrorType[ParserDefinitionErrorType[\"TOO_MANY_ALTS\"] = 12] = \"TOO_MANY_ALTS\";\n ParserDefinitionErrorType[ParserDefinitionErrorType[\"CUSTOM_LOOKAHEAD_VALIDATION\"] = 13] = \"CUSTOM_LOOKAHEAD_VALIDATION\";\n})(ParserDefinitionErrorType || (ParserDefinitionErrorType = {}));\nexport function EMPTY_ALT(value = undefined) {\n return function () {\n return value;\n };\n}\nexport class Parser {\n /**\n * @deprecated use the **instance** method with the same name instead\n */\n static performSelfAnalysis(parserInstance) {\n throw Error(\"The **static** `performSelfAnalysis` method has been deprecated.\" +\n \"\\t\\nUse the **instance** method with the same name instead.\");\n }\n performSelfAnalysis() {\n this.TRACE_INIT(\"performSelfAnalysis\", () => {\n let defErrorsMsgs;\n this.selfAnalysisDone = true;\n const className = this.className;\n this.TRACE_INIT(\"toFastProps\", () => {\n // Without this voodoo magic the parser would be x3-x4 slower\n // It seems it is better to invoke `toFastProperties` **before**\n // Any manipulations of the `this` object done during the recording phase.\n toFastProperties(this);\n });\n this.TRACE_INIT(\"Grammar Recording\", () => {\n try {\n this.enableRecording();\n // Building the GAST\n this.definedRulesNames.forEach((currRuleName) => {\n const wrappedRule = this[currRuleName];\n const originalGrammarAction = wrappedRule[\"originalGrammarAction\"];\n let recordedRuleGast;\n this.TRACE_INIT(`${currRuleName} Rule`, () => {\n recordedRuleGast = this.topLevelRuleRecord(currRuleName, originalGrammarAction);\n });\n this.gastProductionsCache[currRuleName] = recordedRuleGast;\n });\n }\n finally {\n this.disableRecording();\n }\n });\n let resolverErrors = [];\n this.TRACE_INIT(\"Grammar Resolving\", () => {\n resolverErrors = resolveGrammar({\n rules: Object.values(this.gastProductionsCache),\n });\n this.definitionErrors = this.definitionErrors.concat(resolverErrors);\n });\n this.TRACE_INIT(\"Grammar Validations\", () => {\n // only perform additional grammar validations IFF no resolving errors have occurred.\n // as unresolved grammar may lead to unhandled runtime exceptions in the follow up validations.\n if (resolverErrors.length === 0 && this.skipValidations === false) {\n const validationErrors = validateGrammar({\n rules: Object.values(this.gastProductionsCache),\n tokenTypes: Object.values(this.tokensMap),\n errMsgProvider: defaultGrammarValidatorErrorProvider,\n grammarName: className,\n });\n const lookaheadValidationErrors = validateLookahead({\n lookaheadStrategy: this.lookaheadStrategy,\n rules: Object.values(this.gastProductionsCache),\n tokenTypes: Object.values(this.tokensMap),\n grammarName: className,\n });\n this.definitionErrors = this.definitionErrors.concat(validationErrors, lookaheadValidationErrors);\n }\n });\n // this analysis may fail if the grammar is not perfectly valid\n if (this.definitionErrors.length === 0) {\n // The results of these computations are not needed unless error recovery is enabled.\n if (this.recoveryEnabled) {\n this.TRACE_INIT(\"computeAllProdsFollows\", () => {\n const allFollows = computeAllProdsFollows(Object.values(this.gastProductionsCache));\n this.resyncFollows = allFollows;\n });\n }\n this.TRACE_INIT(\"ComputeLookaheadFunctions\", () => {\n var _a, _b;\n (_b = (_a = this.lookaheadStrategy).initialize) === null || _b === void 0 ? void 0 : _b.call(_a, {\n rules: Object.values(this.gastProductionsCache),\n });\n this.preComputeLookaheadFunctions(Object.values(this.gastProductionsCache));\n });\n }\n if (!Parser.DEFER_DEFINITION_ERRORS_HANDLING &&\n this.definitionErrors.length !== 0) {\n defErrorsMsgs = this.definitionErrors.map((defError) => defError.message);\n throw new Error(`Parser Definition Errors detected:\\n ${defErrorsMsgs.join(\"\\n-------------------------------\\n\")}`);\n }\n });\n }\n constructor(tokenVocabulary, config) {\n this.definitionErrors = [];\n this.selfAnalysisDone = false;\n const that = this;\n that.initErrorHandler(config);\n that.initLexerAdapter();\n that.initLooksAhead(config);\n that.initRecognizerEngine(tokenVocabulary, config);\n that.initRecoverable(config);\n that.initTreeBuilder(config);\n that.initGastRecorder(config);\n that.initPerformanceTracer(config);\n if (Object.hasOwn(config, \"ignoredIssues\")) {\n throw new Error(\"The <ignoredIssues> IParserConfig property has been deprecated.\\n\\t\" +\n \"Please use the <IGNORE_AMBIGUITIES> flag on the relevant DSL method instead.\\n\\t\" +\n \"See: https://chevrotain.io/docs/guide/resolving_grammar_errors.html#IGNORING_AMBIGUITIES\\n\\t\" +\n \"For further details.\");\n }\n this.skipValidations = Object.hasOwn(config, \"skipValidations\")\n ? config.skipValidations // casting assumes the end user passing the correct type\n : DEFAULT_PARSER_CONFIG.skipValidations;\n }\n}\n// Set this flag to true if you don't want the Parser to throw error when problems in it's definition are detected.\n// (normally during the parser's constructor).\n// This is a design time flag, it will not affect the runtime error handling of the parser, just design time errors,\n// for example: duplicate rule names, referencing an unresolved subrule, etc...\n// This flag should not be enabled during normal usage, it is used in special situations, for example when\n// needing to display the parser definition errors in some GUI(online playground).\nParser.DEFER_DEFINITION_ERRORS_HANDLING = false;\napplyMixins(Parser, [\n Recoverable,\n LooksAhead,\n TreeBuilder,\n LexerAdapter,\n RecognizerEngine,\n RecognizerApi,\n ErrorHandler,\n GastRecorder,\n PerformanceTracer,\n]);\nexport class CstParser extends Parser {\n constructor(tokenVocabulary, config = DEFAULT_PARSER_CONFIG) {\n const configClone = Object.assign({}, config);\n configClone.outputCst = true;\n super(tokenVocabulary, configClone);\n }\n}\nexport class EmbeddedActionsParser extends Parser {\n constructor(tokenVocabulary, config = DEFAULT_PARSER_CONFIG) {\n const configClone = Object.assign({}, config);\n configClone.outputCst = false;\n super(token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I,EAC7F,OAAO,OAAO,OAAO,KAAK,qBAAqB,EAClD,CAAC,EACF,KAAK,6BAA6B,OAAO,OAAO,KAAK,qBAAqB,CAAC;KAC7E,GAEF,CAAC,EAAO,oCACR,KAAK,iBAAiB,WAAW,GAEjC,MADA,IAAgB,KAAK,iBAAiB,KAAK,MAAa,EAAS,QAAQ,EAC/D,MAAM,wCAAwC,EAAc,KAAK,sCAAsC,GAAG;IAE1H;;CAEN,YAAY,GAAiB,GAAQ;EAEjC,AADA,KAAK,mBAAmB,EAAE,EAC1B,KAAK,mBAAmB;EACxB,IAAM,IAAO;EASb,IARA,EAAK,iBAAiB,EAAO,EAC7B,EAAK,kBAAkB,EACvB,EAAK,eAAe,EAAO,EAC3B,EAAK,qBAAqB,GAAiB,EAAO,EAClD,EAAK,gBAAgB,EAAO,EAC5B,EAAK,gBAAgB,EAAO,EAC5B,EAAK,iBAAiB,EAAO,EAC7B,EAAK,sBAAsB,EAAO,EAC9B,OAAO,OAAO,GAAQ,gBAAgB,EACtC,MAAU,MAAM,mQAGW;EAE/B,KAAK,kBAAkB,OAAO,OAAO,GAAQ,kBAAkB,GACzD,EAAO,kBACP,EAAsB;;;AASpC,EAAO,mCAAmC,IAC1C,EAAY,GAAQ;CAChB;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACH,CAAC;AAQF,IAAa,IAAb,cAA2C,EAAO;CAC9C,YAAY,GAAiB,IAAS,GAAuB;EACzD,IAAM,IAAc,OAAO,OAAO,EAAE,EAAE,EAAO;EAE7C,AADA,EAAY,YAAY,IACxB,MAAM,GAAiB,EAAY"}
@@ -1,50 +0,0 @@
1
- import { getLookaheadPathsForOptionalProd as e, getLookaheadPathsForOr as t } from "../../grammar/lookahead.js";
2
- import { EarlyExitException as n, NoViableAltException as r, isRecognitionException as i } from "../../exceptions_public.js";
3
- import { DEFAULT_PARSER_CONFIG as a } from "../parser.js";
4
- //#region ../../node_modules/chevrotain/lib/src/parse/parser/traits/error_handler.js
5
- var o = class {
6
- initErrorHandler(e) {
7
- this._errors = [], this.errorMessageProvider = Object.hasOwn(e, "errorMessageProvider") ? e.errorMessageProvider : a.errorMessageProvider;
8
- }
9
- SAVE_ERROR(e) {
10
- if (i(e)) return e.context = {
11
- ruleStack: this.getHumanReadableRuleStack(),
12
- ruleOccurrenceStack: this.RULE_OCCURRENCE_STACK.slice(0, this.RULE_OCCURRENCE_STACK_IDX + 1)
13
- }, this._errors.push(e), e;
14
- throw Error("Trying to save an Error which is not a RecognitionException");
15
- }
16
- get errors() {
17
- return [...this._errors];
18
- }
19
- set errors(e) {
20
- this._errors = e;
21
- }
22
- raiseEarlyExitException(t, r, i) {
23
- let a = this.getCurrRuleFullName(), o = this.getGAstProductions()[a], s = e(t, o, r, this.maxLookahead)[0], c = [];
24
- for (let e = 1; e <= this.maxLookahead; e++) c.push(this.LA(e));
25
- let l = this.errorMessageProvider.buildEarlyExitMessage({
26
- expectedIterationPaths: s,
27
- actual: c,
28
- previous: this.LA(0),
29
- customUserDescription: i,
30
- ruleName: a
31
- });
32
- throw this.SAVE_ERROR(new n(l, this.LA(1), this.LA(0)));
33
- }
34
- raiseNoAltException(e, n) {
35
- let i = this.getCurrRuleFullName(), a = this.getGAstProductions()[i], o = t(e, a, this.maxLookahead), s = [];
36
- for (let e = 1; e <= this.maxLookahead; e++) s.push(this.LA(e));
37
- let c = this.LA(0), l = this.errorMessageProvider.buildNoViableAltMessage({
38
- expectedPathsPerAlt: o,
39
- actual: s,
40
- previous: c,
41
- customUserDescription: n,
42
- ruleName: this.getCurrRuleFullName()
43
- });
44
- throw this.SAVE_ERROR(new r(l, this.LA(1), c));
45
- }
46
- };
47
- //#endregion
48
- export { o as ErrorHandler };
49
-
50
- //# sourceMappingURL=error_handler.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"error_handler.js","names":[],"sources":["../../../../../../../../../../../node_modules/chevrotain/lib/src/parse/parser/traits/error_handler.js"],"sourcesContent":["import { EarlyExitException, isRecognitionException, NoViableAltException, } from \"../../exceptions_public.js\";\nimport { getLookaheadPathsForOptionalProd, getLookaheadPathsForOr, } from \"../../grammar/lookahead.js\";\nimport { DEFAULT_PARSER_CONFIG } from \"../parser.js\";\n/**\n * Trait responsible for runtime parsing errors.\n */\nexport class ErrorHandler {\n initErrorHandler(config) {\n this._errors = [];\n this.errorMessageProvider = Object.hasOwn(config, \"errorMessageProvider\")\n ? config.errorMessageProvider // assumes end user provides the correct config value/type\n : DEFAULT_PARSER_CONFIG.errorMessageProvider;\n }\n SAVE_ERROR(error) {\n if (isRecognitionException(error)) {\n error.context = {\n ruleStack: this.getHumanReadableRuleStack(),\n ruleOccurrenceStack: this.RULE_OCCURRENCE_STACK.slice(0, this.RULE_OCCURRENCE_STACK_IDX + 1),\n };\n this._errors.push(error);\n return error;\n }\n else {\n throw Error(\"Trying to save an Error which is not a RecognitionException\");\n }\n }\n get errors() {\n return [...this._errors];\n }\n set errors(newErrors) {\n this._errors = newErrors;\n }\n // TODO: consider caching the error message computed information\n raiseEarlyExitException(occurrence, prodType, userDefinedErrMsg) {\n const ruleName = this.getCurrRuleFullName();\n const ruleGrammar = this.getGAstProductions()[ruleName];\n const lookAheadPathsPerAlternative = getLookaheadPathsForOptionalProd(occurrence, ruleGrammar, prodType, this.maxLookahead);\n const insideProdPaths = lookAheadPathsPerAlternative[0];\n const actualTokens = [];\n for (let i = 1; i <= this.maxLookahead; i++) {\n actualTokens.push(this.LA(i));\n }\n const msg = this.errorMessageProvider.buildEarlyExitMessage({\n expectedIterationPaths: insideProdPaths,\n actual: actualTokens,\n previous: this.LA(0),\n customUserDescription: userDefinedErrMsg,\n ruleName: ruleName,\n });\n throw this.SAVE_ERROR(new EarlyExitException(msg, this.LA(1), this.LA(0)));\n }\n // TODO: consider caching the error message computed information\n raiseNoAltException(occurrence, errMsgTypes) {\n const ruleName = this.getCurrRuleFullName();\n const ruleGrammar = this.getGAstProductions()[ruleName];\n // TODO: getLookaheadPathsForOr can be slow for large enough maxLookahead and certain grammars, consider caching ?\n const lookAheadPathsPerAlternative = getLookaheadPathsForOr(occurrence, ruleGrammar, this.maxLookahead);\n const actualTokens = [];\n for (let i = 1; i <= this.maxLookahead; i++) {\n actualTokens.push(this.LA(i));\n }\n const previousToken = this.LA(0);\n const errMsg = this.errorMessageProvider.buildNoViableAltMessage({\n expectedPathsPerAlt: lookAheadPathsPerAlternative,\n actual: actualTokens,\n previous: previousToken,\n customUserDescription: errMsgTypes,\n ruleName: this.getCurrRuleFullName(),\n });\n throw this.SAVE_ERROR(new NoViableAltException(errMsg, this.LA(1), previousToken));\n }\n}\n//# sourceMappingURL=error_handler.js.map"],"x_google_ignoreList":[0],"mappings":";;;;AAMA,IAAa,IAAb,MAA0B;CACtB,iBAAiB,GAAQ;EAErB,AADA,KAAK,UAAU,EAAE,EACjB,KAAK,uBAAuB,OAAO,OAAO,GAAQ,uBAAuB,GACnE,EAAO,uBACP,EAAsB;;CAEhC,WAAW,GAAO;EACd,IAAI,EAAuB,EAAM,EAM7B,OALA,EAAM,UAAU;GACZ,WAAW,KAAK,2BAA2B;GAC3C,qBAAqB,KAAK,sBAAsB,MAAM,GAAG,KAAK,4BAA4B,EAAE;GAC/F,EACD,KAAK,QAAQ,KAAK,EAAM,EACjB;EAGP,MAAM,MAAM,8DAA8D;;CAGlF,IAAI,SAAS;EACT,OAAO,CAAC,GAAG,KAAK,QAAQ;;CAE5B,IAAI,OAAO,GAAW;EAClB,KAAK,UAAU;;CAGnB,wBAAwB,GAAY,GAAU,GAAmB;EAC7D,IAAM,IAAW,KAAK,qBAAqB,EACrC,IAAc,KAAK,oBAAoB,CAAC,IAExC,IAD+B,EAAiC,GAAY,GAAa,GAAU,KAAK,aAC1D,CAAC,IAC/C,IAAe,EAAE;EACvB,KAAK,IAAI,IAAI,GAAG,KAAK,KAAK,cAAc,KACpC,EAAa,KAAK,KAAK,GAAG,EAAE,CAAC;EAEjC,IAAM,IAAM,KAAK,qBAAqB,sBAAsB;GACxD,wBAAwB;GACxB,QAAQ;GACR,UAAU,KAAK,GAAG,EAAE;GACpB,uBAAuB;GACb;GACb,CAAC;EACF,MAAM,KAAK,WAAW,IAAI,EAAmB,GAAK,KAAK,GAAG,EAAE,EAAE,KAAK,GAAG,EAAE,CAAC,CAAC;;CAG9E,oBAAoB,GAAY,GAAa;EACzC,IAAM,IAAW,KAAK,qBAAqB,EACrC,IAAc,KAAK,oBAAoB,CAAC,IAExC,IAA+B,EAAuB,GAAY,GAAa,KAAK,aAAa,EACjG,IAAe,EAAE;EACvB,KAAK,IAAI,IAAI,GAAG,KAAK,KAAK,cAAc,KACpC,EAAa,KAAK,KAAK,GAAG,EAAE,CAAC;EAEjC,IAAM,IAAgB,KAAK,GAAG,EAAE,EAC1B,IAAS,KAAK,qBAAqB,wBAAwB;GAC7D,qBAAqB;GACrB,QAAQ;GACR,UAAU;GACV,uBAAuB;GACvB,UAAU,KAAK,qBAAqB;GACvC,CAAC;EACF,MAAM,KAAK,WAAW,IAAI,EAAqB,GAAQ,KAAK,GAAG,EAAE,EAAE,EAAc,CAAC"}
@@ -1,170 +0,0 @@
1
- import { Alternation as e, Alternative as t, NonTerminal as n, Option as r, Repetition as i, RepetitionMandatory as a, RepetitionMandatoryWithSeparator as o, RepetitionWithSeparator as s, Rule as c, Terminal as l } from "../../../../../../@chevrotain/gast/lib/src/model.js";
2
- import { augmentTokenTypes as u, hasShortKeyProperty as d } from "../../../scan/tokens.js";
3
- import { Lexer as f } from "../../../scan/lexer_public.js";
4
- import { createToken as p, createTokenInstance as m } from "../../../scan/tokens_public.js";
5
- import "../../grammar/keys.js";
6
- import { END_OF_FILE as h } from "../parser.js";
7
- //#region ../../node_modules/chevrotain/lib/src/parse/parser/traits/gast_recorder.js
8
- var g = { description: "This Object indicates the Parser is during Recording Phase" };
9
- Object.freeze(g);
10
- var _ = !0, v = 2 ** 8 - 1, y = p({
11
- name: "RECORDING_PHASE_TOKEN",
12
- pattern: f.NA
13
- });
14
- u([y]);
15
- var b = m(y, "This IToken indicates the Parser is in Recording Phase\n See: https://chevrotain.io/docs/guide/internals.html#grammar-recording for details", -1, -1, -1, -1, -1, -1);
16
- Object.freeze(b);
17
- var x = {
18
- name: "This CSTNode indicates the Parser is in Recording Phase\n See: https://chevrotain.io/docs/guide/internals.html#grammar-recording for details",
19
- children: {}
20
- }, S = class {
21
- initGastRecorder(e) {
22
- this.recordingProdStack = [], this.RECORDING_PHASE = !1;
23
- }
24
- enableRecording() {
25
- this.RECORDING_PHASE = !0, this.TRACE_INIT("Enable Recording", () => {
26
- for (let e = 0; e < 10; e++) {
27
- let t = e > 0 ? e : "";
28
- this[`CONSUME${t}`] = function(t, n) {
29
- return this.consumeInternalRecord(t, e, n);
30
- }, this[`SUBRULE${t}`] = function(t, n) {
31
- return this.subruleInternalRecord(t, e, n);
32
- }, this[`OPTION${t}`] = function(t) {
33
- return this.optionInternalRecord(t, e);
34
- }, this[`OR${t}`] = function(t) {
35
- return this.orInternalRecord(t, e);
36
- }, this[`MANY${t}`] = function(t) {
37
- this.manyInternalRecord(e, t);
38
- }, this[`MANY_SEP${t}`] = function(t) {
39
- this.manySepFirstInternalRecord(e, t);
40
- }, this[`AT_LEAST_ONE${t}`] = function(t) {
41
- this.atLeastOneInternalRecord(e, t);
42
- }, this[`AT_LEAST_ONE_SEP${t}`] = function(t) {
43
- this.atLeastOneSepFirstInternalRecord(e, t);
44
- };
45
- }
46
- this.consume = function(e, t, n) {
47
- return this.consumeInternalRecord(t, e, n);
48
- }, this.subrule = function(e, t, n) {
49
- return this.subruleInternalRecord(t, e, n);
50
- }, this.option = function(e, t) {
51
- return this.optionInternalRecord(t, e);
52
- }, this.or = function(e, t) {
53
- return this.orInternalRecord(t, e);
54
- }, this.many = function(e, t) {
55
- this.manyInternalRecord(e, t);
56
- }, this.atLeastOne = function(e, t) {
57
- this.atLeastOneInternalRecord(e, t);
58
- }, this.ACTION = this.ACTION_RECORD, this.BACKTRACK = this.BACKTRACK_RECORD, this.LA = this.LA_RECORD;
59
- });
60
- }
61
- disableRecording() {
62
- this.RECORDING_PHASE = !1, this.TRACE_INIT("Deleting Recording methods", () => {
63
- let e = this;
64
- for (let t = 0; t < 10; t++) {
65
- let n = t > 0 ? t : "";
66
- delete e[`CONSUME${n}`], delete e[`SUBRULE${n}`], delete e[`OPTION${n}`], delete e[`OR${n}`], delete e[`MANY${n}`], delete e[`MANY_SEP${n}`], delete e[`AT_LEAST_ONE${n}`], delete e[`AT_LEAST_ONE_SEP${n}`];
67
- }
68
- delete e.consume, delete e.subrule, delete e.option, delete e.or, delete e.many, delete e.atLeastOne, delete e.ACTION, delete e.BACKTRACK, delete e.LA;
69
- });
70
- }
71
- ACTION_RECORD(e) {}
72
- BACKTRACK_RECORD(e, t) {
73
- return () => !0;
74
- }
75
- LA_RECORD(e) {
76
- return h;
77
- }
78
- topLevelRuleRecord(e, t) {
79
- try {
80
- let n = new c({
81
- definition: [],
82
- name: e
83
- });
84
- return n.name = e, this.recordingProdStack.push(n), t.call(this), this.recordingProdStack.pop(), n;
85
- } catch (e) {
86
- if (e.KNOWN_RECORDER_ERROR !== !0) try {
87
- e.message += "\n This error was thrown during the \"grammar recording phase\" For more info see:\n https://chevrotain.io/docs/guide/internals.html#grammar-recording";
88
- } catch {
89
- throw e;
90
- }
91
- throw e;
92
- }
93
- }
94
- optionInternalRecord(e, t) {
95
- return C.call(this, r, e, t);
96
- }
97
- atLeastOneInternalRecord(e, t) {
98
- C.call(this, a, t, e);
99
- }
100
- atLeastOneSepFirstInternalRecord(e, t) {
101
- C.call(this, o, t, e, _);
102
- }
103
- manyInternalRecord(e, t) {
104
- C.call(this, i, t, e);
105
- }
106
- manySepFirstInternalRecord(e, t) {
107
- C.call(this, s, t, e, _);
108
- }
109
- orInternalRecord(e, t) {
110
- return w.call(this, e, t);
111
- }
112
- subruleInternalRecord(e, t, r) {
113
- if (E(t), !e || !Object.hasOwn(e, "ruleName")) {
114
- let n = /* @__PURE__ */ Error(`<SUBRULE${T(t)}> argument is invalid expecting a Parser method reference but got: <${JSON.stringify(e)}>\n inside top level rule: <${this.recordingProdStack[0].name}>`);
115
- throw n.KNOWN_RECORDER_ERROR = !0, n;
116
- }
117
- let i = this.recordingProdStack.at(-1), a = e.ruleName, o = new n({
118
- idx: t,
119
- nonTerminalName: a,
120
- label: r?.LABEL,
121
- referencedRule: void 0
122
- });
123
- return i.definition.push(o), this.outputCst ? x : g;
124
- }
125
- consumeInternalRecord(e, t, n) {
126
- if (E(t), !d(e)) {
127
- let n = /* @__PURE__ */ Error(`<CONSUME${T(t)}> argument is invalid expecting a TokenType reference but got: <${JSON.stringify(e)}>\n inside top level rule: <${this.recordingProdStack[0].name}>`);
128
- throw n.KNOWN_RECORDER_ERROR = !0, n;
129
- }
130
- let r = this.recordingProdStack.at(-1), i = new l({
131
- idx: t,
132
- terminalType: e,
133
- label: n?.LABEL
134
- });
135
- return r.definition.push(i), b;
136
- }
137
- };
138
- function C(e, t, n, r = !1) {
139
- E(n);
140
- let i = this.recordingProdStack.at(-1), a = typeof t == "function" ? t : t.DEF, o = new e({
141
- definition: [],
142
- idx: n
143
- });
144
- return r && (o.separator = t.SEP), Object.hasOwn(t, "MAX_LOOKAHEAD") && (o.maxLookahead = t.MAX_LOOKAHEAD), this.recordingProdStack.push(o), a.call(this), i.definition.push(o), this.recordingProdStack.pop(), g;
145
- }
146
- function w(n, r) {
147
- E(r);
148
- let i = this.recordingProdStack.at(-1), a = Array.isArray(n) === !1, o = a === !1 ? n : n.DEF, s = new e({
149
- definition: [],
150
- idx: r,
151
- ignoreAmbiguities: a && n.IGNORE_AMBIGUITIES === !0
152
- });
153
- return Object.hasOwn(n, "MAX_LOOKAHEAD") && (s.maxLookahead = n.MAX_LOOKAHEAD), s.hasPredicates = o.some((e) => typeof e.GATE == "function"), i.definition.push(s), o.forEach((e) => {
154
- let n = new t({ definition: [] });
155
- s.definition.push(n), Object.hasOwn(e, "IGNORE_AMBIGUITIES") ? n.ignoreAmbiguities = e.IGNORE_AMBIGUITIES : Object.hasOwn(e, "GATE") && (n.ignoreAmbiguities = !0), this.recordingProdStack.push(n), e.ALT.call(this), this.recordingProdStack.pop();
156
- }), g;
157
- }
158
- function T(e) {
159
- return e === 0 ? "" : `${e}`;
160
- }
161
- function E(e) {
162
- if (e < 0 || e > v) {
163
- let t = /* @__PURE__ */ Error(`Invalid DSL Method idx value: <${e}>\n\tIdx value must be a none negative value smaller than ${v + 1}`);
164
- throw t.KNOWN_RECORDER_ERROR = !0, t;
165
- }
166
- }
167
- //#endregion
168
- export { S as GastRecorder };
169
-
170
- //# sourceMappingURL=gast_recorder.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"gast_recorder.js","names":[],"sources":["../../../../../../../../../../../node_modules/chevrotain/lib/src/parse/parser/traits/gast_recorder.js"],"sourcesContent":["import { Alternation, Alternative, NonTerminal, Option, Repetition, RepetitionMandatory, RepetitionMandatoryWithSeparator, RepetitionWithSeparator, Rule, Terminal, } from \"@chevrotain/gast\";\nimport { Lexer } from \"../../../scan/lexer_public.js\";\nimport { augmentTokenTypes, hasShortKeyProperty, } from \"../../../scan/tokens.js\";\nimport { createToken, createTokenInstance, } from \"../../../scan/tokens_public.js\";\nimport { END_OF_FILE } from \"../parser.js\";\nimport { BITS_FOR_OCCURRENCE_IDX } from \"../../grammar/keys.js\";\nconst RECORDING_NULL_OBJECT = {\n description: \"This Object indicates the Parser is during Recording Phase\",\n};\nObject.freeze(RECORDING_NULL_OBJECT);\nconst HANDLE_SEPARATOR = true;\nconst MAX_METHOD_IDX = Math.pow(2, BITS_FOR_OCCURRENCE_IDX) - 1;\nconst RFT = createToken({ name: \"RECORDING_PHASE_TOKEN\", pattern: Lexer.NA });\naugmentTokenTypes([RFT]);\nconst RECORDING_PHASE_TOKEN = createTokenInstance(RFT, \"This IToken indicates the Parser is in Recording Phase\\n\\t\" +\n \"\" +\n \"See: https://chevrotain.io/docs/guide/internals.html#grammar-recording for details\", \n// Using \"-1\" instead of NaN (as in EOF) because an actual number is less likely to\n// cause errors if the output of LA or CONSUME would be (incorrectly) used during the recording phase.\n-1, -1, -1, -1, -1, -1);\nObject.freeze(RECORDING_PHASE_TOKEN);\nconst RECORDING_PHASE_CSTNODE = {\n name: \"This CSTNode indicates the Parser is in Recording Phase\\n\\t\" +\n \"See: https://chevrotain.io/docs/guide/internals.html#grammar-recording for details\",\n children: {},\n};\n/**\n * This trait handles the creation of the GAST structure for Chevrotain Grammars\n */\nexport class GastRecorder {\n initGastRecorder(config) {\n this.recordingProdStack = [];\n this.RECORDING_PHASE = false;\n }\n enableRecording() {\n this.RECORDING_PHASE = true;\n this.TRACE_INIT(\"Enable Recording\", () => {\n /**\n * Warning Dark Voodoo Magic upcoming!\n * We are \"replacing\" the public parsing DSL methods API\n * With **new** alternative implementations on the Parser **instance**\n *\n * So far this is the only way I've found to avoid performance regressions during parsing time.\n * - Approx 30% performance regression was measured on Chrome 75 Canary when attempting to replace the \"internal\"\n * implementations directly instead.\n */\n for (let i = 0; i < 10; i++) {\n const idx = i > 0 ? i : \"\";\n this[`CONSUME${idx}`] = function (arg1, arg2) {\n return this.consumeInternalRecord(arg1, i, arg2);\n };\n this[`SUBRULE${idx}`] = function (arg1, arg2) {\n return this.subruleInternalRecord(arg1, i, arg2);\n };\n this[`OPTION${idx}`] = function (arg1) {\n return this.optionInternalRecord(arg1, i);\n };\n this[`OR${idx}`] = function (arg1) {\n return this.orInternalRecord(arg1, i);\n };\n this[`MANY${idx}`] = function (arg1) {\n this.manyInternalRecord(i, arg1);\n };\n this[`MANY_SEP${idx}`] = function (arg1) {\n this.manySepFirstInternalRecord(i, arg1);\n };\n this[`AT_LEAST_ONE${idx}`] = function (arg1) {\n this.atLeastOneInternalRecord(i, arg1);\n };\n this[`AT_LEAST_ONE_SEP${idx}`] = function (arg1) {\n this.atLeastOneSepFirstInternalRecord(i, arg1);\n };\n }\n // DSL methods with the idx(suffix) as an argument\n this[`consume`] = function (idx, arg1, arg2) {\n return this.consumeInternalRecord(arg1, idx, arg2);\n };\n this[`subrule`] = function (idx, arg1, arg2) {\n return this.subruleInternalRecord(arg1, idx, arg2);\n };\n this[`option`] = function (idx, arg1) {\n return this.optionInternalRecord(arg1, idx);\n };\n this[`or`] = function (idx, arg1) {\n return this.orInternalRecord(arg1, idx);\n };\n this[`many`] = function (idx, arg1) {\n this.manyInternalRecord(idx, arg1);\n };\n this[`atLeastOne`] = function (idx, arg1) {\n this.atLeastOneInternalRecord(idx, arg1);\n };\n this.ACTION = this.ACTION_RECORD;\n this.BACKTRACK = this.BACKTRACK_RECORD;\n this.LA = this.LA_RECORD;\n });\n }\n disableRecording() {\n this.RECORDING_PHASE = false;\n // By deleting these **instance** properties, any future invocation\n // will be deferred to the original methods on the **prototype** object\n // This seems to get rid of any incorrect optimizations that V8 may\n // do during the recording phase.\n this.TRACE_INIT(\"Deleting Recording methods\", () => {\n const that = this;\n for (let i = 0; i < 10; i++) {\n const idx = i > 0 ? i : \"\";\n delete that[`CONSUME${idx}`];\n delete that[`SUBRULE${idx}`];\n delete that[`OPTION${idx}`];\n delete that[`OR${idx}`];\n delete that[`MANY${idx}`];\n delete that[`MANY_SEP${idx}`];\n delete that[`AT_LEAST_ONE${idx}`];\n delete that[`AT_LEAST_ONE_SEP${idx}`];\n }\n delete that[`consume`];\n delete that[`subrule`];\n delete that[`option`];\n delete that[`or`];\n delete that[`many`];\n delete that[`atLeastOne`];\n delete that.ACTION;\n delete that.BACKTRACK;\n delete that.LA;\n });\n }\n // Parser methods are called inside an ACTION?\n // Maybe try/catch/finally on ACTIONS while disabling the recorders state changes?\n // @ts-expect-error -- noop place holder\n ACTION_RECORD(impl) {\n // NO-OP during recording\n }\n // Executing backtracking logic will break our recording logic assumptions\n BACKTRACK_RECORD(grammarRule, args) {\n return () => true;\n }\n // LA is part of the official API and may be used for custom lookahead logic\n // by end users who may forget to wrap it in ACTION or inside a GATE\n LA_RECORD(howMuch) {\n // We cannot use the RECORD_PHASE_TOKEN here because someone may depend\n // On LA return EOF at the end of the input so an infinite loop may occur.\n return END_OF_FILE;\n }\n topLevelRuleRecord(name, def) {\n try {\n const newTopLevelRule = new Rule({ definition: [], name: name });\n newTopLevelRule.name = name;\n this.recordingProdStack.push(newTopLevelRule);\n def.call(this);\n this.recordingProdStack.pop();\n return newTopLevelRule;\n }\n catch (originalError) {\n if (originalError.KNOWN_RECORDER_ERROR !== true) {\n try {\n originalError.message =\n originalError.message +\n '\\n\\t This error was thrown during the \"grammar recording phase\" For more info see:\\n\\t' +\n \"https://chevrotain.io/docs/guide/internals.html#grammar-recording\";\n }\n catch (mutabilityError) {\n // We may not be able to modify the original error object\n throw originalError;\n }\n }\n throw originalError;\n }\n }\n // Implementation of parsing DSL\n optionInternalRecord(actionORMethodDef, occurrence) {\n return recordProd.call(this, Option, actionORMethodDef, occurrence);\n }\n atLeastOneInternalRecord(occurrence, actionORMethodDef) {\n recordProd.call(this, RepetitionMandatory, actionORMethodDef, occurrence);\n }\n atLeastOneSepFirstInternalRecord(occurrence, options) {\n recordProd.call(this, RepetitionMandatoryWithSeparator, options, occurrence, HANDLE_SEPARATOR);\n }\n manyInternalRecord(occurrence, actionORMethodDef) {\n recordProd.call(this, Repetition, actionORMethodDef, occurrence);\n }\n manySepFirstInternalRecord(occurrence, options) {\n recordProd.call(this, RepetitionWithSeparator, options, occurrence, HANDLE_SEPARATOR);\n }\n orInternalRecord(altsOrOpts, occurrence) {\n return recordOrProd.call(this, altsOrOpts, occurrence);\n }\n subruleInternalRecord(ruleToCall, occurrence, options) {\n assertMethodIdxIsValid(occurrence);\n if (!ruleToCall || !Object.hasOwn(ruleToCall, \"ruleName\")) {\n const error = new Error(`<SUBRULE${getIdxSuffix(occurrence)}> argument is invalid` +\n ` expecting a Parser method reference but got: <${JSON.stringify(ruleToCall)}>` +\n `\\n inside top level rule: <${this.recordingProdStack[0].name}>`);\n error.KNOWN_RECORDER_ERROR = true;\n throw error;\n }\n const prevProd = this.recordingProdStack.at(-1);\n const ruleName = ruleToCall.ruleName;\n const newNoneTerminal = new NonTerminal({\n idx: occurrence,\n nonTerminalName: ruleName,\n label: options === null || options === void 0 ? void 0 : options.LABEL,\n // The resolving of the `referencedRule` property will be done once all the Rule's GASTs have been created\n referencedRule: undefined,\n });\n prevProd.definition.push(newNoneTerminal);\n return this.outputCst\n ? RECORDING_PHASE_CSTNODE\n : RECORDING_NULL_OBJECT;\n }\n consumeInternalRecord(tokType, occurrence, options) {\n assertMethodIdxIsValid(occurrence);\n if (!hasShortKeyProperty(tokType)) {\n const error = new Error(`<CONSUME${getIdxSuffix(occurrence)}> argument is invalid` +\n ` expecting a TokenType reference but got: <${JSON.stringify(tokType)}>` +\n `\\n inside top level rule: <${this.recordingProdStack[0].name}>`);\n error.KNOWN_RECORDER_ERROR = true;\n throw error;\n }\n const prevProd = this.recordingProdStack.at(-1);\n const newNoneTerminal = new Terminal({\n idx: occurrence,\n terminalType: tokType,\n label: options === null || options === void 0 ? void 0 : options.LABEL,\n });\n prevProd.definition.push(newNoneTerminal);\n return RECORDING_PHASE_TOKEN;\n }\n}\nfunction recordProd(prodConstructor, mainProdArg, occurrence, handleSep = false) {\n assertMethodIdxIsValid(occurrence);\n const prevProd = this.recordingProdStack.at(-1);\n const grammarAction = typeof mainProdArg === \"function\" ? mainProdArg : mainProdArg.DEF;\n const newProd = new prodConstructor({ definition: [], idx: occurrence });\n if (handleSep) {\n newProd.separator = mainProdArg.SEP;\n }\n if (Object.hasOwn(mainProdArg, \"MAX_LOOKAHEAD\")) {\n newProd.maxLookahead = mainProdArg.MAX_LOOKAHEAD;\n }\n this.recordingProdStack.push(newProd);\n grammarAction.call(this);\n prevProd.definition.push(newProd);\n this.recordingProdStack.pop();\n return RECORDING_NULL_OBJECT;\n}\nfunction recordOrProd(mainProdArg, occurrence) {\n assertMethodIdxIsValid(occurrence);\n const prevProd = this.recordingProdStack.at(-1);\n // Only an array of alternatives\n const hasOptions = Array.isArray(mainProdArg) === false;\n const alts = hasOptions === false ? mainProdArg : mainProdArg.DEF;\n const newOrProd = new Alternation({\n definition: [],\n idx: occurrence,\n ignoreAmbiguities: hasOptions && mainProdArg.IGNORE_AMBIGUITIES === true,\n });\n if (Object.hasOwn(mainProdArg, \"MAX_LOOKAHEAD\")) {\n newOrProd.maxLookahead = mainProdArg.MAX_LOOKAHEAD;\n }\n const hasPredicates = alts.some((currAlt) => typeof currAlt.GATE === \"function\");\n newOrProd.hasPredicates = hasPredicates;\n prevProd.definition.push(newOrProd);\n alts.forEach((currAlt) => {\n const currAltFlat = new Alternative({ definition: [] });\n newOrProd.definition.push(currAltFlat);\n if (Object.hasOwn(currAlt, \"IGNORE_AMBIGUITIES\")) {\n currAltFlat.ignoreAmbiguities = currAlt.IGNORE_AMBIGUITIES; // assumes end user provides the correct config value/type\n }\n // **implicit** ignoreAmbiguities due to usage of gate\n else if (Object.hasOwn(currAlt, \"GATE\")) {\n currAltFlat.ignoreAmbiguities = true;\n }\n this.recordingProdStack.push(currAltFlat);\n currAlt.ALT.call(this);\n this.recordingProdStack.pop();\n });\n return RECORDING_NULL_OBJECT;\n}\nfunction getIdxSuffix(idx) {\n return idx === 0 ? \"\" : `${idx}`;\n}\nfunction assertMethodIdxIsValid(idx) {\n if (idx < 0 || idx > MAX_METHOD_IDX) {\n const error = new Error(\n // The stack trace will contain all the needed details\n `Invalid DSL Method idx value: <${idx}>\\n\\t` +\n `Idx value must be a none negative value smaller than ${MAX_METHOD_IDX + 1}`);\n error.KNOWN_RECORDER_ERROR = true;\n throw error;\n }\n}\n//# sourceMappingURL=gast_recorder.js.map"],"x_google_ignoreList":[0],"mappings":";;;;;;;AAMA,IAAM,IAAwB,EAC1B,aAAa,8DAChB;AACD,OAAO,OAAO,EAAsB;AACpC,IAAM,IAAmB,IACnB,IAA0B,KAAA,IAA8B,GACxD,IAAM,EAAY;CAAE,MAAM;CAAyB,SAAS,EAAM;CAAI,CAAC;AAC7E,EAAkB,CAAC,EAAI,CAAC;AACxB,IAAM,IAAwB,EAAoB,GAAK,+IAKvD,IAAI,IAAI,IAAI,IAAI,IAA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