solve-engine 1.0.0-beta.7 → 1.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (205) hide show
  1. package/dist/{BytecodeBuilder-3egMyuDi.d.cts → BytecodeBuilder-B0xskcv5.d.cts} +2 -1
  2. package/dist/{BytecodeBuilder-3egMyuDi.d.ts → BytecodeBuilder-B0xskcv5.d.ts} +2 -1
  3. package/dist/{Configuration-fVpd-HC-.d.cts → Configuration-B-G5gTRn.d.cts} +107 -29
  4. package/dist/{Configuration-fVpd-HC-.d.ts → Configuration-B-G5gTRn.d.ts} +107 -29
  5. package/dist/{EngineError-DvPSnhZi.d.cts → EngineError-LU7W7AgI.d.cts} +96 -16
  6. package/dist/{EngineError-DvPSnhZi.d.ts → EngineError-LU7W7AgI.d.ts} +96 -16
  7. package/dist/{Lexer-W9MBOP0V.d.ts → Lexer-BN5mt30n.d.ts} +16 -0
  8. package/dist/{Lexer-Cfm79Dak.d.cts → Lexer-D78E2yDW.d.cts} +16 -0
  9. package/dist/{PackageRegistry-CjDt-Jy_.d.ts → PackageRegistry-DFeINv2O.d.ts} +54 -13
  10. package/dist/{PackageRegistry-pHtKythi.d.cts → PackageRegistry-u2zdfFaj.d.cts} +54 -13
  11. package/dist/{Parselet-DEdF9I7n.d.ts → Parselet-BaySkMV3.d.ts} +37 -5
  12. package/dist/{Parselet-Cu0bLSis.d.cts → Parselet-DuI1Pjiq.d.cts} +37 -5
  13. package/dist/{ScopeManager-CKfQtl7l.d.cts → ScopeManager-B6GzdhVG.d.cts} +75 -6
  14. package/dist/{ScopeManager-B5k0nk05.d.ts → ScopeManager-udv4Twwq.d.ts} +75 -6
  15. package/dist/{VMCheckpoints-BmDwIXgK.d.ts → VMCheckpoints-BiaIlOOY.d.ts} +4 -4
  16. package/dist/{VMCheckpoints-CqFuLwrT.d.cts → VMCheckpoints-DwLjivM7.d.cts} +4 -4
  17. package/dist/{Value-KtAQNHur.d.cts → Value-CXJqDH9J.d.cts} +5 -2
  18. package/dist/{Value-KtAQNHur.d.ts → Value-CXJqDH9J.d.ts} +5 -2
  19. package/dist/{chunk-CSG5XVNJ.cjs → chunk-3AFRJYP4.cjs} +556 -414
  20. package/dist/chunk-3AFRJYP4.cjs.map +1 -0
  21. package/dist/chunk-3BOK2LDK.js +17 -0
  22. package/dist/chunk-3BOK2LDK.js.map +1 -0
  23. package/dist/{chunk-6RDSQURE.js → chunk-3D7V24DG.js} +57 -6
  24. package/dist/chunk-3D7V24DG.js.map +1 -0
  25. package/dist/{chunk-MEOHSQEH.js → chunk-3LAEG75D.js} +47 -15
  26. package/dist/chunk-3LAEG75D.js.map +1 -0
  27. package/dist/{chunk-P75775WC.js → chunk-3VNGREMU.js} +118 -41
  28. package/dist/chunk-3VNGREMU.js.map +1 -0
  29. package/dist/{chunk-4AVD7NZW.cjs → chunk-4B2CNWQU.cjs} +13 -7
  30. package/dist/chunk-4B2CNWQU.cjs.map +1 -0
  31. package/dist/{chunk-6GCKCWLB.js → chunk-526PMQOA.js} +126 -69
  32. package/dist/chunk-526PMQOA.js.map +1 -0
  33. package/dist/{chunk-2CS6OMZK.js → chunk-5F4C26RU.js} +8 -5
  34. package/dist/chunk-5F4C26RU.js.map +1 -0
  35. package/dist/{chunk-M4N5GA5Z.cjs → chunk-5KMIY374.cjs} +57 -6
  36. package/dist/chunk-5KMIY374.cjs.map +1 -0
  37. package/dist/{chunk-R24DI24X.cjs → chunk-5LI5EPGJ.cjs} +6 -5
  38. package/dist/chunk-5LI5EPGJ.cjs.map +1 -0
  39. package/dist/{chunk-BAMZT3GL.js → chunk-5WVP4YHP.js} +939 -134
  40. package/dist/chunk-5WVP4YHP.js.map +1 -0
  41. package/dist/{chunk-MZOVP3WI.cjs → chunk-6KFYJ6TD.cjs} +3 -2
  42. package/dist/chunk-6KFYJ6TD.cjs.map +1 -0
  43. package/dist/{chunk-BXKJLM5R.cjs → chunk-6WFMPTGB.cjs} +972 -636
  44. package/dist/chunk-6WFMPTGB.cjs.map +1 -0
  45. package/dist/{chunk-2MV4HBKC.cjs → chunk-A2N2GFCG.cjs} +10 -10
  46. package/dist/{chunk-2MV4HBKC.cjs.map → chunk-A2N2GFCG.cjs.map} +1 -1
  47. package/dist/chunk-ADBA3XBE.cjs +20 -0
  48. package/dist/chunk-ADBA3XBE.cjs.map +1 -0
  49. package/dist/{chunk-MBNQVDVC.cjs → chunk-AMOJYLG2.cjs} +16 -10
  50. package/dist/chunk-AMOJYLG2.cjs.map +1 -0
  51. package/dist/{chunk-CLVQBF5C.cjs → chunk-AQNHHJMJ.cjs} +5 -5
  52. package/dist/{chunk-CLVQBF5C.cjs.map → chunk-AQNHHJMJ.cjs.map} +1 -1
  53. package/dist/{chunk-AHCLWAM5.cjs → chunk-BHTNFEGZ.cjs} +13 -13
  54. package/dist/chunk-BHTNFEGZ.cjs.map +1 -0
  55. package/dist/{chunk-35IWNZPJ.cjs → chunk-E4NUZXVK.cjs} +58 -27
  56. package/dist/chunk-E4NUZXVK.cjs.map +1 -0
  57. package/dist/{chunk-P33SBYGG.js → chunk-GLG5ZMX7.js} +54 -23
  58. package/dist/chunk-GLG5ZMX7.js.map +1 -0
  59. package/dist/{chunk-BVAR5J2F.js → chunk-GQCOSXMG.js} +117 -6
  60. package/dist/chunk-GQCOSXMG.js.map +1 -0
  61. package/dist/{chunk-QDMPOAI7.cjs → chunk-HDP7VK3C.cjs} +1118 -313
  62. package/dist/chunk-HDP7VK3C.cjs.map +1 -0
  63. package/dist/{chunk-GVWHCL2N.js → chunk-HMOISHXR.js} +217 -75
  64. package/dist/chunk-HMOISHXR.js.map +1 -0
  65. package/dist/{chunk-MTX2KVU7.cjs → chunk-HVQFNJKE.cjs} +122 -90
  66. package/dist/chunk-HVQFNJKE.cjs.map +1 -0
  67. package/dist/{chunk-OC6LTXYS.cjs → chunk-JMXUNXQS.cjs} +126 -7
  68. package/dist/chunk-JMXUNXQS.cjs.map +1 -0
  69. package/dist/{chunk-WWOLFXTX.cjs → chunk-KBSXGXPM.cjs} +10 -7
  70. package/dist/chunk-KBSXGXPM.cjs.map +1 -0
  71. package/dist/{chunk-YU2CUNFO.js → chunk-KV7UW6T6.js} +11 -5
  72. package/dist/chunk-KV7UW6T6.js.map +1 -0
  73. package/dist/{chunk-CCJPSHGI.cjs → chunk-N7FNVFXW.cjs} +4 -12
  74. package/dist/chunk-N7FNVFXW.cjs.map +1 -0
  75. package/dist/{chunk-CYFK5SY2.js → chunk-O3ANBHSA.js} +169 -39
  76. package/dist/chunk-O3ANBHSA.js.map +1 -0
  77. package/dist/{chunk-NZFKROS7.cjs → chunk-PA4VC73I.cjs} +130 -72
  78. package/dist/chunk-PA4VC73I.cjs.map +1 -0
  79. package/dist/{chunk-NJTXJ5AG.cjs → chunk-PFUESQTW.cjs} +18 -18
  80. package/dist/{chunk-NJTXJ5AG.cjs.map → chunk-PFUESQTW.cjs.map} +1 -1
  81. package/dist/{chunk-SFQWJMKT.js → chunk-QY25VWBF.js} +51 -12
  82. package/dist/chunk-QY25VWBF.js.map +1 -0
  83. package/dist/{chunk-WC5FFSHB.js → chunk-R3PY4G7J.js} +3 -3
  84. package/dist/{chunk-WC5FFSHB.js.map → chunk-R3PY4G7J.js.map} +1 -1
  85. package/dist/{chunk-M5E34VG5.js → chunk-SBUFNJVE.js} +3 -3
  86. package/dist/{chunk-M5E34VG5.js.map → chunk-SBUFNJVE.js.map} +1 -1
  87. package/dist/{chunk-UKPGSAZW.js → chunk-TMA4RCEN.js} +3 -3
  88. package/dist/{chunk-UKPGSAZW.js.map → chunk-TMA4RCEN.js.map} +1 -1
  89. package/dist/{chunk-V6HA6JJZ.cjs → chunk-U5VAY32K.cjs} +215 -138
  90. package/dist/chunk-U5VAY32K.cjs.map +1 -0
  91. package/dist/{chunk-DUEZFTK2.js → chunk-UKQHXPGW.js} +4 -12
  92. package/dist/chunk-UKQHXPGW.js.map +1 -0
  93. package/dist/{chunk-4CVLFLOB.cjs → chunk-UM6BVY2S.cjs} +201 -69
  94. package/dist/chunk-UM6BVY2S.cjs.map +1 -0
  95. package/dist/{chunk-75JP4BZX.js → chunk-UQ3UIZJC.js} +3 -2
  96. package/dist/chunk-UQ3UIZJC.js.map +1 -0
  97. package/dist/{chunk-PCPX42KL.js → chunk-V4XG5QF6.js} +16 -10
  98. package/dist/chunk-V4XG5QF6.js.map +1 -0
  99. package/dist/{chunk-GPPLSM2Z.js → chunk-VB37OC6I.js} +6 -5
  100. package/dist/chunk-VB37OC6I.js.map +1 -0
  101. package/dist/{chunk-MVBEL57Q.js → chunk-Y7FT4IQT.js} +500 -170
  102. package/dist/chunk-Y7FT4IQT.js.map +1 -0
  103. package/dist/{chunk-OFXOTECC.js → chunk-YPPPYLSR.js} +7 -7
  104. package/dist/chunk-YPPPYLSR.js.map +1 -0
  105. package/dist/{chunk-M4F66R4O.cjs → chunk-YWQ6V4ZN.cjs} +121 -82
  106. package/dist/chunk-YWQ6V4ZN.cjs.map +1 -0
  107. package/dist/constants.cjs +5 -5
  108. package/dist/constants.d.cts +1 -1
  109. package/dist/constants.d.ts +1 -1
  110. package/dist/constants.js +2 -2
  111. package/dist/engine.cjs +31 -31
  112. package/dist/engine.d.cts +11 -11
  113. package/dist/engine.d.ts +11 -11
  114. package/dist/engine.js +21 -21
  115. package/dist/errors.cjs +19 -19
  116. package/dist/errors.d.cts +2 -2
  117. package/dist/errors.d.ts +2 -2
  118. package/dist/errors.js +1 -1
  119. package/dist/format.cjs +29 -22
  120. package/dist/format.cjs.map +1 -1
  121. package/dist/format.d.cts +1 -2
  122. package/dist/format.d.ts +1 -2
  123. package/dist/format.js +23 -16
  124. package/dist/format.js.map +1 -1
  125. package/dist/index.cjs +31 -31
  126. package/dist/index.d.cts +10 -10
  127. package/dist/index.d.ts +10 -10
  128. package/dist/index.js +22 -22
  129. package/dist/language.cjs +8 -8
  130. package/dist/language.cjs.map +1 -1
  131. package/dist/language.d.cts +10 -10
  132. package/dist/language.d.ts +10 -10
  133. package/dist/language.js +6 -6
  134. package/dist/language.js.map +1 -1
  135. package/dist/lexer.cjs +18 -18
  136. package/dist/lexer.d.cts +2 -2
  137. package/dist/lexer.d.ts +2 -2
  138. package/dist/lexer.js +6 -6
  139. package/dist/normalizer.cjs +12 -12
  140. package/dist/normalizer.js +6 -6
  141. package/dist/packages.cjs +39 -39
  142. package/dist/packages.d.cts +9 -9
  143. package/dist/packages.d.ts +9 -9
  144. package/dist/packages.js +16 -16
  145. package/dist/parser.cjs +15 -15
  146. package/dist/parser.d.cts +23 -9
  147. package/dist/parser.d.ts +23 -9
  148. package/dist/parser.js +5 -5
  149. package/dist/{pipeline-CrsRPmsv.d.ts → pipeline-B6k5lCB7.d.ts} +1 -1
  150. package/dist/{pipeline-DPUQt7yL.d.cts → pipeline-BEb3hujr.d.cts} +1 -1
  151. package/dist/resolvers.d.cts +2 -2
  152. package/dist/resolvers.d.ts +2 -2
  153. package/dist/uom.cjs +17 -17
  154. package/dist/uom.d.cts +2 -2
  155. package/dist/uom.d.ts +2 -2
  156. package/dist/uom.js +7 -7
  157. package/dist/utilities.cjs +8 -4
  158. package/dist/utilities.d.cts +19 -3
  159. package/dist/utilities.d.ts +19 -3
  160. package/dist/utilities.js +2 -2
  161. package/dist/vm.cjs +43 -31
  162. package/dist/vm.d.cts +105 -9
  163. package/dist/vm.d.ts +105 -9
  164. package/dist/vm.js +9 -9
  165. package/package.json +1 -1
  166. package/dist/chunk-2CS6OMZK.js.map +0 -1
  167. package/dist/chunk-35IWNZPJ.cjs.map +0 -1
  168. package/dist/chunk-4AVD7NZW.cjs.map +0 -1
  169. package/dist/chunk-4CVLFLOB.cjs.map +0 -1
  170. package/dist/chunk-6GCKCWLB.js.map +0 -1
  171. package/dist/chunk-6RDSQURE.js.map +0 -1
  172. package/dist/chunk-75JP4BZX.js.map +0 -1
  173. package/dist/chunk-AHCLWAM5.cjs.map +0 -1
  174. package/dist/chunk-BAMZT3GL.js.map +0 -1
  175. package/dist/chunk-BVAR5J2F.js.map +0 -1
  176. package/dist/chunk-BXKJLM5R.cjs.map +0 -1
  177. package/dist/chunk-CCJPSHGI.cjs.map +0 -1
  178. package/dist/chunk-CSG5XVNJ.cjs.map +0 -1
  179. package/dist/chunk-CYFK5SY2.js.map +0 -1
  180. package/dist/chunk-DUEZFTK2.js.map +0 -1
  181. package/dist/chunk-GPPLSM2Z.js.map +0 -1
  182. package/dist/chunk-GVWHCL2N.js.map +0 -1
  183. package/dist/chunk-M4F66R4O.cjs.map +0 -1
  184. package/dist/chunk-M4N5GA5Z.cjs.map +0 -1
  185. package/dist/chunk-MBNQVDVC.cjs.map +0 -1
  186. package/dist/chunk-MEOHSQEH.js.map +0 -1
  187. package/dist/chunk-MTX2KVU7.cjs.map +0 -1
  188. package/dist/chunk-MVBEL57Q.js.map +0 -1
  189. package/dist/chunk-MZOVP3WI.cjs.map +0 -1
  190. package/dist/chunk-N5YFR4UP.cjs +0 -10
  191. package/dist/chunk-N5YFR4UP.cjs.map +0 -1
  192. package/dist/chunk-NZFKROS7.cjs.map +0 -1
  193. package/dist/chunk-OC6LTXYS.cjs.map +0 -1
  194. package/dist/chunk-OFXOTECC.js.map +0 -1
  195. package/dist/chunk-P33SBYGG.js.map +0 -1
  196. package/dist/chunk-P75775WC.js.map +0 -1
  197. package/dist/chunk-PCPX42KL.js.map +0 -1
  198. package/dist/chunk-PFSDGGYL.js +0 -8
  199. package/dist/chunk-PFSDGGYL.js.map +0 -1
  200. package/dist/chunk-QDMPOAI7.cjs.map +0 -1
  201. package/dist/chunk-R24DI24X.cjs.map +0 -1
  202. package/dist/chunk-SFQWJMKT.js.map +0 -1
  203. package/dist/chunk-V6HA6JJZ.cjs.map +0 -1
  204. package/dist/chunk-WWOLFXTX.cjs.map +0 -1
  205. package/dist/chunk-YU2CUNFO.js.map +0 -1
package/dist/packages.js CHANGED
@@ -1,23 +1,23 @@
1
- export { ARITHMETIC_PACKAGE, BIGINT_PACKAGE, BUILTIN_PACKAGES, CONDITIONALS_PACKAGE, CONVERTERS_PACKAGE, CURRENCY_PACKAGE, DATETIME_PACKAGE, DICE_PACKAGE, FINANCE_PACKAGE, FUNCTION_PACKAGE, LINES_PACKAGE, MAPREDUCE_PACKAGE, MATHPHRASES_PACKAGE, MATRIX_PACKAGE, PERCENTAGE_PACKAGE, SYMBOLIC_PACKAGE, TIME_PACKAGE, UOM_PACKAGE, VARIABLES_PACKAGE, VECTOR_PACKAGE, WEATHER_PACKAGE, createKnowledgePackage, createStocksPackage } from './chunk-GVWHCL2N.js';
2
- import './chunk-6GCKCWLB.js';
3
- import './chunk-OFXOTECC.js';
4
- import './chunk-PFSDGGYL.js';
5
- import './chunk-YU2CUNFO.js';
1
+ export { ARITHMETIC_PACKAGE, BIGINT_PACKAGE, BUILTIN_PACKAGES, CONDITIONALS_PACKAGE, CONVERTERS_PACKAGE, CURRENCY_PACKAGE, DATETIME_PACKAGE, DICE_PACKAGE, FINANCE_PACKAGE, FUNCTION_PACKAGE, LINES_PACKAGE, MAPREDUCE_PACKAGE, MATHPHRASES_PACKAGE, MATRIX_PACKAGE, PERCENTAGE_PACKAGE, SYMBOLIC_PACKAGE, TIME_PACKAGE, UOM_PACKAGE, VARIABLES_PACKAGE, VECTOR_PACKAGE, WEATHER_PACKAGE, createKnowledgePackage, createStocksPackage } from './chunk-HMOISHXR.js';
2
+ import './chunk-526PMQOA.js';
3
+ import './chunk-YPPPYLSR.js';
4
+ import './chunk-3BOK2LDK.js';
5
+ import './chunk-KV7UW6T6.js';
6
6
  import './chunk-NLNDMWZC.js';
7
- import './chunk-MVBEL57Q.js';
7
+ import './chunk-Y7FT4IQT.js';
8
8
  import './chunk-GCM5JHMX.js';
9
- import './chunk-UKPGSAZW.js';
10
- import './chunk-75JP4BZX.js';
9
+ import './chunk-TMA4RCEN.js';
10
+ import './chunk-UQ3UIZJC.js';
11
11
  import './chunk-Z4X2RWOF.js';
12
- import './chunk-CYFK5SY2.js';
13
- import './chunk-BVAR5J2F.js';
14
- import './chunk-WC5FFSHB.js';
15
- import './chunk-SFQWJMKT.js';
16
- import './chunk-GPPLSM2Z.js';
12
+ import './chunk-O3ANBHSA.js';
13
+ import './chunk-GQCOSXMG.js';
14
+ import './chunk-R3PY4G7J.js';
15
+ import './chunk-QY25VWBF.js';
16
+ import './chunk-VB37OC6I.js';
17
17
  import './chunk-XBTEO4OB.js';
18
- import './chunk-M5E34VG5.js';
19
- import './chunk-PCPX42KL.js';
20
- import './chunk-6RDSQURE.js';
18
+ import './chunk-SBUFNJVE.js';
19
+ import './chunk-V4XG5QF6.js';
20
+ import './chunk-3D7V24DG.js';
21
21
  import './chunk-YLJ4XMA6.js';
22
22
  //# sourceMappingURL=packages.js.map
23
23
  //# sourceMappingURL=packages.js.map
package/dist/parser.cjs CHANGED
@@ -1,55 +1,55 @@
1
1
  'use strict';
2
2
 
3
- var chunkMTX2KVU7_cjs = require('./chunk-MTX2KVU7.cjs');
3
+ var chunkHVQFNJKE_cjs = require('./chunk-HVQFNJKE.cjs');
4
4
  require('./chunk-47LRVGOT.cjs');
5
- var chunkNZFKROS7_cjs = require('./chunk-NZFKROS7.cjs');
6
- var chunkMZOVP3WI_cjs = require('./chunk-MZOVP3WI.cjs');
7
- require('./chunk-R24DI24X.cjs');
5
+ var chunkPA4VC73I_cjs = require('./chunk-PA4VC73I.cjs');
6
+ var chunk6KFYJ6TD_cjs = require('./chunk-6KFYJ6TD.cjs');
7
+ require('./chunk-5LI5EPGJ.cjs');
8
8
  require('./chunk-OUHT5Z36.cjs');
9
- require('./chunk-M4N5GA5Z.cjs');
9
+ require('./chunk-5KMIY374.cjs');
10
10
  require('./chunk-B7LXJ6LC.cjs');
11
11
 
12
12
 
13
13
 
14
14
  Object.defineProperty(exports, "ParseletRegistry", {
15
15
  enumerable: true,
16
- get: function () { return chunkMTX2KVU7_cjs.ParseletRegistry; }
16
+ get: function () { return chunkHVQFNJKE_cjs.ParseletRegistry; }
17
17
  });
18
18
  Object.defineProperty(exports, "Parser", {
19
19
  enumerable: true,
20
- get: function () { return chunkMTX2KVU7_cjs.PrecedenceParser; }
20
+ get: function () { return chunkHVQFNJKE_cjs.PrecedenceParser; }
21
21
  });
22
22
  Object.defineProperty(exports, "PrecedenceParser", {
23
23
  enumerable: true,
24
- get: function () { return chunkMTX2KVU7_cjs.PrecedenceParser; }
24
+ get: function () { return chunkHVQFNJKE_cjs.PrecedenceParser; }
25
25
  });
26
26
  Object.defineProperty(exports, "sharedParseletRegistry", {
27
27
  enumerable: true,
28
- get: function () { return chunkMTX2KVU7_cjs.sharedParseletRegistry; }
28
+ get: function () { return chunkHVQFNJKE_cjs.sharedParseletRegistry; }
29
29
  });
30
30
  Object.defineProperty(exports, "BindingPower", {
31
31
  enumerable: true,
32
- get: function () { return chunkNZFKROS7_cjs.BindingPower; }
32
+ get: function () { return chunkPA4VC73I_cjs.BindingPower; }
33
33
  });
34
34
  Object.defineProperty(exports, "BytecodeBuilder", {
35
35
  enumerable: true,
36
- get: function () { return chunkNZFKROS7_cjs.BytecodeBuilder; }
36
+ get: function () { return chunkPA4VC73I_cjs.BytecodeBuilder; }
37
37
  });
38
38
  Object.defineProperty(exports, "buildBindingPowerTable", {
39
39
  enumerable: true,
40
- get: function () { return chunkNZFKROS7_cjs.buildBindingPowerTable; }
40
+ get: function () { return chunkPA4VC73I_cjs.buildBindingPowerTable; }
41
41
  });
42
42
  Object.defineProperty(exports, "invalidateBindingPowerTable", {
43
43
  enumerable: true,
44
- get: function () { return chunkNZFKROS7_cjs.invalidateBindingPowerTable; }
44
+ get: function () { return chunkPA4VC73I_cjs.invalidateBindingPowerTable; }
45
45
  });
46
46
  Object.defineProperty(exports, "OpCode", {
47
47
  enumerable: true,
48
- get: function () { return chunkMZOVP3WI_cjs.OpCode; }
48
+ get: function () { return chunk6KFYJ6TD_cjs.OpCode; }
49
49
  });
50
50
  Object.defineProperty(exports, "getOpCodeName", {
51
51
  enumerable: true,
52
- get: function () { return chunkMZOVP3WI_cjs.getOpCodeName; }
52
+ get: function () { return chunk6KFYJ6TD_cjs.getOpCodeName; }
53
53
  });
54
54
  //# sourceMappingURL=parser.cjs.map
55
55
  //# sourceMappingURL=parser.cjs.map
package/dist/parser.d.cts CHANGED
@@ -1,8 +1,8 @@
1
- export { I as InfixParselet, P as ParseletRegistry, a as Parser, a as PrecedenceParser, b as PrefixParselet, s as sharedParseletRegistry } from './Parselet-Cu0bLSis.cjs';
2
- export { B as BytecodeBuilder, a as BytecodeProgram, O as OpCode, g as getOpCodeName } from './BytecodeBuilder-3egMyuDi.cjs';
1
+ export { I as InfixParselet, P as ParseletRegistry, a as Parser, a as PrecedenceParser, b as PrefixParselet, s as sharedParseletRegistry } from './Parselet-DuI1Pjiq.cjs';
2
+ export { B as BytecodeBuilder, a as BytecodeProgram, O as OpCode, g as getOpCodeName } from './BytecodeBuilder-B0xskcv5.cjs';
3
3
  import './Token-BzG5G4ja.cjs';
4
- import './pipeline-DPUQt7yL.cjs';
5
- import './Value-KtAQNHur.cjs';
4
+ import './pipeline-BEb3hujr.cjs';
5
+ import './Value-CXJqDH9J.cjs';
6
6
 
7
7
  /**
8
8
  * Named precedence levels for the Pratt parser, from loosest (`Lowest`) to
@@ -20,10 +20,13 @@ declare const BindingPower: {
20
20
  readonly Assignment: 10;
21
21
  readonly LogicalOr: 12;
22
22
  readonly LogicalAnd: 14;
23
- readonly Conditional: 20;
24
- readonly Conjunction: 28;
23
+ readonly Conjunction: 16;
24
+ readonly BitwiseOr: 18;
25
+ readonly BitwiseXor: 20;
26
+ readonly BitwiseAnd: 22;
27
+ readonly Conditional: 24;
28
+ readonly Shift: 27;
25
29
  readonly Sum: 30;
26
- readonly BitwiseXor: 35;
27
30
  readonly Product: 40;
28
31
  readonly Exponent: 50;
29
32
  readonly Prefix: 60;
@@ -39,8 +42,19 @@ declare const BindingPower: {
39
42
  */
40
43
  declare function buildBindingPowerTable(): Uint8Array;
41
44
  /**
42
- * Invalidate the cached BP table, call when plugins register new token types
43
- * that should participate in the built-in fast path.
45
+ * Drop the cached table, so the next {@link buildBindingPowerTable} call builds
46
+ * a fresh one sized to the token types registered by then.
47
+ *
48
+ * It does NOT add a plugin's operator to the Tier 1 fast path, which is what
49
+ * this comment used to promise. The values in the table come from
50
+ * `BUILTIN_INFIX_BP`, which is module-private and has no registration path, so
51
+ * a rebuilt table holds the same binding powers and a plugin token still reads
52
+ * 0. `PrecedenceParser.BP_TABLE` is a static initialized once at class
53
+ * definition time and never re-read, so it would not see a rebuild anyway.
54
+ *
55
+ * A plugin's infix operator takes the Tier 2 parselet-registry route instead,
56
+ * which is where an operator whose binding power the engine does not already
57
+ * know is meant to live.
44
58
  */
45
59
  declare function invalidateBindingPowerTable(): void;
46
60
 
package/dist/parser.d.ts CHANGED
@@ -1,8 +1,8 @@
1
- export { I as InfixParselet, P as ParseletRegistry, a as Parser, a as PrecedenceParser, b as PrefixParselet, s as sharedParseletRegistry } from './Parselet-DEdF9I7n.js';
2
- export { B as BytecodeBuilder, a as BytecodeProgram, O as OpCode, g as getOpCodeName } from './BytecodeBuilder-3egMyuDi.js';
1
+ export { I as InfixParselet, P as ParseletRegistry, a as Parser, a as PrecedenceParser, b as PrefixParselet, s as sharedParseletRegistry } from './Parselet-BaySkMV3.js';
2
+ export { B as BytecodeBuilder, a as BytecodeProgram, O as OpCode, g as getOpCodeName } from './BytecodeBuilder-B0xskcv5.js';
3
3
  import './Token-BzG5G4ja.js';
4
- import './pipeline-CrsRPmsv.js';
5
- import './Value-KtAQNHur.js';
4
+ import './pipeline-B6k5lCB7.js';
5
+ import './Value-CXJqDH9J.js';
6
6
 
7
7
  /**
8
8
  * Named precedence levels for the Pratt parser, from loosest (`Lowest`) to
@@ -20,10 +20,13 @@ declare const BindingPower: {
20
20
  readonly Assignment: 10;
21
21
  readonly LogicalOr: 12;
22
22
  readonly LogicalAnd: 14;
23
- readonly Conditional: 20;
24
- readonly Conjunction: 28;
23
+ readonly Conjunction: 16;
24
+ readonly BitwiseOr: 18;
25
+ readonly BitwiseXor: 20;
26
+ readonly BitwiseAnd: 22;
27
+ readonly Conditional: 24;
28
+ readonly Shift: 27;
25
29
  readonly Sum: 30;
26
- readonly BitwiseXor: 35;
27
30
  readonly Product: 40;
28
31
  readonly Exponent: 50;
29
32
  readonly Prefix: 60;
@@ -39,8 +42,19 @@ declare const BindingPower: {
39
42
  */
40
43
  declare function buildBindingPowerTable(): Uint8Array;
41
44
  /**
42
- * Invalidate the cached BP table, call when plugins register new token types
43
- * that should participate in the built-in fast path.
45
+ * Drop the cached table, so the next {@link buildBindingPowerTable} call builds
46
+ * a fresh one sized to the token types registered by then.
47
+ *
48
+ * It does NOT add a plugin's operator to the Tier 1 fast path, which is what
49
+ * this comment used to promise. The values in the table come from
50
+ * `BUILTIN_INFIX_BP`, which is module-private and has no registration path, so
51
+ * a rebuilt table holds the same binding powers and a plugin token still reads
52
+ * 0. `PrecedenceParser.BP_TABLE` is a static initialized once at class
53
+ * definition time and never re-read, so it would not see a rebuild anyway.
54
+ *
55
+ * A plugin's infix operator takes the Tier 2 parselet-registry route instead,
56
+ * which is where an operator whose binding power the engine does not already
57
+ * know is meant to live.
44
58
  */
45
59
  declare function invalidateBindingPowerTable(): void;
46
60
 
package/dist/parser.js CHANGED
@@ -1,10 +1,10 @@
1
- export { ParseletRegistry, PrecedenceParser as Parser, PrecedenceParser, sharedParseletRegistry } from './chunk-MEOHSQEH.js';
1
+ export { ParseletRegistry, PrecedenceParser as Parser, PrecedenceParser, sharedParseletRegistry } from './chunk-3LAEG75D.js';
2
2
  import './chunk-G535KJEG.js';
3
- export { BindingPower, BytecodeBuilder, buildBindingPowerTable, invalidateBindingPowerTable } from './chunk-6GCKCWLB.js';
4
- export { OpCode, getOpCodeName } from './chunk-75JP4BZX.js';
5
- import './chunk-GPPLSM2Z.js';
3
+ export { BindingPower, BytecodeBuilder, buildBindingPowerTable, invalidateBindingPowerTable } from './chunk-526PMQOA.js';
4
+ export { OpCode, getOpCodeName } from './chunk-UQ3UIZJC.js';
5
+ import './chunk-VB37OC6I.js';
6
6
  import './chunk-XBTEO4OB.js';
7
- import './chunk-6RDSQURE.js';
7
+ import './chunk-3D7V24DG.js';
8
8
  import './chunk-YLJ4XMA6.js';
9
9
  //# sourceMappingURL=parser.js.map
10
10
  //# sourceMappingURL=parser.js.map
@@ -1,4 +1,4 @@
1
- import { M as MatrixData, R as RangeData, S as SymbolicNode } from './Value-KtAQNHur.js';
1
+ import { M as MatrixData, R as RangeData, S as SymbolicNode } from './Value-CXJqDH9J.js';
2
2
 
3
3
  /** Base event, all events include a timestamp relative to pipeline start */
4
4
  interface BaseEvent {
@@ -1,4 +1,4 @@
1
- import { M as MatrixData, R as RangeData, S as SymbolicNode } from './Value-KtAQNHur.cjs';
1
+ import { M as MatrixData, R as RangeData, S as SymbolicNode } from './Value-CXJqDH9J.cjs';
2
2
 
3
3
  /** Base event, all events include a timestamp relative to pipeline start */
4
4
  interface BaseEvent {
@@ -1,7 +1,7 @@
1
1
  import { QueryClient } from '@tanstack/query-core';
2
2
  import { T as Token } from './Token-BzG5G4ja.cjs';
3
- import { a as BytecodeProgram } from './BytecodeBuilder-3egMyuDi.cjs';
4
- import { V as Value } from './Value-KtAQNHur.cjs';
3
+ import { a as BytecodeProgram } from './BytecodeBuilder-B0xskcv5.cjs';
4
+ import { V as Value } from './Value-CXJqDH9J.cjs';
5
5
 
6
6
  /**
7
7
  * Result from a resolver's preflight() check.
@@ -1,7 +1,7 @@
1
1
  import { QueryClient } from '@tanstack/query-core';
2
2
  import { T as Token } from './Token-BzG5G4ja.js';
3
- import { a as BytecodeProgram } from './BytecodeBuilder-3egMyuDi.js';
4
- import { V as Value } from './Value-KtAQNHur.js';
3
+ import { a as BytecodeProgram } from './BytecodeBuilder-B0xskcv5.js';
4
+ import { V as Value } from './Value-CXJqDH9J.js';
5
5
 
6
6
  /**
7
7
  * Result from a resolver's preflight() check.
package/dist/uom.cjs CHANGED
@@ -1,56 +1,56 @@
1
1
  'use strict';
2
2
 
3
- var chunk4AVD7NZW_cjs = require('./chunk-4AVD7NZW.cjs');
4
- var chunk2MV4HBKC_cjs = require('./chunk-2MV4HBKC.cjs');
5
- require('./chunk-MZOVP3WI.cjs');
3
+ var chunk4B2CNWQU_cjs = require('./chunk-4B2CNWQU.cjs');
4
+ var chunkA2N2GFCG_cjs = require('./chunk-A2N2GFCG.cjs');
5
+ require('./chunk-6KFYJ6TD.cjs');
6
6
  require('./chunk-VEKIWQ3F.cjs');
7
- require('./chunk-OC6LTXYS.cjs');
8
- var chunkNJTXJ5AG_cjs = require('./chunk-NJTXJ5AG.cjs');
9
- require('./chunk-MBNQVDVC.cjs');
10
- require('./chunk-M4N5GA5Z.cjs');
7
+ require('./chunk-JMXUNXQS.cjs');
8
+ var chunkPFUESQTW_cjs = require('./chunk-PFUESQTW.cjs');
9
+ require('./chunk-AMOJYLG2.cjs');
10
+ require('./chunk-5KMIY374.cjs');
11
11
  require('./chunk-B7LXJ6LC.cjs');
12
12
 
13
13
 
14
14
 
15
15
  Object.defineProperty(exports, "CurrencyAsyncResolver", {
16
16
  enumerable: true,
17
- get: function () { return chunk4AVD7NZW_cjs.CurrencyAsyncResolver; }
17
+ get: function () { return chunk4B2CNWQU_cjs.CurrencyAsyncResolver; }
18
18
  });
19
19
  Object.defineProperty(exports, "CurrencyExchangeService", {
20
20
  enumerable: true,
21
- get: function () { return chunk2MV4HBKC_cjs.CurrencyExchangeService; }
21
+ get: function () { return chunkA2N2GFCG_cjs.CurrencyExchangeService; }
22
22
  });
23
23
  Object.defineProperty(exports, "currencyExchangeService", {
24
24
  enumerable: true,
25
- get: function () { return chunk2MV4HBKC_cjs.currencyExchangeService; }
25
+ get: function () { return chunkA2N2GFCG_cjs.currencyExchangeService; }
26
26
  });
27
27
  Object.defineProperty(exports, "sharedCurrencyExchange", {
28
28
  enumerable: true,
29
- get: function () { return chunk2MV4HBKC_cjs.sharedCurrencyExchange; }
29
+ get: function () { return chunkA2N2GFCG_cjs.sharedCurrencyExchange; }
30
30
  });
31
31
  Object.defineProperty(exports, "canConvert", {
32
32
  enumerable: true,
33
- get: function () { return chunkNJTXJ5AG_cjs.canConvert; }
33
+ get: function () { return chunkPFUESQTW_cjs.canConvert; }
34
34
  });
35
35
  Object.defineProperty(exports, "convertUnit", {
36
36
  enumerable: true,
37
- get: function () { return chunkNJTXJ5AG_cjs.convertUnit; }
37
+ get: function () { return chunkPFUESQTW_cjs.convertUnit; }
38
38
  });
39
39
  Object.defineProperty(exports, "getBestUnit", {
40
40
  enumerable: true,
41
- get: function () { return chunkNJTXJ5AG_cjs.getBestUnit; }
41
+ get: function () { return chunkPFUESQTW_cjs.getBestUnit; }
42
42
  });
43
43
  Object.defineProperty(exports, "getMeasure", {
44
44
  enumerable: true,
45
- get: function () { return chunkNJTXJ5AG_cjs.getMeasure; }
45
+ get: function () { return chunkPFUESQTW_cjs.getMeasure; }
46
46
  });
47
47
  Object.defineProperty(exports, "isConvertibleUnit", {
48
48
  enumerable: true,
49
- get: function () { return chunkNJTXJ5AG_cjs.isConvertibleUnit; }
49
+ get: function () { return chunkPFUESQTW_cjs.isConvertibleUnit; }
50
50
  });
51
51
  Object.defineProperty(exports, "resolveUnit", {
52
52
  enumerable: true,
53
- get: function () { return chunkNJTXJ5AG_cjs.resolveUnit; }
53
+ get: function () { return chunkPFUESQTW_cjs.resolveUnit; }
54
54
  });
55
55
  //# sourceMappingURL=uom.cjs.map
56
56
  //# sourceMappingURL=uom.cjs.map
package/dist/uom.d.cts CHANGED
@@ -1,8 +1,8 @@
1
1
  import { QueryClient } from '@tanstack/query-core';
2
2
  import { T as Token } from './Token-BzG5G4ja.cjs';
3
- import { a as BytecodeProgram } from './BytecodeBuilder-3egMyuDi.cjs';
3
+ import { a as BytecodeProgram } from './BytecodeBuilder-B0xskcv5.cjs';
4
4
  import { IAsyncResolver, AsyncCheckResult } from './resolvers.cjs';
5
- import './Value-KtAQNHur.cjs';
5
+ import './Value-CXJqDH9J.cjs';
6
6
 
7
7
  /**
8
8
  * Caches exchange rates fetched from an external source.
package/dist/uom.d.ts CHANGED
@@ -1,8 +1,8 @@
1
1
  import { QueryClient } from '@tanstack/query-core';
2
2
  import { T as Token } from './Token-BzG5G4ja.js';
3
- import { a as BytecodeProgram } from './BytecodeBuilder-3egMyuDi.js';
3
+ import { a as BytecodeProgram } from './BytecodeBuilder-B0xskcv5.js';
4
4
  import { IAsyncResolver, AsyncCheckResult } from './resolvers.js';
5
- import './Value-KtAQNHur.js';
5
+ import './Value-CXJqDH9J.js';
6
6
 
7
7
  /**
8
8
  * Caches exchange rates fetched from an external source.
package/dist/uom.js CHANGED
@@ -1,11 +1,11 @@
1
- export { CurrencyAsyncResolver } from './chunk-YU2CUNFO.js';
2
- export { CurrencyExchangeService, currencyExchangeService, sharedCurrencyExchange } from './chunk-UKPGSAZW.js';
3
- import './chunk-75JP4BZX.js';
1
+ export { CurrencyAsyncResolver } from './chunk-KV7UW6T6.js';
2
+ export { CurrencyExchangeService, currencyExchangeService, sharedCurrencyExchange } from './chunk-TMA4RCEN.js';
3
+ import './chunk-UQ3UIZJC.js';
4
4
  import './chunk-Z4X2RWOF.js';
5
- import './chunk-BVAR5J2F.js';
6
- export { canConvert, convertUnit, getBestUnit, getMeasure, isConvertibleUnit, resolveUnit } from './chunk-WC5FFSHB.js';
7
- import './chunk-PCPX42KL.js';
8
- import './chunk-6RDSQURE.js';
5
+ import './chunk-GQCOSXMG.js';
6
+ export { canConvert, convertUnit, getBestUnit, getMeasure, isConvertibleUnit, resolveUnit } from './chunk-R3PY4G7J.js';
7
+ import './chunk-V4XG5QF6.js';
8
+ import './chunk-3D7V24DG.js';
9
9
  import './chunk-YLJ4XMA6.js';
10
10
  //# sourceMappingURL=uom.js.map
11
11
  //# sourceMappingURL=uom.js.map
@@ -1,8 +1,8 @@
1
1
  'use strict';
2
2
 
3
3
  var chunk5X2PTP6F_cjs = require('./chunk-5X2PTP6F.cjs');
4
- var chunkCCJPSHGI_cjs = require('./chunk-CCJPSHGI.cjs');
5
- var chunkN5YFR4UP_cjs = require('./chunk-N5YFR4UP.cjs');
4
+ var chunkN7FNVFXW_cjs = require('./chunk-N7FNVFXW.cjs');
5
+ var chunkADBA3XBE_cjs = require('./chunk-ADBA3XBE.cjs');
6
6
  var chunkVEKIWQ3F_cjs = require('./chunk-VEKIWQ3F.cjs');
7
7
  require('./chunk-B7LXJ6LC.cjs');
8
8
 
@@ -18,11 +18,15 @@ Object.defineProperty(exports, "djb2Hash", {
18
18
  });
19
19
  Object.defineProperty(exports, "autoFormatIntegerOrFloat", {
20
20
  enumerable: true,
21
- get: function () { return chunkCCJPSHGI_cjs.autoFormatIntegerOrFloat; }
21
+ get: function () { return chunkN7FNVFXW_cjs.autoFormatIntegerOrFloat; }
22
+ });
23
+ Object.defineProperty(exports, "countLines", {
24
+ enumerable: true,
25
+ get: function () { return chunkADBA3XBE_cjs.countLines; }
22
26
  });
23
27
  Object.defineProperty(exports, "stripQuotes", {
24
28
  enumerable: true,
25
- get: function () { return chunkN5YFR4UP_cjs.stripQuotes; }
29
+ get: function () { return chunkADBA3XBE_cjs.stripQuotes; }
26
30
  });
27
31
  Object.defineProperty(exports, "createTimeoutSignal", {
28
32
  enumerable: true,
@@ -29,10 +29,26 @@ declare function autoFormatIntegerOrFloat(number: number, decimalPlaces?: number
29
29
  * Strips a single layer of matching double quotes from a string, if present.
30
30
  * Returns the input unchanged if it isn't fully wrapped in quotes.
31
31
  *
32
- * Used for STRING token values, which the lexer emits with their surrounding
33
- * `"..."` quotes still attached.
32
+ * Was needed for STRING token values, which the lexer used to emit with their
33
+ * surrounding `"..."` quotes still attached. `tokenizeString()` now strips them
34
+ * when it builds the token, so on that path this is a no-op kept as a defence
35
+ * against text arriving from somewhere else already quoted.
34
36
  */
35
37
  declare function stripQuotes(value: string): string;
38
+ /**
39
+ * How many lines `text` has, without splitting it into an array.
40
+ *
41
+ * `split("\n").length` answers the same question and allocates the whole
42
+ * document to do it, which is the wrong shape for a caller whose next move may
43
+ * be to refuse the document for being too large. Counting stops as soon as the
44
+ * answer is "more than the caller cares about".
45
+ *
46
+ * @param text - The document.
47
+ * @param stopAfter - Stop counting once past this many lines.
48
+ * @returns The line count, or `stopAfter + 1` for anything longer. A document
49
+ * with no newline in it is one line, matching `split`.
50
+ */
51
+ declare function countLines(text: string, stopAfter?: number): number;
36
52
 
37
53
  /**
38
54
  * Multiplex an optional caller AbortSignal with a hard timeout into a single
@@ -110,4 +126,4 @@ declare const abortLogger: {
110
126
  staleDataDiscarded(queryKey: string, context: string): void;
111
127
  };
112
128
 
113
- export { abortLogger, autoFormatIntegerOrFloat, createTimeoutSignal, djb2Hash, stripQuotes };
129
+ export { abortLogger, autoFormatIntegerOrFloat, countLines, createTimeoutSignal, djb2Hash, stripQuotes };
@@ -29,10 +29,26 @@ declare function autoFormatIntegerOrFloat(number: number, decimalPlaces?: number
29
29
  * Strips a single layer of matching double quotes from a string, if present.
30
30
  * Returns the input unchanged if it isn't fully wrapped in quotes.
31
31
  *
32
- * Used for STRING token values, which the lexer emits with their surrounding
33
- * `"..."` quotes still attached.
32
+ * Was needed for STRING token values, which the lexer used to emit with their
33
+ * surrounding `"..."` quotes still attached. `tokenizeString()` now strips them
34
+ * when it builds the token, so on that path this is a no-op kept as a defence
35
+ * against text arriving from somewhere else already quoted.
34
36
  */
35
37
  declare function stripQuotes(value: string): string;
38
+ /**
39
+ * How many lines `text` has, without splitting it into an array.
40
+ *
41
+ * `split("\n").length` answers the same question and allocates the whole
42
+ * document to do it, which is the wrong shape for a caller whose next move may
43
+ * be to refuse the document for being too large. Counting stops as soon as the
44
+ * answer is "more than the caller cares about".
45
+ *
46
+ * @param text - The document.
47
+ * @param stopAfter - Stop counting once past this many lines.
48
+ * @returns The line count, or `stopAfter + 1` for anything longer. A document
49
+ * with no newline in it is one line, matching `split`.
50
+ */
51
+ declare function countLines(text: string, stopAfter?: number): number;
36
52
 
37
53
  /**
38
54
  * Multiplex an optional caller AbortSignal with a hard timeout into a single
@@ -110,4 +126,4 @@ declare const abortLogger: {
110
126
  staleDataDiscarded(queryKey: string, context: string): void;
111
127
  };
112
128
 
113
- export { abortLogger, autoFormatIntegerOrFloat, createTimeoutSignal, djb2Hash, stripQuotes };
129
+ export { abortLogger, autoFormatIntegerOrFloat, countLines, createTimeoutSignal, djb2Hash, stripQuotes };
package/dist/utilities.js CHANGED
@@ -1,6 +1,6 @@
1
1
  export { abortLogger, djb2Hash } from './chunk-IF532O7C.js';
2
- export { autoFormatIntegerOrFloat } from './chunk-DUEZFTK2.js';
3
- export { stripQuotes } from './chunk-PFSDGGYL.js';
2
+ export { autoFormatIntegerOrFloat } from './chunk-UKQHXPGW.js';
3
+ export { countLines, stripQuotes } from './chunk-3BOK2LDK.js';
4
4
  export { createTimeoutSignal } from './chunk-Z4X2RWOF.js';
5
5
  import './chunk-YLJ4XMA6.js';
6
6
  //# sourceMappingURL=utilities.js.map