@eagleoutice/flowr 2.15.5 → 2.15.9

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 (630) hide show
  1. package/README.md +39 -280
  2. package/abstract-interpretation/absint-inference.d.ts +5 -5
  3. package/abstract-interpretation/absint-inference.js +12 -12
  4. package/abstract-interpretation/abstract-semantics.d.ts +10 -10
  5. package/abstract-interpretation/data-frame/arguments.d.ts +9 -9
  6. package/abstract-interpretation/data-frame/arguments.js +11 -11
  7. package/abstract-interpretation/data-frame/dataframe-semantics.d.ts +1 -1
  8. package/abstract-interpretation/data-frame/dataframe-semantics.js +14 -14
  9. package/abstract-interpretation/unsupported-functions.d.ts +0 -1
  10. package/abstract-interpretation/unsupported-functions.js +1 -2
  11. package/abstract-interpretation/value-semantics.d.ts +1 -1
  12. package/abstract-interpretation/value-semantics.js +2 -3
  13. package/benchmark/calibration.d.ts +0 -2
  14. package/benchmark/calibration.js +0 -5
  15. package/benchmark/slicer.d.ts +2 -2
  16. package/benchmark/slicer.js +4 -4
  17. package/benchmark/stats/size-of.d.ts +1 -1
  18. package/benchmark/stats/size-of.js +2 -2
  19. package/benchmark/summarizer/first-phase/process.d.ts +1 -1
  20. package/benchmark/summarizer/first-phase/process.js +1 -1
  21. package/benchmark/summarizer/second-phase/graph.d.ts +1 -1
  22. package/benchmark/summarizer/second-phase/graph.js +1 -1
  23. package/cli/benchmark-app.js +3 -3
  24. package/cli/common/options.d.ts +0 -16
  25. package/cli/common/options.js +0 -3
  26. package/cli/common/scripts-info.d.ts +0 -16
  27. package/cli/compile-cache.d.ts +1 -0
  28. package/cli/compile-cache.js +19 -0
  29. package/cli/flowr-main-options.d.ts +5 -0
  30. package/cli/flowr-main-options.js +6 -0
  31. package/cli/flowr.d.ts +13 -0
  32. package/cli/flowr.js +27 -2
  33. package/cli/repl/commands/repl-clipboard.d.ts +4 -1
  34. package/cli/repl/commands/repl-clipboard.js +4 -1
  35. package/cli/repl/commands/repl-main.d.ts +0 -2
  36. package/cli/repl/commands/repl-main.js +0 -5
  37. package/cli/repl/commands/repl-normalize.js +3 -0
  38. package/cli/repl/commands/repl-parse.js +27 -0
  39. package/cli/repl/commands/repl-signature.js +17 -1
  40. package/cli/script-core/summarizer-core.js +0 -9
  41. package/cli/summarizer-app.d.ts +0 -3
  42. package/cli/wiki.d.ts +2 -2
  43. package/cli/wiki.js +18 -2
  44. package/config.d.ts +54 -5
  45. package/config.js +44 -8
  46. package/control-flow/cfg-dead-code.js +5 -4
  47. package/control-flow/cfg-properties.d.ts +2 -2
  48. package/control-flow/cfg-properties.js +2 -2
  49. package/control-flow/control-flow-graph.d.ts +32 -10
  50. package/control-flow/control-flow-graph.js +22 -10
  51. package/control-flow/diff-cfg.js +3 -2
  52. package/control-flow/happens-before.d.ts +6 -0
  53. package/control-flow/happens-before.js +42 -0
  54. package/control-flow/semantic-cfg-guided-visitor.d.ts +1 -1
  55. package/control-flow/semantic-cfg-guided-visitor.js +5 -2
  56. package/control-flow/simple-visitor.d.ts +2 -7
  57. package/control-flow/simple-visitor.js +2 -6
  58. package/control-flow/useless-loop.d.ts +2 -2
  59. package/control-flow/useless-loop.js +11 -8
  60. package/core/pipeline-executor.d.ts +2 -2
  61. package/core/pipeline-executor.js +2 -2
  62. package/core/steps/all/core/20-dataflow.d.ts +2 -2
  63. package/core/steps/all/static-slicing/00-slice.d.ts +1 -1
  64. package/core/steps/all/static-slicing/00-slice.js +1 -1
  65. package/core/steps/all/static-slicing/10-reconstruct.js +1 -1
  66. package/core/steps/pipeline/default-pipelines.d.ts +16 -16
  67. package/core/steps/pipeline/pipeline.d.ts +1 -6
  68. package/data/r-base-packages.generated.d.ts +2 -2
  69. package/data/r-base-packages.generated.js +4 -4
  70. package/dataflow/cluster.js +1 -1
  71. package/dataflow/environments/apply-kill.d.ts +4 -0
  72. package/dataflow/environments/apply-kill.js +43 -8
  73. package/dataflow/environments/built-in-config.d.ts +7 -2
  74. package/dataflow/environments/built-in-config.js +7 -5
  75. package/dataflow/environments/built-in-eval-name.d.ts +4 -2
  76. package/dataflow/environments/built-in-eval-name.js +3 -1
  77. package/dataflow/environments/built-in-proc-name.d.ts +2 -0
  78. package/dataflow/environments/built-in-proc-name.js +2 -0
  79. package/dataflow/environments/built-in-props.d.ts +23 -7
  80. package/dataflow/environments/built-in-props.js +27 -10
  81. package/dataflow/environments/built-in.d.ts +5 -6
  82. package/dataflow/environments/built-in.js +12 -16
  83. package/dataflow/environments/data-masking-functions.js +1 -1
  84. package/dataflow/environments/default-builtin-config.d.ts +278 -32
  85. package/dataflow/environments/default-builtin-config.js +139 -85
  86. package/dataflow/environments/environment.d.ts +16 -19
  87. package/dataflow/environments/environment.js +54 -48
  88. package/dataflow/environments/frame-memory.d.ts +54 -69
  89. package/dataflow/environments/frame-memory.js +146 -190
  90. package/dataflow/environments/identifier.d.ts +69 -9
  91. package/dataflow/environments/identifier.js +99 -13
  92. package/dataflow/environments/query-fn-props.d.ts +8 -2
  93. package/dataflow/environments/query-fn-props.js +20 -12
  94. package/dataflow/environments/reference-to-maybe.js +1 -1
  95. package/dataflow/environments/removal-marker.d.ts +7 -0
  96. package/dataflow/environments/removal-marker.js +20 -0
  97. package/dataflow/environments/resolve-by-name.d.ts +8 -8
  98. package/dataflow/environments/resolve-by-name.js +15 -12
  99. package/dataflow/environments/resolve-helper.d.ts +26 -4
  100. package/dataflow/environments/resolve-helper.js +27 -4
  101. package/dataflow/eval/resolve/alias-tracking.d.ts +17 -17
  102. package/dataflow/eval/resolve/alias-tracking.js +57 -32
  103. package/dataflow/eval/resolve/node-value.d.ts +15 -28
  104. package/dataflow/eval/resolve/node-value.js +26 -45
  105. package/dataflow/eval/resolve/resolve-argument.js +21 -2
  106. package/dataflow/eval/resolve/resolve-get.d.ts +28 -0
  107. package/dataflow/eval/resolve/resolve-get.js +49 -0
  108. package/dataflow/eval/resolve/resolve-numbers.d.ts +4 -2
  109. package/dataflow/eval/resolve/resolve-numbers.js +4 -2
  110. package/dataflow/eval/resolve/resolve-operators.d.ts +4 -1
  111. package/dataflow/eval/resolve/resolve-operators.js +7 -3
  112. package/dataflow/eval/resolve/resolve-strings.d.ts +6 -3
  113. package/dataflow/eval/resolve/resolve-strings.js +29 -5
  114. package/dataflow/eval/resolve/resolve-working-directory.js +2 -8
  115. package/dataflow/eval/resolve/resolve.js +27 -15
  116. package/dataflow/eval/values/general.js +13 -12
  117. package/dataflow/eval/values/intervals/interval-constants.d.ts +10 -2
  118. package/dataflow/eval/values/intervals/interval-constants.js +10 -2
  119. package/dataflow/eval/values/logical/logical-constants.d.ts +1 -8
  120. package/dataflow/eval/values/logical/logical-constants.js +1 -23
  121. package/dataflow/eval/values/r-value.d.ts +8 -9
  122. package/dataflow/eval/values/r-value.js +8 -8
  123. package/dataflow/eval/values/scalar/scalar-constants.d.ts +1 -12
  124. package/dataflow/eval/values/scalar/scalar-constants.js +0 -14
  125. package/dataflow/eval/values/sets/set-constants.d.ts +1 -4
  126. package/dataflow/eval/values/sets/set-constants.js +0 -11
  127. package/dataflow/eval/values/string/string-constants.d.ts +4 -18
  128. package/dataflow/eval/values/string/string-constants.js +3 -18
  129. package/dataflow/eval/values/vectors/vector-constants.d.ts +1 -1
  130. package/dataflow/eval/values/vectors/vector-constants.js +1 -1
  131. package/dataflow/extractor.js +176 -13
  132. package/dataflow/fn/argument-roles.d.ts +10 -12
  133. package/dataflow/fn/argument-roles.js +16 -22
  134. package/dataflow/fn/class-declaration.d.ts +8 -30
  135. package/dataflow/fn/class-declaration.js +12 -37
  136. package/dataflow/fn/exceptions-of-function.d.ts +3 -16
  137. package/dataflow/fn/exceptions-of-function.js +5 -21
  138. package/dataflow/fn/frame-reflection.d.ts +5 -19
  139. package/dataflow/fn/frame-reflection.js +14 -29
  140. package/dataflow/fn/function-props.d.ts +9 -10
  141. package/dataflow/fn/function-props.js +16 -20
  142. package/dataflow/fn/function-semantics.d.ts +130 -0
  143. package/dataflow/fn/function-semantics.js +89 -0
  144. package/dataflow/fn/higher-order-function.d.ts +8 -16
  145. package/dataflow/fn/higher-order-function.js +17 -28
  146. package/dataflow/fn/recursive-function.js +1 -1
  147. package/dataflow/fn/strict-function.d.ts +8 -20
  148. package/dataflow/fn/strict-function.js +20 -38
  149. package/dataflow/graph/call-graph.d.ts +9 -0
  150. package/dataflow/graph/call-graph.js +15 -14
  151. package/dataflow/graph/dataflowgraph-builder.d.ts +18 -23
  152. package/dataflow/graph/dataflowgraph-builder.js +18 -29
  153. package/dataflow/graph/df-helper.d.ts +22 -109
  154. package/dataflow/graph/df-helper.js +20 -64
  155. package/dataflow/graph/diff-dataflow-graph.d.ts +5 -0
  156. package/dataflow/graph/diff-dataflow-graph.js +12 -7
  157. package/dataflow/graph/edge.d.ts +1 -0
  158. package/dataflow/graph/edge.js +1 -0
  159. package/dataflow/graph/graph-helper.d.ts +26 -1
  160. package/dataflow/graph/graph-helper.js +53 -2
  161. package/dataflow/graph/graph.d.ts +42 -7
  162. package/dataflow/graph/graph.js +43 -9
  163. package/dataflow/graph/match-args.d.ts +16 -12
  164. package/dataflow/graph/match-args.js +68 -26
  165. package/dataflow/graph/vertex.d.ts +38 -57
  166. package/dataflow/graph/vertex.js +38 -66
  167. package/dataflow/info.d.ts +5 -2
  168. package/dataflow/info.js +3 -1
  169. package/dataflow/internal/control-flow.d.ts +13 -12
  170. package/dataflow/internal/control-flow.js +13 -12
  171. package/dataflow/internal/linker.d.ts +24 -15
  172. package/dataflow/internal/linker.js +115 -33
  173. package/dataflow/internal/process/functions/call/argument/make-argument.d.ts +1 -1
  174. package/dataflow/internal/process/functions/call/argument/make-argument.js +17 -1
  175. package/dataflow/internal/process/functions/call/built-in/built-in-access.js +6 -8
  176. package/dataflow/internal/process/functions/call/built-in/built-in-apply.js +8 -7
  177. package/dataflow/internal/process/functions/call/built-in/built-in-assignment.d.ts +17 -3
  178. package/dataflow/internal/process/functions/call/built-in/built-in-assignment.js +112 -39
  179. package/dataflow/internal/process/functions/call/built-in/built-in-class-generator.js +10 -2
  180. package/dataflow/internal/process/functions/call/built-in/built-in-class-relation.d.ts +1 -1
  181. package/dataflow/internal/process/functions/call/built-in/built-in-env-contents.d.ts +21 -0
  182. package/dataflow/internal/process/functions/call/built-in/built-in-env-contents.js +99 -0
  183. package/dataflow/internal/process/functions/call/built-in/built-in-envir-utils.d.ts +56 -13
  184. package/dataflow/internal/process/functions/call/built-in/built-in-envir-utils.js +179 -45
  185. package/dataflow/internal/process/functions/call/built-in/built-in-eval.d.ts +2 -0
  186. package/dataflow/internal/process/functions/call/built-in/built-in-eval.js +46 -5
  187. package/dataflow/internal/process/functions/call/built-in/built-in-expression-list.js +49 -13
  188. package/dataflow/internal/process/functions/call/built-in/built-in-function-definition.js +119 -22
  189. package/dataflow/internal/process/functions/call/built-in/built-in-get.d.ts +5 -1
  190. package/dataflow/internal/process/functions/call/built-in/built-in-get.js +62 -28
  191. package/dataflow/internal/process/functions/call/built-in/built-in-if-then-else.js +2 -2
  192. package/dataflow/internal/process/functions/call/built-in/built-in-library.js +7 -2
  193. package/dataflow/internal/process/functions/call/built-in/built-in-list.d.ts +9 -2
  194. package/dataflow/internal/process/functions/call/built-in/built-in-list.js +26 -10
  195. package/dataflow/internal/process/functions/call/built-in/built-in-load.js +3 -3
  196. package/dataflow/internal/process/functions/call/built-in/built-in-local.js +13 -10
  197. package/dataflow/internal/process/functions/call/built-in/built-in-new-env.js +2 -2
  198. package/dataflow/internal/process/functions/call/built-in/built-in-pipe.js +36 -22
  199. package/dataflow/internal/process/functions/call/built-in/built-in-purrr-formula.d.ts +2 -2
  200. package/dataflow/internal/process/functions/call/built-in/built-in-purrr-formula.js +7 -7
  201. package/dataflow/internal/process/functions/call/built-in/built-in-quote.js +3 -2
  202. package/dataflow/internal/process/functions/call/built-in/built-in-recall.js +1 -1
  203. package/dataflow/internal/process/functions/call/built-in/built-in-register-hook.js +7 -11
  204. package/dataflow/internal/process/functions/call/built-in/built-in-repeat-loop.d.ts +5 -5
  205. package/dataflow/internal/process/functions/call/built-in/built-in-repeat-loop.js +7 -7
  206. package/dataflow/internal/process/functions/call/built-in/built-in-replacement.d.ts +2 -0
  207. package/dataflow/internal/process/functions/call/built-in/built-in-replacement.js +28 -7
  208. package/dataflow/internal/process/functions/call/built-in/built-in-rm.js +5 -5
  209. package/dataflow/internal/process/functions/call/built-in/built-in-s-four.js +1 -1
  210. package/dataflow/internal/process/functions/call/built-in/built-in-s-seven-dispatch.js +2 -2
  211. package/dataflow/internal/process/functions/call/built-in/built-in-s-seven-new-generic.d.ts +2 -2
  212. package/dataflow/internal/process/functions/call/built-in/built-in-s-seven-new-generic.js +12 -14
  213. package/dataflow/internal/process/functions/call/built-in/built-in-s-three-dispatch.js +2 -2
  214. package/dataflow/internal/process/functions/call/built-in/built-in-source.js +3 -4
  215. package/dataflow/internal/process/functions/call/built-in/built-in-stack-env.d.ts +8 -2
  216. package/dataflow/internal/process/functions/call/built-in/built-in-stack-env.js +21 -13
  217. package/dataflow/internal/process/functions/call/built-in/built-in-string-template.js +12 -0
  218. package/dataflow/internal/process/functions/call/built-in/built-in-try-catch.d.ts +1 -0
  219. package/dataflow/internal/process/functions/call/built-in/built-in-try-catch.js +29 -11
  220. package/dataflow/internal/process/functions/call/built-in/built-in-with.d.ts +1 -1
  221. package/dataflow/internal/process/functions/call/built-in/built-in-with.js +15 -12
  222. package/dataflow/internal/process/functions/call/built-in/transitive-side-effects.d.ts +5 -5
  223. package/dataflow/internal/process/functions/call/built-in/transitive-side-effects.js +28 -35
  224. package/dataflow/internal/process/functions/call/common.d.ts +7 -1
  225. package/dataflow/internal/process/functions/call/common.js +17 -7
  226. package/dataflow/internal/process/functions/call/deferred.d.ts +1 -3
  227. package/dataflow/internal/process/functions/call/deferred.js +20 -10
  228. package/dataflow/internal/process/functions/call/known-call-handling.d.ts +4 -4
  229. package/dataflow/internal/process/functions/call/known-call-handling.js +17 -8
  230. package/dataflow/internal/process/functions/call/named-call-handling.d.ts +1 -1
  231. package/dataflow/internal/process/functions/call/named-call-handling.js +5 -4
  232. package/dataflow/internal/process/functions/call/nse.d.ts +1 -2
  233. package/dataflow/internal/process/functions/call/nse.js +13 -15
  234. package/dataflow/internal/process/functions/call/quoted.d.ts +3 -4
  235. package/dataflow/internal/process/functions/call/quoted.js +96 -42
  236. package/dataflow/internal/process/functions/call/unnamed-call-handling.js +2 -2
  237. package/dataflow/internal/process/functions/process-parameter.d.ts +4 -1
  238. package/dataflow/internal/process/functions/process-parameter.js +4 -1
  239. package/dataflow/internal/process/process-named-call.d.ts +2 -2
  240. package/dataflow/internal/process/process-named-call.js +3 -3
  241. package/dataflow/origin/dfg-get-origin.d.ts +1 -1
  242. package/dataflow/origin/dfg-get-origin.js +17 -10
  243. package/dataflow/origin/dfg-get-symbol-refs.d.ts +2 -2
  244. package/dataflow/origin/dfg-get-symbol-refs.js +2 -2
  245. package/dataflow/processor.d.ts +10 -0
  246. package/documentation/data/dfg/doc-data-dfg-util.d.ts +2 -2
  247. package/documentation/data/dfg/doc-data-dfg-util.js +2 -2
  248. package/documentation/data/faq/faqs.d.ts +2 -1
  249. package/documentation/data/faq/faqs.js +12 -3
  250. package/documentation/data/server/doc-data-server-messages.d.ts +2 -1
  251. package/documentation/data/server/doc-data-server-messages.js +2 -1
  252. package/documentation/doc-capabilities.d.ts +13 -7
  253. package/documentation/doc-capabilities.js +445 -126
  254. package/documentation/doc-util/doc-auto-gen.d.ts +4 -2
  255. package/documentation/doc-util/doc-auto-gen.js +22 -4
  256. package/documentation/doc-util/doc-cfg.js +2 -2
  257. package/documentation/doc-util/doc-code.d.ts +8 -2
  258. package/documentation/doc-util/doc-code.js +36 -7
  259. package/documentation/doc-util/doc-dfg.d.ts +2 -0
  260. package/documentation/doc-util/doc-dfg.js +4 -3
  261. package/documentation/doc-util/doc-env.d.ts +2 -1
  262. package/documentation/doc-util/doc-env.js +2 -1
  263. package/documentation/doc-util/doc-escape.d.ts +2 -2
  264. package/documentation/doc-util/doc-escape.js +2 -2
  265. package/documentation/doc-util/doc-files.d.ts +0 -2
  266. package/documentation/doc-util/doc-files.js +2 -3
  267. package/documentation/doc-util/doc-normalized-ast.js +2 -2
  268. package/documentation/doc-util/doc-query.d.ts +2 -1
  269. package/documentation/doc-util/doc-query.js +4 -3
  270. package/documentation/doc-util/doc-repl.d.ts +1 -1
  271. package/documentation/doc-util/doc-repl.js +1 -1
  272. package/documentation/doc-util/doc-search.js +2 -2
  273. package/documentation/doc-util/doc-server-message.js +2 -2
  274. package/documentation/doc-util/doc-sigdb.js +1 -1
  275. package/documentation/doc-util/doc-structure.d.ts +10 -3
  276. package/documentation/doc-util/doc-structure.js +10 -3
  277. package/documentation/doc-util/doc-timings.d.ts +19 -0
  278. package/documentation/doc-util/doc-timings.js +44 -0
  279. package/documentation/doc-util/doc-types.d.ts +8 -6
  280. package/documentation/doc-util/doc-types.js +11 -8
  281. package/documentation/index.d.ts +1 -0
  282. package/documentation/index.js +1 -0
  283. package/documentation/wiki-core.js +3 -0
  284. package/documentation/wiki-create-linting-rules.js +1 -1
  285. package/documentation/wiki-dataflow-graph.js +19 -20
  286. package/documentation/wiki-engine.js +13 -2
  287. package/documentation/wiki-helper-objects.d.ts +9 -0
  288. package/documentation/wiki-helper-objects.js +102 -0
  289. package/documentation/wiki-linter.js +154 -16
  290. package/documentation/wiki-linting-and-testing.js +99 -6
  291. package/documentation/wiki-mk/doc-context.d.ts +33 -29
  292. package/documentation/wiki-mk/doc-context.js +1 -0
  293. package/documentation/wiki-mk/doc-maker.d.ts +1 -1
  294. package/documentation/wiki-mk/doc-maker.js +18 -2
  295. package/documentation/wiki-query.js +44 -0
  296. package/documentation/wiki-setup.js +28 -3
  297. package/documentation/wiki-signature-database.js +7 -3
  298. package/gas.d.ts +3 -2
  299. package/index.d.ts +18 -3
  300. package/index.js +29 -3
  301. package/linter/linter-executor.js +2 -2
  302. package/linter/linter-format.d.ts +9 -3
  303. package/linter/linter-format.js +2 -0
  304. package/linter/linter-rules.d.ts +118 -98
  305. package/linter/linter-rules.js +3 -1
  306. package/linter/rules/absolute-path.d.ts +10 -10
  307. package/linter/rules/absolute-path.js +9 -12
  308. package/linter/rules/dataframe-access-validation.d.ts +2 -2
  309. package/linter/rules/dataframe-access-validation.js +17 -4
  310. package/linter/rules/dead-code.d.ts +2 -2
  311. package/linter/rules/dead-code.js +1 -1
  312. package/linter/rules/deprecated-functions.d.ts +5 -5
  313. package/linter/rules/deprecated-functions.js +8 -8
  314. package/linter/rules/file-path-validity.d.ts +7 -7
  315. package/linter/rules/file-path-validity.js +4 -4
  316. package/linter/rules/function-finder-util.d.ts +0 -6
  317. package/linter/rules/function-finder-util.js +7 -2
  318. package/linter/rules/namespace-access.d.ts +42 -0
  319. package/linter/rules/namespace-access.js +78 -0
  320. package/linter/rules/naming-convention.d.ts +3 -3
  321. package/linter/rules/naming-convention.js +7 -3
  322. package/linter/rules/network-functions.d.ts +5 -5
  323. package/linter/rules/network-functions.js +5 -6
  324. package/linter/rules/no-leaked-credentials.d.ts +3 -3
  325. package/linter/rules/no-leaked-credentials.js +4 -5
  326. package/linter/rules/problematic-inputs.d.ts +5 -5
  327. package/linter/rules/problematic-inputs.js +13 -21
  328. package/linter/rules/roxygen-arguments.d.ts +1 -1
  329. package/linter/rules/roxygen-arguments.js +4 -3
  330. package/linter/rules/seeded-randomness.d.ts +6 -5
  331. package/linter/rules/seeded-randomness.js +15 -13
  332. package/linter/rules/software-has-license.d.ts +2 -2
  333. package/linter/rules/software-has-license.js +2 -2
  334. package/linter/rules/software-has-tests.d.ts +3 -3
  335. package/linter/rules/software-has-tests.js +2 -2
  336. package/linter/rules/stop-with-call-arg.d.ts +1 -1
  337. package/linter/rules/stop-with-call-arg.js +16 -3
  338. package/linter/rules/syntactically-valid.d.ts +3 -3
  339. package/linter/rules/syntactically-valid.js +2 -2
  340. package/linter/rules/unclosed-connection.d.ts +3 -3
  341. package/linter/rules/unclosed-connection.js +23 -12
  342. package/linter/rules/undefined-symbol-util.d.ts +3 -1
  343. package/linter/rules/undefined-symbol-util.js +9 -7
  344. package/linter/rules/undefined-symbol.d.ts +4 -4
  345. package/linter/rules/undefined-symbol.js +4 -4
  346. package/linter/rules/unescaped-arguments.d.ts +37 -37
  347. package/linter/rules/unescaped-arguments.js +20 -21
  348. package/linter/rules/unused-definition.d.ts +3 -3
  349. package/linter/rules/unused-definition.js +63 -26
  350. package/linter/rules/unused-import.d.ts +4 -4
  351. package/linter/rules/unused-import.js +14 -5
  352. package/linter/rules/useless-loop.d.ts +3 -3
  353. package/linter/rules/useless-loop.js +3 -3
  354. package/package.json +6 -4
  355. package/project/context/flowr-analyzer-context.d.ts +5 -0
  356. package/project/context/flowr-analyzer-context.js +5 -0
  357. package/project/context/flowr-analyzer-dependencies-context.d.ts +3 -3
  358. package/project/context/flowr-analyzer-environment-context.d.ts +20 -1
  359. package/project/context/flowr-analyzer-environment-context.js +24 -1
  360. package/project/context/flowr-analyzer-files-context.d.ts +9 -5
  361. package/project/context/flowr-analyzer-files-context.js +56 -22
  362. package/project/context/flowr-analyzer-functions-context.d.ts +1 -6
  363. package/project/context/flowr-analyzer-functions-context.js +1 -7
  364. package/project/context/flowr-analyzer-gas-context.d.ts +7 -0
  365. package/project/context/flowr-analyzer-gas-context.js +6 -1
  366. package/project/dependency-version-space.d.ts +7 -0
  367. package/project/dependency-version-space.js +2 -2
  368. package/project/flowr-analyzer-builder.d.ts +14 -4
  369. package/project/flowr-analyzer-builder.js +3 -1
  370. package/project/flowr-analyzer.d.ts +3 -3
  371. package/project/flowr-analyzer.js +1 -3
  372. package/project/plugins/file-plugins/files/flowr-description-file.d.ts +1 -1
  373. package/project/plugins/file-plugins/files/flowr-description-file.js +2 -2
  374. package/project/plugins/file-plugins/files/flowr-namespace-file.d.ts +1 -1
  375. package/project/plugins/file-plugins/files/flowr-namespace-file.js +1 -1
  376. package/project/plugins/file-plugins/files/flowr-rda-file.js +8 -6
  377. package/project/plugins/file-plugins/files/flowr-rmarkdown-file.d.ts +3 -3
  378. package/project/plugins/file-plugins/files/flowr-rmarkdown-file.js +33 -10
  379. package/project/plugins/file-plugins/files/flowr-sweave-file.d.ts +2 -2
  380. package/project/plugins/file-plugins/files/flowr-sweave-file.js +2 -2
  381. package/project/plugins/file-plugins/files/r-fun-tab.d.ts +4 -67
  382. package/project/plugins/file-plugins/files/r-fun-tab.js +6 -653
  383. package/project/plugins/file-plugins/flowr-analyzer-description-file-plugin.d.ts +4 -1
  384. package/project/plugins/file-plugins/flowr-analyzer-description-file-plugin.js +4 -1
  385. package/project/plugins/flowr-analyzer-plugin.d.ts +1 -1
  386. package/project/plugins/flowr-analyzer-plugin.js +1 -1
  387. package/project/plugins/package-version-plugins/flowr-analyzer-package-versions-sigdb-plugin.d.ts +0 -19
  388. package/project/plugins/package-version-plugins/flowr-analyzer-package-versions-sigdb-plugin.js +4 -51
  389. package/project/sigdb/codec.d.ts +0 -4
  390. package/project/sigdb/codec.js +1 -8
  391. package/project/sigdb/decode.d.ts +5 -4
  392. package/project/sigdb/decode.js +13 -18
  393. package/project/sigdb/dict.d.ts +35 -0
  394. package/project/sigdb/dict.js +97 -0
  395. package/project/sigdb/hash.d.ts +7 -2
  396. package/project/sigdb/manifest.d.ts +0 -2
  397. package/project/sigdb/manifest.js +2 -6
  398. package/project/sigdb/memory-source.js +2 -1
  399. package/project/sigdb/reader.d.ts +5 -4
  400. package/project/sigdb/reader.js +34 -26
  401. package/project/sigdb/schema.d.ts +0 -2
  402. package/project/sigdb/schema.js +1 -7
  403. package/project/sigdb/signature-db.d.ts +9 -1
  404. package/project/sigdb/signature-db.js +8 -0
  405. package/queries/catalog/call-context-query/call-context-query-executor.d.ts +1 -1
  406. package/queries/catalog/call-context-query/call-context-query-executor.js +5 -4
  407. package/queries/catalog/call-context-query/call-context-query-format.d.ts +1 -1
  408. package/queries/catalog/call-context-query/identify-link-to-last-call-relation.js +2 -2
  409. package/queries/catalog/call-context-query/identify-link-to-nested-call-relation.js +1 -1
  410. package/queries/catalog/dependencies-query/dependencies-query-executor.js +40 -6
  411. package/queries/catalog/dependencies-query/dependencies-query-format.d.ts +33 -54
  412. package/queries/catalog/dependencies-query/dependencies-query-format.js +37 -13
  413. package/queries/catalog/dependencies-query/function-info/derived-functions.d.ts +3 -2
  414. package/queries/catalog/dependencies-query/function-info/derived-functions.js +5 -5
  415. package/queries/catalog/dependencies-query/function-info/read-functions.d.ts +6 -1
  416. package/queries/catalog/dependencies-query/function-info/read-functions.js +12 -9
  417. package/queries/catalog/dependencies-query/function-info/statistics-functions.d.ts +2 -2
  418. package/queries/catalog/dependencies-query/function-info/statistics-functions.js +1 -2
  419. package/queries/catalog/dependencies-query/function-info/write-functions.d.ts +9 -1
  420. package/queries/catalog/dependencies-query/function-info/write-functions.js +17 -6
  421. package/queries/catalog/dependencies-query/implicit-echo.js +28 -5
  422. package/queries/catalog/dependencies-query/link-devices.js +23 -10
  423. package/queries/catalog/dice-query/dice-query-executor.js +2 -14
  424. package/queries/catalog/does-call-query/does-call-query-executor.js +1 -2
  425. package/queries/catalog/files-query/files-query-format.d.ts +1 -1
  426. package/queries/catalog/function-info-query/function-info-query-executor.d.ts +7 -0
  427. package/queries/catalog/function-info-query/function-info-query-executor.js +38 -0
  428. package/queries/catalog/function-info-query/function-info-query-format.d.ts +48 -0
  429. package/queries/catalog/function-info-query/function-info-query-format.js +54 -0
  430. package/queries/catalog/function-info-query/function-origin.d.ts +22 -0
  431. package/queries/catalog/function-info-query/function-origin.js +46 -0
  432. package/queries/catalog/guess-dep-versions-query/guess-dep-versions-query-executor.js +2 -1
  433. package/queries/catalog/happens-before-query/happens-before-query-format.d.ts +1 -0
  434. package/queries/catalog/happens-before-query/happens-before-query-format.js +1 -0
  435. package/queries/catalog/input-sources-query/input-source-functions.d.ts +2 -2
  436. package/queries/catalog/input-sources-query/input-source-functions.js +1 -2
  437. package/queries/catalog/input-sources-query/input-sources-query-executor.js +2 -2
  438. package/queries/catalog/input-sources-query/input-sources-query-format.d.ts +4 -2
  439. package/queries/catalog/input-sources-query/input-sources-query-format.js +24 -24
  440. package/queries/catalog/input-sources-query/input-types.d.ts +2 -2
  441. package/queries/catalog/input-sources-query/input-types.js +2 -2
  442. package/queries/catalog/input-sources-query/simple-input-classifier.js +6 -6
  443. package/queries/catalog/inspect-exceptions-query/inspect-exception-query-executor.js +2 -2
  444. package/queries/catalog/inspect-exceptions-query/inspect-exception-query-format.d.ts +1 -1
  445. package/queries/catalog/inspect-fn-props-query/inspect-fn-props-query-executor.js +6 -7
  446. package/queries/catalog/inspect-fn-props-query/inspect-fn-props-query-format.d.ts +4 -4
  447. package/queries/catalog/inspect-fn-props-query/inspect-fn-props-query-format.js +8 -7
  448. package/queries/catalog/inspect-higher-order-query/inspect-higher-order-query-executor.js +2 -2
  449. package/queries/catalog/inspect-higher-order-query/inspect-higher-order-query-format.d.ts +1 -1
  450. package/queries/catalog/inspect-recursion-query/inspect-recursion-query-format.d.ts +1 -1
  451. package/queries/catalog/linter-query/linter-query-format.d.ts +1 -1
  452. package/queries/catalog/signature-query/signature-query-executor.d.ts +2 -11
  453. package/queries/catalog/signature-query/signature-query-executor.js +124 -63
  454. package/queries/catalog/signature-query/signature-query-format.d.ts +21 -0
  455. package/queries/catalog/signature-query/signature-query-format.js +5 -1
  456. package/queries/catalog/signature-query/signature-query-render.js +28 -3
  457. package/queries/catalog/slice-query-options.d.ts +19 -2
  458. package/queries/catalog/slice-query-options.js +19 -3
  459. package/queries/catalog/static-slice-query/static-slice-query-executor.d.ts +2 -2
  460. package/queries/catalog/static-slice-query/static-slice-query-executor.js +4 -17
  461. package/queries/query-function-filter.d.ts +1 -0
  462. package/queries/query-function-filter.js +1 -0
  463. package/queries/query.d.ts +13 -2
  464. package/queries/query.js +4 -1
  465. package/r-bridge/data/data.d.ts +1435 -450
  466. package/r-bridge/data/data.js +1063 -478
  467. package/r-bridge/data/get.d.ts +1 -6
  468. package/r-bridge/data/get.js +0 -32
  469. package/r-bridge/data/types.d.ts +3 -0
  470. package/r-bridge/init.d.ts +7 -2
  471. package/r-bridge/init.js +10 -5
  472. package/r-bridge/lang-4.x/ast/model/model.d.ts +10 -8
  473. package/r-bridge/lang-4.x/ast/model/model.js +9 -10
  474. package/r-bridge/lang-4.x/ast/model/nodes/r-access.d.ts +4 -4
  475. package/r-bridge/lang-4.x/ast/model/nodes/r-argument.d.ts +5 -5
  476. package/r-bridge/lang-4.x/ast/model/nodes/r-argument.js +1 -1
  477. package/r-bridge/lang-4.x/ast/model/nodes/r-binary-op.d.ts +4 -4
  478. package/r-bridge/lang-4.x/ast/model/nodes/r-break.d.ts +4 -4
  479. package/r-bridge/lang-4.x/ast/model/nodes/r-comment.d.ts +4 -4
  480. package/r-bridge/lang-4.x/ast/model/nodes/r-expression-list.d.ts +4 -4
  481. package/r-bridge/lang-4.x/ast/model/nodes/r-for-loop.d.ts +4 -4
  482. package/r-bridge/lang-4.x/ast/model/nodes/r-function-call.d.ts +6 -6
  483. package/r-bridge/lang-4.x/ast/model/nodes/r-function-call.js +2 -2
  484. package/r-bridge/lang-4.x/ast/model/nodes/r-function-definition.d.ts +4 -4
  485. package/r-bridge/lang-4.x/ast/model/nodes/r-if-then-else.d.ts +4 -4
  486. package/r-bridge/lang-4.x/ast/model/nodes/r-line-directive.d.ts +4 -4
  487. package/r-bridge/lang-4.x/ast/model/nodes/r-logical.d.ts +4 -4
  488. package/r-bridge/lang-4.x/ast/model/nodes/r-next.d.ts +4 -4
  489. package/r-bridge/lang-4.x/ast/model/nodes/r-number.d.ts +4 -4
  490. package/r-bridge/lang-4.x/ast/model/nodes/r-parameter.d.ts +5 -5
  491. package/r-bridge/lang-4.x/ast/model/nodes/r-parameter.js +1 -1
  492. package/r-bridge/lang-4.x/ast/model/nodes/r-pipe.d.ts +6 -4
  493. package/r-bridge/lang-4.x/ast/model/nodes/r-pipe.js +4 -0
  494. package/r-bridge/lang-4.x/ast/model/nodes/r-project.d.ts +4 -3
  495. package/r-bridge/lang-4.x/ast/model/nodes/r-project.js +4 -3
  496. package/r-bridge/lang-4.x/ast/model/nodes/r-repeat-loop.d.ts +4 -4
  497. package/r-bridge/lang-4.x/ast/model/nodes/r-string.d.ts +5 -5
  498. package/r-bridge/lang-4.x/ast/model/nodes/r-string.js +1 -1
  499. package/r-bridge/lang-4.x/ast/model/nodes/r-symbol.d.ts +5 -5
  500. package/r-bridge/lang-4.x/ast/model/nodes/r-symbol.js +1 -1
  501. package/r-bridge/lang-4.x/ast/model/nodes/r-unary-op.d.ts +4 -4
  502. package/r-bridge/lang-4.x/ast/model/nodes/r-while-loop.d.ts +4 -4
  503. package/r-bridge/lang-4.x/ast/model/processing/decorate.d.ts +4 -20
  504. package/r-bridge/lang-4.x/ast/model/processing/decorate.js +4 -43
  505. package/r-bridge/lang-4.x/ast/model/processing/node-id.d.ts +11 -0
  506. package/r-bridge/lang-4.x/ast/model/processing/node-id.js +18 -3
  507. package/r-bridge/lang-4.x/ast/model/processing/role.d.ts +0 -5
  508. package/r-bridge/lang-4.x/ast/model/processing/role.js +0 -13
  509. package/r-bridge/lang-4.x/ast/model/versions.d.ts +2 -0
  510. package/r-bridge/lang-4.x/ast/model/versions.js +3 -1
  511. package/r-bridge/lang-4.x/ast/parser/json/parser.js +3 -2
  512. package/r-bridge/lang-4.x/ast/parser/main/internal/expression/normalize-expression.d.ts +2 -2
  513. package/r-bridge/lang-4.x/ast/parser/main/internal/expression/normalize-expression.js +2 -2
  514. package/r-bridge/lang-4.x/ast/parser/main/internal/functions/normalize-argument.d.ts +1 -1
  515. package/r-bridge/lang-4.x/ast/parser/main/internal/functions/normalize-argument.js +1 -1
  516. package/r-bridge/lang-4.x/ast/parser/main/internal/functions/normalize-call.d.ts +1 -1
  517. package/r-bridge/lang-4.x/ast/parser/main/internal/functions/normalize-call.js +10 -2
  518. package/r-bridge/lang-4.x/ast/parser/main/internal/functions/normalize-definition.d.ts +2 -2
  519. package/r-bridge/lang-4.x/ast/parser/main/internal/functions/normalize-definition.js +2 -2
  520. package/r-bridge/lang-4.x/ast/parser/main/internal/functions/normalize-parameter.d.ts +1 -1
  521. package/r-bridge/lang-4.x/ast/parser/main/internal/functions/normalize-parameter.js +1 -1
  522. package/r-bridge/lang-4.x/ast/parser/main/internal/loops/normalize-break.d.ts +3 -1
  523. package/r-bridge/lang-4.x/ast/parser/main/internal/loops/normalize-break.js +3 -1
  524. package/r-bridge/lang-4.x/ast/parser/main/internal/loops/normalize-for.d.ts +5 -1
  525. package/r-bridge/lang-4.x/ast/parser/main/internal/loops/normalize-for.js +5 -1
  526. package/r-bridge/lang-4.x/ast/parser/main/internal/loops/normalize-next.d.ts +3 -1
  527. package/r-bridge/lang-4.x/ast/parser/main/internal/loops/normalize-next.js +3 -1
  528. package/r-bridge/lang-4.x/ast/parser/main/internal/loops/normalize-repeat.d.ts +1 -1
  529. package/r-bridge/lang-4.x/ast/parser/main/internal/loops/normalize-repeat.js +1 -1
  530. package/r-bridge/lang-4.x/ast/parser/main/internal/normalize-access.d.ts +1 -1
  531. package/r-bridge/lang-4.x/ast/parser/main/internal/normalize-access.js +1 -1
  532. package/r-bridge/lang-4.x/ast/parser/main/internal/operators/normalize-binary.js +39 -2
  533. package/r-bridge/lang-4.x/ast/parser/main/internal/operators/normalize-unary.d.ts +1 -1
  534. package/r-bridge/lang-4.x/ast/parser/main/internal/operators/normalize-unary.js +1 -1
  535. package/r-bridge/lang-4.x/ast/parser/main/internal/structure/normalize-single-node.d.ts +1 -1
  536. package/r-bridge/lang-4.x/ast/parser/main/internal/structure/normalize-single-node.js +2 -1
  537. package/r-bridge/lang-4.x/ast/parser/main/internal/values/normalize-symbol.d.ts +1 -1
  538. package/r-bridge/lang-4.x/ast/parser/main/internal/values/normalize-symbol.js +1 -1
  539. package/r-bridge/lang-4.x/ast/parser/main/normalize-meta.d.ts +2 -2
  540. package/r-bridge/lang-4.x/ast/parser/main/normalize-meta.js +2 -2
  541. package/r-bridge/lang-4.x/convert-values.d.ts +6 -0
  542. package/r-bridge/lang-4.x/convert-values.js +6 -0
  543. package/r-bridge/lang-4.x/tree-sitter/tree-sitter-executor.d.ts +2 -2
  544. package/r-bridge/lang-4.x/tree-sitter/tree-sitter-executor.js +2 -2
  545. package/r-bridge/lang-4.x/tree-sitter/tree-sitter-normalize.d.ts +1 -1
  546. package/r-bridge/lang-4.x/tree-sitter/tree-sitter-normalize.js +15 -2
  547. package/r-bridge/parser.d.ts +1 -1
  548. package/r-bridge/parser.js +1 -1
  549. package/r-bridge/retriever.d.ts +0 -21
  550. package/r-bridge/retriever.js +5 -63
  551. package/r-bridge/roxygen2/documentation-provider.d.ts +2 -2
  552. package/r-bridge/roxygen2/documentation-provider.js +2 -2
  553. package/r-bridge/shell-executor.js +1 -1
  554. package/r-bridge/shell.d.ts +4 -4
  555. package/r-bridge/shell.js +58 -35
  556. package/reconstruct/inline/source-inline-map.d.ts +15 -22
  557. package/reconstruct/inline/source-inline-map.js +63 -70
  558. package/reconstruct/reconstruct.d.ts +1 -1
  559. package/reconstruct/reconstruct.js +5 -2
  560. package/search/flowr-search-builder.d.ts +17 -16
  561. package/search/flowr-search-builder.js +9 -8
  562. package/search/flowr-search-filters.d.ts +1 -13
  563. package/search/flowr-search-filters.js +4 -13
  564. package/search/search-executor/search-enrichers.d.ts +2 -2
  565. package/search/search-executor/search-enrichers.js +3 -3
  566. package/search/search-executor/search-generators.d.ts +0 -3
  567. package/search/search-executor/search-transformer.d.ts +0 -3
  568. package/slicing/criterion/parse.d.ts +24 -20
  569. package/slicing/criterion/parse.js +34 -24
  570. package/slicing/static/fingerprint.js +6 -12
  571. package/slicing/static/slice-call.d.ts +1 -1
  572. package/slicing/static/slice-call.js +28 -9
  573. package/slicing/static/static-slicer.js +3 -4
  574. package/slicing/static/visiting-queue.d.ts +3 -1
  575. package/slicing/static/visiting-queue.js +25 -14
  576. package/util/accessor.d.ts +22 -0
  577. package/util/accessor.js +3 -0
  578. package/util/assert.d.ts +14 -8
  579. package/util/assert.js +25 -8
  580. package/util/collections/arrays.d.ts +11 -7
  581. package/util/collections/arrays.js +14 -14
  582. package/util/collections/defaultmap.d.ts +5 -0
  583. package/util/collections/defaultmap.js +14 -0
  584. package/util/diff-graph.d.ts +1 -2
  585. package/util/diff-graph.js +0 -1
  586. package/util/files.d.ts +20 -34
  587. package/util/files.js +36 -51
  588. package/util/glob.js +1 -1
  589. package/util/json.d.ts +0 -7
  590. package/util/json.js +0 -15
  591. package/util/logic.d.ts +5 -0
  592. package/util/logic.js +6 -1
  593. package/util/mermaid/dfg.d.ts +2 -1
  594. package/util/mermaid/dfg.js +7 -6
  595. package/util/mermaid/mermaid.d.ts +1 -0
  596. package/util/mermaid/mermaid.js +1 -0
  597. package/util/numbers.d.ts +0 -5
  598. package/util/numbers.js +0 -9
  599. package/util/objects.d.ts +3 -3
  600. package/util/objects.js +3 -3
  601. package/util/quads.d.ts +2 -2
  602. package/util/quads.js +1 -1
  603. package/util/r-base-packages.d.ts +14 -1
  604. package/util/r-base-packages.js +21 -1
  605. package/util/r-package-urls.d.ts +33 -0
  606. package/util/r-package-urls.js +79 -0
  607. package/util/r-version.d.ts +8 -2
  608. package/util/r-version.js +8 -2
  609. package/util/range.d.ts +173 -54
  610. package/util/range.js +221 -75
  611. package/util/record.d.ts +7 -6
  612. package/util/record.js +7 -6
  613. package/util/simple-df/dfg-ascii.js +6 -6
  614. package/util/summarizer.d.ts +2 -15
  615. package/util/summarizer.js +0 -15
  616. package/util/text/args.d.ts +2 -2
  617. package/util/text/args.js +2 -2
  618. package/util/text/playground-link.d.ts +17 -28
  619. package/util/text/playground-link.js +42 -18
  620. package/util/text/r-highlight.d.ts +20 -0
  621. package/util/text/r-highlight.js +171 -0
  622. package/util/text/strings.d.ts +6 -0
  623. package/util/text/strings.js +11 -2
  624. package/util/version.js +2 -2
  625. package/cli/run-script.d.ts +0 -7
  626. package/cli/run-script.js +0 -17
  627. package/project/sigdb/signature-match.d.ts +0 -18
  628. package/project/sigdb/signature-match.js +0 -32
  629. package/util/text/text.d.ts +0 -5
  630. package/util/text/text.js +0 -24
@@ -1,662 +1,15 @@
1
1
  "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.RFunTabOffsets = void 0;
2
4
  /**
5
+ * The `.Internal`/`.Primitive` offsets of R's primitive function table, as `names.c` lists them: the index a
6
+ * name is dispatched through, or the context constant a control-flow construct carries. Read by the `.rda`
7
+ * reader to resolve a serialized builtin back to its name.
8
+ *
3
9
  * Generated from R source names.c
4
10
  * @see {@link https://github.com/wch/r-source/blob/2196e6982a8f49082ee5c3d3521f6dd6596ea72c/src/main/names.c#L83-L1017}
5
11
  * Do not edit manually.
6
12
  */
7
- Object.defineProperty(exports, "__esModule", { value: true });
8
- exports.RFunTabOffsets = exports.RFunTab = exports.Precedence = exports.PPKind = void 0;
9
- var PPKind;
10
- (function (PPKind) {
11
- PPKind["Invalid"] = "PP_INVALID";
12
- PPKind["Assign"] = "PP_ASSIGN";
13
- PPKind["Assign2"] = "PP_ASSIGN2";
14
- PPKind["Binary"] = "PP_BINARY";
15
- PPKind["Binary2"] = "PP_BINARY2";
16
- PPKind["Break"] = "PP_BREAK";
17
- PPKind["Curly"] = "PP_CURLY";
18
- PPKind["For"] = "PP_FOR";
19
- PPKind["FunCall"] = "PP_FUNCALL";
20
- PPKind["Function"] = "PP_FUNCTION";
21
- PPKind["If"] = "PP_IF";
22
- PPKind["Next"] = "PP_NEXT";
23
- PPKind["Paren"] = "PP_PAREN";
24
- PPKind["Repeat"] = "PP_REPEAT";
25
- PPKind["Return"] = "PP_RETURN";
26
- PPKind["SubAss"] = "PP_SUBASS";
27
- PPKind["Subset"] = "PP_SUBSET";
28
- PPKind["Unary"] = "PP_UNARY";
29
- PPKind["While"] = "PP_WHILE";
30
- PPKind["Dollar"] = "PP_DOLLAR";
31
- PPKind["Foreign"] = "PP_FOREIGN";
32
- PPKind["Tilde"] = "PP_TILDE";
33
- })(PPKind || (exports.PPKind = PPKind = {}));
34
- var Precedence;
35
- (function (Precedence) {
36
- Precedence["Fn"] = "PREC_FN";
37
- Precedence["Left"] = "PREC_LEFT";
38
- Precedence["Eq"] = "PREC_EQ";
39
- Precedence["Right"] = "PREC_RIGHT";
40
- Precedence["Tilde"] = "PREC_TILDE";
41
- Precedence["Or"] = "PREC_OR";
42
- Precedence["And"] = "PREC_AND";
43
- Precedence["Not"] = "PREC_NOT";
44
- Precedence["Compare"] = "PREC_COMPARE";
45
- Precedence["Sum"] = "PREC_SUM";
46
- Precedence["Prod"] = "PREC_PROD";
47
- Precedence["Percent"] = "PREC_PERCENT";
48
- Precedence["Colon"] = "PREC_COLON";
49
- Precedence["Sign"] = "PREC_SIGN";
50
- Precedence["Power"] = "PREC_POWER";
51
- Precedence["Subset"] = "PREC_SUBSET";
52
- Precedence["Dollar"] = "PREC_DOLLAR";
53
- Precedence["Ns"] = "PREC_NS";
54
- })(Precedence || (exports.Precedence = Precedence = {}));
55
- const e = (name, cEntry, offset, evalFlag, arity, ppKind, precedence, rightAssoc) => ({ name, cEntry, offset, eval: evalFlag, arity, ppKind, precedence, rightAssoc });
56
- const FN = PPKind.FunCall;
57
- const PREC = Precedence.Fn;
58
- /**
59
- * R primitive function table.
60
- * @see {@link https://github.com/wch/r-source/blob/2196e6982a8f49082ee5c3d3521f6dd6596ea72c/src/main/names.c#L83-L1017 | R source: names.c}
61
- */
62
- exports.RFunTab = [
63
- /* -- Language Related Constructs -- */
64
- e('if', 'do_if', 0, 200, -1, PPKind.If, PREC, 1),
65
- e('while', 'do_while', 0, 100, 2, PPKind.While, PREC, 0),
66
- e('for', 'do_for', 0, 100, 3, PPKind.For, PREC, 0),
67
- e('repeat', 'do_repeat', 0, 100, 1, PPKind.Repeat, PREC, 0),
68
- e('break', 'do_break', 'CTXT_BREAK', 0, 0, PPKind.Break, PREC, 0),
69
- e('next', 'do_break', 'CTXT_NEXT', 0, 0, PPKind.Next, PREC, 0),
70
- e('return', 'do_return', 0, 0, -1, PPKind.Return, PREC, 0),
71
- e('function', 'do_function', 0, 0, -1, PPKind.Function, PREC, 0),
72
- e('<-', 'do_set', 1, 100, -1, PPKind.Assign, Precedence.Left, 1),
73
- e('=', 'do_set', 3, 100, -1, PPKind.Assign, Precedence.Eq, 1),
74
- e('<<-', 'do_set', 2, 100, -1, PPKind.Assign2, Precedence.Left, 1),
75
- e('{', 'do_begin', 0, 200, -1, PPKind.Curly, PREC, 0),
76
- e('(', 'do_paren', 0, 1, 1, PPKind.Paren, PREC, 0),
77
- e('.subset', 'do_subset_dflt', 1, 1, -1, FN, PREC, 0),
78
- e('.subset2', 'do_subset2_dflt', 2, 1, -1, FN, PREC, 0),
79
- e('[', 'do_subset', 1, 0, -1, PPKind.Subset, Precedence.Subset, 0),
80
- e('[[', 'do_subset2', 2, 0, -1, PPKind.Subset, Precedence.Subset, 0),
81
- e('$', 'do_subset3', 3, 0, 2, PPKind.Dollar, Precedence.Dollar, 0),
82
- e('@', 'do_AT', 0, 0, 2, PPKind.Dollar, Precedence.Dollar, 0),
83
- e('[<-', 'do_subassign', 0, 0, 3, PPKind.SubAss, Precedence.Left, 1),
84
- e('[[<-', 'do_subassign2', 1, 0, 3, PPKind.SubAss, Precedence.Left, 1),
85
- e('$<-', 'do_subassign3', 1, 0, 3, PPKind.SubAss, Precedence.Left, 1),
86
- e('switch', 'do_switch', 0, 200, -1, FN, PREC, 0),
87
- e('browser', 'do_browser', 0, 101, -1, FN, PREC, 0),
88
- e('.primTrace', 'do_trace', 0, 101, 1, FN, PREC, 0),
89
- e('.primUntrace', 'do_trace', 1, 101, 1, FN, PREC, 0),
90
- e('.Internal', 'do_internal', 0, 200, 1, FN, PREC, 0),
91
- e('.Primitive', 'do_primitive', 0, 1, 1, FN, PREC, 0),
92
- e('call', 'do_call', 0, 0, -1, FN, PREC, 0),
93
- e('quote', 'do_quote', 0, 0, 1, FN, PREC, 0),
94
- e('substitute', 'do_substitute', 0, 0, -1, FN, PREC, 0),
95
- e('missing', 'do_missing', 1, 0, 1, FN, PREC, 0),
96
- e('nargs', 'do_nargs', 1, 1, 0, FN, PREC, 0),
97
- e('on.exit', 'do_onexit', 0, 100, -1, FN, PREC, 0),
98
- e('forceAndCall', 'do_forceAndCall', 0, 0, -1, FN, PREC, 0),
99
- e('declare', 'do_declare', 0, 100, -1, FN, PREC, 0),
100
- /* -- .Internals -- */
101
- e('stop', 'do_stop', 0, 11, 2, FN, PREC, 0),
102
- e('warning', 'do_warning', 0, 111, 4, FN, PREC, 0),
103
- e('gettext', 'do_gettext', 0, 11, 3, FN, PREC, 0),
104
- e('ngettext', 'do_ngettext', 0, 11, 4, FN, PREC, 0),
105
- e('bindtextdomain', 'do_bindtextdomain', 0, 11, 2, FN, PREC, 0),
106
- e('.addCondHands', 'do_addCondHands', 0, 111, 5, FN, PREC, 0),
107
- e('.addGlobHands', 'do_addGlobHands', 0, 111, 5, FN, PREC, 0),
108
- e('.resetCondHands', 'do_resetCondHands', 0, 111, 1, FN, PREC, 0),
109
- e('.signalCondition', 'do_signalCondition', 0, 11, 3, FN, PREC, 0),
110
- e('.dfltStop', 'do_dfltStop', 0, 11, 2, FN, PREC, 0),
111
- e('.dfltWarn', 'do_dfltWarn', 0, 11, 2, FN, PREC, 0),
112
- e('.addRestart', 'do_addRestart', 0, 11, 1, FN, PREC, 0),
113
- e('.getRestart', 'do_getRestart', 0, 11, 1, FN, PREC, 0),
114
- e('.invokeRestart', 'do_invokeRestart', 0, 11, 2, FN, PREC, 0),
115
- e('.addTryHandlers', 'do_addTryHandlers', 0, 111, 0, FN, PREC, 0),
116
- e('geterrmessage', 'do_geterrmessage', 0, 11, 0, FN, PREC, 0),
117
- e('seterrmessage', 'do_seterrmessage', 0, 111, 1, FN, PREC, 0),
118
- e('printDeferredWarnings', 'do_printDeferredWarnings', 0, 111, 0, FN, PREC, 0),
119
- e('interruptsSuspended', 'do_interruptsSuspended', 0, 11, -1, FN, PREC, 0),
120
- e('as.function.default', 'do_asfunction', 0, 11, 2, PPKind.Function, PREC, 0),
121
- e('debug', 'do_debug', 0, 111, 3, FN, PREC, 0),
122
- e('undebug', 'do_debug', 1, 111, 1, FN, PREC, 0),
123
- e('isdebugged', 'do_debug', 2, 11, 1, FN, PREC, 0),
124
- e('debugonce', 'do_debug', 3, 111, 3, FN, PREC, 0),
125
- e('Recall', 'do_recall', 0, 210, -1, FN, PREC, 0),
126
- e('delayedAssign', 'do_delayed', 0, 111, 4, FN, PREC, 0),
127
- e('makeLazy', 'do_makelazy', 0, 111, 5, FN, PREC, 0),
128
- e('identical', 'do_identical', 0, 11, 8, FN, PREC, 0),
129
- e('C_tryCatchHelper', 'do_tryCatchHelper', 0, 11, -1, FN, PREC, 0),
130
- e('getNamespaceValue', 'do_getNSValue', 0, 211, 3, FN, PREC, 0),
131
- /* -- Binary Operators -- */
132
- e('+', 'do_arith', 'PLUSOP', 1, -1, PPKind.Binary, Precedence.Sum, 0),
133
- e('-', 'do_arith', 'MINUSOP', 1, -1, PPKind.Binary, Precedence.Sum, 0),
134
- e('*', 'do_arith', 'TIMESOP', 1, 2, PPKind.Binary, Precedence.Prod, 0),
135
- e('/', 'do_arith', 'DIVOP', 1, 2, PPKind.Binary2, Precedence.Prod, 0),
136
- e('^', 'do_arith', 'POWOP', 1, 2, PPKind.Binary2, Precedence.Power, 1),
137
- e('%%', 'do_arith', 'MODOP', 1, 2, PPKind.Binary2, Precedence.Percent, 0),
138
- e('%/%', 'do_arith', 'IDIVOP', 1, 2, PPKind.Binary2, Precedence.Percent, 0),
139
- e('%*%', 'do_matprod', 0, 1, 2, PPKind.Binary, Precedence.Percent, 0),
140
- e('==', 'do_relop', 'EQOP', 1, 2, PPKind.Binary, Precedence.Compare, 0),
141
- e('!=', 'do_relop', 'NEOP', 1, 2, PPKind.Binary, Precedence.Compare, 0),
142
- e('<', 'do_relop', 'LTOP', 1, 2, PPKind.Binary, Precedence.Compare, 0),
143
- e('<=', 'do_relop', 'LEOP', 1, 2, PPKind.Binary, Precedence.Compare, 0),
144
- e('>=', 'do_relop', 'GEOP', 1, 2, PPKind.Binary, Precedence.Compare, 0),
145
- e('>', 'do_relop', 'GTOP', 1, 2, PPKind.Binary, Precedence.Compare, 0),
146
- e('&', 'do_logic', 1, 1, 2, PPKind.Binary, Precedence.And, 0),
147
- e('|', 'do_logic', 2, 1, 2, PPKind.Binary, Precedence.Or, 0),
148
- e('!', 'do_logic', 3, 1, 1, PPKind.Unary, Precedence.Not, 0),
149
- e('&&', 'do_logic2', 1, 0, 2, PPKind.Binary, Precedence.And, 0),
150
- e('||', 'do_logic2', 2, 0, 2, PPKind.Binary, Precedence.Or, 0),
151
- e(':', 'do_colon', 0, 1, 2, PPKind.Binary2, Precedence.Colon, 0),
152
- e('~', 'do_tilde', 0, 0, -1, PPKind.Binary, Precedence.Tilde, 0),
153
- e('::', 'do_colon2', 0, 200, 2, PPKind.Binary2, Precedence.Ns, 0),
154
- e(':::', 'do_colon3', 0, 200, 2, PPKind.Binary2, Precedence.Ns, 0),
155
- /* -- Logic -- */
156
- e('all', 'do_logic3', 1, 1, -1, FN, PREC, 0),
157
- e('any', 'do_logic3', 2, 1, -1, FN, PREC, 0),
158
- /* -- Vectors / Matrices / Arrays -- */
159
- e('...elt', 'do_dotsElt', 0, 201, 1, FN, PREC, 0),
160
- e('...length', 'do_dotsLength', 0, 1, 0, FN, PREC, 0),
161
- e('...names', 'do_dotsNames', 0, 1, 0, FN, PREC, 0),
162
- e('length', 'do_length', 0, 1, 1, FN, PREC, 0),
163
- e('length<-', 'do_lengthgets', 0, 1, 2, FN, Precedence.Left, 1),
164
- e('c', 'do_c', 0, 1, -1, FN, PREC, 0),
165
- e('oldClass', 'do_class', 0, 1, 1, FN, PREC, 0),
166
- e('oldClass<-', 'do_classgets', 0, 1, 2, FN, Precedence.Left, 1),
167
- e('class', 'R_do_data_class', 0, 1, 1, FN, PREC, 0),
168
- e('.cache_class', 'R_do_data_class', 1, 1, 2, FN, PREC, 0),
169
- e('.class2', 'R_do_data_class', 2, 1, 1, FN, PREC, 0),
170
- e('class<-', 'R_do_set_class', 0, 1, 2, FN, PREC, 0),
171
- e('unclass', 'do_unclass', 0, 1, 1, FN, PREC, 0),
172
- e('names', 'do_names', 0, 1, 1, FN, PREC, 0),
173
- e('names<-', 'do_namesgets', 0, 1, 2, FN, Precedence.Left, 1),
174
- e('dimnames', 'do_dimnames', 0, 1, 1, FN, PREC, 0),
175
- e('dimnames<-', 'do_dimnamesgets', 0, 1, 2, FN, Precedence.Left, 1),
176
- e('dim', 'do_dim', 0, 1, 1, FN, PREC, 0),
177
- e('dim<-', 'do_dimgets', 0, 1, 2, FN, Precedence.Left, 1),
178
- e('attributes', 'do_attributes', 0, 1, 1, FN, PREC, 0),
179
- e('attributes<-', 'do_attributesgets', 0, 1, 2, FN, Precedence.Left, 1),
180
- e('attr', 'do_attr', 0, 1, -1, FN, PREC, 0),
181
- e('attr<-', 'do_attrgets', 0, 1, 3, FN, Precedence.Left, 1),
182
- e('@<-', 'do_attrgets', 1, 0, 3, PPKind.SubAss, Precedence.Left, 1),
183
- e('levels<-', 'do_levelsgets', 0, 1, 2, FN, Precedence.Left, 1),
184
- e('vector', 'do_makevector', 0, 11, 2, FN, PREC, 0),
185
- e('complex', 'do_complex', 0, 11, 3, FN, PREC, 0),
186
- e('matrix', 'do_matrix', 0, 11, 7, FN, PREC, 0),
187
- e('array', 'do_array', 0, 11, 3, FN, PREC, 0),
188
- e('diag', 'do_diag', 0, 11, 3, FN, PREC, 0),
189
- e('backsolve', 'do_backsolve', 0, 11, 5, FN, PREC, 0),
190
- e('max.col', 'do_maxcol', 0, 11, 2, FN, PREC, 0),
191
- e('row', 'do_rowscols', 1, 11, 1, FN, PREC, 0),
192
- e('col', 'do_rowscols', 2, 11, 1, FN, PREC, 0),
193
- e('unlist', 'do_unlist', 0, 11, 3, FN, PREC, 0),
194
- e('cbind', 'do_bind', 1, 10, -1, FN, PREC, 0),
195
- e('rbind', 'do_bind', 2, 10, -1, FN, PREC, 0),
196
- e('drop', 'do_drop', 0, 11, 1, FN, PREC, 0),
197
- e('all.names', 'do_allnames', 0, 11, 4, FN, PREC, 0),
198
- e('comment', 'do_comment', 0, 11, 1, FN, PREC, 0),
199
- e('comment<-', 'do_commentgets', 0, 11, 2, FN, Precedence.Left, 1),
200
- e('get', 'do_get', 1, 11, 4, FN, PREC, 0),
201
- e('get0', 'do_get', 2, 11, 5, FN, PREC, 0),
202
- e('mget', 'do_mget', 1, 11, 5, FN, PREC, 0),
203
- e('exists', 'do_get', 0, 11, 4, FN, PREC, 0),
204
- e('assign', 'do_assign', 0, 111, 4, FN, PREC, 0),
205
- e('list2env', 'do_list2env', 0, 11, 2, FN, PREC, 0),
206
- e('remove', 'do_remove', 0, 111, 3, FN, PREC, 0),
207
- e('duplicated', 'do_duplicated', 0, 11, 4, FN, PREC, 0),
208
- e('unique', 'do_duplicated', 1, 11, 4, FN, PREC, 0),
209
- e('anyDuplicated', 'do_duplicated', 2, 11, 3, FN, PREC, 0),
210
- e('anyNA', 'do_anyNA', 0, 1, -1, FN, PREC, 0),
211
- e('which', 'do_which', 0, 11, 1, FN, PREC, 0),
212
- e('which.min', 'do_first_min', 0, 11, 1, FN, PREC, 0),
213
- e('pmin', 'do_pmin', 0, 11, -1, FN, PREC, 0),
214
- e('pmax', 'do_pmin', 1, 11, -1, FN, PREC, 0),
215
- e('which.max', 'do_first_min', 1, 11, 1, FN, PREC, 0),
216
- e('match', 'do_match', 0, 11, 4, FN, PREC, 0),
217
- e('pmatch', 'do_pmatch', 0, 11, 4, FN, PREC, 0),
218
- e('charmatch', 'do_charmatch', 0, 11, 3, FN, PREC, 0),
219
- e('match.call', 'do_matchcall', 0, 11, 4, FN, PREC, 0),
220
- e('crossprod', 'do_matprod', 1, 1, 1, FN, PREC, 0),
221
- e('tcrossprod', 'do_matprod', 2, 1, 1, FN, PREC, 0),
222
- e('asplit', 'do_asplit', 0, 11, 8, FN, PREC, 0),
223
- e('lengths', 'do_lengths', 0, 11, 2, FN, PREC, 0),
224
- e('sequence', 'do_sequence', 0, 11, 4, FN, PREC, 0),
225
- e('vhash', 'do_vhash', 0, 11, -1, FN, PREC, 0),
226
- e('attach', 'do_attach', 0, 111, 3, FN, PREC, 0),
227
- e('detach', 'do_detach', 0, 111, 1, FN, PREC, 0),
228
- e('search', 'do_search', 0, 11, 0, FN, PREC, 0),
229
- e('setFileTime', 'do_setFileTime', 0, 111, 2, FN, PREC, 0),
230
- /* -- Math (primitives) -- */
231
- e('round', 'do_Math2', 10001, 0, -1, FN, PREC, 0),
232
- e('signif', 'do_Math2', 10004, 0, -1, FN, PREC, 0),
233
- e('log', 'do_log', 10003, 0, -1, FN, PREC, 0),
234
- e('log10', 'do_log1arg', 10010, 1, 1, FN, PREC, 0),
235
- e('log2', 'do_log1arg', 10002, 1, 1, FN, PREC, 0),
236
- e('abs', 'do_abs', 6, 1, 1, FN, PREC, 0),
237
- e('floor', 'do_math1', 1, 1, 1, FN, PREC, 0),
238
- e('ceiling', 'do_math1', 2, 1, 1, FN, PREC, 0),
239
- e('sqrt', 'do_math1', 3, 1, 1, FN, PREC, 0),
240
- e('sign', 'do_math1', 4, 1, 1, FN, PREC, 0),
241
- e('trunc', 'do_trunc', 5, 1, -1, FN, PREC, 0),
242
- e('exp', 'do_math1', 10, 1, 1, FN, PREC, 0),
243
- e('expm1', 'do_math1', 11, 1, 1, FN, PREC, 0),
244
- e('log1p', 'do_math1', 12, 1, 1, FN, PREC, 0),
245
- e('cos', 'do_math1', 20, 1, 1, FN, PREC, 0),
246
- e('sin', 'do_math1', 21, 1, 1, FN, PREC, 0),
247
- e('tan', 'do_math1', 22, 1, 1, FN, PREC, 0),
248
- e('acos', 'do_math1', 23, 1, 1, FN, PREC, 0),
249
- e('asin', 'do_math1', 24, 1, 1, FN, PREC, 0),
250
- e('atan', 'do_math1', 25, 1, 1, FN, PREC, 0),
251
- e('cosh', 'do_math1', 30, 1, 1, FN, PREC, 0),
252
- e('sinh', 'do_math1', 31, 1, 1, FN, PREC, 0),
253
- e('tanh', 'do_math1', 32, 1, 1, FN, PREC, 0),
254
- e('acosh', 'do_math1', 33, 1, 1, FN, PREC, 0),
255
- e('asinh', 'do_math1', 34, 1, 1, FN, PREC, 0),
256
- e('atanh', 'do_math1', 35, 1, 1, FN, PREC, 0),
257
- e('lgamma', 'do_math1', 40, 1, 1, FN, PREC, 0),
258
- e('gamma', 'do_math1', 41, 1, 1, FN, PREC, 0),
259
- e('digamma', 'do_math1', 42, 1, 1, FN, PREC, 0),
260
- e('trigamma', 'do_math1', 43, 1, 1, FN, PREC, 0),
261
- e('cospi', 'do_math1', 47, 1, 1, FN, PREC, 0),
262
- e('sinpi', 'do_math1', 48, 1, 1, FN, PREC, 0),
263
- e('tanpi', 'do_math1', 49, 1, 1, FN, PREC, 0),
264
- /* -- Math 2 -- */
265
- e('atan2', 'do_math2', 0, 11, 2, FN, PREC, 0), e('lbeta', 'do_math2', 2, 11, 2, FN, PREC, 0),
266
- e('beta', 'do_math2', 3, 11, 2, FN, PREC, 0), e('lchoose', 'do_math2', 4, 11, 2, FN, PREC, 0),
267
- e('choose', 'do_math2', 5, 11, 2, FN, PREC, 0), e('dchisq', 'do_math2', 6, 11, 3, FN, PREC, 0),
268
- e('pchisq', 'do_math2', 7, 11, 4, FN, PREC, 0), e('qchisq', 'do_math2', 8, 11, 4, FN, PREC, 0),
269
- e('dexp', 'do_math2', 9, 11, 3, FN, PREC, 0), e('pexp', 'do_math2', 10, 11, 4, FN, PREC, 0),
270
- e('qexp', 'do_math2', 11, 11, 4, FN, PREC, 0), e('dgeom', 'do_math2', 12, 11, 3, FN, PREC, 0),
271
- e('pgeom', 'do_math2', 13, 11, 4, FN, PREC, 0), e('qgeom', 'do_math2', 14, 11, 4, FN, PREC, 0),
272
- e('dpois', 'do_math2', 15, 11, 3, FN, PREC, 0), e('ppois', 'do_math2', 16, 11, 4, FN, PREC, 0),
273
- e('qpois', 'do_math2', 17, 11, 4, FN, PREC, 0), e('dt', 'do_math2', 18, 11, 3, FN, PREC, 0),
274
- e('pt', 'do_math2', 19, 11, 4, FN, PREC, 0), e('qt', 'do_math2', 20, 11, 4, FN, PREC, 0),
275
- e('dsignrank', 'do_math2', 21, 11, 3, FN, PREC, 0), e('psignrank', 'do_math2', 22, 11, 4, FN, PREC, 0),
276
- e('qsignrank', 'do_math2', 23, 11, 4, FN, PREC, 0), e('besselJ', 'do_math2', 24, 11, 2, FN, PREC, 0),
277
- e('besselY', 'do_math2', 25, 11, 2, FN, PREC, 0), e('psigamma', 'do_math2', 26, 11, 2, FN, PREC, 0),
278
- /* -- Complex math -- */
279
- e('Re', 'do_cmathfuns', 1, 1, 1, FN, PREC, 0), e('Im', 'do_cmathfuns', 2, 1, 1, FN, PREC, 0),
280
- e('Mod', 'do_cmathfuns', 3, 1, 1, FN, PREC, 0), e('Arg', 'do_cmathfuns', 4, 1, 1, FN, PREC, 0),
281
- e('Conj', 'do_cmathfuns', 5, 1, 1, FN, PREC, 0),
282
- /* -- Math 3 -- */
283
- e('dbeta', 'do_math3', 1, 11, 4, FN, PREC, 0), e('pbeta', 'do_math3', 2, 11, 5, FN, PREC, 0),
284
- e('qbeta', 'do_math3', 3, 11, 5, FN, PREC, 0), e('dbinom', 'do_math3', 4, 11, 4, FN, PREC, 0),
285
- e('pbinom', 'do_math3', 5, 11, 5, FN, PREC, 0), e('qbinom', 'do_math3', 6, 11, 5, FN, PREC, 0),
286
- e('dcauchy', 'do_math3', 7, 11, 4, FN, PREC, 0), e('pcauchy', 'do_math3', 8, 11, 5, FN, PREC, 0),
287
- e('qcauchy', 'do_math3', 9, 11, 5, FN, PREC, 0), e('df', 'do_math3', 10, 11, 4, FN, PREC, 0),
288
- e('pf', 'do_math3', 11, 11, 5, FN, PREC, 0), e('qf', 'do_math3', 12, 11, 5, FN, PREC, 0),
289
- e('dgamma', 'do_math3', 13, 11, 4, FN, PREC, 0), e('pgamma', 'do_math3', 14, 11, 5, FN, PREC, 0),
290
- e('qgamma', 'do_math3', 15, 11, 5, FN, PREC, 0), e('dlnorm', 'do_math3', 16, 11, 4, FN, PREC, 0),
291
- e('plnorm', 'do_math3', 17, 11, 5, FN, PREC, 0), e('qlnorm', 'do_math3', 18, 11, 5, FN, PREC, 0),
292
- e('dlogis', 'do_math3', 19, 11, 4, FN, PREC, 0), e('plogis', 'do_math3', 20, 11, 5, FN, PREC, 0),
293
- e('qlogis', 'do_math3', 21, 11, 5, FN, PREC, 0), e('dnbinom', 'do_math3', 22, 11, 4, FN, PREC, 0),
294
- e('pnbinom', 'do_math3', 23, 11, 5, FN, PREC, 0), e('qnbinom', 'do_math3', 24, 11, 5, FN, PREC, 0),
295
- e('dnorm', 'do_math3', 25, 11, 4, FN, PREC, 0), e('pnorm', 'do_math3', 26, 11, 5, FN, PREC, 0),
296
- e('qnorm', 'do_math3', 27, 11, 5, FN, PREC, 0), e('dunif', 'do_math3', 28, 11, 4, FN, PREC, 0),
297
- e('punif', 'do_math3', 29, 11, 5, FN, PREC, 0), e('qunif', 'do_math3', 30, 11, 5, FN, PREC, 0),
298
- e('dweibull', 'do_math3', 31, 11, 4, FN, PREC, 0), e('pweibull', 'do_math3', 32, 11, 5, FN, PREC, 0),
299
- e('qweibull', 'do_math3', 33, 11, 5, FN, PREC, 0), e('dnchisq', 'do_math3', 34, 11, 4, FN, PREC, 0),
300
- e('pnchisq', 'do_math3', 35, 11, 5, FN, PREC, 0), e('qnchisq', 'do_math3', 36, 11, 5, FN, PREC, 0),
301
- e('dnt', 'do_math3', 37, 11, 4, FN, PREC, 0), e('pnt', 'do_math3', 38, 11, 5, FN, PREC, 0),
302
- e('qnt', 'do_math3', 39, 11, 5, FN, PREC, 0), e('dwilcox', 'do_math3', 40, 11, 4, FN, PREC, 0),
303
- e('pwilcox', 'do_math3', 41, 11, 5, FN, PREC, 0), e('qwilcox', 'do_math3', 42, 11, 5, FN, PREC, 0),
304
- e('besselI', 'do_math3', 43, 11, 3, FN, PREC, 0), e('besselK', 'do_math3', 44, 11, 3, FN, PREC, 0),
305
- e('dnbinom_mu', 'do_math3', 45, 11, 4, FN, PREC, 0), e('pnbinom_mu', 'do_math3', 46, 11, 5, FN, PREC, 0),
306
- e('qnbinom_mu', 'do_math3', 47, 11, 5, FN, PREC, 0),
307
- /* -- Math 4 -- */
308
- e('dhyper', 'do_math4', 1, 11, 5, FN, PREC, 0), e('phyper', 'do_math4', 2, 11, 6, FN, PREC, 0),
309
- e('qhyper', 'do_math4', 3, 11, 6, FN, PREC, 0), e('dnbeta', 'do_math4', 4, 11, 5, FN, PREC, 0),
310
- e('pnbeta', 'do_math4', 5, 11, 6, FN, PREC, 0), e('qnbeta', 'do_math4', 6, 11, 6, FN, PREC, 0),
311
- e('dnf', 'do_math4', 7, 11, 5, FN, PREC, 0), e('pnf', 'do_math4', 8, 11, 6, FN, PREC, 0),
312
- e('qnf', 'do_math4', 9, 11, 6, FN, PREC, 0), e('dtukey', 'do_math4', 10, 11, 5, FN, PREC, 0),
313
- e('ptukey', 'do_math4', 11, 11, 6, FN, PREC, 0), e('qtukey', 'do_math4', 12, 11, 6, FN, PREC, 0),
314
- /* -- Random Numbers -- */
315
- e('rchisq', 'do_random1', 0, 11, 2, FN, PREC, 0), e('rexp', 'do_random1', 1, 11, 2, FN, PREC, 0),
316
- e('rgeom', 'do_random1', 2, 11, 2, FN, PREC, 0), e('rpois', 'do_random1', 3, 11, 2, FN, PREC, 0),
317
- e('rt', 'do_random1', 4, 11, 2, FN, PREC, 0), e('rsignrank', 'do_random1', 5, 11, 2, FN, PREC, 0),
318
- e('rbeta', 'do_random2', 0, 11, 3, FN, PREC, 0), e('rbinom', 'do_random2', 1, 11, 3, FN, PREC, 0),
319
- e('rcauchy', 'do_random2', 2, 11, 3, FN, PREC, 0), e('rf', 'do_random2', 3, 11, 3, FN, PREC, 0),
320
- e('rgamma', 'do_random2', 4, 11, 3, FN, PREC, 0), e('rlnorm', 'do_random2', 5, 11, 3, FN, PREC, 0),
321
- e('rlogis', 'do_random2', 6, 11, 3, FN, PREC, 0), e('rnbinom', 'do_random2', 7, 11, 3, FN, PREC, 0),
322
- e('rnbinom_mu', 'do_random2', 13, 11, 3, FN, PREC, 0), e('rnchisq', 'do_random2', 12, 11, 3, FN, PREC, 0),
323
- e('rnorm', 'do_random2', 8, 11, 3, FN, PREC, 0), e('runif', 'do_random2', 9, 11, 3, FN, PREC, 0),
324
- e('rweibull', 'do_random2', 10, 11, 3, FN, PREC, 0), e('rwilcox', 'do_random2', 11, 11, 3, FN, PREC, 0),
325
- e('rhyper', 'do_random3', 0, 11, 4, FN, PREC, 0), e('sample', 'do_sample', 0, 11, 4, FN, PREC, 0),
326
- e('sample2', 'do_sample2', 0, 11, 2, FN, PREC, 0), e('RNGkind', 'do_RNGkind', 0, 11, 3, FN, PREC, 0),
327
- e('set.seed', 'do_setseed', 0, 111, 4, FN, PREC, 0),
328
- /* -- Data Summaries -- */
329
- e('sum', 'do_summary', 0, 1, -1, FN, PREC, 0), e('min', 'do_summary', 2, 1, -1, FN, PREC, 0),
330
- e('max', 'do_summary', 3, 1, -1, FN, PREC, 0), e('prod', 'do_summary', 4, 1, -1, FN, PREC, 0),
331
- e('mean', 'do_summary', 1, 11, 1, FN, PREC, 0), e('range', 'do_range', 0, 1, -1, FN, PREC, 0),
332
- e('cumsum', 'do_cum', 1, 1, 1, FN, PREC, 0), e('cumprod', 'do_cum', 2, 1, 1, FN, PREC, 0),
333
- e('cummax', 'do_cum', 3, 1, 1, FN, PREC, 0), e('cummin', 'do_cum', 4, 1, 1, FN, PREC, 0),
334
- /* -- Type Coercion -- */
335
- e('as.character', 'do_asatomic', 0, 1, -1, FN, PREC, 0),
336
- e('as.integer', 'do_asatomic', 1, 1, -1, FN, PREC, 0),
337
- e('as.double', 'do_asatomic', 2, 1, -1, FN, PREC, 0),
338
- e('as.numeric', 'do_asatomic', 2, 1, -1, FN, PREC, 0),
339
- e('as.complex', 'do_asatomic', 3, 1, -1, FN, PREC, 0),
340
- e('as.logical', 'do_asatomic', 4, 1, -1, FN, PREC, 0),
341
- e('as.raw', 'do_asatomic', 5, 1, 1, FN, PREC, 0),
342
- e('as.call', 'do_ascall', 0, 1, 1, FN, PREC, 0),
343
- e('as.environment', 'do_as_environment', 0, 1, 1, FN, PREC, 0),
344
- e('storage.mode<-', 'do_storage_mode', 0, 1, 2, FN, PREC, 0),
345
- e('asCharacterFactor', 'do_asCharacterFactor', 0, 11, 1, FN, PREC, 0),
346
- e('as.vector', 'do_asvector', 0, 11, 2, FN, PREC, 0),
347
- e('paste', 'do_paste', 0, 11, 4, FN, PREC, 0),
348
- e('paste0', 'do_paste', 1, 11, 3, FN, PREC, 0),
349
- e('file.path', 'do_filepath', 0, 11, 2, FN, PREC, 0),
350
- e('format', 'do_format', 0, 11, 9, FN, PREC, 0),
351
- e('format.info', 'do_formatinfo', 0, 11, 3, FN, PREC, 0),
352
- e('cat', 'do_cat', 0, 111, 6, FN, PREC, 0),
353
- e('do.call', 'do_docall', 0, 211, 3, FN, PREC, 0),
354
- e('str2lang', 'do_str2lang', 0, 11, 1, FN, PREC, 0),
355
- e('str2expression', 'do_str2lang', 1, 11, 1, FN, PREC, 0),
356
- /* -- String Manipulation -- */
357
- e('substr', 'do_substr', 1, 11, 3, FN, PREC, 0), e('startsWith', 'do_startsWith', 0, 11, 2, FN, PREC, 0),
358
- e('endsWith', 'do_startsWith', 1, 11, 2, FN, PREC, 0), e('substr<-', 'do_substrgets', 1, 11, 4, FN, PREC, 0),
359
- e('strsplit', 'do_strsplit', 1, 11, 5, FN, PREC, 0), e('abbreviate', 'do_abbrev', 1, 11, 3, FN, PREC, 0),
360
- e('make.names', 'do_makenames', 0, 11, 2, FN, PREC, 0), e('pcre_config', 'do_pcre_config', 1, 11, 0, FN, PREC, 0),
361
- e('grep', 'do_grep', 0, 11, 8, FN, PREC, 0), e('grepl', 'do_grep', 1, 11, 8, FN, PREC, 0),
362
- e('grepRaw', 'do_grepraw', 0, 11, 8, FN, PREC, 0), e('sub', 'do_gsub', 0, 11, 7, FN, PREC, 0),
363
- e('gsub', 'do_gsub', 1, 11, 7, FN, PREC, 0), e('regexpr', 'do_regexpr', 0, 11, 6, FN, PREC, 0),
364
- e('gregexpr', 'do_regexpr', 1, 11, 6, FN, PREC, 0), e('regexec', 'do_regexec', 1, 11, 5, FN, PREC, 0),
365
- e('agrep', 'do_agrep', 0, 11, 8, FN, PREC, 0), e('agrepl', 'do_agrep', 1, 11, 8, FN, PREC, 0),
366
- e('adist', 'do_adist', 1, 11, 8, FN, PREC, 0), e('aregexec', 'do_aregexec', 1, 11, 7, FN, PREC, 0),
367
- e('tolower', 'do_tolower', 0, 11, 1, FN, PREC, 0), e('toupper', 'do_tolower', 1, 11, 1, FN, PREC, 0),
368
- e('chartr', 'do_chartr', 1, 11, 3, FN, PREC, 0), e('sprintf', 'do_sprintf', 1, 11, -1, FN, PREC, 0),
369
- e('make.unique', 'do_makeunique', 0, 11, 2, FN, PREC, 0), e('charToRaw', 'do_charToRaw', 1, 11, 1, FN, PREC, 0),
370
- e('rawToChar', 'do_rawToChar', 1, 11, 2, FN, PREC, 0), e('rawShift', 'do_rawShift', 1, 11, 2, FN, PREC, 0),
371
- e('intToBits', 'do_intToBits', 1, 11, 1, FN, PREC, 0), e('numToBits', 'do_numToBits', 1, 11, 1, FN, PREC, 0),
372
- e('numToInts', 'do_numToInts', 1, 11, 1, FN, PREC, 0), e('rawToBits', 'do_rawToBits', 1, 11, 1, FN, PREC, 0),
373
- e('packBits', 'do_packBits', 1, 11, 2, FN, PREC, 0), e('utf8ToInt', 'do_utf8ToInt', 1, 11, 1, FN, PREC, 0),
374
- e('intToUtf8', 'do_intToUtf8', 1, 11, 3, FN, PREC, 0), e('validUTF8', 'do_validUTF8', 1, 11, 1, FN, PREC, 0),
375
- e('validEnc', 'do_validEnc', 1, 11, 1, FN, PREC, 0), e('encodeString', 'do_encodeString', 1, 11, 5, FN, PREC, 0),
376
- e('iconv', 'do_iconv', 0, 11, 6, FN, PREC, 0), e('strtrim', 'do_strtrim', 0, 11, 2, FN, PREC, 0),
377
- e('strtoi', 'do_strtoi', 0, 11, 2, FN, PREC, 0), e('strrep', 'do_strrep', 0, 11, 2, FN, PREC, 0),
378
- /* -- Type Checking -- */
379
- e('is.null', 'do_is', 'NILSXP', 1, 1, FN, PREC, 0), e('is.logical', 'do_is', 'LGLSXP', 1, 1, FN, PREC, 0),
380
- e('is.integer', 'do_is', 'INTSXP', 1, 1, FN, PREC, 0), e('is.double', 'do_is', 'REALSXP', 1, 1, FN, PREC, 0),
381
- e('is.complex', 'do_is', 'CPLXSXP', 1, 1, FN, PREC, 0), e('is.character', 'do_is', 'STRSXP', 1, 1, FN, PREC, 0),
382
- e('is.symbol', 'do_is', 'SYMSXP', 1, 1, FN, PREC, 0), e('is.name', 'do_is', 'SYMSXP', 1, 1, FN, PREC, 0),
383
- e('is.environment', 'do_is', 'ENVSXP', 1, 1, FN, PREC, 0), e('is.list', 'do_is', 'VECSXP', 1, 1, FN, PREC, 0),
384
- e('is.pairlist', 'do_is', 'LISTSXP', 1, 1, FN, PREC, 0), e('is.expression', 'do_is', 'EXPRSXP', 1, 1, FN, PREC, 0),
385
- e('is.raw', 'do_is', 'RAWSXP', 1, 1, FN, PREC, 0), e('is.object', 'do_is', 50, 1, 1, FN, PREC, 0),
386
- e('isS4', 'do_is', 51, 1, 1, FN, PREC, 0), e('is.numeric', 'do_is', 100, 1, 1, FN, PREC, 0),
387
- e('is.matrix', 'do_is', 101, 1, 1, FN, PREC, 0), e('is.array', 'do_is', 102, 1, 1, FN, PREC, 0),
388
- e('is.atomic', 'do_is', 200, 1, 1, FN, PREC, 0), e('is.recursive', 'do_is', 201, 1, 1, FN, PREC, 0),
389
- e('is.call', 'do_is', 300, 1, 1, FN, PREC, 0), e('is.language', 'do_is', 301, 1, 1, FN, PREC, 0),
390
- e('is.function', 'do_is', 302, 1, 1, FN, PREC, 0), e('is.single', 'do_is', 999, 1, 1, FN, PREC, 0),
391
- e('str2expression', 'do_str2lang', 1, 11, 1, FN, PREC, 0),
392
- e('is.na', 'do_isna', 0, 1, 1, FN, PREC, 0), e('is.nan', 'do_isnan', 0, 1, 1, FN, PREC, 0),
393
- e('is.finite', 'do_isfinite', 0, 1, 1, FN, PREC, 0), e('is.infinite', 'do_isinfinite', 0, 1, 1, FN, PREC, 0),
394
- e('is.vector', 'do_isvector', 0, 11, 2, FN, PREC, 0),
395
- /* -- Miscellaneous (primitives) -- */
396
- e('proc.time', 'do_proctime', 0, 1, 0, FN, PREC, 0), e('gc.time', 'do_gctime', 0, 1, -1, FN, PREC, 0),
397
- e('withVisible', 'do_withVisible', 1, 10, 1, FN, PREC, 0), e('expression', 'do_expression', 1, 0, -1, FN, PREC, 0),
398
- e('interactive', 'do_interactive', 0, 1, 0, FN, PREC, 0), e('invisible', 'do_invisible', 0, 101, 1, FN, PREC, 0),
399
- e('rep', 'do_rep', 0, 0, -1, FN, PREC, 0), e('rep.int', 'do_rep_int', 0, 11, 2, FN, PREC, 0),
400
- e('rep_len', 'do_rep_len', 0, 11, 2, FN, PREC, 0), e('seq.int', 'do_seq', 0, 1, -1, FN, PREC, 0),
401
- e('seq_len', 'do_seq_len', 0, 1, 1, FN, PREC, 0), e('seq_along', 'do_seq_along', 0, 1, 1, FN, PREC, 0),
402
- e('list', 'do_makelist', 1, 1, -1, FN, PREC, 0), e('xtfrm', 'do_xtfrm', 0, 1, 1, FN, PREC, 0),
403
- e('enc2native', 'do_enc2', 0, 1, 1, FN, PREC, 0), e('enc2utf8', 'do_enc2', 1, 1, 1, FN, PREC, 0),
404
- e('emptyenv', 'do_emptyenv', 0, 1, 0, FN, PREC, 0), e('baseenv', 'do_baseenv', 0, 1, 0, FN, PREC, 0),
405
- e('globalenv', 'do_globalenv', 0, 1, 0, FN, PREC, 0), e('environment<-', 'do_envirgets', 0, 1, 2, FN, Precedence.Left, 1),
406
- e('pos.to.env', 'do_pos2env', 0, 1, 1, FN, PREC, 0),
407
- /* -- Foreign interface -- */
408
- e('.C', 'do_dotCode', 0, 1, -1, PPKind.Foreign, PREC, 0),
409
- e('.Fortran', 'do_dotCode', 1, 1, -1, PPKind.Foreign, PREC, 0),
410
- e('.External', 'do_External', 0, 1, -1, PPKind.Foreign, PREC, 0),
411
- e('.External2', 'do_External', 1, 201, -1, PPKind.Foreign, PREC, 0),
412
- e('.Call', 'do_dotcall', 0, 1, -1, PPKind.Foreign, PREC, 0),
413
- e('.External.graphics', 'do_Externalgr', 0, 1, -1, PPKind.Foreign, PREC, 0),
414
- e('.Call.graphics', 'do_dotcallgr', 0, 1, -1, PPKind.Foreign, PREC, 0),
415
- /* -- .Internal apply family -- */
416
- e('eapply', 'do_eapply', 0, 10, 4, FN, PREC, 0), e('lapply', 'do_lapply', 0, 10, 2, FN, PREC, 0),
417
- e('vapply', 'do_vapply', 0, 10, 4, FN, PREC, 0), e('mapply', 'do_mapply', 0, 11, 3, FN, PREC, 0),
418
- /* -- System info -- */
419
- e('Version', 'do_version', 0, 11, 0, FN, PREC, 0), e('machine', 'do_machine', 0, 11, 0, FN, PREC, 0),
420
- e('commandArgs', 'do_commandArgs', 0, 11, 0, FN, PREC, 0), e('internalsID', 'do_internalsID', 0, 11, 0, FN, PREC, 0),
421
- e('system', 'do_system', 0, 211, 4, FN, PREC, 0),
422
- /* -- Parse / deparse / IO -- */
423
- e('parse', 'do_parse', 0, 11, 6, FN, PREC, 0),
424
- e('save', 'do_save', 0, 111, 6, FN, PREC, 0),
425
- e('saveToConn', 'do_saveToConn', 0, 111, 6, FN, PREC, 0),
426
- e('load', 'do_load', 0, 111, 2, FN, PREC, 0),
427
- e('loadFromConn2', 'do_loadFromConn2', 0, 111, 3, FN, PREC, 0),
428
- e('loadInfoFromConn2', 'do_loadFromConn2', 1, 11, 1, FN, PREC, 0),
429
- e('serializeToConn', 'do_serializeToConn', 0, 111, 5, FN, PREC, 0),
430
- e('unserializeFromConn', 'do_unserializeFromConn', 0, 11, 2, FN, PREC, 0),
431
- e('serializeInfoFromConn', 'do_unserializeFromConn', 1, 11, 1, FN, PREC, 0),
432
- e('deparse', 'do_deparse', 0, 11, 5, FN, PREC, 0),
433
- e('dput', 'do_dput', 0, 111, 3, FN, PREC, 0),
434
- e('dump', 'do_dump', 0, 111, 5, FN, PREC, 0),
435
- e('quit', 'do_quit', 0, 111, 3, FN, PREC, 0),
436
- e('readline', 'do_readln', 0, 11, 1, FN, PREC, 0),
437
- e('print.default', 'do_printdefault', 0, 111, 3, FN, PREC, 0),
438
- e('prmatrix', 'do_prmatrix', 0, 111, 6, FN, PREC, 0),
439
- e('gc', 'do_gc', 0, 11, 3, FN, PREC, 0),
440
- e('gcinfo', 'do_gcinfo', 0, 11, 1, FN, PREC, 0),
441
- e('gctorture', 'do_gctorture', 0, 111, 1, FN, PREC, 0),
442
- e('gctorture2', 'do_gctorture2', 0, 11, 3, FN, PREC, 0),
443
- e('memory.profile', 'do_memoryprofile', 0, 11, 0, FN, PREC, 0),
444
- e('mem.maxVSize', 'do_maxVSize', 0, 11, 1, FN, PREC, 0),
445
- e('mem.maxNSize', 'do_maxNSize', 0, 11, 1, FN, PREC, 0),
446
- e('split', 'do_split', 0, 11, 2, FN, PREC, 0),
447
- e('is.loaded', 'do_isloaded', 0, 11, -1, PPKind.Foreign, PREC, 0),
448
- e('recordGraphics', 'do_recordGraphics', 0, 211, 3, PPKind.Foreign, PREC, 0),
449
- e('dyn.load', 'do_dynload', 0, 111, 4, FN, PREC, 0),
450
- e('dyn.unload', 'do_dynunload', 0, 111, 1, FN, PREC, 0),
451
- e('ls', 'do_ls', 1, 11, 3, FN, PREC, 0),
452
- e('typeof', 'do_typeof', 1, 11, 1, FN, PREC, 0),
453
- e('eval', 'do_eval', 0, 211, 3, FN, PREC, 0),
454
- e('Exec', 'do_tailcall', 0, 200, -1, FN, PREC, 0),
455
- e('Tailcall', 'do_tailcall', 1, 200, -1, FN, PREC, 0),
456
- e('returnValue', 'do_returnValue', 0, 11, 1, FN, PREC, 0),
457
- e('sys.parent', 'do_sys', 1, 11, -1, FN, PREC, 0),
458
- e('sys.call', 'do_sys', 2, 11, -1, FN, PREC, 0),
459
- e('sys.frame', 'do_sys', 3, 11, -1, FN, PREC, 0),
460
- e('sys.nframe', 'do_sys', 4, 11, -1, FN, PREC, 0),
461
- e('sys.calls', 'do_sys', 5, 11, -1, FN, PREC, 0),
462
- e('sys.frames', 'do_sys', 6, 11, -1, FN, PREC, 0),
463
- e('sys.on.exit', 'do_sys', 7, 11, -1, FN, PREC, 0),
464
- e('sys.parents', 'do_sys', 8, 11, -1, FN, PREC, 0),
465
- e('sys.function', 'do_sys', 9, 11, -1, FN, PREC, 0),
466
- e('traceback', 'do_traceback', 0, 11, 1, FN, PREC, 0),
467
- e('browserText', 'do_sysbrowser', 1, 11, 1, FN, PREC, 0),
468
- e('browserCondition', 'do_sysbrowser', 2, 11, 1, FN, PREC, 0),
469
- e('browserSetDebug', 'do_sysbrowser', 3, 111, 1, FN, PREC, 0),
470
- e('parent.frame', 'do_parentframe', 0, 11, 1, FN, PREC, 0),
471
- e('sort', 'do_sort', 1, 11, 2, FN, PREC, 0),
472
- e('is.unsorted', 'do_isunsorted', 0, 11, 3, FN, PREC, 0),
473
- e('sorted_fpass', 'do_sorted_fpass', 0, 11, 3, FN, PREC, 0),
474
- e('psort', 'do_psort', 0, 11, 2, FN, PREC, 0),
475
- e('qsort', 'do_qsort', 0, 11, 2, FN, PREC, 0),
476
- e('radixsort', 'do_radixsort', 0, 11, -1, FN, PREC, 0),
477
- e('order', 'do_order', 0, 11, -1, FN, PREC, 0),
478
- e('rank', 'do_rank', 0, 11, 3, FN, PREC, 0),
479
- e('scan', 'do_scan', 0, 11, 19, FN, PREC, 0),
480
- e('t.default', 'do_transpose', 0, 11, 1, FN, PREC, 0),
481
- e('aperm', 'do_aperm', 0, 11, 3, FN, PREC, 0),
482
- e('builtins', 'do_builtins', 0, 11, 1, FN, PREC, 0),
483
- e('args', 'do_args', 0, 11, 1, FN, PREC, 0),
484
- e('formals', 'do_formals', 0, 11, 1, FN, PREC, 0),
485
- e('body', 'do_body', 0, 11, 1, FN, PREC, 0),
486
- e('bodyCode', 'do_bodyCode', 0, 11, 1, FN, PREC, 0),
487
- e('environment', 'do_envir', 0, 11, 1, FN, PREC, 0),
488
- e('environmentName', 'do_envirName', 0, 11, 1, FN, PREC, 0),
489
- e('env2list', 'do_env2list', 0, 11, 3, FN, PREC, 0),
490
- e('reg.finalizer', 'do_regFinaliz', 0, 11, 3, FN, PREC, 0),
491
- e('options', 'do_options', 0, 211, -1, FN, PREC, 0),
492
- e('getOption', 'do_getOption', 0, 11, 1, FN, PREC, 0),
493
- e('sink', 'do_sink', 0, 111, 4, FN, PREC, 0),
494
- e('sink.number', 'do_sinknumber', 0, 11, 1, FN, PREC, 0),
495
- e('rapply', 'do_rapply', 0, 11, 5, FN, PREC, 0),
496
- e('islistfactor', 'do_islistfactor', 0, 11, 2, FN, PREC, 0),
497
- e('colSums', 'do_colsum', 0, 11, 4, FN, PREC, 0),
498
- e('colMeans', 'do_colsum', 1, 11, 4, FN, PREC, 0),
499
- e('rowSums', 'do_colsum', 2, 11, 4, FN, PREC, 0),
500
- e('rowMeans', 'do_colsum', 3, 11, 4, FN, PREC, 0),
501
- e('tracemem', 'do_tracemem', 0, 1, 1, FN, PREC, 0),
502
- e('retracemem', 'do_retracemem', 0, 201, -1, FN, PREC, 0),
503
- e('untracemem', 'do_untracemem', 0, 101, 1, FN, PREC, 0),
504
- e('inspect', 'do_inspect', 0, 111, -1, FN, PREC, 0),
505
- e('address', 'do_address', 0, 11, 1, FN, PREC, 0),
506
- e('named', 'do_named', 0, 11, 1, FN, PREC, 0),
507
- e('refcnt', 'do_refcnt', 0, 11, 1, FN, PREC, 0),
508
- e('merge', 'do_merge', 0, 11, 4, FN, PREC, 0),
509
- e('capabilities', 'do_capabilities', 0, 11, 0, FN, PREC, 0),
510
- e('capabilitiesX11', 'do_capabilitiesX11', 0, 11, 0, FN, PREC, 0),
511
- e('new.env', 'do_newenv', 0, 11, 3, FN, PREC, 0),
512
- e('parent.env', 'do_parentenv', 0, 11, 1, FN, PREC, 0),
513
- e('parent.env<-', 'do_parentenvgets', 0, 11, 2, FN, Precedence.Left, 1),
514
- e('topenv', 'do_topenv', 0, 11, 2, FN, PREC, 0),
515
- e('l10n_info', 'do_l10n_info', 0, 11, 0, FN, PREC, 0),
516
- e('Cstack_info', 'do_Cstack_info', 0, 11, 0, FN, PREC, 0),
517
- e('mmap_file', 'do_mmap_file', 0, 11, -1, FN, PREC, 0),
518
- e('munmap_file', 'do_munmap_file', 0, 111, 1, FN, PREC, 0),
519
- e('wrap_meta', 'do_wrap_meta', 0, 11, 3, FN, PREC, 0),
520
- e('tryWrap', 'do_tryWrap', 0, 11, 1, FN, PREC, 0),
521
- e('altrep_class', 'do_altrep_class', 0, 11, 1, FN, PREC, 0),
522
- /* -- OS interaction -- */
523
- e('file.show', 'do_fileshow', 0, 111, 5, FN, PREC, 0), e('file.create', 'do_filecreate', 0, 11, 2, FN, PREC, 0),
524
- e('file.remove', 'do_fileremove', 0, 11, 1, FN, PREC, 0), e('file.rename', 'do_filerename', 0, 11, 2, FN, PREC, 0),
525
- e('file.append', 'do_fileappend', 0, 11, 2, FN, PREC, 0), e('file.symlink', 'do_filesymlink', 0, 11, 2, FN, PREC, 0),
526
- e('file.link', 'do_filelink', 0, 11, 2, FN, PREC, 0), e('file.copy', 'do_filecopy', 0, 11, 6, FN, PREC, 0),
527
- e('list.files', 'do_listfiles', 0, 11, 9, FN, PREC, 0), e('list.dirs', 'do_listdirs', 0, 11, 3, FN, PREC, 0),
528
- e('file.exists', 'do_fileexists', 0, 11, 1, FN, PREC, 0), e('file.choose', 'do_filechoose', 0, 11, 1, FN, PREC, 0),
529
- e('file.info', 'do_fileinfo', 0, 11, 2, FN, PREC, 0), e('file.access', 'do_fileaccess', 0, 11, 2, FN, PREC, 0),
530
- e('dir.exists', 'do_direxists', 0, 11, 1, FN, PREC, 0), e('dir.create', 'do_dircreate', 0, 111, 4, FN, PREC, 0),
531
- e('tempfile', 'do_tempfile', 0, 11, 3, FN, PREC, 0), e('tempdir', 'do_tempdir', 0, 11, 1, FN, PREC, 0),
532
- e('R.home', 'do_Rhome', 0, 11, 0, FN, PREC, 0), e('date', 'do_date', 0, 11, 0, FN, PREC, 0),
533
- e('Sys.getenv', 'do_getenv', 0, 11, 2, FN, PREC, 0), e('Sys.setenv', 'do_setenv', 0, 111, 2, FN, PREC, 0),
534
- e('Sys.unsetenv', 'do_unsetenv', 0, 111, 1, FN, PREC, 0), e('getwd', 'do_getwd', 0, 11, 0, FN, PREC, 0),
535
- e('setwd', 'do_setwd', 0, 111, 1, FN, PREC, 0), e('basename', 'do_basename', 0, 11, 1, FN, PREC, 0),
536
- e('dirname', 'do_dirname', 0, 11, 1, FN, PREC, 0), e('Sys.chmod', 'do_syschmod', 0, 111, 3, FN, PREC, 0),
537
- e('Sys.umask', 'do_sysumask', 0, 211, 1, FN, PREC, 0), e('Sys.readlink', 'do_readlink', 0, 11, 1, FN, PREC, 0),
538
- e('Sys.info', 'do_sysinfo', 0, 11, 0, FN, PREC, 0), e('Sys.sleep', 'do_syssleep', 0, 111, 1, FN, PREC, 0),
539
- e('Sys.getlocale', 'do_getlocale', 0, 11, 1, FN, PREC, 0), e('Sys.setlocale', 'do_setlocale', 0, 11, 2, FN, PREC, 0),
540
- e('Sys.localeconv', 'do_localeconv', 0, 11, 0, FN, PREC, 0), e('path.expand', 'do_pathexpand', 0, 11, 1, FN, PREC, 0),
541
- e('Sys.getpid', 'do_sysgetpid', 0, 11, 0, FN, PREC, 0), e('normalizePath', 'do_normalizepath', 0, 11, 3, FN, PREC, 0),
542
- e('Sys.glob', 'do_glob', 0, 11, 2, FN, PREC, 0), e('unlink', 'do_unlink', 0, 111, 4, FN, PREC, 0),
543
- /* -- Complex -- */
544
- e('polyroot', 'do_polyroot', 0, 11, 1, FN, PREC, 0),
545
- /* -- Objects / S3 -- */
546
- e('inherits', 'do_inherits', 0, 11, 3, FN, PREC, 0),
547
- e('UseMethod', 'do_usemethod', 0, 200, -1, FN, PREC, 0),
548
- e('NextMethod', 'do_nextmethod', 0, 210, -1, FN, PREC, 0),
549
- e('standardGeneric', 'do_standardGeneric', 0, 201, -1, FN, PREC, 0),
550
- /* -- Date-time -- */
551
- e('Sys.time', 'do_systime', 0, 11, 0, FN, PREC, 0),
552
- e('as.POSIXct', 'do_asPOSIXct', 0, 11, 2, FN, PREC, 0),
553
- e('as.POSIXlt', 'do_asPOSIXlt', 0, 11, 2, FN, PREC, 0),
554
- e('format.POSIXlt', 'do_formatPOSIXlt', 0, 11, 4, FN, PREC, 0),
555
- e('strptime', 'do_strptime', 0, 11, 3, FN, PREC, 0),
556
- e('Date2POSIXlt', 'do_D2POSIXlt', 0, 11, 2, FN, PREC, 0),
557
- e('POSIXlt2Date', 'do_POSIXlt2D', 0, 11, 1, FN, PREC, 0),
558
- e('balancePOSIXlt', 'do_balancePOSIXlt', 0, 11, 3, FN, PREC, 0),
559
- e('unCfillPOSIXlt', 'do_balancePOSIXlt', 1, 1, 1, FN, PREC, 0),
560
- e('compareNumericVersion', 'do_compareNumericVersion', 0, 11, 2, FN, PREC, 0),
561
- /* -- Bytecode compiler -- */
562
- e('mkCode', 'do_mkcode', 0, 11, 2, FN, PREC, 0), e('bcClose', 'do_bcclose', 0, 11, 3, FN, PREC, 0),
563
- e('is.builtin.internal', 'do_is_builtin_internal', 0, 11, 1, FN, PREC, 0),
564
- e('disassemble', 'do_disassemble', 0, 11, 1, FN, PREC, 0), e('bcVersion', 'do_bcversion', 0, 11, 0, FN, PREC, 0),
565
- e('load.from.file', 'do_loadfile', 0, 11, 1, FN, PREC, 0), e('save.to.file', 'do_savefile', 0, 11, 4, FN, PREC, 0),
566
- e('growconst', 'do_growconst', 0, 11, 1, FN, PREC, 0), e('putconst', 'do_putconst', 0, 11, 3, FN, PREC, 0),
567
- e('getconst', 'do_getconst', 0, 11, 2, FN, PREC, 0), e('enableJIT', 'do_enablejit', 0, 11, 1, FN, PREC, 0),
568
- e('compilePKGS', 'do_compilepkgs', 0, 11, 1, FN, PREC, 0),
569
- e('setNumMathThreads', 'do_setnumthreads', 0, 11, 1, FN, PREC, 0),
570
- e('setMaxNumMathThreads', 'do_setmaxnumthreads', 0, 11, 1, FN, PREC, 0),
571
- /* -- Connections -- */
572
- e('stdin', 'do_stdin', 0, 11, 0, FN, PREC, 0), e('stdout', 'do_stdout', 0, 11, 0, FN, PREC, 0),
573
- e('stderr', 'do_stderr', 0, 11, 0, FN, PREC, 0), e('isatty', 'do_isatty', 0, 11, 1, FN, PREC, 0),
574
- e('readLines', 'do_readLines', 0, 11, 6, FN, PREC, 0), e('writeLines', 'do_writelines', 0, 111, 4, FN, PREC, 0),
575
- e('readBin', 'do_readbin', 0, 11, 6, FN, PREC, 0), e('writeBin', 'do_writebin', 0, 211, 5, FN, PREC, 0),
576
- e('readChar', 'do_readchar', 0, 11, 3, FN, PREC, 0), e('writeChar', 'do_writechar', 0, 211, 5, FN, PREC, 0),
577
- e('open', 'do_open', 0, 111, 3, FN, PREC, 0), e('isOpen', 'do_isopen', 0, 11, 2, FN, PREC, 0),
578
- e('isIncomplete', 'do_isincomplete', 0, 11, 1, FN, PREC, 0), e('isSeekable', 'do_isseekable', 0, 11, 1, FN, PREC, 0),
579
- e('close', 'do_close', 0, 111, 2, FN, PREC, 0), e('flush', 'do_flush', 0, 111, 1, FN, PREC, 0),
580
- e('file', 'do_url', 1, 11, 6, FN, PREC, 0), e('url', 'do_url', 0, 11, 6, FN, PREC, 0),
581
- e('pipe', 'do_pipe', 0, 11, 3, FN, PREC, 0), e('fifo', 'do_fifo', 0, 11, 4, FN, PREC, 0),
582
- e('gzfile', 'do_gzfile', 0, 11, 4, FN, PREC, 0), e('bzfile', 'do_gzfile', 1, 11, 4, FN, PREC, 0),
583
- e('xzfile', 'do_gzfile', 2, 11, 4, FN, PREC, 0), e('zstdfile', 'do_gzfile', 3, 11, 4, FN, PREC, 0),
584
- e('unz', 'do_unz', 0, 11, 3, FN, PREC, 0), e('seek', 'do_seek', 0, 11, 4, FN, PREC, 0),
585
- e('truncate', 'do_truncate', 0, 11, 1, FN, PREC, 0), e('pushBack', 'do_pushback', 0, 111, 4, FN, PREC, 0),
586
- e('clearPushBack', 'do_clearpushback', 0, 111, 1, FN, PREC, 0), e('pushBackLength', 'do_pushbacklength', 0, 11, 1, FN, PREC, 0),
587
- e('rawConnection', 'do_rawconnection', 0, 11, 3, FN, PREC, 0), e('rawConnectionValue', 'do_rawconvalue', 0, 11, 1, FN, PREC, 0),
588
- e('textConnection', 'do_textconnection', 0, 11, 5, FN, PREC, 0), e('textConnectionValue', 'do_textconvalue', 0, 11, 1, FN, PREC, 0),
589
- e('socketConnection', 'do_sockconn', 0, 11, 8, FN, PREC, 0), e('socketAccept', 'do_sockconn', 1, 11, 6, FN, PREC, 0),
590
- e('sockSelect', 'do_sockselect', 0, 11, 3, FN, PREC, 0), e('serverSocket', 'do_serversocket', 0, 11, 1, FN, PREC, 0),
591
- e('socketTimeout', 'do_socktimeout', 0, 11, 2, FN, PREC, 0), e('getConnection', 'do_getconnection', 0, 11, 1, FN, PREC, 0),
592
- e('getAllConnections', 'do_getallconnections', 0, 11, 0, FN, PREC, 0),
593
- e('summary.connection', 'do_sumconnection', 0, 11, 1, FN, PREC, 0),
594
- e('gzcon', 'do_gzcon', 0, 11, 4, FN, PREC, 0),
595
- e('memCompress', 'do_memCompress', 0, 11, 2, FN, PREC, 0),
596
- e('memDecompress', 'do_memDecompress', 0, 11, 2, FN, PREC, 0),
597
- e('readDCF', 'do_readDCF', 0, 11, 3, FN, PREC, 0),
598
- /* -- Namespace / environment locking -- */
599
- e('lockEnvironment', 'do_lockEnv', 0, 111, 2, FN, PREC, 0),
600
- e('environmentIsLocked', 'do_envIsLocked', 0, 11, 1, FN, PREC, 0),
601
- e('lockBinding', 'do_lockBnd', 0, 111, 2, FN, PREC, 0),
602
- e('unlockBinding', 'do_lockBnd', 1, 111, 2, FN, PREC, 0),
603
- e('bindingIsLocked', 'do_bndIsLocked', 0, 11, 2, FN, PREC, 0),
604
- e('makeActiveBinding', 'do_mkActiveBnd', 0, 111, 3, FN, PREC, 0),
605
- e('bindingIsActive', 'do_bndIsActive', 0, 11, 2, FN, PREC, 0),
606
- e('activeBindingFunction', 'do_activeBndFun', 0, 11, 2, FN, PREC, 0),
607
- e('mkUnbound', 'do_mkUnbound', 0, 111, 1, FN, PREC, 0),
608
- e('isNamespaceEnv', 'do_isNSEnv', 0, 11, 1, FN, PREC, 0),
609
- e('registerNamespace', 'do_regNS', 0, 11, 2, FN, PREC, 0),
610
- e('unregisterNamespace', 'do_unregNS', 0, 11, 1, FN, PREC, 0),
611
- e('getRegisteredNamespace', 'do_getRegNS', 0, 11, 1, FN, PREC, 0),
612
- e('isRegisteredNamespace', 'do_getRegNS', 1, 11, 1, FN, PREC, 0),
613
- e('getNamespaceRegistry', 'do_getNSRegistry', 0, 11, 0, FN, PREC, 0),
614
- e('importIntoEnv', 'do_importIntoEnv', 0, 11, 4, FN, PREC, 0),
615
- e('env.profile', 'do_envprofile', 0, 211, 1, FN, PREC, 0),
616
- /* -- Misc internals -- */
617
- e('Encoding', 'do_encoding', 0, 11, 1, FN, PREC, 0), e('setEncoding', 'do_setencoding', 0, 11, 2, FN, PREC, 0),
618
- e('setTimeLimit', 'do_setTimeLimit', 0, 111, 3, FN, PREC, 0), e('setSessionTimeLimit', 'do_setSessionTimeLimit', 0, 111, 2, FN, PREC, 0),
619
- e('icuSetCollate', 'do_ICUset', 0, 111, -1, FN, PREC, 0), e('icuGetCollate', 'do_ICUget', 0, 11, 1, FN, PREC, 0),
620
- e('readRenviron', 'do_readEnviron', 0, 111, 1, FN, PREC, 0), e('shortRowNames', 'do_shortRowNames', 0, 11, 2, FN, PREC, 0),
621
- e('copyDFattr', 'do_copyDFattr', 0, 11, 2, FN, PREC, 0), e('getRegisteredRoutines', 'do_getRegisteredRoutines', 0, 11, 1, FN, PREC, 0),
622
- e('getLoadedDLLs', 'do_getDllTable', 0, 11, 0, FN, PREC, 0), e('getSymbolInfo', 'do_getSymbolInfo', 0, 11, 3, FN, PREC, 0),
623
- e('.isMethodsDispatchOn', 'do_S4on', 0, 1, -1, FN, PREC, 0), e('lazyLoadDBfetch', 'do_lazyLoadDBfetch', 0, 1, 4, FN, PREC, 0),
624
- e('lazyLoadDBflush', 'do_lazyLoadDBflush', 0, 11, 1, FN, PREC, 0), e('getVarsFromFrame', 'do_getVarsFromFrame', 0, 11, 3, FN, PREC, 0),
625
- e('lazyLoadDBinsertValue', 'do_lazyLoadDBinsertValue', 0, 11, 5, FN, PREC, 0),
626
- e('bincode', 'do_bincode', 0, 11, 4, FN, PREC, 0), e('tabulate', 'do_tabulate', 0, 11, 2, FN, PREC, 0),
627
- e('findInterval', 'do_findinterval', 0, 11, 6, FN, PREC, 0), e('pretty', 'do_pretty', 0, 11, 8, FN, PREC, 0),
628
- e('formatC', 'do_formatC', 0, 11, 7, FN, PREC, 0), e('crc64', 'do_crc64', 0, 11, 1, FN, PREC, 0),
629
- e('bitwiseAnd', 'do_bitwise', 1, 11, 2, FN, PREC, 0), e('bitwiseNot', 'do_bitwise', 2, 11, 1, FN, PREC, 0),
630
- e('bitwiseOr', 'do_bitwise', 3, 11, 2, FN, PREC, 0), e('bitwiseXor', 'do_bitwise', 4, 11, 2, FN, PREC, 0),
631
- e('bitwiseShiftL', 'do_bitwise', 5, 11, 2, FN, PREC, 0), e('bitwiseShiftR', 'do_bitwise', 6, 11, 2, FN, PREC, 0),
632
- e('serialize', 'do_serialize', 0, 11, 5, FN, PREC, 0), e('serializeb', 'do_serialize', 1, 11, 5, FN, PREC, 0),
633
- e('unserialize', 'do_serialize', 2, 11, 2, FN, PREC, 0), e('rowsum_matrix', 'do_rowsum', 0, 11, 5, FN, PREC, 0),
634
- e('rowsum_df', 'do_rowsum', 1, 11, 5, FN, PREC, 0), e('setS4Object', 'do_setS4Object', 0, 11, 3, FN, PREC, 0),
635
- e('traceOnOff', 'do_traceOnOff', 0, 11, 1, FN, PREC, 0), e('debugOnOff', 'do_traceOnOff', 1, 11, 1, FN, PREC, 0),
636
- /* -- LAPACK -- */
637
- e('La_qr_cmplx', 'do_lapack', 0, 11, 1, FN, PREC, 0), e('La_rs', 'do_lapack', 1, 11, 2, FN, PREC, 0),
638
- e('La_rs_cmplx', 'do_lapack', 2, 11, 2, FN, PREC, 0), e('La_rg', 'do_lapack', 3, 11, 2, FN, PREC, 0),
639
- e('La_rg_cmplx', 'do_lapack', 41, 11, 2, FN, PREC, 0), e('La_dlange', 'do_lapack', 6, 11, 2, FN, PREC, 0),
640
- e('La_dgecon', 'do_lapack', 7, 11, 2, FN, PREC, 0), e('La_dtrcon', 'do_lapack', 8, 11, 2, FN, PREC, 0),
641
- e('La_dtrcon3', 'do_lapack', 81, 11, 3, FN, PREC, 0), e('La_zlange', 'do_lapack', 61, 11, 2, FN, PREC, 0),
642
- e('La_zgecon', 'do_lapack', 9, 11, 2, FN, PREC, 0), e('La_ztrcon', 'do_lapack', 10, 11, 2, FN, PREC, 0),
643
- e('La_ztrcon3', 'do_lapack', 13, 11, 3, FN, PREC, 0), e('La_solve_cmplx', 'do_lapack', 11, 11, 3, FN, PREC, 0),
644
- e('La_solve', 'do_lapack', 100, 11, 3, FN, PREC, 0), e('La_qr', 'do_lapack', 101, 11, 1, FN, PREC, 0),
645
- e('La_chol', 'do_lapack', 200, 11, 3, FN, PREC, 0), e('La_chol2inv', 'do_lapack', 201, 11, 2, FN, PREC, 0),
646
- e('qr_coef_real', 'do_lapack', 300, 11, 2, FN, PREC, 0), e('qr_qy_real', 'do_lapack', 301, 11, 3, FN, PREC, 0),
647
- e('det_ge_real', 'do_lapack', 302, 11, 2, FN, PREC, 0), e('qr_coef_cmplx', 'do_lapack', 303, 11, 2, FN, PREC, 0),
648
- e('qr_qy_cmplx', 'do_lapack', 304, 11, 3, FN, PREC, 0), e('La_svd', 'do_lapack', 400, 11, 5, FN, PREC, 0),
649
- e('La_svd_cmplx', 'do_lapack', 401, 11, 5, FN, PREC, 0), e('La_version', 'do_lapack', 1000, 11, 0, FN, PREC, 0),
650
- e('La_library', 'do_lapack', 1001, 11, 0, FN, PREC, 0),
651
- /* -- Bytecode profiling -- */
652
- e('bcprofcounts', 'do_bcprofcounts', 0, 11, 0, FN, PREC, 0),
653
- e('bcprofstart', 'do_bcprofstart', 0, 11, 0, FN, PREC, 0),
654
- e('bcprofstop', 'do_bcprofstop', 0, 11, 0, FN, PREC, 0),
655
- /* -- curl / network -- */
656
- e('eSoftVersion', 'do_eSoftVersion', 0, 11, 0, FN, PREC, 0), e('curlVersion', 'do_curlVersion', 0, 11, 0, FN, PREC, 0),
657
- e('curlGetHeaders', 'do_curlGetHeaders', 0, 11, 5, FN, PREC, 0), e('curlDownload', 'do_curlDownload', 0, 11, 6, FN, PREC, 0),
658
- e('compilerVersion', 'do_compilerVersion', 0, 11, 0, FN, PREC, 0),
659
- ];
660
13
  exports.RFunTabOffsets = {
661
14
  'if': 0, 'while': 0,
662
15
  'for': 0, 'repeat': 0,