openpinescript 0.1.1__py3-none-any.whl

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 (332) hide show
  1. openpinescript/__init__.py +129 -0
  2. openpinescript/__main__.py +5 -0
  3. openpinescript/_cli.py +24 -0
  4. openpinescript/_engine/LICENSE +674 -0
  5. openpinescript/_engine/VERSION +1 -0
  6. openpinescript/_engine/dist/cli.mjs +108691 -0
  7. openpinescript/_engine/node_modules/antlr4ng/LICENSE.txt +29 -0
  8. openpinescript/_engine/node_modules/antlr4ng/dist/atn/ATN.cjs +3159 -0
  9. openpinescript/_engine/node_modules/antlr4ng/dist/atn/ATN.js +3159 -0
  10. openpinescript/_engine/node_modules/antlr4ng/dist/atn/ATN.mjs +3139 -0
  11. openpinescript/_engine/node_modules/antlr4ng/dist/atn/ATNConfig.cjs +911 -0
  12. openpinescript/_engine/node_modules/antlr4ng/dist/atn/ATNConfig.js +911 -0
  13. openpinescript/_engine/node_modules/antlr4ng/dist/atn/ATNConfig.mjs +891 -0
  14. openpinescript/_engine/node_modules/antlr4ng/dist/atn/ATNConfigSet.cjs +3781 -0
  15. openpinescript/_engine/node_modules/antlr4ng/dist/atn/ATNConfigSet.js +3781 -0
  16. openpinescript/_engine/node_modules/antlr4ng/dist/atn/ATNConfigSet.mjs +3761 -0
  17. openpinescript/_engine/node_modules/antlr4ng/dist/atn/ATNDeserializationOptions.cjs +17 -0
  18. openpinescript/_engine/node_modules/antlr4ng/dist/atn/ATNDeserializationOptions.js +17 -0
  19. openpinescript/_engine/node_modules/antlr4ng/dist/atn/ATNDeserializationOptions.mjs +0 -0
  20. openpinescript/_engine/node_modules/antlr4ng/dist/atn/ATNDeserializer.cjs +4300 -0
  21. openpinescript/_engine/node_modules/antlr4ng/dist/atn/ATNDeserializer.js +4300 -0
  22. openpinescript/_engine/node_modules/antlr4ng/dist/atn/ATNDeserializer.mjs +4280 -0
  23. openpinescript/_engine/node_modules/antlr4ng/dist/atn/ATNSerializer.cjs +4798 -0
  24. openpinescript/_engine/node_modules/antlr4ng/dist/atn/ATNSerializer.js +4798 -0
  25. openpinescript/_engine/node_modules/antlr4ng/dist/atn/ATNSerializer.mjs +4778 -0
  26. openpinescript/_engine/node_modules/antlr4ng/dist/atn/ATNSimulator.cjs +982 -0
  27. openpinescript/_engine/node_modules/antlr4ng/dist/atn/ATNSimulator.js +982 -0
  28. openpinescript/_engine/node_modules/antlr4ng/dist/atn/ATNSimulator.mjs +962 -0
  29. openpinescript/_engine/node_modules/antlr4ng/dist/atn/ATNState.cjs +85 -0
  30. openpinescript/_engine/node_modules/antlr4ng/dist/atn/ATNState.js +85 -0
  31. openpinescript/_engine/node_modules/antlr4ng/dist/atn/ATNState.mjs +67 -0
  32. openpinescript/_engine/node_modules/antlr4ng/dist/atn/AbstractPredicateTransition.cjs +78 -0
  33. openpinescript/_engine/node_modules/antlr4ng/dist/atn/AbstractPredicateTransition.js +78 -0
  34. openpinescript/_engine/node_modules/antlr4ng/dist/atn/AbstractPredicateTransition.mjs +58 -0
  35. openpinescript/_engine/node_modules/antlr4ng/dist/atn/ActionTransition.cjs +96 -0
  36. openpinescript/_engine/node_modules/antlr4ng/dist/atn/ActionTransition.js +96 -0
  37. openpinescript/_engine/node_modules/antlr4ng/dist/atn/ActionTransition.mjs +76 -0
  38. openpinescript/_engine/node_modules/antlr4ng/dist/atn/AmbiguityInfo.cjs +17 -0
  39. openpinescript/_engine/node_modules/antlr4ng/dist/atn/AmbiguityInfo.js +17 -0
  40. openpinescript/_engine/node_modules/antlr4ng/dist/atn/AmbiguityInfo.mjs +0 -0
  41. openpinescript/_engine/node_modules/antlr4ng/dist/atn/ArrayPredictionContext.cjs +243 -0
  42. openpinescript/_engine/node_modules/antlr4ng/dist/atn/ArrayPredictionContext.js +243 -0
  43. openpinescript/_engine/node_modules/antlr4ng/dist/atn/ArrayPredictionContext.mjs +223 -0
  44. openpinescript/_engine/node_modules/antlr4ng/dist/atn/AtomTransition.cjs +904 -0
  45. openpinescript/_engine/node_modules/antlr4ng/dist/atn/AtomTransition.js +904 -0
  46. openpinescript/_engine/node_modules/antlr4ng/dist/atn/AtomTransition.mjs +884 -0
  47. openpinescript/_engine/node_modules/antlr4ng/dist/atn/BasicBlockStartState.cjs +112 -0
  48. openpinescript/_engine/node_modules/antlr4ng/dist/atn/BasicBlockStartState.js +112 -0
  49. openpinescript/_engine/node_modules/antlr4ng/dist/atn/BasicBlockStartState.mjs +92 -0
  50. openpinescript/_engine/node_modules/antlr4ng/dist/atn/BasicState.cjs +95 -0
  51. openpinescript/_engine/node_modules/antlr4ng/dist/atn/BasicState.js +95 -0
  52. openpinescript/_engine/node_modules/antlr4ng/dist/atn/BasicState.mjs +75 -0
  53. openpinescript/_engine/node_modules/antlr4ng/dist/atn/BlockEndState.cjs +96 -0
  54. openpinescript/_engine/node_modules/antlr4ng/dist/atn/BlockEndState.js +96 -0
  55. openpinescript/_engine/node_modules/antlr4ng/dist/atn/BlockEndState.mjs +76 -0
  56. openpinescript/_engine/node_modules/antlr4ng/dist/atn/BlockStartState.cjs +104 -0
  57. openpinescript/_engine/node_modules/antlr4ng/dist/atn/BlockStartState.js +104 -0
  58. openpinescript/_engine/node_modules/antlr4ng/dist/atn/BlockStartState.mjs +84 -0
  59. openpinescript/_engine/node_modules/antlr4ng/dist/atn/CodePointTransitions.cjs +947 -0
  60. openpinescript/_engine/node_modules/antlr4ng/dist/atn/CodePointTransitions.js +947 -0
  61. openpinescript/_engine/node_modules/antlr4ng/dist/atn/CodePointTransitions.mjs +927 -0
  62. openpinescript/_engine/node_modules/antlr4ng/dist/atn/ContextSensitivityInfo.cjs +17 -0
  63. openpinescript/_engine/node_modules/antlr4ng/dist/atn/ContextSensitivityInfo.js +17 -0
  64. openpinescript/_engine/node_modules/antlr4ng/dist/atn/ContextSensitivityInfo.mjs +0 -0
  65. openpinescript/_engine/node_modules/antlr4ng/dist/atn/DecisionEventInfo.cjs +17 -0
  66. openpinescript/_engine/node_modules/antlr4ng/dist/atn/DecisionEventInfo.js +17 -0
  67. openpinescript/_engine/node_modules/antlr4ng/dist/atn/DecisionEventInfo.mjs +0 -0
  68. openpinescript/_engine/node_modules/antlr4ng/dist/atn/DecisionInfo.cjs +206 -0
  69. openpinescript/_engine/node_modules/antlr4ng/dist/atn/DecisionInfo.js +206 -0
  70. openpinescript/_engine/node_modules/antlr4ng/dist/atn/DecisionInfo.mjs +188 -0
  71. openpinescript/_engine/node_modules/antlr4ng/dist/atn/DecisionState.cjs +96 -0
  72. openpinescript/_engine/node_modules/antlr4ng/dist/atn/DecisionState.js +96 -0
  73. openpinescript/_engine/node_modules/antlr4ng/dist/atn/DecisionState.mjs +76 -0
  74. openpinescript/_engine/node_modules/antlr4ng/dist/atn/EmptyPredictionContext.cjs +237 -0
  75. openpinescript/_engine/node_modules/antlr4ng/dist/atn/EmptyPredictionContext.js +237 -0
  76. openpinescript/_engine/node_modules/antlr4ng/dist/atn/EmptyPredictionContext.mjs +217 -0
  77. openpinescript/_engine/node_modules/antlr4ng/dist/atn/EpsilonTransition.cjs +103 -0
  78. openpinescript/_engine/node_modules/antlr4ng/dist/atn/EpsilonTransition.js +103 -0
  79. openpinescript/_engine/node_modules/antlr4ng/dist/atn/EpsilonTransition.mjs +83 -0
  80. openpinescript/_engine/node_modules/antlr4ng/dist/atn/LL1Analyzer.cjs +3159 -0
  81. openpinescript/_engine/node_modules/antlr4ng/dist/atn/LL1Analyzer.js +3159 -0
  82. openpinescript/_engine/node_modules/antlr4ng/dist/atn/LL1Analyzer.mjs +3139 -0
  83. openpinescript/_engine/node_modules/antlr4ng/dist/atn/LexerATNConfig.cjs +961 -0
  84. openpinescript/_engine/node_modules/antlr4ng/dist/atn/LexerATNConfig.js +961 -0
  85. openpinescript/_engine/node_modules/antlr4ng/dist/atn/LexerATNConfig.mjs +941 -0
  86. openpinescript/_engine/node_modules/antlr4ng/dist/atn/LexerATNSimulator.cjs +5604 -0
  87. openpinescript/_engine/node_modules/antlr4ng/dist/atn/LexerATNSimulator.js +5604 -0
  88. openpinescript/_engine/node_modules/antlr4ng/dist/atn/LexerATNSimulator.mjs +5584 -0
  89. openpinescript/_engine/node_modules/antlr4ng/dist/atn/LexerAction.cjs +17 -0
  90. openpinescript/_engine/node_modules/antlr4ng/dist/atn/LexerAction.js +17 -0
  91. openpinescript/_engine/node_modules/antlr4ng/dist/atn/LexerAction.mjs +0 -0
  92. openpinescript/_engine/node_modules/antlr4ng/dist/atn/LexerActionExecutor.cjs +305 -0
  93. openpinescript/_engine/node_modules/antlr4ng/dist/atn/LexerActionExecutor.js +305 -0
  94. openpinescript/_engine/node_modules/antlr4ng/dist/atn/LexerActionExecutor.mjs +285 -0
  95. openpinescript/_engine/node_modules/antlr4ng/dist/atn/LexerActionType.cjs +42 -0
  96. openpinescript/_engine/node_modules/antlr4ng/dist/atn/LexerActionType.js +42 -0
  97. openpinescript/_engine/node_modules/antlr4ng/dist/atn/LexerActionType.mjs +22 -0
  98. openpinescript/_engine/node_modules/antlr4ng/dist/atn/LexerChannelAction.cjs +163 -0
  99. openpinescript/_engine/node_modules/antlr4ng/dist/atn/LexerChannelAction.js +163 -0
  100. openpinescript/_engine/node_modules/antlr4ng/dist/atn/LexerChannelAction.mjs +143 -0
  101. openpinescript/_engine/node_modules/antlr4ng/dist/atn/LexerCustomAction.cjs +169 -0
  102. openpinescript/_engine/node_modules/antlr4ng/dist/atn/LexerCustomAction.js +169 -0
  103. openpinescript/_engine/node_modules/antlr4ng/dist/atn/LexerCustomAction.mjs +149 -0
  104. openpinescript/_engine/node_modules/antlr4ng/dist/atn/LexerIndexedCustomAction.cjs +142 -0
  105. openpinescript/_engine/node_modules/antlr4ng/dist/atn/LexerIndexedCustomAction.js +142 -0
  106. openpinescript/_engine/node_modules/antlr4ng/dist/atn/LexerIndexedCustomAction.mjs +122 -0
  107. openpinescript/_engine/node_modules/antlr4ng/dist/atn/LexerModeAction.cjs +163 -0
  108. openpinescript/_engine/node_modules/antlr4ng/dist/atn/LexerModeAction.js +163 -0
  109. openpinescript/_engine/node_modules/antlr4ng/dist/atn/LexerModeAction.mjs +143 -0
  110. openpinescript/_engine/node_modules/antlr4ng/dist/atn/LexerMoreAction.cjs +73 -0
  111. openpinescript/_engine/node_modules/antlr4ng/dist/atn/LexerMoreAction.js +73 -0
  112. openpinescript/_engine/node_modules/antlr4ng/dist/atn/LexerMoreAction.mjs +53 -0
  113. openpinescript/_engine/node_modules/antlr4ng/dist/atn/LexerPopModeAction.cjs +73 -0
  114. openpinescript/_engine/node_modules/antlr4ng/dist/atn/LexerPopModeAction.js +73 -0
  115. openpinescript/_engine/node_modules/antlr4ng/dist/atn/LexerPopModeAction.mjs +53 -0
  116. openpinescript/_engine/node_modules/antlr4ng/dist/atn/LexerPushModeAction.cjs +163 -0
  117. openpinescript/_engine/node_modules/antlr4ng/dist/atn/LexerPushModeAction.js +163 -0
  118. openpinescript/_engine/node_modules/antlr4ng/dist/atn/LexerPushModeAction.mjs +143 -0
  119. openpinescript/_engine/node_modules/antlr4ng/dist/atn/LexerSkipAction.cjs +71 -0
  120. openpinescript/_engine/node_modules/antlr4ng/dist/atn/LexerSkipAction.js +71 -0
  121. openpinescript/_engine/node_modules/antlr4ng/dist/atn/LexerSkipAction.mjs +51 -0
  122. openpinescript/_engine/node_modules/antlr4ng/dist/atn/LexerTypeAction.cjs +159 -0
  123. openpinescript/_engine/node_modules/antlr4ng/dist/atn/LexerTypeAction.js +159 -0
  124. openpinescript/_engine/node_modules/antlr4ng/dist/atn/LexerTypeAction.mjs +139 -0
  125. openpinescript/_engine/node_modules/antlr4ng/dist/atn/LookaheadEventInfo.cjs +17 -0
  126. openpinescript/_engine/node_modules/antlr4ng/dist/atn/LookaheadEventInfo.js +17 -0
  127. openpinescript/_engine/node_modules/antlr4ng/dist/atn/LookaheadEventInfo.mjs +0 -0
  128. openpinescript/_engine/node_modules/antlr4ng/dist/atn/LoopEndState.cjs +96 -0
  129. openpinescript/_engine/node_modules/antlr4ng/dist/atn/LoopEndState.js +96 -0
  130. openpinescript/_engine/node_modules/antlr4ng/dist/atn/LoopEndState.mjs +76 -0
  131. openpinescript/_engine/node_modules/antlr4ng/dist/atn/NotSetTransition.cjs +921 -0
  132. openpinescript/_engine/node_modules/antlr4ng/dist/atn/NotSetTransition.js +921 -0
  133. openpinescript/_engine/node_modules/antlr4ng/dist/atn/NotSetTransition.mjs +901 -0
  134. openpinescript/_engine/node_modules/antlr4ng/dist/atn/OrderedATNConfigSet.cjs +3824 -0
  135. openpinescript/_engine/node_modules/antlr4ng/dist/atn/OrderedATNConfigSet.js +3824 -0
  136. openpinescript/_engine/node_modules/antlr4ng/dist/atn/OrderedATNConfigSet.mjs +3804 -0
  137. openpinescript/_engine/node_modules/antlr4ng/dist/atn/ParseInfo.cjs +156 -0
  138. openpinescript/_engine/node_modules/antlr4ng/dist/atn/ParseInfo.js +156 -0
  139. openpinescript/_engine/node_modules/antlr4ng/dist/atn/ParseInfo.mjs +138 -0
  140. openpinescript/_engine/node_modules/antlr4ng/dist/atn/ParserATNSimulator.cjs +6082 -0
  141. openpinescript/_engine/node_modules/antlr4ng/dist/atn/ParserATNSimulator.js +6082 -0
  142. openpinescript/_engine/node_modules/antlr4ng/dist/atn/ParserATNSimulator.mjs +6062 -0
  143. openpinescript/_engine/node_modules/antlr4ng/dist/atn/PlusBlockStartState.cjs +113 -0
  144. openpinescript/_engine/node_modules/antlr4ng/dist/atn/PlusBlockStartState.js +113 -0
  145. openpinescript/_engine/node_modules/antlr4ng/dist/atn/PlusBlockStartState.mjs +93 -0
  146. openpinescript/_engine/node_modules/antlr4ng/dist/atn/PlusLoopbackState.cjs +104 -0
  147. openpinescript/_engine/node_modules/antlr4ng/dist/atn/PlusLoopbackState.js +104 -0
  148. openpinescript/_engine/node_modules/antlr4ng/dist/atn/PlusLoopbackState.mjs +84 -0
  149. openpinescript/_engine/node_modules/antlr4ng/dist/atn/PrecedencePredicateTransition.cjs +887 -0
  150. openpinescript/_engine/node_modules/antlr4ng/dist/atn/PrecedencePredicateTransition.js +887 -0
  151. openpinescript/_engine/node_modules/antlr4ng/dist/atn/PrecedencePredicateTransition.mjs +867 -0
  152. openpinescript/_engine/node_modules/antlr4ng/dist/atn/PredicateEvalInfo.cjs +17 -0
  153. openpinescript/_engine/node_modules/antlr4ng/dist/atn/PredicateEvalInfo.js +17 -0
  154. openpinescript/_engine/node_modules/antlr4ng/dist/atn/PredicateEvalInfo.mjs +0 -0
  155. openpinescript/_engine/node_modules/antlr4ng/dist/atn/PredicateTransition.cjs +892 -0
  156. openpinescript/_engine/node_modules/antlr4ng/dist/atn/PredicateTransition.js +892 -0
  157. openpinescript/_engine/node_modules/antlr4ng/dist/atn/PredicateTransition.mjs +872 -0
  158. openpinescript/_engine/node_modules/antlr4ng/dist/atn/PredictionContext.cjs +153 -0
  159. openpinescript/_engine/node_modules/antlr4ng/dist/atn/PredictionContext.js +153 -0
  160. openpinescript/_engine/node_modules/antlr4ng/dist/atn/PredictionContext.mjs +133 -0
  161. openpinescript/_engine/node_modules/antlr4ng/dist/atn/PredictionContextCache.cjs +715 -0
  162. openpinescript/_engine/node_modules/antlr4ng/dist/atn/PredictionContextCache.js +715 -0
  163. openpinescript/_engine/node_modules/antlr4ng/dist/atn/PredictionContextCache.mjs +695 -0
  164. openpinescript/_engine/node_modules/antlr4ng/dist/atn/PredictionContextUtils.cjs +3604 -0
  165. openpinescript/_engine/node_modules/antlr4ng/dist/atn/PredictionContextUtils.js +3604 -0
  166. openpinescript/_engine/node_modules/antlr4ng/dist/atn/PredictionContextUtils.mjs +3584 -0
  167. openpinescript/_engine/node_modules/antlr4ng/dist/atn/PredictionMode.cjs +4284 -0
  168. openpinescript/_engine/node_modules/antlr4ng/dist/atn/PredictionMode.js +4284 -0
  169. openpinescript/_engine/node_modules/antlr4ng/dist/atn/PredictionMode.mjs +4264 -0
  170. openpinescript/_engine/node_modules/antlr4ng/dist/atn/ProfilingATNSimulator.cjs +6467 -0
  171. openpinescript/_engine/node_modules/antlr4ng/dist/atn/ProfilingATNSimulator.js +6467 -0
  172. openpinescript/_engine/node_modules/antlr4ng/dist/atn/ProfilingATNSimulator.mjs +6447 -0
  173. openpinescript/_engine/node_modules/antlr4ng/dist/atn/RangeTransition.cjs +905 -0
  174. openpinescript/_engine/node_modules/antlr4ng/dist/atn/RangeTransition.js +905 -0
  175. openpinescript/_engine/node_modules/antlr4ng/dist/atn/RangeTransition.mjs +885 -0
  176. openpinescript/_engine/node_modules/antlr4ng/dist/atn/RuleStartState.cjs +97 -0
  177. openpinescript/_engine/node_modules/antlr4ng/dist/atn/RuleStartState.js +97 -0
  178. openpinescript/_engine/node_modules/antlr4ng/dist/atn/RuleStartState.mjs +77 -0
  179. openpinescript/_engine/node_modules/antlr4ng/dist/atn/RuleStopState.cjs +95 -0
  180. openpinescript/_engine/node_modules/antlr4ng/dist/atn/RuleStopState.js +95 -0
  181. openpinescript/_engine/node_modules/antlr4ng/dist/atn/RuleStopState.mjs +75 -0
  182. openpinescript/_engine/node_modules/antlr4ng/dist/atn/RuleTransition.cjs +93 -0
  183. openpinescript/_engine/node_modules/antlr4ng/dist/atn/RuleTransition.js +93 -0
  184. openpinescript/_engine/node_modules/antlr4ng/dist/atn/RuleTransition.mjs +73 -0
  185. openpinescript/_engine/node_modules/antlr4ng/dist/atn/SemanticContext.cjs +807 -0
  186. openpinescript/_engine/node_modules/antlr4ng/dist/atn/SemanticContext.js +807 -0
  187. openpinescript/_engine/node_modules/antlr4ng/dist/atn/SemanticContext.mjs +787 -0
  188. openpinescript/_engine/node_modules/antlr4ng/dist/atn/SetTransition.cjs +905 -0
  189. openpinescript/_engine/node_modules/antlr4ng/dist/atn/SetTransition.js +905 -0
  190. openpinescript/_engine/node_modules/antlr4ng/dist/atn/SetTransition.mjs +885 -0
  191. openpinescript/_engine/node_modules/antlr4ng/dist/atn/SingletonPredictionContext.cjs +207 -0
  192. openpinescript/_engine/node_modules/antlr4ng/dist/atn/SingletonPredictionContext.js +207 -0
  193. openpinescript/_engine/node_modules/antlr4ng/dist/atn/SingletonPredictionContext.mjs +187 -0
  194. openpinescript/_engine/node_modules/antlr4ng/dist/atn/StarBlockStartState.cjs +112 -0
  195. openpinescript/_engine/node_modules/antlr4ng/dist/atn/StarBlockStartState.js +112 -0
  196. openpinescript/_engine/node_modules/antlr4ng/dist/atn/StarBlockStartState.mjs +92 -0
  197. openpinescript/_engine/node_modules/antlr4ng/dist/atn/StarLoopEntryState.cjs +117 -0
  198. openpinescript/_engine/node_modules/antlr4ng/dist/atn/StarLoopEntryState.js +117 -0
  199. openpinescript/_engine/node_modules/antlr4ng/dist/atn/StarLoopEntryState.mjs +97 -0
  200. openpinescript/_engine/node_modules/antlr4ng/dist/atn/StarLoopbackState.cjs +95 -0
  201. openpinescript/_engine/node_modules/antlr4ng/dist/atn/StarLoopbackState.js +95 -0
  202. openpinescript/_engine/node_modules/antlr4ng/dist/atn/StarLoopbackState.mjs +75 -0
  203. openpinescript/_engine/node_modules/antlr4ng/dist/atn/TokensStartState.cjs +104 -0
  204. openpinescript/_engine/node_modules/antlr4ng/dist/atn/TokensStartState.js +104 -0
  205. openpinescript/_engine/node_modules/antlr4ng/dist/atn/TokensStartState.mjs +84 -0
  206. openpinescript/_engine/node_modules/antlr4ng/dist/atn/Transition.cjs +66 -0
  207. openpinescript/_engine/node_modules/antlr4ng/dist/atn/Transition.js +66 -0
  208. openpinescript/_engine/node_modules/antlr4ng/dist/atn/Transition.mjs +48 -0
  209. openpinescript/_engine/node_modules/antlr4ng/dist/atn/WildcardTransition.cjs +84 -0
  210. openpinescript/_engine/node_modules/antlr4ng/dist/atn/WildcardTransition.js +84 -0
  211. openpinescript/_engine/node_modules/antlr4ng/dist/atn/WildcardTransition.mjs +64 -0
  212. openpinescript/_engine/node_modules/antlr4ng/dist/atn/helpers.cjs +246 -0
  213. openpinescript/_engine/node_modules/antlr4ng/dist/atn/helpers.js +246 -0
  214. openpinescript/_engine/node_modules/antlr4ng/dist/atn/helpers.mjs +226 -0
  215. openpinescript/_engine/node_modules/antlr4ng/dist/atn/index.cjs +9485 -0
  216. openpinescript/_engine/node_modules/antlr4ng/dist/atn/index.js +9485 -0
  217. openpinescript/_engine/node_modules/antlr4ng/dist/atn/index.mjs +9465 -0
  218. openpinescript/_engine/node_modules/antlr4ng/dist/dfa/DFA.cjs +559 -0
  219. openpinescript/_engine/node_modules/antlr4ng/dist/dfa/DFA.js +559 -0
  220. openpinescript/_engine/node_modules/antlr4ng/dist/dfa/DFA.mjs +539 -0
  221. openpinescript/_engine/node_modules/antlr4ng/dist/dfa/DFASerializer.cjs +76 -0
  222. openpinescript/_engine/node_modules/antlr4ng/dist/dfa/DFASerializer.js +76 -0
  223. openpinescript/_engine/node_modules/antlr4ng/dist/dfa/DFASerializer.mjs +58 -0
  224. openpinescript/_engine/node_modules/antlr4ng/dist/dfa/DFAState.cjs +136 -0
  225. openpinescript/_engine/node_modules/antlr4ng/dist/dfa/DFAState.js +136 -0
  226. openpinescript/_engine/node_modules/antlr4ng/dist/dfa/DFAState.mjs +116 -0
  227. openpinescript/_engine/node_modules/antlr4ng/dist/dfa/DFAStateEqualityComparator.cjs +150 -0
  228. openpinescript/_engine/node_modules/antlr4ng/dist/dfa/DFAStateEqualityComparator.js +150 -0
  229. openpinescript/_engine/node_modules/antlr4ng/dist/dfa/DFAStateEqualityComparator.mjs +130 -0
  230. openpinescript/_engine/node_modules/antlr4ng/dist/dfa/LexerDFASerializer.cjs +237 -0
  231. openpinescript/_engine/node_modules/antlr4ng/dist/dfa/LexerDFASerializer.js +237 -0
  232. openpinescript/_engine/node_modules/antlr4ng/dist/dfa/LexerDFASerializer.mjs +217 -0
  233. openpinescript/_engine/node_modules/antlr4ng/dist/dfa/PredPrediction.cjs +31 -0
  234. openpinescript/_engine/node_modules/antlr4ng/dist/dfa/PredPrediction.js +31 -0
  235. openpinescript/_engine/node_modules/antlr4ng/dist/dfa/PredPrediction.mjs +13 -0
  236. openpinescript/_engine/node_modules/antlr4ng/dist/dfa/index.cjs +571 -0
  237. openpinescript/_engine/node_modules/antlr4ng/dist/dfa/index.js +571 -0
  238. openpinescript/_engine/node_modules/antlr4ng/dist/dfa/index.mjs +551 -0
  239. openpinescript/_engine/node_modules/antlr4ng/dist/index.cjs +17501 -0
  240. openpinescript/_engine/node_modules/antlr4ng/dist/index.mjs +17481 -0
  241. openpinescript/_engine/node_modules/antlr4ng/dist/misc/BitSet.cjs +208 -0
  242. openpinescript/_engine/node_modules/antlr4ng/dist/misc/BitSet.js +208 -0
  243. openpinescript/_engine/node_modules/antlr4ng/dist/misc/BitSet.mjs +190 -0
  244. openpinescript/_engine/node_modules/antlr4ng/dist/misc/DefaultEqualityComparator.cjs +68 -0
  245. openpinescript/_engine/node_modules/antlr4ng/dist/misc/DefaultEqualityComparator.js +68 -0
  246. openpinescript/_engine/node_modules/antlr4ng/dist/misc/DefaultEqualityComparator.mjs +48 -0
  247. openpinescript/_engine/node_modules/antlr4ng/dist/misc/EqualityComparator.cjs +17 -0
  248. openpinescript/_engine/node_modules/antlr4ng/dist/misc/EqualityComparator.js +17 -0
  249. openpinescript/_engine/node_modules/antlr4ng/dist/misc/EqualityComparator.mjs +0 -0
  250. openpinescript/_engine/node_modules/antlr4ng/dist/misc/HashMap.cjs +545 -0
  251. openpinescript/_engine/node_modules/antlr4ng/dist/misc/HashMap.js +545 -0
  252. openpinescript/_engine/node_modules/antlr4ng/dist/misc/HashMap.mjs +525 -0
  253. openpinescript/_engine/node_modules/antlr4ng/dist/misc/HashSet.cjs +438 -0
  254. openpinescript/_engine/node_modules/antlr4ng/dist/misc/HashSet.js +438 -0
  255. openpinescript/_engine/node_modules/antlr4ng/dist/misc/HashSet.mjs +418 -0
  256. openpinescript/_engine/node_modules/antlr4ng/dist/misc/InterpreterDataReader.cjs +4420 -0
  257. openpinescript/_engine/node_modules/antlr4ng/dist/misc/InterpreterDataReader.js +4420 -0
  258. openpinescript/_engine/node_modules/antlr4ng/dist/misc/InterpreterDataReader.mjs +4400 -0
  259. openpinescript/_engine/node_modules/antlr4ng/dist/misc/Interval.cjs +133 -0
  260. openpinescript/_engine/node_modules/antlr4ng/dist/misc/Interval.js +133 -0
  261. openpinescript/_engine/node_modules/antlr4ng/dist/misc/Interval.mjs +115 -0
  262. openpinescript/_engine/node_modules/antlr4ng/dist/misc/IntervalSet.cjs +834 -0
  263. openpinescript/_engine/node_modules/antlr4ng/dist/misc/IntervalSet.js +834 -0
  264. openpinescript/_engine/node_modules/antlr4ng/dist/misc/IntervalSet.mjs +814 -0
  265. openpinescript/_engine/node_modules/antlr4ng/dist/misc/MapKeyEqualityOperator.cjs +40 -0
  266. openpinescript/_engine/node_modules/antlr4ng/dist/misc/MapKeyEqualityOperator.js +40 -0
  267. openpinescript/_engine/node_modules/antlr4ng/dist/misc/MapKeyEqualityOperator.mjs +22 -0
  268. openpinescript/_engine/node_modules/antlr4ng/dist/misc/MultiMap.cjs +55 -0
  269. openpinescript/_engine/node_modules/antlr4ng/dist/misc/MultiMap.js +55 -0
  270. openpinescript/_engine/node_modules/antlr4ng/dist/misc/MultiMap.mjs +37 -0
  271. openpinescript/_engine/node_modules/antlr4ng/dist/misc/ObjectEqualityComparator.cjs +43 -0
  272. openpinescript/_engine/node_modules/antlr4ng/dist/misc/ObjectEqualityComparator.js +43 -0
  273. openpinescript/_engine/node_modules/antlr4ng/dist/misc/ObjectEqualityComparator.mjs +25 -0
  274. openpinescript/_engine/node_modules/antlr4ng/dist/misc/OrderedHashMap.cjs +610 -0
  275. openpinescript/_engine/node_modules/antlr4ng/dist/misc/OrderedHashMap.js +610 -0
  276. openpinescript/_engine/node_modules/antlr4ng/dist/misc/OrderedHashMap.mjs +590 -0
  277. openpinescript/_engine/node_modules/antlr4ng/dist/misc/OrderedHashSet.cjs +470 -0
  278. openpinescript/_engine/node_modules/antlr4ng/dist/misc/OrderedHashSet.js +470 -0
  279. openpinescript/_engine/node_modules/antlr4ng/dist/misc/OrderedHashSet.mjs +450 -0
  280. openpinescript/_engine/node_modules/antlr4ng/dist/misc/ParseCancellationException.cjs +34 -0
  281. openpinescript/_engine/node_modules/antlr4ng/dist/misc/ParseCancellationException.js +34 -0
  282. openpinescript/_engine/node_modules/antlr4ng/dist/misc/ParseCancellationException.mjs +16 -0
  283. openpinescript/_engine/node_modules/antlr4ng/dist/misc/index.cjs +4643 -0
  284. openpinescript/_engine/node_modules/antlr4ng/dist/misc/index.js +4643 -0
  285. openpinescript/_engine/node_modules/antlr4ng/dist/misc/index.mjs +4623 -0
  286. openpinescript/_engine/node_modules/antlr4ng/dist/tree/AbstractParseTreeVisitor.cjs +63 -0
  287. openpinescript/_engine/node_modules/antlr4ng/dist/tree/AbstractParseTreeVisitor.js +63 -0
  288. openpinescript/_engine/node_modules/antlr4ng/dist/tree/AbstractParseTreeVisitor.mjs +45 -0
  289. openpinescript/_engine/node_modules/antlr4ng/dist/tree/ErrorNode.cjs +211 -0
  290. openpinescript/_engine/node_modules/antlr4ng/dist/tree/ErrorNode.js +211 -0
  291. openpinescript/_engine/node_modules/antlr4ng/dist/tree/ErrorNode.mjs +191 -0
  292. openpinescript/_engine/node_modules/antlr4ng/dist/tree/ParseTree.cjs +17 -0
  293. openpinescript/_engine/node_modules/antlr4ng/dist/tree/ParseTree.js +17 -0
  294. openpinescript/_engine/node_modules/antlr4ng/dist/tree/ParseTree.mjs +0 -0
  295. openpinescript/_engine/node_modules/antlr4ng/dist/tree/ParseTreeListener.cjs +17 -0
  296. openpinescript/_engine/node_modules/antlr4ng/dist/tree/ParseTreeListener.js +17 -0
  297. openpinescript/_engine/node_modules/antlr4ng/dist/tree/ParseTreeListener.mjs +0 -0
  298. openpinescript/_engine/node_modules/antlr4ng/dist/tree/ParseTreeVisitor.cjs +17 -0
  299. openpinescript/_engine/node_modules/antlr4ng/dist/tree/ParseTreeVisitor.js +17 -0
  300. openpinescript/_engine/node_modules/antlr4ng/dist/tree/ParseTreeVisitor.mjs +0 -0
  301. openpinescript/_engine/node_modules/antlr4ng/dist/tree/ParseTreeWalker.cjs +267 -0
  302. openpinescript/_engine/node_modules/antlr4ng/dist/tree/ParseTreeWalker.js +267 -0
  303. openpinescript/_engine/node_modules/antlr4ng/dist/tree/ParseTreeWalker.mjs +247 -0
  304. openpinescript/_engine/node_modules/antlr4ng/dist/tree/TerminalNode.cjs +201 -0
  305. openpinescript/_engine/node_modules/antlr4ng/dist/tree/TerminalNode.js +201 -0
  306. openpinescript/_engine/node_modules/antlr4ng/dist/tree/TerminalNode.mjs +181 -0
  307. openpinescript/_engine/node_modules/antlr4ng/dist/tree/Trees.cjs +3159 -0
  308. openpinescript/_engine/node_modules/antlr4ng/dist/tree/Trees.js +3159 -0
  309. openpinescript/_engine/node_modules/antlr4ng/dist/tree/Trees.mjs +3139 -0
  310. openpinescript/_engine/node_modules/antlr4ng/dist/tree/index.cjs +16018 -0
  311. openpinescript/_engine/node_modules/antlr4ng/dist/tree/index.js +16018 -0
  312. openpinescript/_engine/node_modules/antlr4ng/dist/tree/index.mjs +15998 -0
  313. openpinescript/_engine/node_modules/antlr4ng/dist/utils/DoubleDict.cjs +568 -0
  314. openpinescript/_engine/node_modules/antlr4ng/dist/utils/DoubleDict.js +568 -0
  315. openpinescript/_engine/node_modules/antlr4ng/dist/utils/DoubleDict.mjs +548 -0
  316. openpinescript/_engine/node_modules/antlr4ng/dist/utils/MurmurHash.cjs +98 -0
  317. openpinescript/_engine/node_modules/antlr4ng/dist/utils/MurmurHash.js +98 -0
  318. openpinescript/_engine/node_modules/antlr4ng/dist/utils/MurmurHash.mjs +80 -0
  319. openpinescript/_engine/node_modules/antlr4ng/dist/utils/helpers.cjs +78 -0
  320. openpinescript/_engine/node_modules/antlr4ng/dist/utils/helpers.js +78 -0
  321. openpinescript/_engine/node_modules/antlr4ng/dist/utils/helpers.mjs +60 -0
  322. openpinescript/_engine/node_modules/antlr4ng/dist/utils/index.cjs +625 -0
  323. openpinescript/_engine/node_modules/antlr4ng/dist/utils/index.js +625 -0
  324. openpinescript/_engine/node_modules/antlr4ng/dist/utils/index.mjs +605 -0
  325. openpinescript/_engine/node_modules/antlr4ng/package.json +72 -0
  326. openpinescript/_engine/package.json +94 -0
  327. openpinescript/_runtime.py +29 -0
  328. openpinescript-0.1.1.dist-info/METADATA +140 -0
  329. openpinescript-0.1.1.dist-info/RECORD +332 -0
  330. openpinescript-0.1.1.dist-info/WHEEL +4 -0
  331. openpinescript-0.1.1.dist-info/entry_points.txt +2 -0
  332. openpinescript-0.1.1.dist-info/licenses/LICENSE +674 -0
@@ -0,0 +1,559 @@
1
+ var __defProp = Object.defineProperty;
2
+ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
3
+ var __getOwnPropNames = Object.getOwnPropertyNames;
4
+ var __hasOwnProp = Object.prototype.hasOwnProperty;
5
+ var __name = (target, value) => __defProp(target, "name", { value, configurable: true });
6
+ var __export = (target, all) => {
7
+ for (var name in all)
8
+ __defProp(target, name, { get: all[name], enumerable: true });
9
+ };
10
+ var __copyProps = (to, from, except, desc) => {
11
+ if (from && typeof from === "object" || typeof from === "function") {
12
+ for (let key of __getOwnPropNames(from))
13
+ if (!__hasOwnProp.call(to, key) && key !== except)
14
+ __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
15
+ }
16
+ return to;
17
+ };
18
+ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
19
+
20
+ // src/dfa/DFA.ts
21
+ var DFA_exports = {};
22
+ __export(DFA_exports, {
23
+ DFA: () => DFA
24
+ });
25
+ module.exports = __toCommonJS(DFA_exports);
26
+
27
+ // src/dfa/DFASerializer.ts
28
+ var DFASerializer = class {
29
+ static {
30
+ __name(this, "DFASerializer");
31
+ }
32
+ dfa;
33
+ vocabulary;
34
+ constructor(dfa, vocabulary) {
35
+ this.dfa = dfa;
36
+ this.vocabulary = vocabulary;
37
+ }
38
+ toString() {
39
+ if (!this.dfa.s0) {
40
+ return "";
41
+ }
42
+ let buf = "";
43
+ const states = this.dfa.getStates();
44
+ for (const s of states) {
45
+ let n = 0;
46
+ n = s.edges.length;
47
+ for (let i = 0; i < n; i++) {
48
+ const t = s.edges[i];
49
+ if (t && t.stateNumber !== 2147483647) {
50
+ buf += this.getStateString(s);
51
+ const label = this.getEdgeLabel(i);
52
+ buf += "-";
53
+ buf += label;
54
+ buf += "->";
55
+ buf += this.getStateString(t);
56
+ buf += "\n";
57
+ }
58
+ }
59
+ }
60
+ return buf;
61
+ }
62
+ getEdgeLabel(i) {
63
+ const name = this.vocabulary.getDisplayName(i - 1);
64
+ return `${name}`;
65
+ }
66
+ getStateString(s) {
67
+ const n = s.stateNumber;
68
+ const baseStateStr = (s.isAcceptState ? ":" : "") + "s" + n + (s.requiresFullContext ? "^" : "");
69
+ if (s.isAcceptState) {
70
+ if (s.predicates !== null) {
71
+ return `${baseStateStr}=>${s.predicates.toString()}`;
72
+ }
73
+ return `${baseStateStr}=>${s.prediction}`;
74
+ } else {
75
+ return `${baseStateStr}`;
76
+ }
77
+ }
78
+ };
79
+
80
+ // src/utils/helpers.ts
81
+ var valueToString = /* @__PURE__ */ __name((v) => {
82
+ return v === null ? "null" : v;
83
+ }, "valueToString");
84
+ var arrayToString = /* @__PURE__ */ __name((value) => {
85
+ return Array.isArray(value) ? "[" + value.map(valueToString).join(", ") + "]" : "null";
86
+ }, "arrayToString");
87
+
88
+ // src/dfa/DFAState.ts
89
+ var DFAState = class _DFAState {
90
+ static {
91
+ __name(this, "DFAState");
92
+ }
93
+ stateNumber = -1;
94
+ configs;
95
+ /**
96
+ * `edges[symbol]` points to target of symbol. Shift up by 1 so (-1) {@link Token.EOF} maps to `edges[0]`.
97
+ */
98
+ edges = [];
99
+ isAcceptState = false;
100
+ /**
101
+ * If accept state, what ttype do we match or alt do we predict? This is set to {@link ATN.INVALID_ALT_NUMBER}
102
+ * when {@link predicates} `!= null` or {@link requiresFullContext}.
103
+ */
104
+ prediction = -1;
105
+ lexerActionExecutor = null;
106
+ /**
107
+ * Indicates that this state was created during SLL prediction that discovered a conflict between the configurations
108
+ * in the state. Future {@link ParserATNSimulator.execATN} invocations immediately jumped doing
109
+ * full context prediction if this field is true.
110
+ */
111
+ requiresFullContext = false;
112
+ /**
113
+ * During SLL parsing, this is a list of predicates associated with the ATN configurations of the DFA state.
114
+ * When we have predicates, {@link requiresFullContext} is `false` since full context prediction evaluates
115
+ * predicates on-the-fly. If this is not null, then {@link prediction} is `ATN.INVALID_ALT_NUMBER`.
116
+ *
117
+ * We only use these for non-{@link #requiresFullContext} but conflicting states. That
118
+ * means we know from the context (it's $ or we don't dip into outer
119
+ * context) that it's an ambiguity not a conflict.
120
+ *
121
+ * This list is computed by {@link ParserATNSimulator#predicateDFAState}.
122
+ */
123
+ predicates = null;
124
+ constructor(configs) {
125
+ if (configs) {
126
+ this.configs = configs;
127
+ }
128
+ }
129
+ static fromState(stateNumber) {
130
+ const result = new _DFAState();
131
+ result.stateNumber = stateNumber;
132
+ return result;
133
+ }
134
+ static fromConfigs(configs) {
135
+ return new _DFAState(configs);
136
+ }
137
+ static hashCode(state) {
138
+ return state.configs.hashCode();
139
+ }
140
+ /**
141
+ * Two {@link DFAState} instances are equal if their ATN configuration sets
142
+ * are the same. This method is used to see if a state already exists.
143
+ *
144
+ * Because the number of alternatives and number of ATN configurations are
145
+ * finite, there is a finite number of DFA states that can be processed.
146
+ * This is necessary to show that the algorithm terminates.
147
+ *
148
+ * Cannot test the DFA state numbers here because in
149
+ * {@link ParserATNSimulator#addDFAState} we need to know if any other state
150
+ * exists that has this exact set of ATN configurations. The
151
+ * {@link #stateNumber} is irrelevant.
152
+ *
153
+ * @param a The first {@link DFAState}.
154
+ * @param b The second {@link DFAState}.
155
+ *
156
+ * @returns `true` if the two states are equal, otherwise `false`.
157
+ */
158
+ static equals(a, b) {
159
+ return a.configs.equals(b.configs);
160
+ }
161
+ /**
162
+ * @returns the set of all alts mentioned by all ATN configurations in this DFA state.
163
+ */
164
+ getAltSet() {
165
+ const alts = /* @__PURE__ */ new Set();
166
+ for (const config of this.configs) {
167
+ alts.add(config.alt);
168
+ }
169
+ if (alts.size === 0) {
170
+ return null;
171
+ }
172
+ return alts;
173
+ }
174
+ toString() {
175
+ let buf = "";
176
+ buf += this.stateNumber;
177
+ buf += ":";
178
+ buf += this.configs ? this.configs.toString() : "";
179
+ if (this.isAcceptState) {
180
+ buf += "=>";
181
+ if (this.predicates) {
182
+ buf += arrayToString(this.predicates);
183
+ } else {
184
+ buf += this.prediction;
185
+ }
186
+ }
187
+ return buf.toString();
188
+ }
189
+ };
190
+
191
+ // src/IntStream.ts
192
+ var IntStream;
193
+ ((IntStream2) => {
194
+ IntStream2.EOF = -1;
195
+ IntStream2.UNKNOWN_SOURCE_NAME = "<unknown>";
196
+ })(IntStream || (IntStream = {}));
197
+
198
+ // src/Token.ts
199
+ var Token;
200
+ ((Token2) => {
201
+ Token2.INVALID_TYPE = 0;
202
+ Token2.EPSILON = -2;
203
+ Token2.MIN_USER_TOKEN_TYPE = 1;
204
+ Token2.EOF = IntStream.EOF;
205
+ Token2.DEFAULT_CHANNEL = 0;
206
+ Token2.HIDDEN_CHANNEL = 1;
207
+ Token2.MIN_USER_CHANNEL_VALUE = 2;
208
+ })(Token || (Token = {}));
209
+
210
+ // src/Vocabulary.ts
211
+ var Vocabulary = class _Vocabulary {
212
+ static {
213
+ __name(this, "Vocabulary");
214
+ }
215
+ static EMPTY_NAMES = [];
216
+ /**
217
+ * Gets an empty {@link Vocabulary} instance.
218
+ *
219
+ *
220
+ * No literal or symbol names are assigned to token types, so
221
+ * {@link #getDisplayName(int)} returns the numeric value for all tokens
222
+ * except {@link Token#EOF}.
223
+ */
224
+ static EMPTY_VOCABULARY = new _Vocabulary(_Vocabulary.EMPTY_NAMES, _Vocabulary.EMPTY_NAMES, _Vocabulary.EMPTY_NAMES);
225
+ maxTokenType;
226
+ literalNames;
227
+ symbolicNames;
228
+ displayNames;
229
+ /**
230
+ * Constructs a new instance of {@link Vocabulary} from the specified
231
+ * literal, symbolic, and display token names.
232
+ *
233
+ * @param literalNames The literal names assigned to tokens, or `null`
234
+ * if no literal names are assigned.
235
+ * @param symbolicNames The symbolic names assigned to tokens, or
236
+ * `null` if no symbolic names are assigned.
237
+ * @param displayNames The display names assigned to tokens, or `null`
238
+ * to use the values in `literalNames` and `symbolicNames` as
239
+ * the source of display names, as described in
240
+ * {@link #getDisplayName(int)}.
241
+ */
242
+ constructor(literalNames, symbolicNames, displayNames) {
243
+ this.literalNames = literalNames ?? _Vocabulary.EMPTY_NAMES;
244
+ this.symbolicNames = symbolicNames ?? _Vocabulary.EMPTY_NAMES;
245
+ this.displayNames = displayNames ?? _Vocabulary.EMPTY_NAMES;
246
+ this.maxTokenType = Math.max(this.displayNames.length, Math.max(
247
+ this.literalNames.length,
248
+ this.symbolicNames.length
249
+ )) - 1;
250
+ }
251
+ /**
252
+ * Returns a {@link Vocabulary} instance from the specified set of token
253
+ * names. This method acts as a compatibility layer for the single
254
+ * `tokenNames` array generated by previous releases of ANTLR.
255
+ *
256
+ * The resulting vocabulary instance returns `null` for
257
+ * {@link getLiteralName getLiteralName(int)} and {@link getSymbolicName getSymbolicName(int)}, and the
258
+ * value from `tokenNames` for the display names.
259
+ *
260
+ * @param tokenNames The token names, or `null` if no token names are
261
+ * available.
262
+ * @returns A {@link Vocabulary} instance which uses `tokenNames` for
263
+ * the display names of tokens.
264
+ */
265
+ static fromTokenNames(tokenNames) {
266
+ if (tokenNames == null || tokenNames.length === 0) {
267
+ return _Vocabulary.EMPTY_VOCABULARY;
268
+ }
269
+ const literalNames = [...tokenNames];
270
+ const symbolicNames = [...tokenNames];
271
+ for (let i = 0; i < tokenNames.length; i++) {
272
+ const tokenName = tokenNames[i];
273
+ if (tokenName == null) {
274
+ continue;
275
+ }
276
+ if (tokenName.length > 0) {
277
+ const firstChar = tokenName.codePointAt(0);
278
+ if (firstChar === 39) {
279
+ symbolicNames[i] = null;
280
+ continue;
281
+ } else if (firstChar >= 65 && firstChar <= 90) {
282
+ literalNames[i] = null;
283
+ continue;
284
+ }
285
+ }
286
+ literalNames[i] = null;
287
+ symbolicNames[i] = null;
288
+ }
289
+ return new _Vocabulary(literalNames, symbolicNames, tokenNames);
290
+ }
291
+ getMaxTokenType() {
292
+ return this.maxTokenType;
293
+ }
294
+ getLiteralName(tokenType) {
295
+ if (tokenType >= 0 && tokenType < this.literalNames.length) {
296
+ return this.literalNames[tokenType];
297
+ }
298
+ return null;
299
+ }
300
+ getSymbolicName(tokenType) {
301
+ if (tokenType >= 0 && tokenType < this.symbolicNames.length) {
302
+ return this.symbolicNames[tokenType];
303
+ }
304
+ if (tokenType === Token.EOF) {
305
+ return "EOF";
306
+ }
307
+ return null;
308
+ }
309
+ getDisplayName(tokenType) {
310
+ if (tokenType >= 0 && tokenType < this.displayNames.length) {
311
+ const displayName = this.displayNames[tokenType];
312
+ if (displayName != null) {
313
+ return displayName;
314
+ }
315
+ }
316
+ const literalName = this.getLiteralName(tokenType);
317
+ if (literalName != null) {
318
+ return literalName;
319
+ }
320
+ const symbolicName = this.getSymbolicName(tokenType);
321
+ if (symbolicName != null) {
322
+ return symbolicName;
323
+ }
324
+ return `${tokenType}`;
325
+ }
326
+ getLiteralNames() {
327
+ return this.literalNames;
328
+ }
329
+ getSymbolicNames() {
330
+ return this.symbolicNames;
331
+ }
332
+ getDisplayNames() {
333
+ return this.displayNames;
334
+ }
335
+ };
336
+
337
+ // src/dfa/LexerDFASerializer.ts
338
+ var LexerDFASerializer = class extends DFASerializer {
339
+ static {
340
+ __name(this, "LexerDFASerializer");
341
+ }
342
+ constructor(dfa) {
343
+ super(dfa, Vocabulary.EMPTY_VOCABULARY);
344
+ }
345
+ getEdgeLabel = /* @__PURE__ */ __name((i) => {
346
+ return "'" + String.fromCharCode(i) + "'";
347
+ }, "getEdgeLabel");
348
+ };
349
+
350
+ // src/atn/ATNState.ts
351
+ var ATNState = class _ATNState {
352
+ static {
353
+ __name(this, "ATNState");
354
+ }
355
+ static INVALID_STATE_NUMBER = -1;
356
+ static INVALID_TYPE = 0;
357
+ static BASIC = 1;
358
+ static RULE_START = 2;
359
+ static BLOCK_START = 3;
360
+ static PLUS_BLOCK_START = 4;
361
+ static STAR_BLOCK_START = 5;
362
+ static TOKEN_START = 6;
363
+ static RULE_STOP = 7;
364
+ static BLOCK_END = 8;
365
+ static STAR_LOOP_BACK = 9;
366
+ static STAR_LOOP_ENTRY = 10;
367
+ static PLUS_LOOP_BACK = 11;
368
+ static LOOP_END = 12;
369
+ static stateType = _ATNState.INVALID_STATE_NUMBER;
370
+ stateNumber = 0;
371
+ ruleIndex = 0;
372
+ // at runtime, we don't have Rule objects
373
+ epsilonOnlyTransitions = false;
374
+ /** Used to cache lookahead during parsing, not used during construction */
375
+ nextTokenWithinRule;
376
+ /** Track the transitions emanating from this ATN state. */
377
+ transitions = [];
378
+ hashCode() {
379
+ return this.stateNumber;
380
+ }
381
+ equals(other) {
382
+ return this.stateNumber === other.stateNumber;
383
+ }
384
+ toString() {
385
+ return `${this.stateNumber}`;
386
+ }
387
+ addTransitionAtIndex(index, transition) {
388
+ if (this.transitions.length === 0) {
389
+ this.epsilonOnlyTransitions = transition.isEpsilon;
390
+ } else if (this.epsilonOnlyTransitions !== transition.isEpsilon) {
391
+ this.epsilonOnlyTransitions = false;
392
+ }
393
+ this.transitions.splice(index, 1, transition);
394
+ }
395
+ addTransition(transition) {
396
+ if (this.transitions.length === 0) {
397
+ this.epsilonOnlyTransitions = transition.isEpsilon;
398
+ } else if (this.epsilonOnlyTransitions !== transition.isEpsilon) {
399
+ this.epsilonOnlyTransitions = false;
400
+ }
401
+ this.transitions.push(transition);
402
+ }
403
+ setTransition(i, e) {
404
+ this.transitions.splice(i, 1, e);
405
+ }
406
+ removeTransition(index) {
407
+ const t = this.transitions.splice(index, 1);
408
+ return t[0];
409
+ }
410
+ };
411
+
412
+ // src/atn/DecisionState.ts
413
+ var DecisionState = class extends ATNState {
414
+ static {
415
+ __name(this, "DecisionState");
416
+ }
417
+ decision = -1;
418
+ nonGreedy = false;
419
+ };
420
+
421
+ // src/atn/StarLoopEntryState.ts
422
+ var StarLoopEntryState = class extends DecisionState {
423
+ static {
424
+ __name(this, "StarLoopEntryState");
425
+ }
426
+ static stateType = ATNState.STAR_LOOP_ENTRY;
427
+ // This is always set during ATN deserialization
428
+ loopBackState;
429
+ /**
430
+ * Indicates whether this state can benefit from a precedence DFA during SLL
431
+ * decision making.
432
+ *
433
+ * This is a computed property that is calculated during ATN deserialization
434
+ * and stored for use in {@link ParserATNSimulator} and
435
+ * {@link ParserInterpreter}.
436
+ *
437
+ * @see `DFA.isPrecedenceDfa`
438
+ */
439
+ precedenceRuleDecision = false;
440
+ };
441
+
442
+ // src/dfa/DFA.ts
443
+ var DFA = class {
444
+ static {
445
+ __name(this, "DFA");
446
+ }
447
+ s0;
448
+ decision;
449
+ /** From which ATN state did we create this DFA? */
450
+ atnStartState;
451
+ /**
452
+ * Gets whether this DFA is a precedence DFA. Precedence DFAs use a special
453
+ * start state {@link #s0} which is not stored in {@link #states}. The
454
+ * {@link DFAState#edges} array for this start state contains outgoing edges
455
+ * supplying individual start states corresponding to specific precedence
456
+ * values.
457
+ *
458
+ * @returns `true` if this is a precedence DFA; otherwise, `false`.
459
+ */
460
+ isPrecedenceDfa;
461
+ /**
462
+ * A mapping from an ATNConfigSet hash to a DFAState.
463
+ * Used to quick look up the DFA state for a particular configuration set.
464
+ */
465
+ states = /* @__PURE__ */ new Map();
466
+ constructor(atnStartState, decision) {
467
+ this.atnStartState = atnStartState;
468
+ this.decision = decision ?? 0;
469
+ let precedenceDfa = false;
470
+ if (atnStartState instanceof StarLoopEntryState) {
471
+ if (atnStartState.precedenceRuleDecision) {
472
+ precedenceDfa = true;
473
+ this.s0 = DFAState.fromState(-1);
474
+ }
475
+ }
476
+ this.isPrecedenceDfa = precedenceDfa;
477
+ }
478
+ [Symbol.iterator] = () => {
479
+ return this.states.values()[Symbol.iterator]();
480
+ };
481
+ /**
482
+ * Get the start state for a specific precedence value.
483
+ *
484
+ * @param precedence The current precedence.
485
+ @returns The start state corresponding to the specified precedence, or
486
+ * `null` if no start state exists for the specified precedence.
487
+ *
488
+ * @throws IllegalStateException if this is not a precedence DFA.
489
+ * @see #isPrecedenceDfa
490
+ */
491
+ getPrecedenceStartState = /* @__PURE__ */ __name((precedence) => {
492
+ if (!this.isPrecedenceDfa) {
493
+ throw new Error(`Only precedence DFAs may contain a precedence start state.`);
494
+ }
495
+ if (!this.s0 || !this.s0.edges || precedence < 0 || precedence >= this.s0.edges.length) {
496
+ return void 0;
497
+ }
498
+ return this.s0.edges[precedence];
499
+ }, "getPrecedenceStartState");
500
+ /**
501
+ * Set the start state for a specific precedence value.
502
+ *
503
+ * @param precedence The current precedence.
504
+ * @param startState The start state corresponding to the specified precedence.
505
+ */
506
+ setPrecedenceStartState = /* @__PURE__ */ __name((precedence, startState) => {
507
+ if (!this.isPrecedenceDfa) {
508
+ throw new Error(`Only precedence DFAs may contain a precedence start state.`);
509
+ }
510
+ if (precedence < 0 || !this.s0) {
511
+ return;
512
+ }
513
+ this.s0.edges[precedence] = startState;
514
+ }, "setPrecedenceStartState");
515
+ /**
516
+ * @returns a list of all states in this DFA, ordered by state number.
517
+ */
518
+ getStates() {
519
+ const result = [...this.states.values()];
520
+ result.sort((o1, o2) => {
521
+ return o1.stateNumber - o2.stateNumber;
522
+ });
523
+ return result;
524
+ }
525
+ getState(state) {
526
+ return this.states.get(state.configs.hashCode()) ?? null;
527
+ }
528
+ getStateForConfigs(configs) {
529
+ return this.states.get(configs.hashCode()) ?? null;
530
+ }
531
+ addState(state) {
532
+ const hash = state.configs.hashCode();
533
+ if (this.states.has(hash)) {
534
+ return;
535
+ }
536
+ this.states.set(hash, state);
537
+ state.stateNumber = this.states.size - 1;
538
+ }
539
+ toString(vocabulary) {
540
+ if (!vocabulary) {
541
+ return this.toString(Vocabulary.EMPTY_VOCABULARY);
542
+ }
543
+ if (!this.s0) {
544
+ return "";
545
+ }
546
+ const serializer = new DFASerializer(this, vocabulary);
547
+ return serializer.toString() ?? "";
548
+ }
549
+ toLexerString() {
550
+ if (!this.s0) {
551
+ return "";
552
+ }
553
+ const serializer = new LexerDFASerializer(this);
554
+ return serializer.toString() ?? "";
555
+ }
556
+ get length() {
557
+ return this.states.size;
558
+ }
559
+ };