@jplorg/jpl 2.0.0 → 2.1.1

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 (320) hide show
  1. package/dist/esm/main.js +3474 -0
  2. package/dist/types/applyDefaults.d.ts +2 -0
  3. package/dist/types/builtins/funcContains.d.ts +3 -0
  4. package/dist/types/builtins/funcEndsWith.d.ts +3 -0
  5. package/dist/types/builtins/funcError.d.ts +3 -0
  6. package/dist/types/builtins/funcFromJSON.d.ts +3 -0
  7. package/dist/types/builtins/funcHas.d.ts +3 -0
  8. package/dist/types/builtins/funcIn.d.ts +3 -0
  9. package/dist/types/builtins/funcKeys.d.ts +3 -0
  10. package/dist/types/builtins/funcLength.d.ts +3 -0
  11. package/dist/types/builtins/funcNow.d.ts +3 -0
  12. package/dist/types/builtins/funcStartsWith.d.ts +3 -0
  13. package/dist/types/builtins/funcToJSON.d.ts +3 -0
  14. package/dist/types/builtins/funcToLowerCase.d.ts +3 -0
  15. package/dist/types/builtins/funcToNumber.d.ts +3 -0
  16. package/dist/types/builtins/funcToString.d.ts +3 -0
  17. package/dist/types/builtins/funcToUpperCase.d.ts +3 -0
  18. package/dist/types/builtins/funcTrim.d.ts +3 -0
  19. package/dist/types/builtins/funcTrimEnd.d.ts +3 -0
  20. package/dist/types/builtins/funcTrimStart.d.ts +3 -0
  21. package/dist/types/builtins/funcType.d.ts +3 -0
  22. package/dist/types/builtins/funcVoid.d.ts +3 -0
  23. package/dist/types/builtins/index.d.ts +2 -0
  24. package/dist/types/builtins/internals.d.ts +1 -0
  25. package/dist/types/builtins/math.d.ts +17 -0
  26. package/dist/types/createSingleton.d.ts +1 -0
  27. package/dist/types/interpreter/index.d.ts +21 -0
  28. package/dist/types/interpreter/parse.d.ts +194 -0
  29. package/{src/interpreter/parseFunction.js → dist/types/interpreter/parseFunction.d.ts} +2 -10
  30. package/dist/types/interpreter/system.d.ts +3 -0
  31. package/dist/types/interpreter/util.d.ts +89 -0
  32. package/dist/types/library/apply.d.ts +32 -0
  33. package/dist/types/library/definition.d.ts +79 -0
  34. package/dist/types/library/errors/adaptErrors.d.ts +6 -0
  35. package/dist/types/library/errors/enclosure.d.ts +6 -0
  36. package/dist/types/library/errors/error.d.ts +6 -0
  37. package/dist/types/library/errors/execution.d.ts +12 -0
  38. package/dist/types/library/errors/fatal.d.ts +4 -0
  39. package/dist/types/library/errors/runtime.d.ts +46 -0
  40. package/dist/types/library/errors/syntax.d.ts +7 -0
  41. package/{src/library/functions.js → dist/types/library/functions.d.ts} +9 -30
  42. package/dist/types/library/index.d.ts +19 -0
  43. package/dist/types/library/mux.d.ts +19 -0
  44. package/{src/library/ops/op.js → dist/types/library/ops/op.d.ts} +25 -49
  45. package/{src/library/ops/opa.js → dist/types/library/ops/opa.d.ts} +4 -7
  46. package/{src/library/ops/opc.js → dist/types/library/ops/opc.d.ts} +6 -11
  47. package/{src/library/ops/opm.js → dist/types/library/ops/opm.d.ts} +5 -9
  48. package/{src/library/ops/opu.js → dist/types/library/ops/opu.d.ts} +8 -15
  49. package/dist/types/library/runtimeScope.d.ts +23 -0
  50. package/dist/types/library/runtimeSignal.d.ts +25 -0
  51. package/dist/types/library/types.d.ts +97 -0
  52. package/dist/types/main.d.ts +19 -0
  53. package/dist/types/program/handler.d.ts +11 -0
  54. package/dist/types/program/index.d.ts +40 -0
  55. package/dist/types/program/ops/index.d.ts +5 -0
  56. package/dist/types/program/ops/opAccess/index.d.ts +10 -0
  57. package/dist/types/program/ops/opAccess/opaField.d.ts +10 -0
  58. package/dist/types/program/ops/opAccess/opaFunction.d.ts +10 -0
  59. package/dist/types/program/ops/opAccess/opaIter.d.ts +10 -0
  60. package/dist/types/program/ops/opAccess/opaSlice.d.ts +10 -0
  61. package/dist/types/program/ops/opAnd.d.ts +10 -0
  62. package/dist/types/program/ops/opArrayConstructor.d.ts +10 -0
  63. package/dist/types/program/ops/opAssignment/index.d.ts +10 -0
  64. package/dist/types/program/ops/opAssignment/opaAssignField.d.ts +10 -0
  65. package/dist/types/program/ops/opAssignment/opaAssignIter.d.ts +10 -0
  66. package/dist/types/program/ops/opAssignment/opaAssignSlice.d.ts +10 -0
  67. package/dist/types/program/ops/opAssignment/opuAddition.d.ts +10 -0
  68. package/dist/types/program/ops/opAssignment/opuDivision.d.ts +10 -0
  69. package/dist/types/program/ops/opAssignment/opuMultiplication.d.ts +10 -0
  70. package/dist/types/program/ops/opAssignment/opuNullCoalescence.d.ts +10 -0
  71. package/dist/types/program/ops/opAssignment/opuRemainder.d.ts +10 -0
  72. package/dist/types/program/ops/opAssignment/opuSet.d.ts +10 -0
  73. package/dist/types/program/ops/opAssignment/opuSubtraction.d.ts +10 -0
  74. package/dist/types/program/ops/opAssignment/opuUpdate.d.ts +10 -0
  75. package/dist/types/program/ops/opCalculation/index.d.ts +10 -0
  76. package/dist/types/program/ops/opCalculation/opmAddition.d.ts +10 -0
  77. package/dist/types/program/ops/opCalculation/opmDivision.d.ts +10 -0
  78. package/dist/types/program/ops/opCalculation/opmMultiplication.d.ts +10 -0
  79. package/dist/types/program/ops/opCalculation/opmRemainder.d.ts +10 -0
  80. package/dist/types/program/ops/opCalculation/opmSubtraction.d.ts +10 -0
  81. package/dist/types/program/ops/opComparison/index.d.ts +10 -0
  82. package/dist/types/program/ops/opComparison/opcEqual.d.ts +10 -0
  83. package/dist/types/program/ops/opComparison/opcGreater.d.ts +10 -0
  84. package/dist/types/program/ops/opComparison/opcGreaterEqual.d.ts +10 -0
  85. package/dist/types/program/ops/opComparison/opcLess.d.ts +10 -0
  86. package/dist/types/program/ops/opComparison/opcLessEqual.d.ts +10 -0
  87. package/dist/types/program/ops/opComparison/opcUnequal.d.ts +10 -0
  88. package/dist/types/program/ops/opConstant.d.ts +10 -0
  89. package/dist/types/program/ops/opConstantFalse.d.ts +10 -0
  90. package/dist/types/program/ops/opConstantNull.d.ts +10 -0
  91. package/dist/types/program/ops/opConstantTrue.d.ts +10 -0
  92. package/dist/types/program/ops/opFunctionDefinition.d.ts +10 -0
  93. package/dist/types/program/ops/opIf.d.ts +10 -0
  94. package/dist/types/program/ops/opInterpolatedString.d.ts +10 -0
  95. package/dist/types/program/ops/opNegation.d.ts +10 -0
  96. package/dist/types/program/ops/opNot.d.ts +10 -0
  97. package/dist/types/program/ops/opNullCoalescence.d.ts +10 -0
  98. package/dist/types/program/ops/opNumber.d.ts +10 -0
  99. package/dist/types/program/ops/opObjectConstructor.d.ts +10 -0
  100. package/dist/types/program/ops/opOr.d.ts +10 -0
  101. package/dist/types/program/ops/opOutputConcat.d.ts +10 -0
  102. package/dist/types/program/ops/opString.d.ts +10 -0
  103. package/dist/types/program/ops/opTry.d.ts +10 -0
  104. package/dist/types/program/ops/opVariable.d.ts +10 -0
  105. package/dist/types/program/ops/opVariableDefinition.d.ts +10 -0
  106. package/dist/types/program/ops/opVoid.d.ts +10 -0
  107. package/dist/types/program/ops/utils.d.ts +5 -0
  108. package/dist/types/program/params.d.ts +67 -0
  109. package/dist/types/runtime/index.d.ts +82 -0
  110. package/package.json +59 -49
  111. package/{repl.js → repl.ts} +85 -39
  112. package/lib/applyDefaults.js +0 -34
  113. package/lib/builtins/funcContains.js +0 -25
  114. package/lib/builtins/funcEndsWith.js +0 -21
  115. package/lib/builtins/funcError.js +0 -11
  116. package/lib/builtins/funcFromJSON.js +0 -26
  117. package/lib/builtins/funcHas.js +0 -24
  118. package/lib/builtins/funcIn.js +0 -24
  119. package/lib/builtins/funcKeys.js +0 -20
  120. package/lib/builtins/funcLength.js +0 -24
  121. package/lib/builtins/funcNow.js +0 -10
  122. package/lib/builtins/funcStartsWith.js +0 -21
  123. package/lib/builtins/funcToJSON.js +0 -10
  124. package/lib/builtins/funcToLowerCase.js +0 -17
  125. package/lib/builtins/funcToNumber.js +0 -26
  126. package/lib/builtins/funcToString.js +0 -10
  127. package/lib/builtins/funcToUpperCase.js +0 -17
  128. package/lib/builtins/funcTrim.js +0 -17
  129. package/lib/builtins/funcTrimEnd.js +0 -17
  130. package/lib/builtins/funcTrimStart.js +0 -17
  131. package/lib/builtins/funcType.js +0 -10
  132. package/lib/builtins/funcVoid.js +0 -10
  133. package/lib/builtins/index.js +0 -205
  134. package/lib/builtins/internals.js +0 -8
  135. package/lib/builtins/math.js +0 -40
  136. package/lib/builtins/native.js +0 -180
  137. package/lib/createSingleton.js +0 -14
  138. package/lib/index.js +0 -79
  139. package/lib/interpreter/index.js +0 -56
  140. package/lib/interpreter/parse.js +0 -2377
  141. package/lib/interpreter/parseFunction.js +0 -24
  142. package/lib/interpreter/system.js +0 -10
  143. package/lib/interpreter/util.js +0 -349
  144. package/lib/library/apply.js +0 -142
  145. package/lib/library/definition.js +0 -9
  146. package/lib/library/errors/adaptErrors.js +0 -34
  147. package/lib/library/errors/enclosure.js +0 -16
  148. package/lib/library/errors/error.js +0 -18
  149. package/lib/library/errors/execution.js +0 -20
  150. package/lib/library/errors/fatal.js +0 -15
  151. package/lib/library/errors/runtime.js +0 -78
  152. package/lib/library/errors/syntax.js +0 -17
  153. package/lib/library/functions.js +0 -82
  154. package/lib/library/index.js +0 -335
  155. package/lib/library/mux.js +0 -106
  156. package/lib/library/ops/index.js +0 -60
  157. package/lib/library/ops/op.js +0 -180
  158. package/lib/library/ops/opa.js +0 -41
  159. package/lib/library/ops/opc.js +0 -59
  160. package/lib/library/ops/opm.js +0 -50
  161. package/lib/library/ops/opu.js +0 -77
  162. package/lib/library/runtimeScope.js +0 -38
  163. package/lib/library/runtimeSignal.js +0 -72
  164. package/lib/library/types.js +0 -304
  165. package/lib/program/index.js +0 -101
  166. package/lib/program/ops/index.js +0 -61
  167. package/lib/program/ops/opAccess/index.js +0 -55
  168. package/lib/program/ops/opAccess/opaField.js +0 -50
  169. package/lib/program/ops/opAccess/opaFunction.js +0 -50
  170. package/lib/program/ops/opAccess/opaIter.js +0 -33
  171. package/lib/program/ops/opAccess/opaSlice.js +0 -46
  172. package/lib/program/ops/opAnd.js +0 -30
  173. package/lib/program/ops/opArrayConstructor.js +0 -20
  174. package/lib/program/ops/opAssignment/index.js +0 -90
  175. package/lib/program/ops/opAssignment/opaAssignField.js +0 -125
  176. package/lib/program/ops/opAssignment/opaAssignIter.js +0 -71
  177. package/lib/program/ops/opAssignment/opaAssignSlice.js +0 -101
  178. package/lib/program/ops/opAssignment/opuAddition.js +0 -31
  179. package/lib/program/ops/opAssignment/opuDivision.js +0 -31
  180. package/lib/program/ops/opAssignment/opuMultiplication.js +0 -31
  181. package/lib/program/ops/opAssignment/opuNullCoalescence.js +0 -25
  182. package/lib/program/ops/opAssignment/opuRemainder.js +0 -31
  183. package/lib/program/ops/opAssignment/opuSet.js +0 -19
  184. package/lib/program/ops/opAssignment/opuSubtraction.js +0 -31
  185. package/lib/program/ops/opAssignment/opuUpdate.js +0 -19
  186. package/lib/program/ops/opCalculation/index.js +0 -57
  187. package/lib/program/ops/opCalculation/opmAddition.js +0 -49
  188. package/lib/program/ops/opCalculation/opmDivision.js +0 -42
  189. package/lib/program/ops/opCalculation/opmMultiplication.js +0 -40
  190. package/lib/program/ops/opCalculation/opmRemainder.js +0 -34
  191. package/lib/program/ops/opCalculation/opmSubtraction.js +0 -53
  192. package/lib/program/ops/opComparison/index.js +0 -59
  193. package/lib/program/ops/opComparison/opcEqual.js +0 -19
  194. package/lib/program/ops/opComparison/opcGreater.js +0 -19
  195. package/lib/program/ops/opComparison/opcGreaterEqual.js +0 -19
  196. package/lib/program/ops/opComparison/opcLess.js +0 -19
  197. package/lib/program/ops/opComparison/opcLessEqual.js +0 -19
  198. package/lib/program/ops/opComparison/opcUnequal.js +0 -19
  199. package/lib/program/ops/opConstant.js +0 -18
  200. package/lib/program/ops/opConstantFalse.js +0 -16
  201. package/lib/program/ops/opConstantNull.js +0 -16
  202. package/lib/program/ops/opConstantTrue.js +0 -16
  203. package/lib/program/ops/opFunctionDefinition.js +0 -21
  204. package/lib/program/ops/opIf.js +0 -38
  205. package/lib/program/ops/opInterpolatedString.js +0 -24
  206. package/lib/program/ops/opNegation.js +0 -25
  207. package/lib/program/ops/opNot.js +0 -16
  208. package/lib/program/ops/opNullCoalescence.js +0 -34
  209. package/lib/program/ops/opNumber.js +0 -18
  210. package/lib/program/ops/opObjectConstructor.js +0 -37
  211. package/lib/program/ops/opOr.js +0 -30
  212. package/lib/program/ops/opOutputConcat.js +0 -19
  213. package/lib/program/ops/opString.js +0 -18
  214. package/lib/program/ops/opTry.js +0 -37
  215. package/lib/program/ops/opVariable.js +0 -20
  216. package/lib/program/ops/opVariableDefinition.js +0 -24
  217. package/lib/program/ops/opVoid.js +0 -16
  218. package/lib/program/ops/utils.js +0 -35
  219. package/lib/runtime/index.js +0 -258
  220. package/src/applyDefaults.js +0 -35
  221. package/src/builtins/funcContains.js +0 -27
  222. package/src/builtins/funcEndsWith.js +0 -21
  223. package/src/builtins/funcError.js +0 -7
  224. package/src/builtins/funcFromJSON.js +0 -24
  225. package/src/builtins/funcHas.js +0 -25
  226. package/src/builtins/funcIn.js +0 -25
  227. package/src/builtins/funcKeys.js +0 -20
  228. package/src/builtins/funcLength.js +0 -26
  229. package/src/builtins/funcNow.js +0 -5
  230. package/src/builtins/funcStartsWith.js +0 -21
  231. package/src/builtins/funcToJSON.js +0 -5
  232. package/src/builtins/funcToLowerCase.js +0 -20
  233. package/src/builtins/funcToNumber.js +0 -25
  234. package/src/builtins/funcToString.js +0 -5
  235. package/src/builtins/funcToUpperCase.js +0 -20
  236. package/src/builtins/funcTrim.js +0 -16
  237. package/src/builtins/funcTrimEnd.js +0 -16
  238. package/src/builtins/funcTrimStart.js +0 -16
  239. package/src/builtins/funcType.js +0 -5
  240. package/src/builtins/funcVoid.js +0 -5
  241. package/src/builtins/index.js +0 -193
  242. package/src/builtins/internals.js +0 -9
  243. package/src/builtins/math.js +0 -44
  244. package/src/createSingleton.js +0 -9
  245. package/src/index.js +0 -44
  246. package/src/interpreter/index.js +0 -48
  247. package/src/interpreter/parse.js +0 -1473
  248. package/src/interpreter/system.js +0 -5
  249. package/src/interpreter/util.js +0 -237
  250. package/src/library/apply.js +0 -135
  251. package/src/library/definition.js +0 -3
  252. package/src/library/errors/adaptErrors.js +0 -28
  253. package/src/library/errors/enclosure.js +0 -11
  254. package/src/library/errors/error.js +0 -14
  255. package/src/library/errors/execution.js +0 -15
  256. package/src/library/errors/fatal.js +0 -10
  257. package/src/library/errors/runtime.js +0 -71
  258. package/src/library/errors/syntax.js +0 -12
  259. package/src/library/index.js +0 -41
  260. package/src/library/mux.js +0 -98
  261. package/src/library/runtimeScope.js +0 -35
  262. package/src/library/runtimeSignal.js +0 -67
  263. package/src/library/types.js +0 -299
  264. package/src/program/index.js +0 -114
  265. package/src/program/ops/index.js +0 -82
  266. package/src/program/ops/opAccess/index.js +0 -55
  267. package/src/program/ops/opAccess/opaField.js +0 -58
  268. package/src/program/ops/opAccess/opaFunction.js +0 -52
  269. package/src/program/ops/opAccess/opaIter.js +0 -34
  270. package/src/program/ops/opAccess/opaSlice.js +0 -61
  271. package/src/program/ops/opAnd.js +0 -32
  272. package/src/program/ops/opArrayConstructor.js +0 -16
  273. package/src/program/ops/opAssignment/index.js +0 -102
  274. package/src/program/ops/opAssignment/opaAssignField.js +0 -156
  275. package/src/program/ops/opAssignment/opaAssignIter.js +0 -77
  276. package/src/program/ops/opAssignment/opaAssignSlice.js +0 -160
  277. package/src/program/ops/opAssignment/opuAddition.js +0 -29
  278. package/src/program/ops/opAssignment/opuDivision.js +0 -29
  279. package/src/program/ops/opAssignment/opuMultiplication.js +0 -29
  280. package/src/program/ops/opAssignment/opuNullCoalescence.js +0 -26
  281. package/src/program/ops/opAssignment/opuRemainder.js +0 -29
  282. package/src/program/ops/opAssignment/opuSet.js +0 -15
  283. package/src/program/ops/opAssignment/opuSubtraction.js +0 -29
  284. package/src/program/ops/opAssignment/opuUpdate.js +0 -15
  285. package/src/program/ops/opCalculation/index.js +0 -64
  286. package/src/program/ops/opCalculation/opmAddition.js +0 -63
  287. package/src/program/ops/opCalculation/opmDivision.js +0 -47
  288. package/src/program/ops/opCalculation/opmMultiplication.js +0 -52
  289. package/src/program/ops/opCalculation/opmRemainder.js +0 -49
  290. package/src/program/ops/opCalculation/opmSubtraction.js +0 -72
  291. package/src/program/ops/opComparison/index.js +0 -67
  292. package/src/program/ops/opComparison/opcEqual.js +0 -17
  293. package/src/program/ops/opComparison/opcGreater.js +0 -17
  294. package/src/program/ops/opComparison/opcGreaterEqual.js +0 -17
  295. package/src/program/ops/opComparison/opcLess.js +0 -17
  296. package/src/program/ops/opComparison/opcLessEqual.js +0 -17
  297. package/src/program/ops/opComparison/opcUnequal.js +0 -17
  298. package/src/program/ops/opConstant.js +0 -13
  299. package/src/program/ops/opConstantFalse.js +0 -11
  300. package/src/program/ops/opConstantNull.js +0 -11
  301. package/src/program/ops/opConstantTrue.js +0 -11
  302. package/src/program/ops/opFunctionDefinition.js +0 -17
  303. package/src/program/ops/opIf.js +0 -44
  304. package/src/program/ops/opInterpolatedString.js +0 -27
  305. package/src/program/ops/opNegation.js +0 -26
  306. package/src/program/ops/opNot.js +0 -11
  307. package/src/program/ops/opNullCoalescence.js +0 -36
  308. package/src/program/ops/opNumber.js +0 -13
  309. package/src/program/ops/opObjectConstructor.js +0 -40
  310. package/src/program/ops/opOr.js +0 -32
  311. package/src/program/ops/opOutputConcat.js +0 -17
  312. package/src/program/ops/opString.js +0 -13
  313. package/src/program/ops/opTry.js +0 -38
  314. package/src/program/ops/opVariable.js +0 -17
  315. package/src/program/ops/opVariableDefinition.js +0 -18
  316. package/src/program/ops/opVoid.js +0 -11
  317. package/src/program/ops/utils.js +0 -19
  318. package/src/runtime/index.js +0 -309
  319. /package/{src/builtins/native.js → dist/types/builtins/native.d.ts} +0 -0
  320. /package/{src/library/ops/index.js → dist/types/library/ops/index.d.ts} +0 -0
@@ -0,0 +1,97 @@
1
+ /**
2
+ * Generic type for handling special formatting on values.
3
+ *
4
+ * The value accessor should be used in JPL expressions, where type safety may be considered important.
5
+ *
6
+ * The json accessor should be used in program outputs, where the format of the value should be applied and the original type may be ignored.
7
+ *
8
+ * The alter function is called when the value is being changed by an operation.
9
+ * The JPLType is responsible to decide whether the resulting value should be wrapped in a new JPLType or not.
10
+ * It may also return itself if the value did not change.
11
+ * Note that the resulting value may have another type than the original value.
12
+ * Commonly, if multiple values wrapped in JPLTypes are involved in an operation, the leftmost operand should be altered whereas all other operands should be unwrapped using their value accessors, effectively loosing their formatting.
13
+ *
14
+ * However, both accessors should represent the same essential value.
15
+ * For example, a JPLType that applies rounding to numbers with a fixed number of decimal digits, may return the rounded numeric value for its value accessor (e.g. `1`), whereas it may return a formatted string for its JSON accessor (e.g. `"1.00"`).
16
+ * This allows this JPLType to be processed in JPL operations like generic numbers but resolves to formatted strings in the program output.
17
+ */
18
+ export declare class JPLType {
19
+ #private;
20
+ /** Detect whether the provided value is an instance of this JPLType or one of its subclasses */
21
+ static is(value: unknown): boolean;
22
+ constructor(value: unknown);
23
+ /** Resolve the internal value for usage in JPL operations */
24
+ get value(): unknown;
25
+ /** Resolve the JSON value for usage in program outputs */
26
+ get json(): unknown;
27
+ /**
28
+ * Alter the internal value using the specified updater.
29
+ * The result may or may not be wrapped into a new JPLType if desired.
30
+ * The JPLType may return itself if the value did not change.
31
+ */
32
+ alter(updater: (value: unknown) => Promise<unknown> | unknown): Promise<unknown>;
33
+ /**
34
+ * Support for `JSON.stringify` like procedures (see `JPLType.json`).
35
+ *
36
+ * It is generally recommended to override the `get json` member access function instead of this method.
37
+ */
38
+ toJSON(): unknown;
39
+ }
40
+ /** Normalize the specified external value */
41
+ export declare function normalize(value: unknown): unknown;
42
+ /** Unwrap the specified normalized value */
43
+ export declare function unwrap(value: unknown): unknown;
44
+ /** Order which applies when comparing values with different types */
45
+ export declare const typeOrder: string[];
46
+ /** Resolve the type of the specified normalized value */
47
+ export declare function typeOf(value: unknown): string;
48
+ /** Assert the type for the specified unwrapped value */
49
+ export declare function assertType<T>(value: T, type: string): T;
50
+ /** Stringify the specified normalized value */
51
+ export declare function stringify(value: unknown, unescapeString?: boolean, escapeFunctions?: boolean): string;
52
+ /**
53
+ * Format the specified template string.
54
+ * The general form of a format is a percent sign, followed by optional flags, an optional width and a verb.
55
+ *
56
+ * Examples:
57
+ * - `%10s`: Format the next replacement as a string and pads the result at the left with spaces to be at least 10 unicode codepoints long.
58
+ * - `%*<10v`: Format the next replacement as a JSON value and truncates it, if it is longer then 10 unicode codepoints.
59
+ *
60
+ * The width specifies the desired field width and defaults to whatever is necessary to display the full replacement.
61
+ * If the width is specified without any other corresponding flags, it is used for padding the field if necessary.
62
+ *
63
+ * Valid flags:
64
+ *
65
+ * - `*`: Do not pad the value even if it is shorter than the specified width
66
+ * - `-`: Pad the value at the right rather than the left
67
+ * - `<`: Truncate the value at the right if it is too long for the specified width
68
+ *
69
+ * Valid verbs:
70
+ *
71
+ * - `%`: Returns a literal `%`
72
+ * - `s`: Format the next replacement as a string (like JSON, but does not escape strings)
73
+ * - `v`: Format the next replacement as a JSON value
74
+ */
75
+ export declare function template(tmpl: unknown, ...replacements: unknown[]): string;
76
+ /** Format the specified normalized value as a string */
77
+ export declare function displayValue(value: unknown): string;
78
+ /** Format the specified normalized value as a string, without removing escaping */
79
+ export declare function strictDisplayValue(value: unknown): string;
80
+ /**
81
+ * Unwrap the specified value similar to `JSON.stringify`.
82
+ * However, unlike with `JSON.stringify`, object member functions `toJSON` are not supported as they could interfere with user defined members.
83
+ * Instead, JPLTypes are being unwrapped by default.
84
+ *
85
+ * A custom stripper can be provided to customize the behavior.
86
+ */
87
+ export declare function strip(value: unknown, replacer?: (k: string, v: unknown) => unknown, stripper?: (k: string | null, v: unknown, iter: (k: string, v: unknown) => unknown) => unknown): unknown;
88
+ /** Stripper that allows JPLTypes and normalized values */
89
+ export declare function jplTypedStripper(k: string | null, v: unknown, iter: (k: string, v: unknown) => unknown): unknown;
90
+ /** Stripper that only allows normalized values and unwraps JPLTypes */
91
+ export declare function jplStripper(k: string | null, v: unknown, iter: (k: string, v: unknown) => unknown): unknown;
92
+ /** Stripper that allows JSON like values and unwraps JPLTypes */
93
+ export declare function jplJSONStripper(k: string | null, v: unknown, iter: (k: string, v: unknown) => unknown): unknown;
94
+ /** Stripper that allows JSON like values and calls `toJSON` similar to `JSON.stringify` */
95
+ export declare function jsonStripper(k: string | null, v: unknown, iter: (k: string, v: unknown) => unknown): unknown;
96
+ /** Stripper that allows JSON like values */
97
+ export declare function rawStripper(k: string | null, v: unknown, iter: (k: string, v: unknown) => unknown): unknown;
@@ -0,0 +1,19 @@
1
+ import { default as getBuiltins } from './builtins';
2
+ import { JPLInterpreterConfig, JPLInterpreterOptions } from './interpreter';
3
+ import { default as parseFunction } from './interpreter/parseFunction';
4
+ import { default as JPLProgram, JPLOPHandler, JPLOPSubHandler, JPLProgramConfig, JPLProgramOptions } from './program';
5
+ import { JPLRuntimeConfig, JPLRuntimeOptions } from './runtime';
6
+ declare const getGlobalOptions: () => Promise<{
7
+ interpreter: {};
8
+ program: {};
9
+ runtime: {
10
+ vars: {
11
+ [x: string]: unknown;
12
+ };
13
+ };
14
+ }>;
15
+ declare const parse: (source: string, options?: JPLInterpreterConfig) => Promise<JPLProgram>;
16
+ declare const run: (source: string, inputs: unknown[], options?: JPLInterpreterConfig) => Promise<unknown[]>;
17
+ export * from './library';
18
+ export * from './program/params';
19
+ export { getBuiltins, getGlobalOptions as getOptions, parse, parseFunction, run, type JPLInterpreterConfig, type JPLInterpreterOptions, type JPLOPHandler, type JPLOPSubHandler, type JPLProgramConfig, type JPLProgramOptions, type JPLRuntimeConfig, type JPLRuntimeOptions, };
@@ -0,0 +1,11 @@
1
+ import { JPLInstructionParams, JPLRuntimeScope } from '../library';
2
+ import { default as JPLRuntime } from '../runtime';
3
+ import { UserJPLInstructionParams } from './params';
4
+ export type JPLOPHandler = {
5
+ op(runtime: JPLRuntime, input: unknown, params: JPLInstructionParams, scope: JPLRuntimeScope, next: (output: unknown, scope: JPLRuntimeScope) => Promise<unknown> | unknown[]): Promise<unknown[]> | unknown[];
6
+ map(runtime: JPLRuntime, params: UserJPLInstructionParams): JPLInstructionParams;
7
+ };
8
+ export type JPLOPSubHandler<DefinitionParams, JPLParams> = {
9
+ op(runtime: JPLRuntime, input: unknown, target: unknown, params: DefinitionParams, scope: JPLRuntimeScope, next: (output: unknown) => Promise<unknown[]> | unknown[]): Promise<unknown[]> | unknown[];
10
+ map(runtime: JPLRuntime, params: JPLParams): DefinitionParams;
11
+ };
@@ -0,0 +1,40 @@
1
+ import { JPLDefinition } from '../library';
2
+ import { JPLRuntimeOptions } from '../runtime';
3
+ import { JPLOPHandler } from './handler';
4
+ export type JPLProgramConfig = {
5
+ program?: JPLProgramOptions;
6
+ runtime?: JPLRuntimeOptions;
7
+ };
8
+ export type JPLProgramOptions = Record<string, never>;
9
+ export declare function applyProgramDefaults(options?: JPLProgramOptions, defaults?: JPLProgramOptions): JPLProgramOptions;
10
+ /** JPL program */
11
+ export default class JPLProgram {
12
+ #private;
13
+ constructor(programDefinition: JPLDefinition, options?: JPLProgramConfig);
14
+ /** Return the program's options */
15
+ get options(): JPLProgramOptions;
16
+ /**
17
+ * Return the program's definition.
18
+ * The definition can be serialized as JSON to be reused in other JPL implementations.
19
+ */
20
+ get definition(): JPLDefinition;
21
+ /** Return the program's OPs */
22
+ get ops(): {
23
+ [op: string]: JPLOPHandler;
24
+ };
25
+ /**
26
+ * Run the program with the provided inputs and runtime options.
27
+ * The program throws a JPLExecutionError (see `JPLExecutionError.is`) for runtime failures.
28
+ * Other errors may be thrown when execution fails.
29
+ */
30
+ run: (inputs: unknown[], options?: JPLProgramConfig) => Promise<unknown[]>;
31
+ /**
32
+ * Return a new program with the provided definition's instructions prepended to the program.
33
+ */
34
+ prepend: (programDefinition: JPLDefinition) => JPLProgram;
35
+ /**
36
+ * Return a new program with the provided definition's instructions appended to the program.
37
+ */
38
+ append: (programDefinition: JPLDefinition) => JPLProgram;
39
+ }
40
+ export { type JPLOPHandler, type JPLOPSubHandler } from './handler';
@@ -0,0 +1,5 @@
1
+ import { JPLOPHandler } from '../handler';
2
+ declare const ops: {
3
+ [op: string]: JPLOPHandler;
4
+ };
5
+ export default ops;
@@ -0,0 +1,10 @@
1
+ import { JPLInstructionParams, JPLRuntimeScope } from '../../../library';
2
+ import { UserJPLInstructionParams } from '../../params';
3
+ import { default as JPLRuntime } from '../../../runtime';
4
+ declare const _default: {
5
+ /** { pipe: [op], selectors: [opa] } */
6
+ op(runtime: JPLRuntime, input: unknown, params: JPLInstructionParams, scope: JPLRuntimeScope, next: (output: unknown, scope: JPLRuntimeScope) => Promise<unknown[]> | unknown[]): Promise<unknown[]>;
7
+ /** { pipe: function, selectors: [opa] } */
8
+ map(runtime: JPLRuntime, params: UserJPLInstructionParams): JPLInstructionParams;
9
+ };
10
+ export default _default;
@@ -0,0 +1,10 @@
1
+ import { JPLRuntimeScope, JPLSelectorParams } from '../../../library';
2
+ import { UserJPLSelectorParams } from '../../params';
3
+ import { default as JPLRuntime } from '../../../runtime';
4
+ declare const _default: {
5
+ /** { pipe: [op], optional: boolean } */
6
+ op(runtime: JPLRuntime, input: unknown, target: unknown, params: JPLSelectorParams, scope: JPLRuntimeScope, next: (output: unknown) => Promise<unknown[]> | unknown[]): Promise<unknown[]>;
7
+ /** { pipe: function, optional: boolean } */
8
+ map(runtime: JPLRuntime, params: UserJPLSelectorParams): JPLSelectorParams;
9
+ };
10
+ export default _default;
@@ -0,0 +1,10 @@
1
+ import { JPLRuntimeScope, JPLSelectorParams } from '../../../library';
2
+ import { UserJPLSelectorParams } from '../../params';
3
+ import { default as JPLRuntime } from '../../../runtime';
4
+ declare const _default: {
5
+ /** { args: [[op]], bound: boolean, optional: boolean } */
6
+ op(runtime: JPLRuntime, input: unknown, target: unknown, params: JPLSelectorParams, scope: JPLRuntimeScope, next: (output: unknown) => Promise<unknown[]> | unknown[]): Promise<unknown[]>;
7
+ /** { args: [function], bound: boolean, optional: boolean } */
8
+ map(runtime: JPLRuntime, params: UserJPLSelectorParams): JPLSelectorParams;
9
+ };
10
+ export default _default;
@@ -0,0 +1,10 @@
1
+ import { JPLRuntimeScope, JPLSelectorParams } from '../../../library';
2
+ import { UserJPLSelectorParams } from '../../params';
3
+ import { default as JPLRuntime } from '../../../runtime';
4
+ declare const _default: {
5
+ /** { optional: boolean } */
6
+ op(runtime: JPLRuntime, _input: unknown, target: unknown, params: JPLSelectorParams, _scope: JPLRuntimeScope, next: (output: unknown) => Promise<unknown[]> | unknown[]): Promise<unknown[]> | unknown[];
7
+ /** { optional: boolean } */
8
+ map(runtime: JPLRuntime, params: UserJPLSelectorParams): JPLSelectorParams;
9
+ };
10
+ export default _default;
@@ -0,0 +1,10 @@
1
+ import { JPLRuntimeScope, JPLSelectorParams } from '../../../library';
2
+ import { UserJPLSelectorParams } from '../../params';
3
+ import { default as JPLRuntime } from '../../../runtime';
4
+ declare const _default: {
5
+ /** { from: [op], to: [op], optional: boolean } */
6
+ op(runtime: JPLRuntime, input: unknown, target: unknown, params: JPLSelectorParams, scope: JPLRuntimeScope, next: (output: unknown) => Promise<unknown[]> | unknown[]): Promise<unknown[]>;
7
+ /** { from: function, to: function, optional: boolean } */
8
+ map(runtime: JPLRuntime, params: UserJPLSelectorParams): JPLSelectorParams;
9
+ };
10
+ export default _default;
@@ -0,0 +1,10 @@
1
+ import { JPLInstructionParams, JPLRuntimeScope } from '../../library';
2
+ import { UserJPLInstructionParams } from '../params';
3
+ import { default as JPLRuntime } from '../../runtime';
4
+ declare const _default: {
5
+ /** { pipes: [[op]] } */
6
+ op(runtime: JPLRuntime, input: unknown, params: JPLInstructionParams, scope: JPLRuntimeScope, next: (output: unknown, scope: JPLRuntimeScope) => Promise<unknown[]> | unknown[]): Promise<unknown[]>;
7
+ /** { pipes: [function] } */
8
+ map(runtime: JPLRuntime, params: UserJPLInstructionParams): JPLInstructionParams;
9
+ };
10
+ export default _default;
@@ -0,0 +1,10 @@
1
+ import { JPLInstructionParams, JPLRuntimeScope } from '../../library';
2
+ import { UserJPLInstructionParams } from '../params';
3
+ import { default as JPLRuntime } from '../../runtime';
4
+ declare const _default: {
5
+ /** { pipe: [op] } */
6
+ op(runtime: JPLRuntime, input: unknown, params: JPLInstructionParams, scope: JPLRuntimeScope, next: (output: unknown, scope: JPLRuntimeScope) => Promise<unknown[]> | unknown[]): Promise<unknown[]>;
7
+ /** { pipe: function } */
8
+ map(_runtime: JPLRuntime, params: UserJPLInstructionParams): JPLInstructionParams;
9
+ };
10
+ export default _default;
@@ -0,0 +1,10 @@
1
+ import { JPLInstructionParams, JPLRuntimeScope } from '../../../library';
2
+ import { UserJPLInstructionParams } from '../../params';
3
+ import { default as JPLRuntime } from '../../../runtime';
4
+ declare const _default: {
5
+ /** { pipe: [op], selectors: [opa], assignment: [opu] } */
6
+ op(runtime: JPLRuntime, input: unknown, params: JPLInstructionParams, scope: JPLRuntimeScope, next: (output: unknown, scope: JPLRuntimeScope) => Promise<unknown[]> | unknown[]): Promise<unknown[]>;
7
+ /** { pipe: function, selectors: [opa], assignment: opu } */
8
+ map(runtime: JPLRuntime, params: UserJPLInstructionParams): JPLInstructionParams;
9
+ };
10
+ export default _default;
@@ -0,0 +1,10 @@
1
+ import { JPLRuntimeScope, JPLSelectorParams } from '../../../library';
2
+ import { UserJPLSelectorParams } from '../../params';
3
+ import { default as JPLRuntime } from '../../../runtime';
4
+ declare const _default: {
5
+ /** { pipe: [op], optional: boolean } */
6
+ op(runtime: JPLRuntime, input: unknown, target: unknown, params: JPLSelectorParams, scope: JPLRuntimeScope, next: (output: unknown) => Promise<unknown[]> | unknown[]): Promise<unknown[]>;
7
+ /** { pipe: function, optional: boolean } */
8
+ map(runtime: JPLRuntime, params: UserJPLSelectorParams): JPLSelectorParams;
9
+ };
10
+ export default _default;
@@ -0,0 +1,10 @@
1
+ import { JPLRuntimeScope, JPLSelectorParams } from '../../../library';
2
+ import { UserJPLSelectorParams } from '../../params';
3
+ import { default as JPLRuntime } from '../../../runtime';
4
+ declare const _default: {
5
+ /** { optional: boolean } */
6
+ op(runtime: JPLRuntime, _input: unknown, target: unknown, params: JPLSelectorParams, _scope: JPLRuntimeScope, next: (output: unknown) => Promise<unknown[]> | unknown[]): Promise<unknown[]>;
7
+ /** { optional: boolean } */
8
+ map(runtime: JPLRuntime, params: UserJPLSelectorParams): JPLSelectorParams;
9
+ };
10
+ export default _default;
@@ -0,0 +1,10 @@
1
+ import { JPLRuntimeScope, JPLSelectorParams } from '../../../library';
2
+ import { UserJPLSelectorParams } from '../../params';
3
+ import { default as JPLRuntime } from '../../../runtime';
4
+ declare const _default: {
5
+ /** { from: [op], to: [op], optional: boolean } */
6
+ op(runtime: JPLRuntime, input: unknown, target: unknown, params: JPLSelectorParams, scope: JPLRuntimeScope, next: (output: unknown) => Promise<unknown[]> | unknown[]): Promise<unknown[]>;
7
+ /** { from: function, to: function, optional: boolean } */
8
+ map(runtime: JPLRuntime, params: UserJPLSelectorParams): JPLSelectorParams;
9
+ };
10
+ export default _default;
@@ -0,0 +1,10 @@
1
+ import { JPLAssignmentParams, JPLRuntimeScope } from '../../../library';
2
+ import { UserJPLAssignmentParams } from '../../params';
3
+ import { default as JPLRuntime } from '../../../runtime';
4
+ declare const _default: {
5
+ /** { pipe: [op] } */
6
+ op(runtime: JPLRuntime, input: unknown, target: unknown, params: JPLAssignmentParams, scope: JPLRuntimeScope, next: (output: unknown) => Promise<unknown[]> | unknown[]): Promise<unknown[]>;
7
+ /** { pipe: function } */
8
+ map(_runtime: JPLRuntime, params: UserJPLAssignmentParams): JPLAssignmentParams;
9
+ };
10
+ export default _default;
@@ -0,0 +1,10 @@
1
+ import { JPLAssignmentParams, JPLRuntimeScope } from '../../../library';
2
+ import { UserJPLAssignmentParams } from '../../params';
3
+ import { default as JPLRuntime } from '../../../runtime';
4
+ declare const _default: {
5
+ /** { pipe: [op] } */
6
+ op(runtime: JPLRuntime, input: unknown, target: unknown, params: JPLAssignmentParams, scope: JPLRuntimeScope, next: (output: unknown) => Promise<unknown[]> | unknown[]): Promise<unknown[]>;
7
+ /** { pipe: function } */
8
+ map(_runtime: JPLRuntime, params: UserJPLAssignmentParams): JPLAssignmentParams;
9
+ };
10
+ export default _default;
@@ -0,0 +1,10 @@
1
+ import { JPLAssignmentParams, JPLRuntimeScope } from '../../../library';
2
+ import { UserJPLAssignmentParams } from '../../params';
3
+ import { default as JPLRuntime } from '../../../runtime';
4
+ declare const _default: {
5
+ /** { pipe: [op] } */
6
+ op(runtime: JPLRuntime, input: unknown, target: unknown, params: JPLAssignmentParams, scope: JPLRuntimeScope, next: (output: unknown) => Promise<unknown[]> | unknown[]): Promise<unknown[]>;
7
+ /** { pipe: function } */
8
+ map(_runtime: JPLRuntime, params: UserJPLAssignmentParams): JPLAssignmentParams;
9
+ };
10
+ export default _default;
@@ -0,0 +1,10 @@
1
+ import { JPLAssignmentParams, JPLRuntimeScope } from '../../../library';
2
+ import { UserJPLAssignmentParams } from '../../params';
3
+ import { default as JPLRuntime } from '../../../runtime';
4
+ declare const _default: {
5
+ /** { pipe: [op] } */
6
+ op(runtime: JPLRuntime, input: unknown, target: unknown, params: JPLAssignmentParams, scope: JPLRuntimeScope, next: (output: unknown) => Promise<unknown[]> | unknown[]): Promise<unknown[]>;
7
+ /** { pipe: function } */
8
+ map(_runtime: JPLRuntime, params: UserJPLAssignmentParams): JPLAssignmentParams;
9
+ };
10
+ export default _default;
@@ -0,0 +1,10 @@
1
+ import { JPLAssignmentParams, JPLRuntimeScope } from '../../../library';
2
+ import { UserJPLAssignmentParams } from '../../params';
3
+ import { default as JPLRuntime } from '../../../runtime';
4
+ declare const _default: {
5
+ /** { pipe: [op] } */
6
+ op(runtime: JPLRuntime, input: unknown, target: unknown, params: JPLAssignmentParams, scope: JPLRuntimeScope, next: (output: unknown) => Promise<unknown[]> | unknown[]): Promise<unknown[]>;
7
+ /** { pipe: function } */
8
+ map(_runtime: JPLRuntime, params: UserJPLAssignmentParams): JPLAssignmentParams;
9
+ };
10
+ export default _default;
@@ -0,0 +1,10 @@
1
+ import { JPLAssignmentParams, JPLRuntimeScope } from '../../../library';
2
+ import { UserJPLAssignmentParams } from '../../params';
3
+ import { default as JPLRuntime } from '../../../runtime';
4
+ declare const _default: {
5
+ /** { pipe: [op] } */
6
+ op(runtime: JPLRuntime, input: unknown, _target: unknown, params: JPLAssignmentParams, scope: JPLRuntimeScope, next: (output: unknown) => Promise<unknown[]> | unknown[]): Promise<unknown[]>;
7
+ /** { pipe: function } */
8
+ map(_runtime: JPLRuntime, params: UserJPLAssignmentParams): JPLAssignmentParams;
9
+ };
10
+ export default _default;
@@ -0,0 +1,10 @@
1
+ import { JPLAssignmentParams, JPLRuntimeScope } from '../../../library';
2
+ import { UserJPLAssignmentParams } from '../../params';
3
+ import { default as JPLRuntime } from '../../../runtime';
4
+ declare const _default: {
5
+ /** { pipe: [op] } */
6
+ op(runtime: JPLRuntime, input: unknown, target: unknown, params: JPLAssignmentParams, scope: JPLRuntimeScope, next: (output: unknown) => Promise<unknown[]> | unknown[]): Promise<unknown[]>;
7
+ /** { pipe: function } */
8
+ map(_runtime: JPLRuntime, params: UserJPLAssignmentParams): JPLAssignmentParams;
9
+ };
10
+ export default _default;
@@ -0,0 +1,10 @@
1
+ import { JPLAssignmentParams, JPLRuntimeScope } from '../../../library';
2
+ import { UserJPLAssignmentParams } from '../../params';
3
+ import { default as JPLRuntime } from '../../../runtime';
4
+ declare const _default: {
5
+ /** { pipe: [op] } */
6
+ op(runtime: JPLRuntime, _input: unknown, target: unknown, params: JPLAssignmentParams, scope: JPLRuntimeScope, next: (output: unknown) => Promise<unknown[]> | unknown[]): Promise<unknown[]>;
7
+ /** { pipe: function } */
8
+ map(_runtime: JPLRuntime, params: UserJPLAssignmentParams): JPLAssignmentParams;
9
+ };
10
+ export default _default;
@@ -0,0 +1,10 @@
1
+ import { JPLInstructionParams, JPLRuntimeScope } from '../../../library';
2
+ import { UserJPLInstructionParams } from '../../params';
3
+ import { default as JPLRuntime } from '../../../runtime';
4
+ declare const _default: {
5
+ /** { pipe: [op], operations: [opm] } */
6
+ op(runtime: JPLRuntime, input: unknown, params: JPLInstructionParams, scope: JPLRuntimeScope, next: (output: unknown, scope: JPLRuntimeScope) => Promise<unknown[]> | unknown[]): Promise<unknown[]>;
7
+ /** { pipe: function, operations: [opm] } */
8
+ map(runtime: JPLRuntime, params: UserJPLInstructionParams): JPLInstructionParams;
9
+ };
10
+ export default _default;
@@ -0,0 +1,10 @@
1
+ import { JPLOperationParams, JPLRuntimeScope } from '../../../library';
2
+ import { UserJPLOperationParams } from '../../params';
3
+ import { default as JPLRuntime } from '../../../runtime';
4
+ declare const _default: {
5
+ /** { by: [op] } */
6
+ op(runtime: JPLRuntime, input: unknown, target: unknown, params: JPLOperationParams, scope: JPLRuntimeScope, next: (output: unknown) => Promise<unknown[]> | unknown[]): Promise<unknown[]>;
7
+ /** { by: function } */
8
+ map(_runtime: JPLRuntime, params: UserJPLOperationParams): JPLOperationParams;
9
+ };
10
+ export default _default;
@@ -0,0 +1,10 @@
1
+ import { JPLOperationParams, JPLRuntimeScope } from '../../../library';
2
+ import { UserJPLOperationParams } from '../../params';
3
+ import { default as JPLRuntime } from '../../../runtime';
4
+ declare const _default: {
5
+ /** { by: [op] } */
6
+ op(runtime: JPLRuntime, input: unknown, target: unknown, params: JPLOperationParams, scope: JPLRuntimeScope, next: (output: unknown) => Promise<unknown[]> | unknown[]): Promise<unknown[]>;
7
+ /** { by: function } */
8
+ map(_runtime: JPLRuntime, params: UserJPLOperationParams): JPLOperationParams;
9
+ };
10
+ export default _default;
@@ -0,0 +1,10 @@
1
+ import { JPLOperationParams, JPLRuntimeScope } from '../../../library';
2
+ import { UserJPLOperationParams } from '../../params';
3
+ import { default as JPLRuntime } from '../../../runtime';
4
+ declare const _default: {
5
+ /** { by: [op] } */
6
+ op(runtime: JPLRuntime, input: unknown, target: unknown, params: JPLOperationParams, scope: JPLRuntimeScope, next: (output: unknown) => Promise<unknown[]> | unknown[]): Promise<unknown[]>;
7
+ /** { by: function } */
8
+ map(_runtime: JPLRuntime, params: UserJPLOperationParams): JPLOperationParams;
9
+ };
10
+ export default _default;
@@ -0,0 +1,10 @@
1
+ import { JPLOperationParams, JPLRuntimeScope } from '../../../library';
2
+ import { UserJPLOperationParams } from '../../params';
3
+ import { default as JPLRuntime } from '../../../runtime';
4
+ declare const _default: {
5
+ /** { by: [op] } */
6
+ op(runtime: JPLRuntime, input: unknown, target: unknown, params: JPLOperationParams, scope: JPLRuntimeScope, next: (output: unknown) => Promise<unknown[]> | unknown[]): Promise<unknown[]>;
7
+ /** { by: function } */
8
+ map(_runtime: JPLRuntime, params: UserJPLOperationParams): JPLOperationParams;
9
+ };
10
+ export default _default;
@@ -0,0 +1,10 @@
1
+ import { JPLOperationParams, JPLRuntimeScope } from '../../../library';
2
+ import { UserJPLOperationParams } from '../../params';
3
+ import { default as JPLRuntime } from '../../../runtime';
4
+ declare const _default: {
5
+ /** { by: [op] } */
6
+ op(runtime: JPLRuntime, input: unknown, target: unknown, params: JPLOperationParams, scope: JPLRuntimeScope, next: (output: unknown) => Promise<unknown[]> | unknown[]): Promise<unknown[]>;
7
+ /** { by: function } */
8
+ map(_runtime: JPLRuntime, params: UserJPLOperationParams): JPLOperationParams;
9
+ };
10
+ export default _default;
@@ -0,0 +1,10 @@
1
+ import { JPLInstructionParams, JPLRuntimeScope } from '../../../library';
2
+ import { UserJPLInstructionParams } from '../../params';
3
+ import { default as JPLRuntime } from '../../../runtime';
4
+ declare const _default: {
5
+ /** { pipe: [op], comparisons: [opc] } */
6
+ op(runtime: JPLRuntime, input: unknown, params: JPLInstructionParams, scope: JPLRuntimeScope, next: (output: unknown, scope: JPLRuntimeScope) => Promise<unknown[]> | unknown[]): Promise<unknown[]>;
7
+ /** { pipe: function, comparisons: [opc] } */
8
+ map(runtime: JPLRuntime, params: UserJPLInstructionParams): JPLInstructionParams;
9
+ };
10
+ export default _default;
@@ -0,0 +1,10 @@
1
+ import { JPLComparisonParams, JPLRuntimeScope } from '../../../library';
2
+ import { UserJPLComparisonParams } from '../../params';
3
+ import { default as JPLRuntime } from '../../../runtime';
4
+ declare const _default: {
5
+ /** { by: [op] } */
6
+ op(runtime: JPLRuntime, input: unknown, target: unknown, params: JPLComparisonParams, scope: JPLRuntimeScope, next: (output: unknown) => Promise<unknown[]> | unknown[]): Promise<unknown[]>;
7
+ /** { by: function } */
8
+ map(_runtime: JPLRuntime, params: UserJPLComparisonParams): JPLComparisonParams;
9
+ };
10
+ export default _default;
@@ -0,0 +1,10 @@
1
+ import { JPLComparisonParams, JPLRuntimeScope } from '../../../library';
2
+ import { UserJPLComparisonParams } from '../../params';
3
+ import { default as JPLRuntime } from '../../../runtime';
4
+ declare const _default: {
5
+ /** { by: [op] } */
6
+ op(runtime: JPLRuntime, input: unknown, target: unknown, params: JPLComparisonParams, scope: JPLRuntimeScope, next: (output: unknown) => Promise<unknown[]> | unknown[]): Promise<unknown[]>;
7
+ /** { by: function } */
8
+ map(_runtime: JPLRuntime, params: UserJPLComparisonParams): JPLComparisonParams;
9
+ };
10
+ export default _default;
@@ -0,0 +1,10 @@
1
+ import { JPLComparisonParams, JPLRuntimeScope } from '../../../library';
2
+ import { UserJPLComparisonParams } from '../../params';
3
+ import { default as JPLRuntime } from '../../../runtime';
4
+ declare const _default: {
5
+ /** { by: [op] } */
6
+ op(runtime: JPLRuntime, input: unknown, target: unknown, params: JPLComparisonParams, scope: JPLRuntimeScope, next: (output: unknown) => Promise<unknown[]> | unknown[]): Promise<unknown[]>;
7
+ /** { by: function } */
8
+ map(_runtime: JPLRuntime, params: UserJPLComparisonParams): JPLComparisonParams;
9
+ };
10
+ export default _default;
@@ -0,0 +1,10 @@
1
+ import { JPLComparisonParams, JPLRuntimeScope } from '../../../library';
2
+ import { UserJPLComparisonParams } from '../../params';
3
+ import { default as JPLRuntime } from '../../../runtime';
4
+ declare const _default: {
5
+ /** { by: [op] } */
6
+ op(runtime: JPLRuntime, input: unknown, target: unknown, params: JPLComparisonParams, scope: JPLRuntimeScope, next: (output: unknown) => Promise<unknown[]> | unknown[]): Promise<unknown[]>;
7
+ /** { by: function } */
8
+ map(_runtime: JPLRuntime, params: UserJPLComparisonParams): JPLComparisonParams;
9
+ };
10
+ export default _default;
@@ -0,0 +1,10 @@
1
+ import { JPLComparisonParams, JPLRuntimeScope } from '../../../library';
2
+ import { UserJPLComparisonParams } from '../../params';
3
+ import { default as JPLRuntime } from '../../../runtime';
4
+ declare const _default: {
5
+ /** { by: [op] } */
6
+ op(runtime: JPLRuntime, input: unknown, target: unknown, params: JPLComparisonParams, scope: JPLRuntimeScope, next: (output: unknown) => Promise<unknown[]> | unknown[]): Promise<unknown[]>;
7
+ /** { by: function } */
8
+ map(_runtime: JPLRuntime, params: UserJPLComparisonParams): JPLComparisonParams;
9
+ };
10
+ export default _default;
@@ -0,0 +1,10 @@
1
+ import { JPLComparisonParams, JPLRuntimeScope } from '../../../library';
2
+ import { UserJPLComparisonParams } from '../../params';
3
+ import { default as JPLRuntime } from '../../../runtime';
4
+ declare const _default: {
5
+ /** { by: [op] } */
6
+ op(runtime: JPLRuntime, input: unknown, target: unknown, params: JPLComparisonParams, scope: JPLRuntimeScope, next: (output: unknown) => Promise<unknown[]> | unknown[]): Promise<unknown[]>;
7
+ /** { by: function } */
8
+ map(_runtime: JPLRuntime, params: UserJPLComparisonParams): JPLComparisonParams;
9
+ };
10
+ export default _default;
@@ -0,0 +1,10 @@
1
+ import { JPLInstructionParams, JPLRuntimeScope } from '../../library';
2
+ import { UserJPLInstructionParams } from '../params';
3
+ import { default as JPLRuntime } from '../../runtime';
4
+ declare const _default: {
5
+ /** { value: any } */
6
+ op(_runtime: JPLRuntime, _input: unknown, params: JPLInstructionParams, scope: JPLRuntimeScope, next: (output: unknown, scope: JPLRuntimeScope) => Promise<unknown[]> | unknown[]): Promise<unknown[]> | unknown[];
7
+ /** { value: any } */
8
+ map(runtime: JPLRuntime, params: UserJPLInstructionParams): JPLInstructionParams;
9
+ };
10
+ export default _default;
@@ -0,0 +1,10 @@
1
+ import { JPLInstructionParams, JPLRuntimeScope } from '../../library';
2
+ import { UserJPLInstructionParams } from '../params';
3
+ import { default as JPLRuntime } from '../../runtime';
4
+ declare const _default: {
5
+ /** { value: any } */
6
+ op(_runtime: JPLRuntime, _input: unknown, _params: JPLInstructionParams, scope: JPLRuntimeScope, next: (output: unknown, scope: JPLRuntimeScope) => Promise<unknown[]> | unknown[]): Promise<unknown[]> | unknown[];
7
+ /** { value: any } */
8
+ map(_runtime: JPLRuntime, _params: UserJPLInstructionParams): JPLInstructionParams;
9
+ };
10
+ export default _default;
@@ -0,0 +1,10 @@
1
+ import { JPLInstructionParams, JPLRuntimeScope } from '../../library';
2
+ import { UserJPLInstructionParams } from '../params';
3
+ import { default as JPLRuntime } from '../../runtime';
4
+ declare const _default: {
5
+ /** { value: any } */
6
+ op(_runtime: JPLRuntime, _input: unknown, _params: JPLInstructionParams, scope: JPLRuntimeScope, next: (output: unknown, scope: JPLRuntimeScope) => Promise<unknown[]> | unknown[]): Promise<unknown[]> | unknown[];
7
+ /** { value: any } */
8
+ map(_runtime: JPLRuntime, _params: UserJPLInstructionParams): JPLInstructionParams;
9
+ };
10
+ export default _default;
@@ -0,0 +1,10 @@
1
+ import { JPLInstructionParams, JPLRuntimeScope } from '../../library';
2
+ import { UserJPLInstructionParams } from '../params';
3
+ import { default as JPLRuntime } from '../../runtime';
4
+ declare const _default: {
5
+ /** { value: any } */
6
+ op(_runtime: JPLRuntime, _input: unknown, _params: JPLInstructionParams, scope: JPLRuntimeScope, next: (output: unknown, scope: JPLRuntimeScope) => Promise<unknown[]> | unknown[]): Promise<unknown[]> | unknown[];
7
+ /** { value: any } */
8
+ map(_runtime: JPLRuntime, _params: UserJPLInstructionParams): JPLInstructionParams;
9
+ };
10
+ export default _default;
@@ -0,0 +1,10 @@
1
+ import { JPLInstructionParams, JPLRuntimeScope } from '../../library';
2
+ import { UserJPLInstructionParams } from '../params';
3
+ import { default as JPLRuntime } from '../../runtime';
4
+ declare const _default: {
5
+ /** { argNames: [string], pipe: [op] } */
6
+ op(_runtime: JPLRuntime, _input: unknown, params: JPLInstructionParams, scope: JPLRuntimeScope, next: (output: unknown, scope: JPLRuntimeScope) => Promise<unknown[]> | unknown[]): Promise<unknown[]> | unknown[];
7
+ /** { argNames: [string], pipe: function } */
8
+ map(runtime: JPLRuntime, params: UserJPLInstructionParams): JPLInstructionParams;
9
+ };
10
+ export default _default;