redscript-mc 2.6.0 → 3.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (3762) hide show
  1. package/.github/workflows/ci.yml +11 -0
  2. package/CHANGELOG.md +89 -0
  3. package/README-benchmarks.md +48 -0
  4. package/README-vscode-test.md +251 -0
  5. package/README.md +3 -75
  6. package/README.zh.md +165 -147
  7. package/RELEASE_NOTES.md +74 -0
  8. package/ROADMAP.md +138 -124
  9. package/benchmarks/_shared.ts +468 -0
  10. package/benchmarks/baseline.json +2816 -0
  11. package/benchmarks/baseline.md +13 -0
  12. package/benchmarks/compiler-perf.report.json +207 -0
  13. package/benchmarks/compiler-perf.ts +76 -0
  14. package/benchmarks/results.md +13 -0
  15. package/benchmarks/stdlib-complexity.report.json +2606 -0
  16. package/benchmarks/stdlib-complexity.ts +54 -0
  17. package/benchmarks/stdlib-size.md +57 -0
  18. package/benchmarks/stdlib-size.ts +91 -0
  19. package/coverage-report.md +177 -0
  20. package/dist/__tests__/cli.test.d.ts +1 -0
  21. package/dist/__tests__/cli.test.js +278 -0
  22. package/dist/__tests__/codegen.test.d.ts +1 -0
  23. package/dist/__tests__/codegen.test.js +152 -0
  24. package/dist/__tests__/compile-all.test.d.ts +10 -0
  25. package/dist/__tests__/compile-all.test.js +108 -0
  26. package/dist/__tests__/dce.test.d.ts +1 -0
  27. package/dist/__tests__/dce.test.js +138 -0
  28. package/dist/__tests__/diagnostics.test.d.ts +4 -0
  29. package/dist/__tests__/diagnostics.test.js +149 -0
  30. package/dist/__tests__/e2e.test.d.ts +6 -0
  31. package/dist/__tests__/e2e.test.js +1847 -0
  32. package/dist/__tests__/entity-types.test.d.ts +1 -0
  33. package/dist/__tests__/entity-types.test.js +203 -0
  34. package/dist/__tests__/formatter.test.d.ts +1 -0
  35. package/dist/__tests__/formatter.test.js +40 -0
  36. package/dist/__tests__/lexer.test.d.ts +1 -0
  37. package/dist/__tests__/lexer.test.js +343 -0
  38. package/dist/__tests__/lowering.test.d.ts +1 -0
  39. package/dist/__tests__/lowering.test.js +1015 -0
  40. package/dist/__tests__/macro.test.d.ts +8 -0
  41. package/dist/__tests__/macro.test.js +305 -0
  42. package/dist/__tests__/mc-integration.test.d.ts +12 -0
  43. package/dist/__tests__/mc-integration.test.js +819 -0
  44. package/dist/__tests__/mc-syntax.test.d.ts +1 -0
  45. package/dist/__tests__/mc-syntax.test.js +124 -0
  46. package/dist/__tests__/nbt.test.d.ts +1 -0
  47. package/dist/__tests__/nbt.test.js +82 -0
  48. package/dist/__tests__/optimizer-advanced.test.d.ts +1 -0
  49. package/dist/__tests__/optimizer-advanced.test.js +124 -0
  50. package/dist/__tests__/optimizer.test.d.ts +1 -0
  51. package/dist/__tests__/optimizer.test.js +149 -0
  52. package/dist/__tests__/parser.test.d.ts +1 -0
  53. package/dist/__tests__/parser.test.js +807 -0
  54. package/dist/__tests__/repl.test.d.ts +1 -0
  55. package/dist/__tests__/repl.test.js +27 -0
  56. package/dist/__tests__/runtime.test.d.ts +1 -0
  57. package/dist/__tests__/runtime.test.js +289 -0
  58. package/dist/__tests__/stdlib-advanced.test.d.ts +4 -0
  59. package/dist/__tests__/stdlib-advanced.test.js +378 -0
  60. package/dist/__tests__/stdlib-bigint.test.d.ts +7 -0
  61. package/dist/__tests__/stdlib-bigint.test.js +428 -0
  62. package/dist/__tests__/stdlib-math.test.d.ts +7 -0
  63. package/dist/__tests__/stdlib-math.test.js +352 -0
  64. package/dist/__tests__/stdlib-vec.test.d.ts +4 -0
  65. package/dist/__tests__/stdlib-vec.test.js +264 -0
  66. package/dist/__tests__/structure-optimizer.test.d.ts +1 -0
  67. package/dist/__tests__/structure-optimizer.test.js +33 -0
  68. package/dist/__tests__/typechecker.test.d.ts +1 -0
  69. package/dist/__tests__/typechecker.test.js +552 -0
  70. package/dist/__tests__/var-allocator.test.d.ts +1 -0
  71. package/dist/__tests__/var-allocator.test.js +69 -0
  72. package/dist/ast/types.d.ts +514 -0
  73. package/dist/ast/types.js +9 -0
  74. package/dist/builtins/metadata.d.ts +36 -0
  75. package/dist/builtins/metadata.js +1014 -0
  76. package/dist/cli.d.ts +11 -0
  77. package/dist/cli.js +0 -0
  78. package/dist/codegen/cmdblock/index.d.ts +26 -0
  79. package/dist/codegen/cmdblock/index.js +45 -0
  80. package/dist/codegen/mcfunction/index.d.ts +40 -0
  81. package/dist/codegen/mcfunction/index.js +606 -0
  82. package/dist/codegen/structure/index.d.ts +24 -0
  83. package/dist/codegen/structure/index.js +279 -0
  84. package/dist/codegen/var-allocator.d.ts +45 -0
  85. package/dist/codegen/var-allocator.js +104 -0
  86. package/dist/compile.d.ts +68 -0
  87. package/dist/data/arena/function/__load.mcfunction +6 -0
  88. package/dist/data/arena/function/__tick.mcfunction +2 -0
  89. package/dist/data/arena/function/announce_leaders/else_1.mcfunction +3 -0
  90. package/dist/data/arena/function/announce_leaders/foreach_0/merge_2.mcfunction +1 -0
  91. package/dist/data/arena/function/announce_leaders/foreach_0/then_0.mcfunction +3 -0
  92. package/dist/data/arena/function/announce_leaders/foreach_0.mcfunction +7 -0
  93. package/dist/data/arena/function/announce_leaders/foreach_1/merge_2.mcfunction +1 -0
  94. package/dist/data/arena/function/announce_leaders/foreach_1/then_0.mcfunction +4 -0
  95. package/dist/data/arena/function/announce_leaders/foreach_1.mcfunction +6 -0
  96. package/dist/data/arena/function/announce_leaders/merge_2.mcfunction +1 -0
  97. package/dist/data/arena/function/announce_leaders/then_0.mcfunction +4 -0
  98. package/dist/data/arena/function/announce_leaders.mcfunction +6 -0
  99. package/dist/data/arena/function/arena_tick/merge_2.mcfunction +1 -0
  100. package/dist/data/arena/function/arena_tick/then_0.mcfunction +4 -0
  101. package/dist/data/arena/function/arena_tick.mcfunction +11 -0
  102. package/dist/data/capture_the_flag/function/add_to_team.mcfunction +5 -0
  103. package/dist/data/capture_the_flag/function/angry_at.mcfunction +1 -0
  104. package/dist/data/capture_the_flag/function/assign_teams.mcfunction +1 -0
  105. package/dist/data/capture_the_flag/function/assign_teams__foreach_t1.mcfunction +8 -0
  106. package/dist/data/capture_the_flag/function/assign_teams__foreach_t1__else_2.mcfunction +8 -0
  107. package/dist/data/capture_the_flag/function/assign_teams__foreach_t1__merge_1.mcfunction +3 -0
  108. package/dist/data/capture_the_flag/function/assign_teams__foreach_t1__then_0.mcfunction +8 -0
  109. package/dist/data/capture_the_flag/function/barrier_wall.mcfunction +1 -0
  110. package/dist/data/capture_the_flag/function/buff_all.mcfunction +22 -0
  111. package/dist/data/capture_the_flag/function/check_flag_capture.mcfunction +2 -0
  112. package/dist/data/capture_the_flag/function/check_flag_capture__foreach_t0.mcfunction +8 -0
  113. package/dist/data/capture_the_flag/function/check_flag_capture__foreach_t0__merge_1.mcfunction +1 -0
  114. package/dist/data/capture_the_flag/function/check_flag_capture__foreach_t0__then_0.mcfunction +7 -0
  115. package/dist/data/capture_the_flag/function/check_flag_capture__foreach_t1.mcfunction +8 -0
  116. package/dist/data/capture_the_flag/function/check_flag_capture__foreach_t1__merge_1.mcfunction +1 -0
  117. package/dist/data/capture_the_flag/function/check_flag_capture__foreach_t1__then_0.mcfunction +7 -0
  118. package/dist/data/capture_the_flag/function/check_flag_pickup.mcfunction +2 -0
  119. package/dist/data/capture_the_flag/function/check_flag_pickup__foreach_t0.mcfunction +8 -0
  120. package/dist/data/capture_the_flag/function/check_flag_pickup__foreach_t0__merge_1.mcfunction +1 -0
  121. package/dist/data/capture_the_flag/function/check_flag_pickup__foreach_t0__then_0.mcfunction +7 -0
  122. package/dist/data/capture_the_flag/function/check_flag_pickup__foreach_t1.mcfunction +8 -0
  123. package/dist/data/capture_the_flag/function/check_flag_pickup__foreach_t1__merge_1.mcfunction +1 -0
  124. package/dist/data/capture_the_flag/function/check_flag_pickup__foreach_t1__then_0.mcfunction +7 -0
  125. package/dist/data/capture_the_flag/function/check_win.mcfunction +4 -0
  126. package/dist/data/capture_the_flag/function/cleanup_teams.mcfunction +8 -0
  127. package/dist/data/capture_the_flag/function/clear_area.mcfunction +1 -0
  128. package/dist/data/capture_the_flag/function/clear_effect.mcfunction +1 -0
  129. package/dist/data/capture_the_flag/function/clear_effects.mcfunction +1 -0
  130. package/dist/data/capture_the_flag/function/clear_inventory.mcfunction +1 -0
  131. package/dist/data/capture_the_flag/function/create_blue_team.mcfunction +10 -0
  132. package/dist/data/capture_the_flag/function/create_green_team.mcfunction +10 -0
  133. package/dist/data/capture_the_flag/function/create_red_team.mcfunction +10 -0
  134. package/dist/data/capture_the_flag/function/create_team.mcfunction +8 -0
  135. package/dist/data/capture_the_flag/function/create_yellow_team.mcfunction +10 -0
  136. package/dist/data/capture_the_flag/function/disable_fire_spread.mcfunction +1 -0
  137. package/dist/data/capture_the_flag/function/disable_keep_inventory.mcfunction +1 -0
  138. package/dist/data/capture_the_flag/function/disable_mob_griefing.mcfunction +1 -0
  139. package/dist/data/capture_the_flag/function/distance_to.mcfunction +6 -0
  140. package/dist/data/capture_the_flag/function/distance_to__const_0_0_0_0.mcfunction +5 -0
  141. package/dist/data/capture_the_flag/function/enable_keep_inventory.mcfunction +1 -0
  142. package/dist/data/capture_the_flag/function/end_game.mcfunction +6 -0
  143. package/dist/data/capture_the_flag/function/end_game__else_2.mcfunction +3 -0
  144. package/dist/data/capture_the_flag/function/end_game__foreach_t7.mcfunction +2 -0
  145. package/dist/data/capture_the_flag/function/end_game__merge_1.mcfunction +1 -0
  146. package/dist/data/capture_the_flag/function/end_game__then_0.mcfunction +3 -0
  147. package/dist/data/capture_the_flag/function/end_sparkles_at.mcfunction +1 -0
  148. package/dist/data/capture_the_flag/function/explosion_effect.mcfunction +1 -0
  149. package/dist/data/capture_the_flag/function/flames.mcfunction +1 -0
  150. package/dist/data/capture_the_flag/function/game_tick.mcfunction +1 -0
  151. package/dist/data/capture_the_flag/function/give_kit_archer.mcfunction +6 -0
  152. package/dist/data/capture_the_flag/function/give_kit_mage.mcfunction +5 -0
  153. package/dist/data/capture_the_flag/function/give_kit_warrior.mcfunction +6 -0
  154. package/dist/data/capture_the_flag/function/glass_box.mcfunction +2 -0
  155. package/dist/data/capture_the_flag/function/glow.mcfunction +1 -0
  156. package/dist/data/capture_the_flag/function/happy_at.mcfunction +1 -0
  157. package/dist/data/capture_the_flag/function/hearts_at.mcfunction +1 -0
  158. package/dist/data/capture_the_flag/function/init.mcfunction +11 -0
  159. package/dist/data/capture_the_flag/function/invisible.mcfunction +1 -0
  160. package/dist/data/capture_the_flag/function/jump.mcfunction +1 -0
  161. package/dist/data/capture_the_flag/function/load.mcfunction +1 -0
  162. package/dist/data/capture_the_flag/function/night_vision.mcfunction +1 -0
  163. package/dist/data/capture_the_flag/function/place_flags.mcfunction +2 -0
  164. package/dist/data/capture_the_flag/function/portal_effect.mcfunction +1 -0
  165. package/dist/data/capture_the_flag/function/regen.mcfunction +1 -0
  166. package/dist/data/capture_the_flag/function/remove_from_teams.mcfunction +3 -0
  167. package/dist/data/capture_the_flag/function/remove_item.mcfunction +1 -0
  168. package/dist/data/capture_the_flag/function/resistance.mcfunction +1 -0
  169. package/dist/data/capture_the_flag/function/set_day.mcfunction +1 -0
  170. package/dist/data/capture_the_flag/function/set_easy.mcfunction +1 -0
  171. package/dist/data/capture_the_flag/function/set_hard.mcfunction +1 -0
  172. package/dist/data/capture_the_flag/function/set_midnight.mcfunction +1 -0
  173. package/dist/data/capture_the_flag/function/set_night.mcfunction +1 -0
  174. package/dist/data/capture_the_flag/function/set_noon.mcfunction +1 -0
  175. package/dist/data/capture_the_flag/function/set_normal.mcfunction +1 -0
  176. package/dist/data/capture_the_flag/function/set_peaceful.mcfunction +1 -0
  177. package/dist/data/capture_the_flag/function/setup_four_teams.mcfunction +4 -0
  178. package/dist/data/capture_the_flag/function/setup_two_teams.mcfunction +2 -0
  179. package/dist/data/capture_the_flag/function/slow_fall.mcfunction +1 -0
  180. package/dist/data/capture_the_flag/function/smoke.mcfunction +1 -0
  181. package/dist/data/capture_the_flag/function/sparkles_at.mcfunction +1 -0
  182. package/dist/data/capture_the_flag/function/speed.mcfunction +1 -0
  183. package/dist/data/capture_the_flag/function/start_game.mcfunction +15 -0
  184. package/dist/data/capture_the_flag/function/start_game__foreach_t10.mcfunction +4 -0
  185. package/dist/data/capture_the_flag/function/strength.mcfunction +1 -0
  186. package/dist/data/capture_the_flag/function/totem_at.mcfunction +1 -0
  187. package/dist/data/capture_the_flag/function/weather_clear.mcfunction +1 -0
  188. package/dist/data/capture_the_flag/function/weather_rain.mcfunction +1 -0
  189. package/dist/data/capture_the_flag/function/weather_thunder.mcfunction +1 -0
  190. package/dist/data/counter/function/__load.mcfunction +5 -0
  191. package/dist/data/counter/function/__tick.mcfunction +2 -0
  192. package/dist/data/counter/function/counter_tick/merge_2.mcfunction +1 -0
  193. package/dist/data/counter/function/counter_tick/then_0.mcfunction +3 -0
  194. package/dist/data/counter/function/counter_tick.mcfunction +11 -0
  195. package/dist/data/gcd2/function/__load.mcfunction +3 -0
  196. package/dist/data/gcd2/function/abs/merge_2.mcfunction +3 -0
  197. package/dist/data/gcd2/function/abs/then_0.mcfunction +5 -0
  198. package/dist/data/gcd2/function/abs.mcfunction +7 -0
  199. package/dist/data/gcd2/function/gcd/loop_body_1.mcfunction +7 -0
  200. package/dist/data/gcd2/function/gcd/loop_check_0.mcfunction +5 -0
  201. package/dist/data/gcd2/function/gcd/loop_exit_2.mcfunction +3 -0
  202. package/dist/data/gcd2/function/gcd.mcfunction +14 -0
  203. package/dist/data/gcd3/function/__load.mcfunction +3 -0
  204. package/dist/data/gcd3/function/abs/merge_2.mcfunction +3 -0
  205. package/dist/data/gcd3/function/abs/then_0.mcfunction +5 -0
  206. package/dist/data/gcd3/function/abs.mcfunction +7 -0
  207. package/dist/data/gcd3/function/gcd/loop_body_1.mcfunction +7 -0
  208. package/dist/data/gcd3/function/gcd/loop_check_0.mcfunction +5 -0
  209. package/dist/data/gcd3/function/gcd/loop_exit_2.mcfunction +3 -0
  210. package/dist/data/gcd3/function/gcd.mcfunction +14 -0
  211. package/dist/data/gcd3/function/test.mcfunction +7 -0
  212. package/dist/data/gcd3nm/function/__load.mcfunction +3 -0
  213. package/dist/data/gcd3nm/function/abs/merge_2.mcfunction +3 -0
  214. package/dist/data/gcd3nm/function/abs/then_0.mcfunction +5 -0
  215. package/dist/data/gcd3nm/function/abs.mcfunction +7 -0
  216. package/dist/data/gcd3nm/function/gcd/loop_body_1.mcfunction +7 -0
  217. package/dist/data/gcd3nm/function/gcd/loop_check_0.mcfunction +5 -0
  218. package/dist/data/gcd3nm/function/gcd/loop_exit_2.mcfunction +3 -0
  219. package/dist/data/gcd3nm/function/gcd.mcfunction +14 -0
  220. package/dist/data/gcd3nm/function/test.mcfunction +7 -0
  221. package/dist/data/gcd_test/function/__load.mcfunction +3 -0
  222. package/dist/data/gcd_test/function/abs/merge_2.mcfunction +3 -0
  223. package/dist/data/gcd_test/function/abs/then_0.mcfunction +5 -0
  224. package/dist/data/gcd_test/function/abs.mcfunction +7 -0
  225. package/dist/data/gcd_test/function/gcd/loop_body_1.mcfunction +7 -0
  226. package/dist/data/gcd_test/function/gcd/loop_check_0.mcfunction +5 -0
  227. package/dist/data/gcd_test/function/gcd/loop_exit_2.mcfunction +3 -0
  228. package/dist/data/gcd_test/function/gcd.mcfunction +14 -0
  229. package/dist/data/hunger_games/function/angry_at.mcfunction +1 -0
  230. package/dist/data/hunger_games/function/barrier_wall.mcfunction +1 -0
  231. package/dist/data/hunger_games/function/buff_all.mcfunction +22 -0
  232. package/dist/data/hunger_games/function/check_alive.mcfunction +3 -0
  233. package/dist/data/hunger_games/function/check_alive__foreach_t3.mcfunction +10 -0
  234. package/dist/data/hunger_games/function/check_alive__foreach_t3__merge_1.mcfunction +1 -0
  235. package/dist/data/hunger_games/function/check_alive__foreach_t3__then_0.mcfunction +5 -0
  236. package/dist/data/hunger_games/function/check_border_damage.mcfunction +1 -0
  237. package/dist/data/hunger_games/function/check_border_damage__foreach_t0.mcfunction +1 -0
  238. package/dist/data/hunger_games/function/clear_area.mcfunction +1 -0
  239. package/dist/data/hunger_games/function/clear_effect.mcfunction +1 -0
  240. package/dist/data/hunger_games/function/clear_effects.mcfunction +1 -0
  241. package/dist/data/hunger_games/function/countdown_tick.mcfunction +1 -0
  242. package/dist/data/hunger_games/function/create_health_bar.mcfunction +24 -0
  243. package/dist/data/hunger_games/function/create_progress_bar.mcfunction +24 -0
  244. package/dist/data/hunger_games/function/create_progress_bar__const_0_0_0.mcfunction +21 -0
  245. package/dist/data/hunger_games/function/create_timer_bar.mcfunction +30 -0
  246. package/dist/data/hunger_games/function/declare_winner.mcfunction +13 -0
  247. package/dist/data/hunger_games/function/disable_fire_spread.mcfunction +1 -0
  248. package/dist/data/hunger_games/function/disable_keep_inventory.mcfunction +1 -0
  249. package/dist/data/hunger_games/function/disable_mob_griefing.mcfunction +1 -0
  250. package/dist/data/hunger_games/function/enable_keep_inventory.mcfunction +1 -0
  251. package/dist/data/hunger_games/function/end_game_no_winner.mcfunction +3 -0
  252. package/dist/data/hunger_games/function/end_sparkles_at.mcfunction +1 -0
  253. package/dist/data/hunger_games/function/explosion_effect.mcfunction +1 -0
  254. package/dist/data/hunger_games/function/flames.mcfunction +1 -0
  255. package/dist/data/hunger_games/function/game_tick.mcfunction +1 -0
  256. package/dist/data/hunger_games/function/glass_box.mcfunction +2 -0
  257. package/dist/data/hunger_games/function/glow.mcfunction +1 -0
  258. package/dist/data/hunger_games/function/happy_at.mcfunction +1 -0
  259. package/dist/data/hunger_games/function/hearts_at.mcfunction +1 -0
  260. package/dist/data/hunger_games/function/hide_bar.mcfunction +4 -0
  261. package/dist/data/hunger_games/function/init.mcfunction +7 -0
  262. package/dist/data/hunger_games/function/invisible.mcfunction +1 -0
  263. package/dist/data/hunger_games/function/jump.mcfunction +1 -0
  264. package/dist/data/hunger_games/function/load.mcfunction +1 -0
  265. package/dist/data/hunger_games/function/main_game_tick.mcfunction +4 -0
  266. package/dist/data/hunger_games/function/night_vision.mcfunction +1 -0
  267. package/dist/data/hunger_games/function/on_player_death.mcfunction +14 -0
  268. package/dist/data/hunger_games/function/portal_effect.mcfunction +1 -0
  269. package/dist/data/hunger_games/function/regen.mcfunction +1 -0
  270. package/dist/data/hunger_games/function/remove_bar.mcfunction +3 -0
  271. package/dist/data/hunger_games/function/remove_bar__const_0.mcfunction +2 -0
  272. package/dist/data/hunger_games/function/reset_game.mcfunction +3 -0
  273. package/dist/data/hunger_games/function/reset_game__foreach_t0.mcfunction +9 -0
  274. package/dist/data/hunger_games/function/resistance.mcfunction +1 -0
  275. package/dist/data/hunger_games/function/set_day.mcfunction +1 -0
  276. package/dist/data/hunger_games/function/set_easy.mcfunction +1 -0
  277. package/dist/data/hunger_games/function/set_hard.mcfunction +1 -0
  278. package/dist/data/hunger_games/function/set_midnight.mcfunction +1 -0
  279. package/dist/data/hunger_games/function/set_night.mcfunction +1 -0
  280. package/dist/data/hunger_games/function/set_noon.mcfunction +1 -0
  281. package/dist/data/hunger_games/function/set_normal.mcfunction +1 -0
  282. package/dist/data/hunger_games/function/set_peaceful.mcfunction +1 -0
  283. package/dist/data/hunger_games/function/show_bar.mcfunction +4 -0
  284. package/dist/data/hunger_games/function/shrink_border.mcfunction +1 -0
  285. package/dist/data/hunger_games/function/slow_fall.mcfunction +1 -0
  286. package/dist/data/hunger_games/function/smoke.mcfunction +1 -0
  287. package/dist/data/hunger_games/function/sparkles_at.mcfunction +1 -0
  288. package/dist/data/hunger_games/function/speed.mcfunction +1 -0
  289. package/dist/data/hunger_games/function/start_countdown.mcfunction +3 -0
  290. package/dist/data/hunger_games/function/start_countdown__foreach_t0.mcfunction +16 -0
  291. package/dist/data/hunger_games/function/start_game.mcfunction +4 -0
  292. package/dist/data/hunger_games/function/start_game__foreach_t3.mcfunction +4 -0
  293. package/dist/data/hunger_games/function/strength.mcfunction +1 -0
  294. package/dist/data/hunger_games/function/totem_at.mcfunction +1 -0
  295. package/dist/data/hunger_games/function/update_bar.mcfunction +5 -0
  296. package/dist/data/hunger_games/function/update_bar__const_0_0.mcfunction +3 -0
  297. package/dist/data/hunger_games/function/update_bar_color.mcfunction +7 -0
  298. package/dist/data/hunger_games/function/update_bar_color__else_2.mcfunction +5 -0
  299. package/dist/data/hunger_games/function/update_bar_color__else_5.mcfunction +4 -0
  300. package/dist/data/hunger_games/function/update_bar_color__merge_1.mcfunction +1 -0
  301. package/dist/data/hunger_games/function/update_bar_color__merge_4.mcfunction +1 -0
  302. package/dist/data/hunger_games/function/update_bar_color__then_0.mcfunction +4 -0
  303. package/dist/data/hunger_games/function/update_bar_color__then_3.mcfunction +4 -0
  304. package/dist/data/hunger_games/function/weather_clear.mcfunction +1 -0
  305. package/dist/data/hunger_games/function/weather_rain.mcfunction +1 -0
  306. package/dist/data/hunger_games/function/weather_thunder.mcfunction +1 -0
  307. package/dist/data/isqrttest/function/__load.mcfunction +6 -0
  308. package/dist/data/isqrttest/function/isqrt/loop_body_4.mcfunction +12 -0
  309. package/dist/data/isqrttest/function/isqrt/loop_check_3.mcfunction +5 -0
  310. package/dist/data/isqrttest/function/isqrt/loop_exit_5.mcfunction +3 -0
  311. package/dist/data/isqrttest/function/isqrt/merge_2.mcfunction +4 -0
  312. package/dist/data/isqrttest/function/isqrt/merge_8.mcfunction +6 -0
  313. package/dist/data/isqrttest/function/isqrt/then_0.mcfunction +3 -0
  314. package/dist/data/isqrttest/function/isqrt/then_6.mcfunction +3 -0
  315. package/dist/data/isqrttest/function/isqrt.mcfunction +7 -0
  316. package/dist/data/isqrttest/function/test.mcfunction +6 -0
  317. package/dist/data/linalg/function/_vec2d_len_sq_fx.mcfunction +17 -0
  318. package/dist/data/linalg/function/_vec3d_len_sq_fx.mcfunction +27 -0
  319. package/dist/data/linalg/function/load.mcfunction +1 -0
  320. package/dist/data/linalg/function/mat2d_det.mcfunction +16 -0
  321. package/dist/data/linalg/function/mat2d_mul_r0c0.mcfunction +16 -0
  322. package/dist/data/linalg/function/mat2d_mul_r0c1.mcfunction +16 -0
  323. package/dist/data/linalg/function/mat2d_mul_r1c0.mcfunction +16 -0
  324. package/dist/data/linalg/function/mat2d_mul_r1c1.mcfunction +16 -0
  325. package/dist/data/linalg/function/mat2d_vecmul_x.mcfunction +16 -0
  326. package/dist/data/linalg/function/mat2d_vecmul_y.mcfunction +16 -0
  327. package/dist/data/linalg/function/solve2d_x.mcfunction +27 -0
  328. package/dist/data/linalg/function/solve2d_y.mcfunction +27 -0
  329. package/dist/data/linalg/function/vec2d_dist.mcfunction +15 -0
  330. package/dist/data/linalg/function/vec2d_dot.mcfunction +16 -0
  331. package/dist/data/linalg/function/vec2d_length.mcfunction +21 -0
  332. package/dist/data/linalg/function/vec2d_normalize_x.mcfunction +8 -0
  333. package/dist/data/linalg/function/vec2d_normalize_x__merge_1.mcfunction +10 -0
  334. package/dist/data/linalg/function/vec2d_normalize_x__then_0.mcfunction +3 -0
  335. package/dist/data/linalg/function/vec2d_normalize_y.mcfunction +8 -0
  336. package/dist/data/linalg/function/vec2d_normalize_y__merge_1.mcfunction +10 -0
  337. package/dist/data/linalg/function/vec2d_normalize_y__then_0.mcfunction +3 -0
  338. package/dist/data/linalg/function/vec3d_cross_x.mcfunction +16 -0
  339. package/dist/data/linalg/function/vec3d_cross_y.mcfunction +16 -0
  340. package/dist/data/linalg/function/vec3d_cross_z.mcfunction +16 -0
  341. package/dist/data/linalg/function/vec3d_dist.mcfunction +21 -0
  342. package/dist/data/linalg/function/vec3d_dot.mcfunction +26 -0
  343. package/dist/data/linalg/function/vec3d_length.mcfunction +31 -0
  344. package/dist/data/linalg/function/vec3d_normalize_x.mcfunction +9 -0
  345. package/dist/data/linalg/function/vec3d_normalize_x__merge_1.mcfunction +11 -0
  346. package/dist/data/linalg/function/vec3d_normalize_x__then_0.mcfunction +3 -0
  347. package/dist/data/linalg/function/vec3d_normalize_y.mcfunction +9 -0
  348. package/dist/data/linalg/function/vec3d_normalize_y__merge_1.mcfunction +11 -0
  349. package/dist/data/linalg/function/vec3d_normalize_y__then_0.mcfunction +3 -0
  350. package/dist/data/linalg/function/vec3d_normalize_z.mcfunction +9 -0
  351. package/dist/data/linalg/function/vec3d_normalize_z__merge_1.mcfunction +11 -0
  352. package/dist/data/linalg/function/vec3d_normalize_z__then_0.mcfunction +3 -0
  353. package/dist/data/macrotest/function/get_element.mcfunction +2 -0
  354. package/dist/data/macrotest/function/load.mcfunction +1 -0
  355. package/dist/data/macrotest/function/test_dynamic_index.mcfunction +2 -0
  356. package/dist/data/math_hp/function/cos_hp.mcfunction +8 -0
  357. package/dist/data/math_hp/function/div3_hp.mcfunction +23 -0
  358. package/dist/data/math_hp/function/div_hp.mcfunction +13 -0
  359. package/dist/data/math_hp/function/init_div.mcfunction +1 -0
  360. package/dist/data/math_hp/function/init_trig.mcfunction +1 -0
  361. package/dist/data/math_hp/function/ln_5term.mcfunction +6 -0
  362. package/dist/data/math_hp/function/ln_5term__loop_body_1.mcfunction +8 -0
  363. package/dist/data/math_hp/function/ln_5term__loop_body_4.mcfunction +8 -0
  364. package/dist/data/math_hp/function/ln_5term__loop_exit_2.mcfunction +1 -0
  365. package/dist/data/math_hp/function/ln_5term__loop_exit_5.mcfunction +61 -0
  366. package/dist/data/math_hp/function/ln_5term__loop_header_0.mcfunction +3 -0
  367. package/dist/data/math_hp/function/ln_5term__loop_header_3.mcfunction +6 -0
  368. package/dist/data/math_hp/function/load.mcfunction +1 -0
  369. package/dist/data/math_hp/function/norm3_hp.mcfunction +43 -0
  370. package/dist/data/math_hp/function/sin_hp.mcfunction +8 -0
  371. package/dist/data/math_hp/function/sqrt_hp.mcfunction +17 -0
  372. package/dist/data/math_hp/function/sqrt_hp__merge_1.mcfunction +21 -0
  373. package/dist/data/math_hp/function/sqrt_hp__then_0.mcfunction +2 -0
  374. package/dist/data/mathdemo/function/__load.mcfunction +2 -0
  375. package/dist/data/mathdemo/function/_atan_init.mcfunction +4 -0
  376. package/dist/data/mathdemo/function/_math_init.mcfunction +4 -0
  377. package/dist/data/mathdemo/function/add2d_x.mcfunction +5 -0
  378. package/dist/data/mathdemo/function/add2d_y.mcfunction +5 -0
  379. package/dist/data/mathdemo/function/add3d_x.mcfunction +5 -0
  380. package/dist/data/mathdemo/function/add3d_y.mcfunction +5 -0
  381. package/dist/data/mathdemo/function/add3d_z.mcfunction +5 -0
  382. package/dist/data/mathdemo/function/air_drag_fx.mcfunction +2 -0
  383. package/dist/data/mathdemo/function/apply_drag.mcfunction +8 -0
  384. package/dist/data/mathdemo/function/apply_gravity.mcfunction +6 -0
  385. package/dist/data/mathdemo/function/approx_eq.mcfunction +10 -0
  386. package/dist/data/mathdemo/function/approx_eq__merge_1.mcfunction +3 -0
  387. package/dist/data/mathdemo/function/approx_eq__merge_3.mcfunction +2 -0
  388. package/dist/data/mathdemo/function/approx_eq__then_0.mcfunction +4 -0
  389. package/dist/data/mathdemo/function/approx_eq__then_2.mcfunction +2 -0
  390. package/dist/data/mathdemo/function/atan2_fixed.mcfunction +6 -0
  391. package/dist/data/mathdemo/function/atan2_fixed__else_30.mcfunction +2 -0
  392. package/dist/data/mathdemo/function/atan2_fixed__loop_body_26.mcfunction +21 -0
  393. package/dist/data/mathdemo/function/atan2_fixed__loop_exit_27.mcfunction +5 -0
  394. package/dist/data/mathdemo/function/atan2_fixed__loop_header_25.mcfunction +3 -0
  395. package/dist/data/mathdemo/function/atan2_fixed__merge_1.mcfunction +4 -0
  396. package/dist/data/mathdemo/function/atan2_fixed__merge_10.mcfunction +5 -0
  397. package/dist/data/mathdemo/function/atan2_fixed__merge_12.mcfunction +2 -0
  398. package/dist/data/mathdemo/function/atan2_fixed__merge_16.mcfunction +5 -0
  399. package/dist/data/mathdemo/function/atan2_fixed__merge_18.mcfunction +4 -0
  400. package/dist/data/mathdemo/function/atan2_fixed__merge_20.mcfunction +4 -0
  401. package/dist/data/mathdemo/function/atan2_fixed__merge_22.mcfunction +4 -0
  402. package/dist/data/mathdemo/function/atan2_fixed__merge_24.mcfunction +3 -0
  403. package/dist/data/mathdemo/function/atan2_fixed__merge_29.mcfunction +1 -0
  404. package/dist/data/mathdemo/function/atan2_fixed__merge_3.mcfunction +4 -0
  405. package/dist/data/mathdemo/function/atan2_fixed__merge_32.mcfunction +4 -0
  406. package/dist/data/mathdemo/function/atan2_fixed__merge_34.mcfunction +4 -0
  407. package/dist/data/mathdemo/function/atan2_fixed__merge_36.mcfunction +3 -0
  408. package/dist/data/mathdemo/function/atan2_fixed__merge_40.mcfunction +3 -0
  409. package/dist/data/mathdemo/function/atan2_fixed__merge_6.mcfunction +2 -0
  410. package/dist/data/mathdemo/function/atan2_fixed__then_0.mcfunction +4 -0
  411. package/dist/data/mathdemo/function/atan2_fixed__then_11.mcfunction +2 -0
  412. package/dist/data/mathdemo/function/atan2_fixed__then_15.mcfunction +4 -0
  413. package/dist/data/mathdemo/function/atan2_fixed__then_17.mcfunction +4 -0
  414. package/dist/data/mathdemo/function/atan2_fixed__then_19.mcfunction +2 -0
  415. package/dist/data/mathdemo/function/atan2_fixed__then_2.mcfunction +2 -0
  416. package/dist/data/mathdemo/function/atan2_fixed__then_21.mcfunction +2 -0
  417. package/dist/data/mathdemo/function/atan2_fixed__then_23.mcfunction +5 -0
  418. package/dist/data/mathdemo/function/atan2_fixed__then_28.mcfunction +4 -0
  419. package/dist/data/mathdemo/function/atan2_fixed__then_31.mcfunction +4 -0
  420. package/dist/data/mathdemo/function/atan2_fixed__then_33.mcfunction +4 -0
  421. package/dist/data/mathdemo/function/atan2_fixed__then_35.mcfunction +1 -0
  422. package/dist/data/mathdemo/function/atan2_fixed__then_39.mcfunction +3 -0
  423. package/dist/data/mathdemo/function/atan2_fixed__then_5.mcfunction +2 -0
  424. package/dist/data/mathdemo/function/atan2_fixed__then_9.mcfunction +4 -0
  425. package/dist/data/mathdemo/function/bounce_v.mcfunction +10 -0
  426. package/dist/data/mathdemo/function/cbrt_fx.mcfunction +5 -0
  427. package/dist/data/mathdemo/function/cbrt_fx__loop_body_6.mcfunction +7 -0
  428. package/dist/data/mathdemo/function/cbrt_fx__loop_exit_7.mcfunction +1 -0
  429. package/dist/data/mathdemo/function/cbrt_fx__loop_header_5.mcfunction +4 -0
  430. package/dist/data/mathdemo/function/cbrt_fx__merge_1.mcfunction +8 -0
  431. package/dist/data/mathdemo/function/cbrt_fx__merge_11.mcfunction +5 -0
  432. package/dist/data/mathdemo/function/cbrt_fx__merge_13.mcfunction +4 -0
  433. package/dist/data/mathdemo/function/cbrt_fx__merge_4.mcfunction +2 -0
  434. package/dist/data/mathdemo/function/cbrt_fx__merge_9.mcfunction +13 -0
  435. package/dist/data/mathdemo/function/cbrt_fx__then_0.mcfunction +2 -0
  436. package/dist/data/mathdemo/function/cbrt_fx__then_10.mcfunction +2 -0
  437. package/dist/data/mathdemo/function/cbrt_fx__then_12.mcfunction +2 -0
  438. package/dist/data/mathdemo/function/cbrt_fx__then_3.mcfunction +2 -0
  439. package/dist/data/mathdemo/function/cbrt_fx__then_8.mcfunction +2 -0
  440. package/dist/data/mathdemo/function/ceil_div.mcfunction +9 -0
  441. package/dist/data/mathdemo/function/chebyshev.mcfunction +14 -0
  442. package/dist/data/mathdemo/function/chebyshev3d.mcfunction +19 -0
  443. package/dist/data/mathdemo/function/chebyshev3d__merge_1.mcfunction +4 -0
  444. package/dist/data/mathdemo/function/chebyshev3d__merge_3.mcfunction +4 -0
  445. package/dist/data/mathdemo/function/chebyshev3d__merge_5.mcfunction +4 -0
  446. package/dist/data/mathdemo/function/chebyshev3d__merge_7.mcfunction +3 -0
  447. package/dist/data/mathdemo/function/chebyshev3d__merge_9.mcfunction +1 -0
  448. package/dist/data/mathdemo/function/chebyshev3d__then_0.mcfunction +4 -0
  449. package/dist/data/mathdemo/function/chebyshev3d__then_2.mcfunction +4 -0
  450. package/dist/data/mathdemo/function/chebyshev3d__then_4.mcfunction +4 -0
  451. package/dist/data/mathdemo/function/chebyshev3d__then_6.mcfunction +2 -0
  452. package/dist/data/mathdemo/function/chebyshev3d__then_8.mcfunction +2 -0
  453. package/dist/data/mathdemo/function/chebyshev__merge_1.mcfunction +4 -0
  454. package/dist/data/mathdemo/function/chebyshev__merge_3.mcfunction +3 -0
  455. package/dist/data/mathdemo/function/chebyshev__merge_5.mcfunction +1 -0
  456. package/dist/data/mathdemo/function/chebyshev__then_0.mcfunction +4 -0
  457. package/dist/data/mathdemo/function/chebyshev__then_2.mcfunction +4 -0
  458. package/dist/data/mathdemo/function/chebyshev__then_4.mcfunction +1 -0
  459. package/dist/data/mathdemo/function/circular_x.mcfunction +14 -0
  460. package/dist/data/mathdemo/function/circular_z.mcfunction +14 -0
  461. package/dist/data/mathdemo/function/clamp_velocity.mcfunction +5 -0
  462. package/dist/data/mathdemo/function/clamp_velocity__merge_1.mcfunction +5 -0
  463. package/dist/data/mathdemo/function/clamp_velocity__merge_4.mcfunction +1 -0
  464. package/dist/data/mathdemo/function/clamp_velocity__then_0.mcfunction +1 -0
  465. package/dist/data/mathdemo/function/clamp_velocity__then_3.mcfunction +3 -0
  466. package/dist/data/mathdemo/function/combinations.mcfunction +6 -0
  467. package/dist/data/mathdemo/function/combinations__loop_body_9.mcfunction +15 -0
  468. package/dist/data/mathdemo/function/combinations__loop_exit_10.mcfunction +1 -0
  469. package/dist/data/mathdemo/function/combinations__loop_header_8.mcfunction +3 -0
  470. package/dist/data/mathdemo/function/combinations__merge_1.mcfunction +3 -0
  471. package/dist/data/mathdemo/function/combinations__merge_4.mcfunction +6 -0
  472. package/dist/data/mathdemo/function/combinations__merge_7.mcfunction +3 -0
  473. package/dist/data/mathdemo/function/combinations__then_0.mcfunction +2 -0
  474. package/dist/data/mathdemo/function/combinations__then_3.mcfunction +2 -0
  475. package/dist/data/mathdemo/function/combinations__then_6.mcfunction +4 -0
  476. package/dist/data/mathdemo/function/cos_fixed.mcfunction +7 -0
  477. package/dist/data/mathdemo/function/cross2d.mcfunction +11 -0
  478. package/dist/data/mathdemo/function/cross3d_x.mcfunction +11 -0
  479. package/dist/data/mathdemo/function/cross3d_y.mcfunction +11 -0
  480. package/dist/data/mathdemo/function/cross3d_z.mcfunction +11 -0
  481. package/dist/data/mathdemo/function/demo_easing.mcfunction +12 -0
  482. package/dist/data/mathdemo/function/demo_math.mcfunction +16 -0
  483. package/dist/data/mathdemo/function/demo_noise.mcfunction +14 -0
  484. package/dist/data/mathdemo/function/demo_physics.mcfunction +11 -0
  485. package/dist/data/mathdemo/function/demo_physics__loop_body_1.mcfunction +9 -0
  486. package/dist/data/mathdemo/function/demo_physics__loop_body_4.mcfunction +18 -0
  487. package/dist/data/mathdemo/function/demo_physics__loop_exit_2.mcfunction +6 -0
  488. package/dist/data/mathdemo/function/demo_physics__loop_exit_5.mcfunction +1 -0
  489. package/dist/data/mathdemo/function/demo_physics__loop_header_0.mcfunction +4 -0
  490. package/dist/data/mathdemo/function/demo_physics__loop_header_3.mcfunction +4 -0
  491. package/dist/data/mathdemo/function/distance2d_fixed.mcfunction +13 -0
  492. package/dist/data/mathdemo/function/distance3d_fixed.mcfunction +18 -0
  493. package/dist/data/mathdemo/function/divfix.mcfunction +6 -0
  494. package/dist/data/mathdemo/function/divfix__merge_1.mcfunction +6 -0
  495. package/dist/data/mathdemo/function/divfix__then_0.mcfunction +2 -0
  496. package/dist/data/mathdemo/function/dot2d.mcfunction +11 -0
  497. package/dist/data/mathdemo/function/dot3d.mcfunction +17 -0
  498. package/dist/data/mathdemo/function/ease_in_back.mcfunction +26 -0
  499. package/dist/data/mathdemo/function/ease_in_bounce.mcfunction +9 -0
  500. package/dist/data/mathdemo/function/ease_in_cubic.mcfunction +12 -0
  501. package/dist/data/mathdemo/function/ease_in_expo.mcfunction +5 -0
  502. package/dist/data/mathdemo/function/ease_in_expo__merge_1.mcfunction +11 -0
  503. package/dist/data/mathdemo/function/ease_in_expo__then_0.mcfunction +2 -0
  504. package/dist/data/mathdemo/function/ease_in_out_back.mcfunction +5 -0
  505. package/dist/data/mathdemo/function/ease_in_out_back__merge_1.mcfunction +14 -0
  506. package/dist/data/mathdemo/function/ease_in_out_back__then_0.mcfunction +10 -0
  507. package/dist/data/mathdemo/function/ease_in_out_bounce.mcfunction +5 -0
  508. package/dist/data/mathdemo/function/ease_in_out_bounce__merge_1.mcfunction +14 -0
  509. package/dist/data/mathdemo/function/ease_in_out_bounce__then_0.mcfunction +10 -0
  510. package/dist/data/mathdemo/function/ease_in_out_cubic.mcfunction +5 -0
  511. package/dist/data/mathdemo/function/ease_in_out_cubic__merge_1.mcfunction +17 -0
  512. package/dist/data/mathdemo/function/ease_in_out_cubic__then_0.mcfunction +13 -0
  513. package/dist/data/mathdemo/function/ease_in_out_quad.mcfunction +5 -0
  514. package/dist/data/mathdemo/function/ease_in_out_quad__merge_1.mcfunction +12 -0
  515. package/dist/data/mathdemo/function/ease_in_out_quad__then_0.mcfunction +8 -0
  516. package/dist/data/mathdemo/function/ease_in_out_sine.mcfunction +5 -0
  517. package/dist/data/mathdemo/function/ease_in_out_sine__merge_1.mcfunction +14 -0
  518. package/dist/data/mathdemo/function/ease_in_out_sine__then_0.mcfunction +10 -0
  519. package/dist/data/mathdemo/function/ease_in_quad.mcfunction +7 -0
  520. package/dist/data/mathdemo/function/ease_in_quad__const_5000.mcfunction +5 -0
  521. package/dist/data/mathdemo/function/ease_in_quart.mcfunction +12 -0
  522. package/dist/data/mathdemo/function/ease_in_sine.mcfunction +30 -0
  523. package/dist/data/mathdemo/function/ease_linear.mcfunction +2 -0
  524. package/dist/data/mathdemo/function/ease_linear__const_5000.mcfunction +2 -0
  525. package/dist/data/mathdemo/function/ease_out_back.mcfunction +9 -0
  526. package/dist/data/mathdemo/function/ease_out_back__const_5000.mcfunction +7 -0
  527. package/dist/data/mathdemo/function/ease_out_bounce.mcfunction +6 -0
  528. package/dist/data/mathdemo/function/ease_out_bounce__merge_1.mcfunction +4 -0
  529. package/dist/data/mathdemo/function/ease_out_bounce__merge_4.mcfunction +4 -0
  530. package/dist/data/mathdemo/function/ease_out_bounce__merge_7.mcfunction +15 -0
  531. package/dist/data/mathdemo/function/ease_out_bounce__then_0.mcfunction +11 -0
  532. package/dist/data/mathdemo/function/ease_out_bounce__then_3.mcfunction +15 -0
  533. package/dist/data/mathdemo/function/ease_out_bounce__then_6.mcfunction +15 -0
  534. package/dist/data/mathdemo/function/ease_out_cubic.mcfunction +16 -0
  535. package/dist/data/mathdemo/function/ease_out_cubic__const_5000.mcfunction +14 -0
  536. package/dist/data/mathdemo/function/ease_out_expo.mcfunction +5 -0
  537. package/dist/data/mathdemo/function/ease_out_expo__merge_1.mcfunction +8 -0
  538. package/dist/data/mathdemo/function/ease_out_expo__then_0.mcfunction +2 -0
  539. package/dist/data/mathdemo/function/ease_out_quad.mcfunction +11 -0
  540. package/dist/data/mathdemo/function/ease_out_quart.mcfunction +16 -0
  541. package/dist/data/mathdemo/function/ease_out_sine.mcfunction +9 -0
  542. package/dist/data/mathdemo/function/ease_smooth.mcfunction +23 -0
  543. package/dist/data/mathdemo/function/ease_smoother.mcfunction +41 -0
  544. package/dist/data/mathdemo/function/exp_fx.mcfunction +16 -0
  545. package/dist/data/mathdemo/function/exp_fx__loop_body_10.mcfunction +8 -0
  546. package/dist/data/mathdemo/function/exp_fx__loop_body_5.mcfunction +8 -0
  547. package/dist/data/mathdemo/function/exp_fx__loop_exit_11.mcfunction +1 -0
  548. package/dist/data/mathdemo/function/exp_fx__loop_exit_6.mcfunction +1 -0
  549. package/dist/data/mathdemo/function/exp_fx__loop_header_4.mcfunction +3 -0
  550. package/dist/data/mathdemo/function/exp_fx__loop_header_9.mcfunction +3 -0
  551. package/dist/data/mathdemo/function/exp_fx__merge_1.mcfunction +47 -0
  552. package/dist/data/mathdemo/function/exp_fx__merge_3.mcfunction +4 -0
  553. package/dist/data/mathdemo/function/exp_fx__merge_8.mcfunction +1 -0
  554. package/dist/data/mathdemo/function/exp_fx__then_0.mcfunction +7 -0
  555. package/dist/data/mathdemo/function/exp_fx__then_2.mcfunction +2 -0
  556. package/dist/data/mathdemo/function/exp_fx__then_7.mcfunction +5 -0
  557. package/dist/data/mathdemo/function/factorial.mcfunction +5 -0
  558. package/dist/data/mathdemo/function/factorial__loop_body_4.mcfunction +7 -0
  559. package/dist/data/mathdemo/function/factorial__loop_exit_5.mcfunction +1 -0
  560. package/dist/data/mathdemo/function/factorial__loop_header_3.mcfunction +3 -0
  561. package/dist/data/mathdemo/function/factorial__merge_1.mcfunction +3 -0
  562. package/dist/data/mathdemo/function/factorial__then_0.mcfunction +2 -0
  563. package/dist/data/mathdemo/function/fbm_1d.mcfunction +9 -0
  564. package/dist/data/mathdemo/function/fbm_1d__loop_body_1.mcfunction +33 -0
  565. package/dist/data/mathdemo/function/fbm_1d__loop_exit_2.mcfunction +4 -0
  566. package/dist/data/mathdemo/function/fbm_1d__loop_header_0.mcfunction +3 -0
  567. package/dist/data/mathdemo/function/fbm_1d__merge_4.mcfunction +6 -0
  568. package/dist/data/mathdemo/function/fbm_1d__then_3.mcfunction +2 -0
  569. package/dist/data/mathdemo/function/fbm_2d.mcfunction +10 -0
  570. package/dist/data/mathdemo/function/fbm_2d__loop_body_1.mcfunction +39 -0
  571. package/dist/data/mathdemo/function/fbm_2d__loop_exit_2.mcfunction +4 -0
  572. package/dist/data/mathdemo/function/fbm_2d__loop_header_0.mcfunction +3 -0
  573. package/dist/data/mathdemo/function/fbm_2d__merge_4.mcfunction +6 -0
  574. package/dist/data/mathdemo/function/fbm_2d__then_3.mcfunction +2 -0
  575. package/dist/data/mathdemo/function/friction_decel.mcfunction +5 -0
  576. package/dist/data/mathdemo/function/friction_decel__merge_1.mcfunction +5 -0
  577. package/dist/data/mathdemo/function/friction_decel__merge_4.mcfunction +2 -0
  578. package/dist/data/mathdemo/function/friction_decel__then_0.mcfunction +3 -0
  579. package/dist/data/mathdemo/function/friction_decel__then_3.mcfunction +3 -0
  580. package/dist/data/mathdemo/function/gamma_int.mcfunction +5 -0
  581. package/dist/data/mathdemo/function/gamma_int__merge_1.mcfunction +6 -0
  582. package/dist/data/mathdemo/function/gamma_int__then_0.mcfunction +2 -0
  583. package/dist/data/mathdemo/function/gcd.mcfunction +7 -0
  584. package/dist/data/mathdemo/function/gcd__loop_body_5.mcfunction +5 -0
  585. package/dist/data/mathdemo/function/gcd__loop_exit_6.mcfunction +1 -0
  586. package/dist/data/mathdemo/function/gcd__loop_header_4.mcfunction +4 -0
  587. package/dist/data/mathdemo/function/gcd__merge_1.mcfunction +5 -0
  588. package/dist/data/mathdemo/function/gcd__merge_3.mcfunction +1 -0
  589. package/dist/data/mathdemo/function/gcd__then_0.mcfunction +4 -0
  590. package/dist/data/mathdemo/function/gcd__then_2.mcfunction +4 -0
  591. package/dist/data/mathdemo/function/gravity_fx.mcfunction +2 -0
  592. package/dist/data/mathdemo/function/hash_1d.mcfunction +15 -0
  593. package/dist/data/mathdemo/function/hash_1d_pos.mcfunction +9 -0
  594. package/dist/data/mathdemo/function/hash_1d_pos__merge_1.mcfunction +4 -0
  595. package/dist/data/mathdemo/function/hash_1d_pos__then_0.mcfunction +4 -0
  596. package/dist/data/mathdemo/function/hash_2d.mcfunction +11 -0
  597. package/dist/data/mathdemo/function/hash_2d_pos.mcfunction +11 -0
  598. package/dist/data/mathdemo/function/hash_2d_pos__merge_1.mcfunction +4 -0
  599. package/dist/data/mathdemo/function/hash_2d_pos__then_0.mcfunction +4 -0
  600. package/dist/data/mathdemo/function/impact_velocity.mcfunction +5 -0
  601. package/dist/data/mathdemo/function/impact_velocity__merge_1.mcfunction +16 -0
  602. package/dist/data/mathdemo/function/impact_velocity__then_0.mcfunction +2 -0
  603. package/dist/data/mathdemo/function/is_grounded.mcfunction +5 -0
  604. package/dist/data/mathdemo/function/is_grounded__merge_1.mcfunction +2 -0
  605. package/dist/data/mathdemo/function/is_grounded__then_0.mcfunction +2 -0
  606. package/dist/data/mathdemo/function/isqrt.mcfunction +5 -0
  607. package/dist/data/mathdemo/function/isqrt__loop_body_10.mcfunction +8 -0
  608. package/dist/data/mathdemo/function/isqrt__loop_body_13.mcfunction +11 -0
  609. package/dist/data/mathdemo/function/isqrt__loop_body_7.mcfunction +8 -0
  610. package/dist/data/mathdemo/function/isqrt__loop_exit_11.mcfunction +2 -0
  611. package/dist/data/mathdemo/function/isqrt__loop_exit_14.mcfunction +1 -0
  612. package/dist/data/mathdemo/function/isqrt__loop_exit_8.mcfunction +9 -0
  613. package/dist/data/mathdemo/function/isqrt__loop_header_12.mcfunction +4 -0
  614. package/dist/data/mathdemo/function/isqrt__loop_header_6.mcfunction +4 -0
  615. package/dist/data/mathdemo/function/isqrt__loop_header_9.mcfunction +3 -0
  616. package/dist/data/mathdemo/function/isqrt__merge_1.mcfunction +4 -0
  617. package/dist/data/mathdemo/function/isqrt__merge_16.mcfunction +5 -0
  618. package/dist/data/mathdemo/function/isqrt__merge_4.mcfunction +3 -0
  619. package/dist/data/mathdemo/function/isqrt__then_0.mcfunction +2 -0
  620. package/dist/data/mathdemo/function/isqrt__then_15.mcfunction +1 -0
  621. package/dist/data/mathdemo/function/isqrt__then_3.mcfunction +2 -0
  622. package/dist/data/mathdemo/function/lcm.mcfunction +11 -0
  623. package/dist/data/mathdemo/function/lcm__merge_1.mcfunction +5 -0
  624. package/dist/data/mathdemo/function/lcm__then_0.mcfunction +2 -0
  625. package/dist/data/mathdemo/function/length2d_fixed.mcfunction +15 -0
  626. package/dist/data/mathdemo/function/length3d_fixed.mcfunction +20 -0
  627. package/dist/data/mathdemo/function/lerp.mcfunction +13 -0
  628. package/dist/data/mathdemo/function/lerp2d_x.mcfunction +13 -0
  629. package/dist/data/mathdemo/function/lerp2d_y.mcfunction +13 -0
  630. package/dist/data/mathdemo/function/ln.mcfunction +9 -0
  631. package/dist/data/mathdemo/function/ln__loop_body_1.mcfunction +8 -0
  632. package/dist/data/mathdemo/function/ln__loop_body_4.mcfunction +8 -0
  633. package/dist/data/mathdemo/function/ln__loop_exit_2.mcfunction +1 -0
  634. package/dist/data/mathdemo/function/ln__loop_exit_5.mcfunction +37 -0
  635. package/dist/data/mathdemo/function/ln__loop_header_0.mcfunction +3 -0
  636. package/dist/data/mathdemo/function/ln__loop_header_3.mcfunction +6 -0
  637. package/dist/data/mathdemo/function/load.mcfunction +1 -0
  638. package/dist/data/mathdemo/function/log10_fx.mcfunction +11 -0
  639. package/dist/data/mathdemo/function/log2_fx.mcfunction +11 -0
  640. package/dist/data/mathdemo/function/log2_int.mcfunction +5 -0
  641. package/dist/data/mathdemo/function/log2_int__loop_body_4.mcfunction +8 -0
  642. package/dist/data/mathdemo/function/log2_int__loop_exit_5.mcfunction +1 -0
  643. package/dist/data/mathdemo/function/log2_int__loop_header_3.mcfunction +4 -0
  644. package/dist/data/mathdemo/function/log2_int__merge_1.mcfunction +3 -0
  645. package/dist/data/mathdemo/function/log2_int__then_0.mcfunction +2 -0
  646. package/dist/data/mathdemo/function/loga_fx.mcfunction +10 -0
  647. package/dist/data/mathdemo/function/loga_fx__merge_1.mcfunction +9 -0
  648. package/dist/data/mathdemo/function/loga_fx__then_0.mcfunction +2 -0
  649. package/dist/data/mathdemo/function/manhattan.mcfunction +14 -0
  650. package/dist/data/mathdemo/function/manhattan3d.mcfunction +19 -0
  651. package/dist/data/mathdemo/function/manhattan3d__merge_1.mcfunction +4 -0
  652. package/dist/data/mathdemo/function/manhattan3d__merge_3.mcfunction +4 -0
  653. package/dist/data/mathdemo/function/manhattan3d__merge_5.mcfunction +5 -0
  654. package/dist/data/mathdemo/function/manhattan3d__then_0.mcfunction +4 -0
  655. package/dist/data/mathdemo/function/manhattan3d__then_2.mcfunction +4 -0
  656. package/dist/data/mathdemo/function/manhattan3d__then_4.mcfunction +4 -0
  657. package/dist/data/mathdemo/function/manhattan__merge_1.mcfunction +4 -0
  658. package/dist/data/mathdemo/function/manhattan__merge_3.mcfunction +3 -0
  659. package/dist/data/mathdemo/function/manhattan__then_0.mcfunction +4 -0
  660. package/dist/data/mathdemo/function/manhattan__then_2.mcfunction +4 -0
  661. package/dist/data/mathdemo/function/map.mcfunction +12 -0
  662. package/dist/data/mathdemo/function/map__merge_1.mcfunction +11 -0
  663. package/dist/data/mathdemo/function/map__then_0.mcfunction +1 -0
  664. package/dist/data/mathdemo/function/mulfix.mcfunction +8 -0
  665. package/dist/data/mathdemo/function/neg2d_x.mcfunction +4 -0
  666. package/dist/data/mathdemo/function/neg2d_y.mcfunction +4 -0
  667. package/dist/data/mathdemo/function/neg3d_x.mcfunction +4 -0
  668. package/dist/data/mathdemo/function/neg3d_y.mcfunction +4 -0
  669. package/dist/data/mathdemo/function/neg3d_z.mcfunction +4 -0
  670. package/dist/data/mathdemo/function/normalize2d_x.mcfunction +11 -0
  671. package/dist/data/mathdemo/function/normalize2d_x__merge_1.mcfunction +6 -0
  672. package/dist/data/mathdemo/function/normalize2d_x__then_0.mcfunction +2 -0
  673. package/dist/data/mathdemo/function/normalize2d_y.mcfunction +11 -0
  674. package/dist/data/mathdemo/function/normalize2d_y__merge_1.mcfunction +6 -0
  675. package/dist/data/mathdemo/function/normalize2d_y__then_0.mcfunction +2 -0
  676. package/dist/data/mathdemo/function/pow_int.mcfunction +6 -0
  677. package/dist/data/mathdemo/function/pow_int__loop_body_4.mcfunction +7 -0
  678. package/dist/data/mathdemo/function/pow_int__loop_exit_5.mcfunction +1 -0
  679. package/dist/data/mathdemo/function/pow_int__loop_header_3.mcfunction +4 -0
  680. package/dist/data/mathdemo/function/pow_int__merge_1.mcfunction +4 -0
  681. package/dist/data/mathdemo/function/pow_int__merge_7.mcfunction +8 -0
  682. package/dist/data/mathdemo/function/pow_int__then_0.mcfunction +2 -0
  683. package/dist/data/mathdemo/function/pow_int__then_6.mcfunction +4 -0
  684. package/dist/data/mathdemo/function/projectile_land_t.mcfunction +5 -0
  685. package/dist/data/mathdemo/function/projectile_land_t__merge_1.mcfunction +7 -0
  686. package/dist/data/mathdemo/function/projectile_land_t__then_0.mcfunction +2 -0
  687. package/dist/data/mathdemo/function/projectile_max_height.mcfunction +10 -0
  688. package/dist/data/mathdemo/function/projectile_max_height__const_200.mcfunction +8 -0
  689. package/dist/data/mathdemo/function/projectile_vy.mcfunction +9 -0
  690. package/dist/data/mathdemo/function/projectile_x.mcfunction +8 -0
  691. package/dist/data/mathdemo/function/projectile_y.mcfunction +19 -0
  692. package/dist/data/mathdemo/function/quadratic_disc.mcfunction +12 -0
  693. package/dist/data/mathdemo/function/quadratic_x1.mcfunction +7 -0
  694. package/dist/data/mathdemo/function/quadratic_x1__merge_1.mcfunction +13 -0
  695. package/dist/data/mathdemo/function/quadratic_x1__merge_4.mcfunction +15 -0
  696. package/dist/data/mathdemo/function/quadratic_x1__then_0.mcfunction +2 -0
  697. package/dist/data/mathdemo/function/quadratic_x1__then_3.mcfunction +2 -0
  698. package/dist/data/mathdemo/function/quadratic_x2.mcfunction +7 -0
  699. package/dist/data/mathdemo/function/quadratic_x2__merge_1.mcfunction +13 -0
  700. package/dist/data/mathdemo/function/quadratic_x2__merge_4.mcfunction +15 -0
  701. package/dist/data/mathdemo/function/quadratic_x2__then_0.mcfunction +2 -0
  702. package/dist/data/mathdemo/function/quadratic_x2__then_3.mcfunction +2 -0
  703. package/dist/data/mathdemo/function/rotate2d_x.mcfunction +20 -0
  704. package/dist/data/mathdemo/function/rotate2d_y.mcfunction +20 -0
  705. package/dist/data/mathdemo/function/scale2d_x.mcfunction +8 -0
  706. package/dist/data/mathdemo/function/scale2d_y.mcfunction +8 -0
  707. package/dist/data/mathdemo/function/scale3d_x.mcfunction +8 -0
  708. package/dist/data/mathdemo/function/scale3d_y.mcfunction +8 -0
  709. package/dist/data/mathdemo/function/scale3d_z.mcfunction +8 -0
  710. package/dist/data/mathdemo/function/sign.mcfunction +5 -0
  711. package/dist/data/mathdemo/function/sign__merge_1.mcfunction +4 -0
  712. package/dist/data/mathdemo/function/sign__merge_4.mcfunction +2 -0
  713. package/dist/data/mathdemo/function/sign__then_0.mcfunction +2 -0
  714. package/dist/data/mathdemo/function/sign__then_3.mcfunction +2 -0
  715. package/dist/data/mathdemo/function/sin_fixed.mcfunction +9 -0
  716. package/dist/data/mathdemo/function/sin_fixed__merge_1.mcfunction +4 -0
  717. package/dist/data/mathdemo/function/sin_fixed__merge_3.mcfunction +4 -0
  718. package/dist/data/mathdemo/function/sin_fixed__merge_6.mcfunction +4 -0
  719. package/dist/data/mathdemo/function/sin_fixed__merge_9.mcfunction +10 -0
  720. package/dist/data/mathdemo/function/sin_fixed__then_0.mcfunction +4 -0
  721. package/dist/data/mathdemo/function/sin_fixed__then_2.mcfunction +6 -0
  722. package/dist/data/mathdemo/function/sin_fixed__then_5.mcfunction +8 -0
  723. package/dist/data/mathdemo/function/sin_fixed__then_8.mcfunction +10 -0
  724. package/dist/data/mathdemo/function/smootherstep.mcfunction +10 -0
  725. package/dist/data/mathdemo/function/smootherstep__merge_1.mcfunction +12 -0
  726. package/dist/data/mathdemo/function/smootherstep__merge_4.mcfunction +4 -0
  727. package/dist/data/mathdemo/function/smootherstep__merge_6.mcfunction +27 -0
  728. package/dist/data/mathdemo/function/smootherstep__then_0.mcfunction +2 -0
  729. package/dist/data/mathdemo/function/smootherstep__then_3.mcfunction +2 -0
  730. package/dist/data/mathdemo/function/smootherstep__then_5.mcfunction +2 -0
  731. package/dist/data/mathdemo/function/smoothstep.mcfunction +10 -0
  732. package/dist/data/mathdemo/function/smoothstep__merge_1.mcfunction +12 -0
  733. package/dist/data/mathdemo/function/smoothstep__merge_4.mcfunction +4 -0
  734. package/dist/data/mathdemo/function/smoothstep__merge_6.mcfunction +15 -0
  735. package/dist/data/mathdemo/function/smoothstep__then_0.mcfunction +2 -0
  736. package/dist/data/mathdemo/function/smoothstep__then_3.mcfunction +2 -0
  737. package/dist/data/mathdemo/function/smoothstep__then_5.mcfunction +2 -0
  738. package/dist/data/mathdemo/function/solve2x2_x.mcfunction +17 -0
  739. package/dist/data/mathdemo/function/solve2x2_x__merge_1.mcfunction +12 -0
  740. package/dist/data/mathdemo/function/solve2x2_x__then_0.mcfunction +2 -0
  741. package/dist/data/mathdemo/function/solve2x2_y.mcfunction +17 -0
  742. package/dist/data/mathdemo/function/solve2x2_y__merge_1.mcfunction +12 -0
  743. package/dist/data/mathdemo/function/solve2x2_y__then_0.mcfunction +2 -0
  744. package/dist/data/mathdemo/function/spring_force.mcfunction +11 -0
  745. package/dist/data/mathdemo/function/spring_update_v.mcfunction +18 -0
  746. package/dist/data/mathdemo/function/sqrt_fixed.mcfunction +8 -0
  747. package/dist/data/mathdemo/function/sqrt_fx.mcfunction +11 -0
  748. package/dist/data/mathdemo/function/sqrt_fx__const_20000.mcfunction +8 -0
  749. package/dist/data/mathdemo/function/start.mcfunction +6 -0
  750. package/dist/data/mathdemo/function/sub2d_x.mcfunction +5 -0
  751. package/dist/data/mathdemo/function/sub2d_y.mcfunction +5 -0
  752. package/dist/data/mathdemo/function/sub3d_x.mcfunction +5 -0
  753. package/dist/data/mathdemo/function/sub3d_y.mcfunction +5 -0
  754. package/dist/data/mathdemo/function/sub3d_z.mcfunction +5 -0
  755. package/dist/data/mathdemo/function/terrain_height.mcfunction +24 -0
  756. package/dist/data/mathdemo/function/terrain_height__const_0_0_64_20.mcfunction +17 -0
  757. package/dist/data/mathdemo/function/terrain_height__const_10_5_64_20.mcfunction +17 -0
  758. package/dist/data/mathdemo/function/update_pos.mcfunction +5 -0
  759. package/dist/data/mathdemo/function/value_noise_1d.mcfunction +13 -0
  760. package/dist/data/mathdemo/function/value_noise_1d__merge_1.mcfunction +39 -0
  761. package/dist/data/mathdemo/function/value_noise_1d__then_0.mcfunction +7 -0
  762. package/dist/data/mathdemo/function/value_noise_2d.mcfunction +14 -0
  763. package/dist/data/mathdemo/function/value_noise_2d__merge_1.mcfunction +12 -0
  764. package/dist/data/mathdemo/function/value_noise_2d__merge_3.mcfunction +98 -0
  765. package/dist/data/mathdemo/function/value_noise_2d__then_0.mcfunction +7 -0
  766. package/dist/data/mathdemo/function/value_noise_2d__then_2.mcfunction +7 -0
  767. package/dist/data/mathdemo/function/water_drag_fx.mcfunction +2 -0
  768. package/dist/data/mathtest/function/__load.mcfunction +3 -0
  769. package/dist/data/mathtest/function/abs/merge_2.mcfunction +3 -0
  770. package/dist/data/mathtest/function/abs/then_0.mcfunction +5 -0
  771. package/dist/data/mathtest/function/abs.mcfunction +6 -0
  772. package/dist/data/mathtest/function/test.mcfunction +5 -0
  773. package/dist/data/minecraft/tags/function/load.json +5 -0
  774. package/dist/data/minecraft/tags/function/tick.json +5 -0
  775. package/dist/data/mypack/function/__load.mcfunction +13 -0
  776. package/dist/data/mypack/function/_atan_init.mcfunction +2 -0
  777. package/dist/data/mypack/function/abs/merge_2.mcfunction +3 -0
  778. package/dist/data/mypack/function/abs/then_0.mcfunction +5 -0
  779. package/dist/data/mypack/function/abs.mcfunction +6 -0
  780. package/dist/data/mypack/function/atan2_fixed/__sgi_1.mcfunction +2 -0
  781. package/dist/data/mypack/function/atan2_fixed/else_34.mcfunction +3 -0
  782. package/dist/data/mypack/function/atan2_fixed/loop_body_31.mcfunction +19 -0
  783. package/dist/data/mypack/function/atan2_fixed/loop_check_30.mcfunction +5 -0
  784. package/dist/data/mypack/function/atan2_fixed/loop_exit_32.mcfunction +6 -0
  785. package/dist/data/mypack/function/atan2_fixed/merge_11.mcfunction +6 -0
  786. package/dist/data/mypack/function/atan2_fixed/merge_14.mcfunction +3 -0
  787. package/dist/data/mypack/function/atan2_fixed/merge_17.mcfunction +6 -0
  788. package/dist/data/mypack/function/atan2_fixed/merge_2.mcfunction +5 -0
  789. package/dist/data/mypack/function/atan2_fixed/merge_20.mcfunction +5 -0
  790. package/dist/data/mypack/function/atan2_fixed/merge_23.mcfunction +5 -0
  791. package/dist/data/mypack/function/atan2_fixed/merge_26.mcfunction +6 -0
  792. package/dist/data/mypack/function/atan2_fixed/merge_29.mcfunction +4 -0
  793. package/dist/data/mypack/function/atan2_fixed/merge_38.mcfunction +5 -0
  794. package/dist/data/mypack/function/atan2_fixed/merge_41.mcfunction +5 -0
  795. package/dist/data/mypack/function/atan2_fixed/merge_44.mcfunction +5 -0
  796. package/dist/data/mypack/function/atan2_fixed/merge_47.mcfunction +5 -0
  797. package/dist/data/mypack/function/atan2_fixed/merge_5.mcfunction +5 -0
  798. package/dist/data/mypack/function/atan2_fixed/merge_8.mcfunction +3 -0
  799. package/dist/data/mypack/function/atan2_fixed/then_0.mcfunction +5 -0
  800. package/dist/data/mypack/function/atan2_fixed/then_12.mcfunction +3 -0
  801. package/dist/data/mypack/function/atan2_fixed/then_15.mcfunction +5 -0
  802. package/dist/data/mypack/function/atan2_fixed/then_18.mcfunction +5 -0
  803. package/dist/data/mypack/function/atan2_fixed/then_21.mcfunction +3 -0
  804. package/dist/data/mypack/function/atan2_fixed/then_24.mcfunction +3 -0
  805. package/dist/data/mypack/function/atan2_fixed/then_27.mcfunction +6 -0
  806. package/dist/data/mypack/function/atan2_fixed/then_3.mcfunction +3 -0
  807. package/dist/data/mypack/function/atan2_fixed/then_33.mcfunction +5 -0
  808. package/dist/data/mypack/function/atan2_fixed/then_36.mcfunction +5 -0
  809. package/dist/data/mypack/function/atan2_fixed/then_39.mcfunction +5 -0
  810. package/dist/data/mypack/function/atan2_fixed/then_42.mcfunction +3 -0
  811. package/dist/data/mypack/function/atan2_fixed/then_45.mcfunction +5 -0
  812. package/dist/data/mypack/function/atan2_fixed/then_6.mcfunction +3 -0
  813. package/dist/data/mypack/function/atan2_fixed/then_9.mcfunction +5 -0
  814. package/dist/data/mypack/function/atan2_fixed.mcfunction +7 -0
  815. package/dist/data/mypack/function/my_game.mcfunction +10 -0
  816. package/dist/data/parkour_race/function/angry_at.mcfunction +1 -0
  817. package/dist/data/parkour_race/function/barrier_wall.mcfunction +1 -0
  818. package/dist/data/parkour_race/function/buff_all.mcfunction +22 -0
  819. package/dist/data/parkour_race/function/check_checkpoints.mcfunction +11 -0
  820. package/dist/data/parkour_race/function/check_checkpoints__exec_t11.mcfunction +4 -0
  821. package/dist/data/parkour_race/function/check_checkpoints__exec_t13.mcfunction +3 -0
  822. package/dist/data/parkour_race/function/check_checkpoints__exec_t5.mcfunction +4 -0
  823. package/dist/data/parkour_race/function/check_checkpoints__exec_t7.mcfunction +4 -0
  824. package/dist/data/parkour_race/function/check_checkpoints__exec_t9.mcfunction +4 -0
  825. package/dist/data/parkour_race/function/check_checkpoints__merge_1.mcfunction +5 -0
  826. package/dist/data/parkour_race/function/check_checkpoints__merge_3.mcfunction +5 -0
  827. package/dist/data/parkour_race/function/check_checkpoints__merge_5.mcfunction +5 -0
  828. package/dist/data/parkour_race/function/check_checkpoints__merge_7.mcfunction +5 -0
  829. package/dist/data/parkour_race/function/check_checkpoints__merge_9.mcfunction +1 -0
  830. package/dist/data/parkour_race/function/check_checkpoints__then_0.mcfunction +2 -0
  831. package/dist/data/parkour_race/function/check_checkpoints__then_2.mcfunction +2 -0
  832. package/dist/data/parkour_race/function/check_checkpoints__then_4.mcfunction +2 -0
  833. package/dist/data/parkour_race/function/check_checkpoints__then_6.mcfunction +2 -0
  834. package/dist/data/parkour_race/function/check_checkpoints__then_8.mcfunction +2 -0
  835. package/dist/data/parkour_race/function/check_fall.mcfunction +1 -0
  836. package/dist/data/parkour_race/function/check_fall__exec_t1.mcfunction +10 -0
  837. package/dist/data/parkour_race/function/clear_area.mcfunction +1 -0
  838. package/dist/data/parkour_race/function/clear_effect.mcfunction +1 -0
  839. package/dist/data/parkour_race/function/clear_effects.mcfunction +1 -0
  840. package/dist/data/parkour_race/function/create_health_bar.mcfunction +24 -0
  841. package/dist/data/parkour_race/function/create_progress_bar.mcfunction +24 -0
  842. package/dist/data/parkour_race/function/create_timer_bar.mcfunction +30 -0
  843. package/dist/data/parkour_race/function/disable_fire_spread.mcfunction +1 -0
  844. package/dist/data/parkour_race/function/disable_keep_inventory.mcfunction +1 -0
  845. package/dist/data/parkour_race/function/disable_mob_griefing.mcfunction +1 -0
  846. package/dist/data/parkour_race/function/enable_keep_inventory.mcfunction +1 -0
  847. package/dist/data/parkour_race/function/end_sparkles_at.mcfunction +1 -0
  848. package/dist/data/parkour_race/function/explosion_effect.mcfunction +1 -0
  849. package/dist/data/parkour_race/function/finish_race.mcfunction +20 -0
  850. package/dist/data/parkour_race/function/finish_race__else_2.mcfunction +4 -0
  851. package/dist/data/parkour_race/function/finish_race__else_5.mcfunction +3 -0
  852. package/dist/data/parkour_race/function/finish_race__merge_1.mcfunction +3 -0
  853. package/dist/data/parkour_race/function/finish_race__merge_4.mcfunction +1 -0
  854. package/dist/data/parkour_race/function/finish_race__then_0.mcfunction +8 -0
  855. package/dist/data/parkour_race/function/finish_race__then_3.mcfunction +10 -0
  856. package/dist/data/parkour_race/function/flames.mcfunction +1 -0
  857. package/dist/data/parkour_race/function/glass_box.mcfunction +2 -0
  858. package/dist/data/parkour_race/function/glow.mcfunction +1 -0
  859. package/dist/data/parkour_race/function/happy_at.mcfunction +1 -0
  860. package/dist/data/parkour_race/function/hearts_at.mcfunction +1 -0
  861. package/dist/data/parkour_race/function/hide_bar.mcfunction +4 -0
  862. package/dist/data/parkour_race/function/init.mcfunction +18 -0
  863. package/dist/data/parkour_race/function/invisible.mcfunction +1 -0
  864. package/dist/data/parkour_race/function/jump.mcfunction +1 -0
  865. package/dist/data/parkour_race/function/load.mcfunction +1 -0
  866. package/dist/data/parkour_race/function/night_vision.mcfunction +1 -0
  867. package/dist/data/parkour_race/function/portal_effect.mcfunction +1 -0
  868. package/dist/data/parkour_race/function/quit_race.mcfunction +10 -0
  869. package/dist/data/parkour_race/function/quit_race__merge_1.mcfunction +1 -0
  870. package/dist/data/parkour_race/function/quit_race__then_0.mcfunction +11 -0
  871. package/dist/data/parkour_race/function/race_tick.mcfunction +1 -0
  872. package/dist/data/parkour_race/function/race_tick__foreach_t0.mcfunction +10 -0
  873. package/dist/data/parkour_race/function/race_tick__foreach_t0__merge_1.mcfunction +1 -0
  874. package/dist/data/parkour_race/function/race_tick__foreach_t0__then_0.mcfunction +13 -0
  875. package/dist/data/parkour_race/function/reach_checkpoint.mcfunction +11 -0
  876. package/dist/data/parkour_race/function/regen.mcfunction +1 -0
  877. package/dist/data/parkour_race/function/remove_bar.mcfunction +3 -0
  878. package/dist/data/parkour_race/function/resistance.mcfunction +1 -0
  879. package/dist/data/parkour_race/function/respawn_at_checkpoint.mcfunction +7 -0
  880. package/dist/data/parkour_race/function/respawn_at_checkpoint__merge_1.mcfunction +5 -0
  881. package/dist/data/parkour_race/function/respawn_at_checkpoint__merge_3.mcfunction +5 -0
  882. package/dist/data/parkour_race/function/respawn_at_checkpoint__merge_5.mcfunction +5 -0
  883. package/dist/data/parkour_race/function/respawn_at_checkpoint__merge_7.mcfunction +5 -0
  884. package/dist/data/parkour_race/function/respawn_at_checkpoint__merge_9.mcfunction +1 -0
  885. package/dist/data/parkour_race/function/respawn_at_checkpoint__then_0.mcfunction +6 -0
  886. package/dist/data/parkour_race/function/respawn_at_checkpoint__then_2.mcfunction +6 -0
  887. package/dist/data/parkour_race/function/respawn_at_checkpoint__then_4.mcfunction +6 -0
  888. package/dist/data/parkour_race/function/respawn_at_checkpoint__then_6.mcfunction +6 -0
  889. package/dist/data/parkour_race/function/respawn_at_checkpoint__then_8.mcfunction +6 -0
  890. package/dist/data/parkour_race/function/set_day.mcfunction +1 -0
  891. package/dist/data/parkour_race/function/set_easy.mcfunction +1 -0
  892. package/dist/data/parkour_race/function/set_hard.mcfunction +1 -0
  893. package/dist/data/parkour_race/function/set_midnight.mcfunction +1 -0
  894. package/dist/data/parkour_race/function/set_night.mcfunction +1 -0
  895. package/dist/data/parkour_race/function/set_noon.mcfunction +1 -0
  896. package/dist/data/parkour_race/function/set_normal.mcfunction +1 -0
  897. package/dist/data/parkour_race/function/set_peaceful.mcfunction +1 -0
  898. package/dist/data/parkour_race/function/show_bar.mcfunction +4 -0
  899. package/dist/data/parkour_race/function/show_leaderboard.mcfunction +4 -0
  900. package/dist/data/parkour_race/function/slow_fall.mcfunction +1 -0
  901. package/dist/data/parkour_race/function/smoke.mcfunction +1 -0
  902. package/dist/data/parkour_race/function/sparkles_at.mcfunction +1 -0
  903. package/dist/data/parkour_race/function/speed.mcfunction +1 -0
  904. package/dist/data/parkour_race/function/start_race.mcfunction +10 -0
  905. package/dist/data/parkour_race/function/start_race__merge_1.mcfunction +23 -0
  906. package/dist/data/parkour_race/function/start_race__then_0.mcfunction +1 -0
  907. package/dist/data/parkour_race/function/strength.mcfunction +1 -0
  908. package/dist/data/parkour_race/function/totem_at.mcfunction +1 -0
  909. package/dist/data/parkour_race/function/update_bar.mcfunction +5 -0
  910. package/dist/data/parkour_race/function/update_bar_color.mcfunction +7 -0
  911. package/dist/data/parkour_race/function/update_bar_color__else_2.mcfunction +5 -0
  912. package/dist/data/parkour_race/function/update_bar_color__else_5.mcfunction +4 -0
  913. package/dist/data/parkour_race/function/update_bar_color__merge_1.mcfunction +1 -0
  914. package/dist/data/parkour_race/function/update_bar_color__merge_4.mcfunction +1 -0
  915. package/dist/data/parkour_race/function/update_bar_color__then_0.mcfunction +4 -0
  916. package/dist/data/parkour_race/function/update_bar_color__then_3.mcfunction +4 -0
  917. package/dist/data/parkour_race/function/weather_clear.mcfunction +1 -0
  918. package/dist/data/parkour_race/function/weather_rain.mcfunction +1 -0
  919. package/dist/data/parkour_race/function/weather_thunder.mcfunction +1 -0
  920. package/dist/data/quiz/function/__load.mcfunction +16 -0
  921. package/dist/data/quiz/function/__tick.mcfunction +6 -0
  922. package/dist/data/quiz/function/__trigger_quiz_a_dispatch.mcfunction +4 -0
  923. package/dist/data/quiz/function/__trigger_quiz_b_dispatch.mcfunction +4 -0
  924. package/dist/data/quiz/function/__trigger_quiz_c_dispatch.mcfunction +4 -0
  925. package/dist/data/quiz/function/__trigger_quiz_start_dispatch.mcfunction +4 -0
  926. package/dist/data/quiz/function/answer_a.mcfunction +4 -0
  927. package/dist/data/quiz/function/answer_b.mcfunction +4 -0
  928. package/dist/data/quiz/function/answer_c.mcfunction +4 -0
  929. package/dist/data/quiz/function/ask_question/else_1.mcfunction +5 -0
  930. package/dist/data/quiz/function/ask_question/else_4.mcfunction +5 -0
  931. package/dist/data/quiz/function/ask_question/else_7.mcfunction +4 -0
  932. package/dist/data/quiz/function/ask_question/merge_2.mcfunction +1 -0
  933. package/dist/data/quiz/function/ask_question/merge_5.mcfunction +2 -0
  934. package/dist/data/quiz/function/ask_question/merge_8.mcfunction +2 -0
  935. package/dist/data/quiz/function/ask_question/then_0.mcfunction +4 -0
  936. package/dist/data/quiz/function/ask_question/then_3.mcfunction +4 -0
  937. package/dist/data/quiz/function/ask_question/then_6.mcfunction +4 -0
  938. package/dist/data/quiz/function/ask_question.mcfunction +7 -0
  939. package/dist/data/quiz/function/finish_quiz.mcfunction +6 -0
  940. package/dist/data/quiz/function/handle_answer/else_1.mcfunction +5 -0
  941. package/dist/data/quiz/function/handle_answer/else_10.mcfunction +3 -0
  942. package/dist/data/quiz/function/handle_answer/else_16.mcfunction +3 -0
  943. package/dist/data/quiz/function/handle_answer/else_4.mcfunction +3 -0
  944. package/dist/data/quiz/function/handle_answer/else_7.mcfunction +5 -0
  945. package/dist/data/quiz/function/handle_answer/merge_11.mcfunction +2 -0
  946. package/dist/data/quiz/function/handle_answer/merge_14.mcfunction +2 -0
  947. package/dist/data/quiz/function/handle_answer/merge_17.mcfunction +2 -0
  948. package/dist/data/quiz/function/handle_answer/merge_2.mcfunction +8 -0
  949. package/dist/data/quiz/function/handle_answer/merge_5.mcfunction +2 -0
  950. package/dist/data/quiz/function/handle_answer/merge_8.mcfunction +2 -0
  951. package/dist/data/quiz/function/handle_answer/then_0.mcfunction +5 -0
  952. package/dist/data/quiz/function/handle_answer/then_12.mcfunction +5 -0
  953. package/dist/data/quiz/function/handle_answer/then_15.mcfunction +6 -0
  954. package/dist/data/quiz/function/handle_answer/then_3.mcfunction +6 -0
  955. package/dist/data/quiz/function/handle_answer/then_6.mcfunction +5 -0
  956. package/dist/data/quiz/function/handle_answer/then_9.mcfunction +6 -0
  957. package/dist/data/quiz/function/handle_answer.mcfunction +11 -0
  958. package/dist/data/quiz/function/start_quiz.mcfunction +5 -0
  959. package/dist/data/rawtest/function/load.mcfunction +1 -0
  960. package/dist/data/rawtest/function/test.mcfunction +2 -0
  961. package/dist/data/readme_demo/function/_draw.mcfunction +1 -0
  962. package/dist/data/readme_demo/function/_init.mcfunction +1 -0
  963. package/dist/data/readme_demo/function/_math_init.mcfunction +4 -0
  964. package/dist/data/readme_demo/function/_wave_tick.mcfunction +1 -0
  965. package/dist/data/readme_demo/function/_wave_tick__foreach_t8.mcfunction +109 -0
  966. package/dist/data/readme_demo/function/acos_approx.mcfunction +7 -0
  967. package/dist/data/readme_demo/function/approx_eq.mcfunction +10 -0
  968. package/dist/data/readme_demo/function/approx_eq__merge_1.mcfunction +3 -0
  969. package/dist/data/readme_demo/function/approx_eq__merge_3.mcfunction +2 -0
  970. package/dist/data/readme_demo/function/approx_eq__then_0.mcfunction +4 -0
  971. package/dist/data/readme_demo/function/approx_eq__then_2.mcfunction +2 -0
  972. package/dist/data/readme_demo/function/asin_approx.mcfunction +5 -0
  973. package/dist/data/readme_demo/function/asin_approx__merge_1.mcfunction +3 -0
  974. package/dist/data/readme_demo/function/asin_approx__merge_10.mcfunction +5 -0
  975. package/dist/data/readme_demo/function/asin_approx__merge_4.mcfunction +12 -0
  976. package/dist/data/readme_demo/function/asin_approx__merge_7.mcfunction +14 -0
  977. package/dist/data/readme_demo/function/asin_approx__then_0.mcfunction +2 -0
  978. package/dist/data/readme_demo/function/asin_approx__then_3.mcfunction +2 -0
  979. package/dist/data/readme_demo/function/asin_approx__then_6.mcfunction +2 -0
  980. package/dist/data/readme_demo/function/asin_approx__then_9.mcfunction +2 -0
  981. package/dist/data/readme_demo/function/cbrt_fx.mcfunction +5 -0
  982. package/dist/data/readme_demo/function/cbrt_fx__loop_body_6.mcfunction +7 -0
  983. package/dist/data/readme_demo/function/cbrt_fx__loop_exit_7.mcfunction +1 -0
  984. package/dist/data/readme_demo/function/cbrt_fx__loop_header_5.mcfunction +4 -0
  985. package/dist/data/readme_demo/function/cbrt_fx__merge_1.mcfunction +8 -0
  986. package/dist/data/readme_demo/function/cbrt_fx__merge_11.mcfunction +5 -0
  987. package/dist/data/readme_demo/function/cbrt_fx__merge_13.mcfunction +4 -0
  988. package/dist/data/readme_demo/function/cbrt_fx__merge_4.mcfunction +2 -0
  989. package/dist/data/readme_demo/function/cbrt_fx__merge_9.mcfunction +13 -0
  990. package/dist/data/readme_demo/function/cbrt_fx__then_0.mcfunction +2 -0
  991. package/dist/data/readme_demo/function/cbrt_fx__then_10.mcfunction +2 -0
  992. package/dist/data/readme_demo/function/cbrt_fx__then_12.mcfunction +2 -0
  993. package/dist/data/readme_demo/function/cbrt_fx__then_3.mcfunction +2 -0
  994. package/dist/data/readme_demo/function/cbrt_fx__then_8.mcfunction +2 -0
  995. package/dist/data/readme_demo/function/cbrt_newton.mcfunction +5 -0
  996. package/dist/data/readme_demo/function/cbrt_newton__else_7.mcfunction +2 -0
  997. package/dist/data/readme_demo/function/cbrt_newton__merge_1.mcfunction +11 -0
  998. package/dist/data/readme_demo/function/cbrt_newton__merge_4.mcfunction +1 -0
  999. package/dist/data/readme_demo/function/cbrt_newton__merge_6.mcfunction +1 -0
  1000. package/dist/data/readme_demo/function/cbrt_newton__then_0.mcfunction +2 -0
  1001. package/dist/data/readme_demo/function/cbrt_newton__then_3.mcfunction +17 -0
  1002. package/dist/data/readme_demo/function/cbrt_newton__then_5.mcfunction +11 -0
  1003. package/dist/data/readme_demo/function/ceil_div.mcfunction +9 -0
  1004. package/dist/data/readme_demo/function/combinations.mcfunction +6 -0
  1005. package/dist/data/readme_demo/function/combinations__loop_body_9.mcfunction +15 -0
  1006. package/dist/data/readme_demo/function/combinations__loop_exit_10.mcfunction +1 -0
  1007. package/dist/data/readme_demo/function/combinations__loop_header_8.mcfunction +3 -0
  1008. package/dist/data/readme_demo/function/combinations__merge_1.mcfunction +3 -0
  1009. package/dist/data/readme_demo/function/combinations__merge_4.mcfunction +6 -0
  1010. package/dist/data/readme_demo/function/combinations__merge_7.mcfunction +3 -0
  1011. package/dist/data/readme_demo/function/combinations__then_0.mcfunction +2 -0
  1012. package/dist/data/readme_demo/function/combinations__then_3.mcfunction +2 -0
  1013. package/dist/data/readme_demo/function/combinations__then_6.mcfunction +4 -0
  1014. package/dist/data/readme_demo/function/cos_fixed.mcfunction +7 -0
  1015. package/dist/data/readme_demo/function/cubic_disc_fx.mcfunction +26 -0
  1016. package/dist/data/readme_demo/function/cubic_newton.mcfunction +8 -0
  1017. package/dist/data/readme_demo/function/cubic_newton__loop_body_1.mcfunction +55 -0
  1018. package/dist/data/readme_demo/function/cubic_newton__loop_exit_2.mcfunction +1 -0
  1019. package/dist/data/readme_demo/function/cubic_newton__loop_header_0.mcfunction +4 -0
  1020. package/dist/data/readme_demo/function/cubic_newton__merge_10.mcfunction +1 -0
  1021. package/dist/data/readme_demo/function/cubic_newton__merge_4.mcfunction +4 -0
  1022. package/dist/data/readme_demo/function/cubic_newton__merge_6.mcfunction +4 -0
  1023. package/dist/data/readme_demo/function/cubic_newton__merge_8.mcfunction +4 -0
  1024. package/dist/data/readme_demo/function/cubic_newton__then_3.mcfunction +2 -0
  1025. package/dist/data/readme_demo/function/cubic_newton__then_5.mcfunction +13 -0
  1026. package/dist/data/readme_demo/function/cubic_newton__then_7.mcfunction +4 -0
  1027. package/dist/data/readme_demo/function/cubic_newton__then_9.mcfunction +2 -0
  1028. package/dist/data/readme_demo/function/divfix.mcfunction +6 -0
  1029. package/dist/data/readme_demo/function/divfix__merge_1.mcfunction +6 -0
  1030. package/dist/data/readme_demo/function/divfix__then_0.mcfunction +2 -0
  1031. package/dist/data/readme_demo/function/exp_fx.mcfunction +16 -0
  1032. package/dist/data/readme_demo/function/exp_fx__loop_body_10.mcfunction +8 -0
  1033. package/dist/data/readme_demo/function/exp_fx__loop_body_5.mcfunction +8 -0
  1034. package/dist/data/readme_demo/function/exp_fx__loop_exit_11.mcfunction +1 -0
  1035. package/dist/data/readme_demo/function/exp_fx__loop_exit_6.mcfunction +1 -0
  1036. package/dist/data/readme_demo/function/exp_fx__loop_header_4.mcfunction +3 -0
  1037. package/dist/data/readme_demo/function/exp_fx__loop_header_9.mcfunction +3 -0
  1038. package/dist/data/readme_demo/function/exp_fx__merge_1.mcfunction +47 -0
  1039. package/dist/data/readme_demo/function/exp_fx__merge_3.mcfunction +4 -0
  1040. package/dist/data/readme_demo/function/exp_fx__merge_8.mcfunction +1 -0
  1041. package/dist/data/readme_demo/function/exp_fx__then_0.mcfunction +7 -0
  1042. package/dist/data/readme_demo/function/exp_fx__then_2.mcfunction +2 -0
  1043. package/dist/data/readme_demo/function/exp_fx__then_7.mcfunction +5 -0
  1044. package/dist/data/readme_demo/function/factorial.mcfunction +5 -0
  1045. package/dist/data/readme_demo/function/factorial__loop_body_4.mcfunction +7 -0
  1046. package/dist/data/readme_demo/function/factorial__loop_exit_5.mcfunction +1 -0
  1047. package/dist/data/readme_demo/function/factorial__loop_header_3.mcfunction +3 -0
  1048. package/dist/data/readme_demo/function/factorial__merge_1.mcfunction +3 -0
  1049. package/dist/data/readme_demo/function/factorial__then_0.mcfunction +2 -0
  1050. package/dist/data/readme_demo/function/gamma_int.mcfunction +5 -0
  1051. package/dist/data/readme_demo/function/gamma_int__merge_1.mcfunction +6 -0
  1052. package/dist/data/readme_demo/function/gamma_int__then_0.mcfunction +2 -0
  1053. package/dist/data/readme_demo/function/gcd.mcfunction +7 -0
  1054. package/dist/data/readme_demo/function/gcd__loop_body_5.mcfunction +5 -0
  1055. package/dist/data/readme_demo/function/gcd__loop_exit_6.mcfunction +1 -0
  1056. package/dist/data/readme_demo/function/gcd__loop_header_4.mcfunction +4 -0
  1057. package/dist/data/readme_demo/function/gcd__merge_1.mcfunction +5 -0
  1058. package/dist/data/readme_demo/function/gcd__merge_3.mcfunction +1 -0
  1059. package/dist/data/readme_demo/function/gcd__then_0.mcfunction +4 -0
  1060. package/dist/data/readme_demo/function/gcd__then_2.mcfunction +4 -0
  1061. package/dist/data/readme_demo/function/isqrt.mcfunction +5 -0
  1062. package/dist/data/readme_demo/function/isqrt__loop_body_10.mcfunction +8 -0
  1063. package/dist/data/readme_demo/function/isqrt__loop_body_13.mcfunction +11 -0
  1064. package/dist/data/readme_demo/function/isqrt__loop_body_7.mcfunction +8 -0
  1065. package/dist/data/readme_demo/function/isqrt__loop_exit_11.mcfunction +2 -0
  1066. package/dist/data/readme_demo/function/isqrt__loop_exit_14.mcfunction +1 -0
  1067. package/dist/data/readme_demo/function/isqrt__loop_exit_8.mcfunction +9 -0
  1068. package/dist/data/readme_demo/function/isqrt__loop_header_12.mcfunction +4 -0
  1069. package/dist/data/readme_demo/function/isqrt__loop_header_6.mcfunction +4 -0
  1070. package/dist/data/readme_demo/function/isqrt__loop_header_9.mcfunction +3 -0
  1071. package/dist/data/readme_demo/function/isqrt__merge_1.mcfunction +4 -0
  1072. package/dist/data/readme_demo/function/isqrt__merge_16.mcfunction +5 -0
  1073. package/dist/data/readme_demo/function/isqrt__merge_4.mcfunction +3 -0
  1074. package/dist/data/readme_demo/function/isqrt__then_0.mcfunction +2 -0
  1075. package/dist/data/readme_demo/function/isqrt__then_15.mcfunction +1 -0
  1076. package/dist/data/readme_demo/function/isqrt__then_3.mcfunction +2 -0
  1077. package/dist/data/readme_demo/function/lcm.mcfunction +11 -0
  1078. package/dist/data/readme_demo/function/lcm__merge_1.mcfunction +5 -0
  1079. package/dist/data/readme_demo/function/lcm__then_0.mcfunction +2 -0
  1080. package/dist/data/readme_demo/function/lerp.mcfunction +13 -0
  1081. package/dist/data/readme_demo/function/ln.mcfunction +9 -0
  1082. package/dist/data/readme_demo/function/ln__loop_body_1.mcfunction +8 -0
  1083. package/dist/data/readme_demo/function/ln__loop_body_4.mcfunction +8 -0
  1084. package/dist/data/readme_demo/function/ln__loop_exit_2.mcfunction +1 -0
  1085. package/dist/data/readme_demo/function/ln__loop_exit_5.mcfunction +37 -0
  1086. package/dist/data/readme_demo/function/ln__loop_header_0.mcfunction +3 -0
  1087. package/dist/data/readme_demo/function/ln__loop_header_3.mcfunction +6 -0
  1088. package/dist/data/readme_demo/function/load.mcfunction +1 -0
  1089. package/dist/data/readme_demo/function/log10_fx.mcfunction +11 -0
  1090. package/dist/data/readme_demo/function/log2_fx.mcfunction +11 -0
  1091. package/dist/data/readme_demo/function/log2_int.mcfunction +5 -0
  1092. package/dist/data/readme_demo/function/log2_int__loop_body_4.mcfunction +8 -0
  1093. package/dist/data/readme_demo/function/log2_int__loop_exit_5.mcfunction +1 -0
  1094. package/dist/data/readme_demo/function/log2_int__loop_header_3.mcfunction +4 -0
  1095. package/dist/data/readme_demo/function/log2_int__merge_1.mcfunction +3 -0
  1096. package/dist/data/readme_demo/function/log2_int__then_0.mcfunction +2 -0
  1097. package/dist/data/readme_demo/function/loga_fx.mcfunction +10 -0
  1098. package/dist/data/readme_demo/function/loga_fx__merge_1.mcfunction +9 -0
  1099. package/dist/data/readme_demo/function/loga_fx__then_0.mcfunction +2 -0
  1100. package/dist/data/readme_demo/function/map.mcfunction +12 -0
  1101. package/dist/data/readme_demo/function/map__merge_1.mcfunction +11 -0
  1102. package/dist/data/readme_demo/function/map__then_0.mcfunction +1 -0
  1103. package/dist/data/readme_demo/function/mulfix.mcfunction +8 -0
  1104. package/dist/data/readme_demo/function/newton_step.mcfunction +7 -0
  1105. package/dist/data/readme_demo/function/newton_step__merge_1.mcfunction +8 -0
  1106. package/dist/data/readme_demo/function/newton_step__then_0.mcfunction +1 -0
  1107. package/dist/data/readme_demo/function/pow_int.mcfunction +6 -0
  1108. package/dist/data/readme_demo/function/pow_int__loop_body_4.mcfunction +7 -0
  1109. package/dist/data/readme_demo/function/pow_int__loop_exit_5.mcfunction +1 -0
  1110. package/dist/data/readme_demo/function/pow_int__loop_header_3.mcfunction +4 -0
  1111. package/dist/data/readme_demo/function/pow_int__merge_1.mcfunction +4 -0
  1112. package/dist/data/readme_demo/function/pow_int__merge_7.mcfunction +8 -0
  1113. package/dist/data/readme_demo/function/pow_int__then_0.mcfunction +2 -0
  1114. package/dist/data/readme_demo/function/pow_int__then_6.mcfunction +4 -0
  1115. package/dist/data/readme_demo/function/quadratic_disc.mcfunction +12 -0
  1116. package/dist/data/readme_demo/function/quadratic_x1.mcfunction +7 -0
  1117. package/dist/data/readme_demo/function/quadratic_x1__merge_1.mcfunction +13 -0
  1118. package/dist/data/readme_demo/function/quadratic_x1__merge_4.mcfunction +15 -0
  1119. package/dist/data/readme_demo/function/quadratic_x1__then_0.mcfunction +2 -0
  1120. package/dist/data/readme_demo/function/quadratic_x1__then_3.mcfunction +2 -0
  1121. package/dist/data/readme_demo/function/quadratic_x2.mcfunction +7 -0
  1122. package/dist/data/readme_demo/function/quadratic_x2__merge_1.mcfunction +13 -0
  1123. package/dist/data/readme_demo/function/quadratic_x2__merge_4.mcfunction +15 -0
  1124. package/dist/data/readme_demo/function/quadratic_x2__then_0.mcfunction +2 -0
  1125. package/dist/data/readme_demo/function/quadratic_x2__then_3.mcfunction +2 -0
  1126. package/dist/data/readme_demo/function/sign.mcfunction +5 -0
  1127. package/dist/data/readme_demo/function/sign__merge_1.mcfunction +4 -0
  1128. package/dist/data/readme_demo/function/sign__merge_4.mcfunction +2 -0
  1129. package/dist/data/readme_demo/function/sign__then_0.mcfunction +2 -0
  1130. package/dist/data/readme_demo/function/sign__then_3.mcfunction +2 -0
  1131. package/dist/data/readme_demo/function/simpson_step.mcfunction +16 -0
  1132. package/dist/data/readme_demo/function/sin_fixed.mcfunction +9 -0
  1133. package/dist/data/readme_demo/function/sin_fixed__merge_1.mcfunction +4 -0
  1134. package/dist/data/readme_demo/function/sin_fixed__merge_3.mcfunction +4 -0
  1135. package/dist/data/readme_demo/function/sin_fixed__merge_6.mcfunction +4 -0
  1136. package/dist/data/readme_demo/function/sin_fixed__merge_9.mcfunction +10 -0
  1137. package/dist/data/readme_demo/function/sin_fixed__then_0.mcfunction +4 -0
  1138. package/dist/data/readme_demo/function/sin_fixed__then_2.mcfunction +6 -0
  1139. package/dist/data/readme_demo/function/sin_fixed__then_5.mcfunction +8 -0
  1140. package/dist/data/readme_demo/function/sin_fixed__then_8.mcfunction +10 -0
  1141. package/dist/data/readme_demo/function/smootherstep.mcfunction +10 -0
  1142. package/dist/data/readme_demo/function/smootherstep__merge_1.mcfunction +12 -0
  1143. package/dist/data/readme_demo/function/smootherstep__merge_4.mcfunction +4 -0
  1144. package/dist/data/readme_demo/function/smootherstep__merge_6.mcfunction +27 -0
  1145. package/dist/data/readme_demo/function/smootherstep__then_0.mcfunction +2 -0
  1146. package/dist/data/readme_demo/function/smootherstep__then_3.mcfunction +2 -0
  1147. package/dist/data/readme_demo/function/smootherstep__then_5.mcfunction +2 -0
  1148. package/dist/data/readme_demo/function/smoothstep.mcfunction +10 -0
  1149. package/dist/data/readme_demo/function/smoothstep__merge_1.mcfunction +12 -0
  1150. package/dist/data/readme_demo/function/smoothstep__merge_4.mcfunction +4 -0
  1151. package/dist/data/readme_demo/function/smoothstep__merge_6.mcfunction +15 -0
  1152. package/dist/data/readme_demo/function/smoothstep__then_0.mcfunction +2 -0
  1153. package/dist/data/readme_demo/function/smoothstep__then_3.mcfunction +2 -0
  1154. package/dist/data/readme_demo/function/smoothstep__then_5.mcfunction +2 -0
  1155. package/dist/data/readme_demo/function/solve2x2_x.mcfunction +17 -0
  1156. package/dist/data/readme_demo/function/solve2x2_x__merge_1.mcfunction +12 -0
  1157. package/dist/data/readme_demo/function/solve2x2_x__then_0.mcfunction +2 -0
  1158. package/dist/data/readme_demo/function/solve2x2_y.mcfunction +17 -0
  1159. package/dist/data/readme_demo/function/solve2x2_y__merge_1.mcfunction +12 -0
  1160. package/dist/data/readme_demo/function/solve2x2_y__then_0.mcfunction +2 -0
  1161. package/dist/data/readme_demo/function/sqrt_fixed.mcfunction +8 -0
  1162. package/dist/data/readme_demo/function/sqrt_fx.mcfunction +8 -0
  1163. package/dist/data/readme_demo/function/start.mcfunction +2 -0
  1164. package/dist/data/readme_demo/function/stop.mcfunction +1 -0
  1165. package/dist/data/readme_demo/function/trapezoid_step.mcfunction +11 -0
  1166. package/dist/data/reqtest/function/__load.mcfunction +4 -0
  1167. package/dist/data/reqtest/function/_table_init.mcfunction +2 -0
  1168. package/dist/data/reqtest/function/no_trig.mcfunction +3 -0
  1169. package/dist/data/reqtest/function/use_table.mcfunction +4 -0
  1170. package/dist/data/reqtest2/function/__load.mcfunction +3 -0
  1171. package/dist/data/reqtest2/function/no_trig.mcfunction +3 -0
  1172. package/dist/data/runtime/function/__load.mcfunction +5 -0
  1173. package/dist/data/runtime/function/__tick.mcfunction +2 -0
  1174. package/dist/data/runtime/function/counter_tick/then_0.mcfunction +3 -0
  1175. package/dist/data/runtime/function/counter_tick.mcfunction +13 -0
  1176. package/dist/data/shop/function/__load.mcfunction +7 -0
  1177. package/dist/data/shop/function/__tick.mcfunction +3 -0
  1178. package/dist/data/shop/function/__trigger_shop_buy_dispatch.mcfunction +4 -0
  1179. package/dist/data/shop/function/complete_purchase/else_1.mcfunction +5 -0
  1180. package/dist/data/shop/function/complete_purchase/else_4.mcfunction +5 -0
  1181. package/dist/data/shop/function/complete_purchase/else_7.mcfunction +3 -0
  1182. package/dist/data/shop/function/complete_purchase/merge_2.mcfunction +2 -0
  1183. package/dist/data/shop/function/complete_purchase/merge_5.mcfunction +2 -0
  1184. package/dist/data/shop/function/complete_purchase/merge_8.mcfunction +2 -0
  1185. package/dist/data/shop/function/complete_purchase/then_0.mcfunction +4 -0
  1186. package/dist/data/shop/function/complete_purchase/then_3.mcfunction +4 -0
  1187. package/dist/data/shop/function/complete_purchase/then_6.mcfunction +4 -0
  1188. package/dist/data/shop/function/complete_purchase.mcfunction +7 -0
  1189. package/dist/data/shop/function/handle_shop_trigger.mcfunction +3 -0
  1190. package/dist/data/stdextra/function/__load.mcfunction +2 -0
  1191. package/dist/data/stdextra/function/load.mcfunction +1 -0
  1192. package/dist/data/stdextra/function/test_bigint.mcfunction +52 -0
  1193. package/dist/data/stdextra/function/test_bits.mcfunction +33 -0
  1194. package/dist/data/stdextra/function/test_list_sort.mcfunction +55 -0
  1195. package/dist/data/stdextra/function/test_random.mcfunction +17 -0
  1196. package/dist/data/stdextra/function/test_random__merge_1.mcfunction +4 -0
  1197. package/dist/data/stdextra/function/test_random__merge_11.mcfunction +1 -0
  1198. package/dist/data/stdextra/function/test_random__merge_3.mcfunction +14 -0
  1199. package/dist/data/stdextra/function/test_random__merge_5.mcfunction +8 -0
  1200. package/dist/data/stdextra/function/test_random__merge_7.mcfunction +1 -0
  1201. package/dist/data/stdextra/function/test_random__merge_9.mcfunction +1 -0
  1202. package/dist/data/stdextra/function/test_random__then_0.mcfunction +4 -0
  1203. package/dist/data/stdextra/function/test_random__then_10.mcfunction +2 -0
  1204. package/dist/data/stdextra/function/test_random__then_2.mcfunction +2 -0
  1205. package/dist/data/stdextra/function/test_random__then_4.mcfunction +4 -0
  1206. package/dist/data/stdextra/function/test_random__then_6.mcfunction +2 -0
  1207. package/dist/data/stdextra/function/test_random__then_8.mcfunction +4 -0
  1208. package/dist/data/swap_test/function/__load.mcfunction +3 -0
  1209. package/dist/data/swap_test/function/gcd_old/loop_body_1.mcfunction +7 -0
  1210. package/dist/data/swap_test/function/gcd_old/loop_check_0.mcfunction +5 -0
  1211. package/dist/data/swap_test/function/gcd_old/loop_exit_2.mcfunction +3 -0
  1212. package/dist/data/swap_test/function/gcd_old.mcfunction +8 -0
  1213. package/dist/data/test/function/__dyn_idx_test_arrays_a.mcfunction +1 -0
  1214. package/dist/data/test/function/__dyn_idx_test_arrays_b.mcfunction +1 -0
  1215. package/dist/data/test/function/__dyn_idx_test_arrays_c.mcfunction +1 -0
  1216. package/dist/data/test/function/__dyn_idx_test_arrays_counter.mcfunction +1 -0
  1217. package/dist/data/test/function/__dyn_idx_test_arrays_d.mcfunction +1 -0
  1218. package/dist/data/test/function/__dyn_idx_test_arrays_e.mcfunction +1 -0
  1219. package/dist/data/test/function/__dyn_idx_test_arrays_g.mcfunction +1 -0
  1220. package/dist/data/test/function/__dyn_idx_test_arrays_h.mcfunction +1 -0
  1221. package/dist/data/test/function/__dyn_idx_test_arrays_nums.mcfunction +1 -0
  1222. package/dist/data/test/function/__dyn_idx_test_arrays_one.mcfunction +1 -0
  1223. package/dist/data/test/function/__dyn_idx_test_arrays_parent.mcfunction +1 -0
  1224. package/dist/data/test/function/__dyn_idx_test_arrays_queue.mcfunction +1 -0
  1225. package/dist/data/test/function/__dyn_idx_test_arrays_rev.mcfunction +1 -0
  1226. package/dist/data/test/function/__dyn_idx_test_arrays_visited.mcfunction +1 -0
  1227. package/dist/data/test/function/__dyn_wrt_test_arrays_f.mcfunction +1 -0
  1228. package/dist/data/test/function/__dyn_wrt_test_arrays_parent.mcfunction +1 -0
  1229. package/dist/data/test/function/__dyn_wrt_test_arrays_r.mcfunction +1 -0
  1230. package/dist/data/test/function/__dyn_wrt_test_arrays_s.mcfunction +1 -0
  1231. package/dist/data/test/function/__dyn_wrt_test_arrays_visited.mcfunction +1 -0
  1232. package/dist/data/test/function/_apply.mcfunction +5 -0
  1233. package/dist/data/test/function/_atan_init.mcfunction +4 -0
  1234. package/dist/data/test/function/_coro_pathfind_bfs_coro_cont_1.mcfunction +2 -0
  1235. package/dist/data/test/function/_coro_pathfind_bfs_coro_cont_1__loop_body_1.mcfunction +17 -0
  1236. package/dist/data/test/function/_coro_pathfind_bfs_coro_cont_1__loop_body_1_continue.mcfunction +1 -0
  1237. package/dist/data/test/function/_coro_pathfind_bfs_coro_cont_1__loop_body_1_yield.mcfunction +1 -0
  1238. package/dist/data/test/function/_coro_pathfind_bfs_coro_cont_1__loop_header_0.mcfunction +4 -0
  1239. package/dist/data/test/function/_coro_pathfind_bfs_coro_cont_1__loop_header_0_exit.mcfunction +1 -0
  1240. package/dist/data/test/function/_coro_pathfind_bfs_coro_cont_2.mcfunction +2 -0
  1241. package/dist/data/test/function/_coro_pathfind_bfs_coro_cont_2__else_8.mcfunction +19 -0
  1242. package/dist/data/test/function/_coro_pathfind_bfs_coro_cont_2__loop_body_4.mcfunction +9 -0
  1243. package/dist/data/test/function/_coro_pathfind_bfs_coro_cont_2__loop_header_3.mcfunction +3 -0
  1244. package/dist/data/test/function/_coro_pathfind_bfs_coro_cont_2__loop_header_3_exit.mcfunction +1 -0
  1245. package/dist/data/test/function/_coro_pathfind_bfs_coro_cont_2__merge_10.mcfunction +11 -0
  1246. package/dist/data/test/function/_coro_pathfind_bfs_coro_cont_2__merge_12.mcfunction +1 -0
  1247. package/dist/data/test/function/_coro_pathfind_bfs_coro_cont_2__merge_14.mcfunction +11 -0
  1248. package/dist/data/test/function/_coro_pathfind_bfs_coro_cont_2__merge_16.mcfunction +1 -0
  1249. package/dist/data/test/function/_coro_pathfind_bfs_coro_cont_2__merge_18.mcfunction +11 -0
  1250. package/dist/data/test/function/_coro_pathfind_bfs_coro_cont_2__merge_20.mcfunction +1 -0
  1251. package/dist/data/test/function/_coro_pathfind_bfs_coro_cont_2__merge_22.mcfunction +1 -0
  1252. package/dist/data/test/function/_coro_pathfind_bfs_coro_cont_2__merge_24.mcfunction +1 -0
  1253. package/dist/data/test/function/_coro_pathfind_bfs_coro_cont_2__merge_7.mcfunction +6 -0
  1254. package/dist/data/test/function/_coro_pathfind_bfs_coro_cont_2__merge_7_continue.mcfunction +1 -0
  1255. package/dist/data/test/function/_coro_pathfind_bfs_coro_cont_2__merge_7_yield.mcfunction +1 -0
  1256. package/dist/data/test/function/_coro_pathfind_bfs_coro_cont_2__then_11.mcfunction +15 -0
  1257. package/dist/data/test/function/_coro_pathfind_bfs_coro_cont_2__then_13.mcfunction +13 -0
  1258. package/dist/data/test/function/_coro_pathfind_bfs_coro_cont_2__then_15.mcfunction +15 -0
  1259. package/dist/data/test/function/_coro_pathfind_bfs_coro_cont_2__then_17.mcfunction +13 -0
  1260. package/dist/data/test/function/_coro_pathfind_bfs_coro_cont_2__then_19.mcfunction +15 -0
  1261. package/dist/data/test/function/_coro_pathfind_bfs_coro_cont_2__then_21.mcfunction +13 -0
  1262. package/dist/data/test/function/_coro_pathfind_bfs_coro_cont_2__then_23.mcfunction +15 -0
  1263. package/dist/data/test/function/_coro_pathfind_bfs_coro_cont_2__then_6.mcfunction +2 -0
  1264. package/dist/data/test/function/_coro_pathfind_bfs_coro_cont_2__then_9.mcfunction +13 -0
  1265. package/dist/data/test/function/_coro_pathfind_bfs_coro_cont_3.mcfunction +2 -0
  1266. package/dist/data/test/function/_coro_pathfind_bfs_coro_cont_3__else_32.mcfunction +4 -0
  1267. package/dist/data/test/function/_coro_pathfind_bfs_coro_cont_3__loop_body_28.mcfunction +6 -0
  1268. package/dist/data/test/function/_coro_pathfind_bfs_coro_cont_3__loop_header_27.mcfunction +4 -0
  1269. package/dist/data/test/function/_coro_pathfind_bfs_coro_cont_3__loop_header_27_exit.mcfunction +1 -0
  1270. package/dist/data/test/function/_coro_pathfind_bfs_coro_cont_3__merge_31.mcfunction +6 -0
  1271. package/dist/data/test/function/_coro_pathfind_bfs_coro_cont_3__merge_31_continue.mcfunction +1 -0
  1272. package/dist/data/test/function/_coro_pathfind_bfs_coro_cont_3__merge_31_yield.mcfunction +1 -0
  1273. package/dist/data/test/function/_coro_pathfind_bfs_coro_cont_3__then_30.mcfunction +2 -0
  1274. package/dist/data/test/function/_coro_pathfind_bfs_coro_cont_4.mcfunction +2 -0
  1275. package/dist/data/test/function/_coro_pathfind_bfs_coro_cont_4__loop_body_34.mcfunction +16 -0
  1276. package/dist/data/test/function/_coro_pathfind_bfs_coro_cont_4__loop_body_34_continue.mcfunction +1 -0
  1277. package/dist/data/test/function/_coro_pathfind_bfs_coro_cont_4__loop_body_34_yield.mcfunction +1 -0
  1278. package/dist/data/test/function/_coro_pathfind_bfs_coro_cont_4__loop_header_33.mcfunction +4 -0
  1279. package/dist/data/test/function/_coro_pathfind_bfs_coro_cont_4__loop_header_33_exit.mcfunction +1 -0
  1280. package/dist/data/test/function/_coro_pathfind_bfs_coro_cont_5.mcfunction +16 -0
  1281. package/dist/data/test/function/_coro_pathfind_bfs_coro_cont_5__merge_26.mcfunction +1 -0
  1282. package/dist/data/test/function/_coro_pathfind_bfs_coro_tick.mcfunction +4 -0
  1283. package/dist/data/test/function/_coro_pathfind_bfs_coro_tick__call_1.mcfunction +1 -0
  1284. package/dist/data/test/function/_coro_pathfind_bfs_coro_tick__call_2.mcfunction +1 -0
  1285. package/dist/data/test/function/_coro_pathfind_bfs_coro_tick__call_3.mcfunction +1 -0
  1286. package/dist/data/test/function/_coro_pathfind_bfs_coro_tick__call_4.mcfunction +1 -0
  1287. package/dist/data/test/function/_coro_pathfind_bfs_coro_tick__call_5.mcfunction +1 -0
  1288. package/dist/data/test/function/_coro_pathfind_bfs_coro_tick__check_2.mcfunction +4 -0
  1289. package/dist/data/test/function/_coro_pathfind_bfs_coro_tick__check_3.mcfunction +4 -0
  1290. package/dist/data/test/function/_coro_pathfind_bfs_coro_tick__check_4.mcfunction +4 -0
  1291. package/dist/data/test/function/_coro_pathfind_bfs_coro_tick__check_5.mcfunction +4 -0
  1292. package/dist/data/test/function/_coro_pathfind_bfs_coro_tick__done.mcfunction +1 -0
  1293. package/dist/data/test/function/_divider.mcfunction +1 -0
  1294. package/dist/data/test/function/_dump_advanced_phase.mcfunction +4 -0
  1295. package/dist/data/test/function/_dump_advanced_phase__loop_body_1.mcfunction +7 -0
  1296. package/dist/data/test/function/_dump_advanced_phase__loop_body_6.mcfunction +10 -0
  1297. package/dist/data/test/function/_dump_advanced_phase__loop_exit_2.mcfunction +20 -0
  1298. package/dist/data/test/function/_dump_advanced_phase__loop_exit_7.mcfunction +12 -0
  1299. package/dist/data/test/function/_dump_advanced_phase__loop_header_0.mcfunction +4 -0
  1300. package/dist/data/test/function/_dump_advanced_phase__loop_header_5.mcfunction +4 -0
  1301. package/dist/data/test/function/_dump_advanced_phase__merge_4.mcfunction +4 -0
  1302. package/dist/data/test/function/_dump_advanced_phase__then_3.mcfunction +2 -0
  1303. package/dist/data/test/function/_dump_bigint_phase.mcfunction +28 -0
  1304. package/dist/data/test/function/_dump_math_phase.mcfunction +4 -0
  1305. package/dist/data/test/function/_dump_math_phase__loop_body_1.mcfunction +9 -0
  1306. package/dist/data/test/function/_dump_math_phase__loop_exit_2.mcfunction +18 -0
  1307. package/dist/data/test/function/_dump_math_phase__loop_header_0.mcfunction +4 -0
  1308. package/dist/data/test/function/_fp.mcfunction +2 -0
  1309. package/dist/data/test/function/_hsl_chroma_x.mcfunction +10 -0
  1310. package/dist/data/test/function/_hsl_chroma_x__merge_1.mcfunction +6 -0
  1311. package/dist/data/test/function/_hsl_chroma_x__then_0.mcfunction +4 -0
  1312. package/dist/data/test/function/_math_init.mcfunction +4 -0
  1313. package/dist/data/test/function/_next_phase.mcfunction +1 -0
  1314. package/dist/data/test/function/_section.mcfunction +3 -0
  1315. package/dist/data/test/function/_section__const_0.mcfunction +3 -0
  1316. package/dist/data/test/function/_tick_advanced_live.mcfunction +5 -0
  1317. package/dist/data/test/function/_tick_advanced_live__foreach_t12.mcfunction +1 -0
  1318. package/dist/data/test/function/_tick_bigint_live.mcfunction +8 -0
  1319. package/dist/data/test/function/_tick_bigint_live__foreach_t11.mcfunction +1 -0
  1320. package/dist/data/test/function/_tick_math.mcfunction +9 -0
  1321. package/dist/data/test/function/_tick_math__foreach_t12.mcfunction +1 -0
  1322. package/dist/data/test/function/_tick_visual.mcfunction +11 -0
  1323. package/dist/data/test/function/_tick_visual__foreach_t12.mcfunction +1 -0
  1324. package/dist/data/test/function/_tick_visual__foreach_t16.mcfunction +8 -0
  1325. package/dist/data/test/function/_tick_visual__foreach_t17.mcfunction +8 -0
  1326. package/dist/data/test/function/_tick_visual__foreach_t21.mcfunction +1 -0
  1327. package/dist/data/test/function/aabb_contains.mcfunction +12 -0
  1328. package/dist/data/test/function/aabb_contains__merge_1.mcfunction +3 -0
  1329. package/dist/data/test/function/aabb_contains__merge_10.mcfunction +3 -0
  1330. package/dist/data/test/function/aabb_contains__merge_13.mcfunction +3 -0
  1331. package/dist/data/test/function/aabb_contains__merge_16.mcfunction +2 -0
  1332. package/dist/data/test/function/aabb_contains__merge_4.mcfunction +3 -0
  1333. package/dist/data/test/function/aabb_contains__merge_7.mcfunction +3 -0
  1334. package/dist/data/test/function/aabb_contains__then_0.mcfunction +2 -0
  1335. package/dist/data/test/function/aabb_contains__then_12.mcfunction +2 -0
  1336. package/dist/data/test/function/aabb_contains__then_15.mcfunction +2 -0
  1337. package/dist/data/test/function/aabb_contains__then_3.mcfunction +2 -0
  1338. package/dist/data/test/function/aabb_contains__then_6.mcfunction +2 -0
  1339. package/dist/data/test/function/aabb_contains__then_9.mcfunction +2 -0
  1340. package/dist/data/test/function/acos_approx.mcfunction +7 -0
  1341. package/dist/data/test/function/add2d_x.mcfunction +5 -0
  1342. package/dist/data/test/function/add2d_y.mcfunction +5 -0
  1343. package/dist/data/test/function/add3d_x.mcfunction +5 -0
  1344. package/dist/data/test/function/add3d_y.mcfunction +5 -0
  1345. package/dist/data/test/function/add3d_z.mcfunction +5 -0
  1346. package/dist/data/test/function/add_to_team.mcfunction +5 -0
  1347. package/dist/data/test/function/air_drag_fx.mcfunction +2 -0
  1348. package/dist/data/test/function/angle_between.mcfunction +28 -0
  1349. package/dist/data/test/function/angle_between__and_false_2.mcfunction +2 -0
  1350. package/dist/data/test/function/angle_between__and_false_8.mcfunction +2 -0
  1351. package/dist/data/test/function/angle_between__and_merge_1.mcfunction +2 -0
  1352. package/dist/data/test/function/angle_between__and_merge_7.mcfunction +2 -0
  1353. package/dist/data/test/function/angle_between__and_right_0.mcfunction +4 -0
  1354. package/dist/data/test/function/angle_between__and_right_6.mcfunction +4 -0
  1355. package/dist/data/test/function/angle_between__merge_10.mcfunction +26 -0
  1356. package/dist/data/test/function/angle_between__merge_4.mcfunction +4 -0
  1357. package/dist/data/test/function/angle_between__then_3.mcfunction +2 -0
  1358. package/dist/data/test/function/angle_between__then_9.mcfunction +2 -0
  1359. package/dist/data/test/function/angle_diff.mcfunction +12 -0
  1360. package/dist/data/test/function/angle_diff__merge_1.mcfunction +1 -0
  1361. package/dist/data/test/function/angle_diff__then_0.mcfunction +4 -0
  1362. package/dist/data/test/function/angle_normalize.mcfunction +3 -0
  1363. package/dist/data/test/function/angle_normalize__loop_body_1.mcfunction +4 -0
  1364. package/dist/data/test/function/angle_normalize__loop_body_4.mcfunction +4 -0
  1365. package/dist/data/test/function/angle_normalize__loop_exit_2.mcfunction +1 -0
  1366. package/dist/data/test/function/angle_normalize__loop_exit_5.mcfunction +1 -0
  1367. package/dist/data/test/function/angle_normalize__loop_header_0.mcfunction +4 -0
  1368. package/dist/data/test/function/angle_normalize__loop_header_3.mcfunction +4 -0
  1369. package/dist/data/test/function/angry_at.mcfunction +1 -0
  1370. package/dist/data/test/function/apply_damage.mcfunction +12 -0
  1371. package/dist/data/test/function/apply_damage__else_2.mcfunction +2 -0
  1372. package/dist/data/test/function/apply_damage__merge_1.mcfunction +1 -0
  1373. package/dist/data/test/function/apply_damage__then_0.mcfunction +2 -0
  1374. package/dist/data/test/function/apply_drag.mcfunction +8 -0
  1375. package/dist/data/test/function/apply_gravity.mcfunction +6 -0
  1376. package/dist/data/test/function/approx_eq.mcfunction +10 -0
  1377. package/dist/data/test/function/approx_eq__merge_1.mcfunction +3 -0
  1378. package/dist/data/test/function/approx_eq__merge_3.mcfunction +2 -0
  1379. package/dist/data/test/function/approx_eq__then_0.mcfunction +4 -0
  1380. package/dist/data/test/function/approx_eq__then_2.mcfunction +2 -0
  1381. package/dist/data/test/function/arr_test.mcfunction +4 -0
  1382. package/dist/data/test/function/asin_approx.mcfunction +5 -0
  1383. package/dist/data/test/function/asin_approx__merge_1.mcfunction +3 -0
  1384. package/dist/data/test/function/asin_approx__merge_10.mcfunction +5 -0
  1385. package/dist/data/test/function/asin_approx__merge_4.mcfunction +12 -0
  1386. package/dist/data/test/function/asin_approx__merge_7.mcfunction +14 -0
  1387. package/dist/data/test/function/asin_approx__then_0.mcfunction +2 -0
  1388. package/dist/data/test/function/asin_approx__then_3.mcfunction +2 -0
  1389. package/dist/data/test/function/asin_approx__then_6.mcfunction +2 -0
  1390. package/dist/data/test/function/asin_approx__then_9.mcfunction +2 -0
  1391. package/dist/data/test/function/atan2_fixed.mcfunction +6 -0
  1392. package/dist/data/test/function/atan2_fixed__else_30.mcfunction +2 -0
  1393. package/dist/data/test/function/atan2_fixed__loop_body_26.mcfunction +21 -0
  1394. package/dist/data/test/function/atan2_fixed__loop_exit_27.mcfunction +5 -0
  1395. package/dist/data/test/function/atan2_fixed__loop_header_25.mcfunction +3 -0
  1396. package/dist/data/test/function/atan2_fixed__merge_1.mcfunction +4 -0
  1397. package/dist/data/test/function/atan2_fixed__merge_10.mcfunction +5 -0
  1398. package/dist/data/test/function/atan2_fixed__merge_12.mcfunction +2 -0
  1399. package/dist/data/test/function/atan2_fixed__merge_16.mcfunction +5 -0
  1400. package/dist/data/test/function/atan2_fixed__merge_18.mcfunction +4 -0
  1401. package/dist/data/test/function/atan2_fixed__merge_20.mcfunction +4 -0
  1402. package/dist/data/test/function/atan2_fixed__merge_22.mcfunction +4 -0
  1403. package/dist/data/test/function/atan2_fixed__merge_24.mcfunction +3 -0
  1404. package/dist/data/test/function/atan2_fixed__merge_29.mcfunction +1 -0
  1405. package/dist/data/test/function/atan2_fixed__merge_3.mcfunction +4 -0
  1406. package/dist/data/test/function/atan2_fixed__merge_32.mcfunction +4 -0
  1407. package/dist/data/test/function/atan2_fixed__merge_34.mcfunction +4 -0
  1408. package/dist/data/test/function/atan2_fixed__merge_36.mcfunction +3 -0
  1409. package/dist/data/test/function/atan2_fixed__merge_40.mcfunction +3 -0
  1410. package/dist/data/test/function/atan2_fixed__merge_6.mcfunction +2 -0
  1411. package/dist/data/test/function/atan2_fixed__then_0.mcfunction +4 -0
  1412. package/dist/data/test/function/atan2_fixed__then_11.mcfunction +2 -0
  1413. package/dist/data/test/function/atan2_fixed__then_15.mcfunction +4 -0
  1414. package/dist/data/test/function/atan2_fixed__then_17.mcfunction +4 -0
  1415. package/dist/data/test/function/atan2_fixed__then_19.mcfunction +2 -0
  1416. package/dist/data/test/function/atan2_fixed__then_2.mcfunction +2 -0
  1417. package/dist/data/test/function/atan2_fixed__then_21.mcfunction +2 -0
  1418. package/dist/data/test/function/atan2_fixed__then_23.mcfunction +5 -0
  1419. package/dist/data/test/function/atan2_fixed__then_28.mcfunction +4 -0
  1420. package/dist/data/test/function/atan2_fixed__then_31.mcfunction +4 -0
  1421. package/dist/data/test/function/atan2_fixed__then_33.mcfunction +4 -0
  1422. package/dist/data/test/function/atan2_fixed__then_35.mcfunction +1 -0
  1423. package/dist/data/test/function/atan2_fixed__then_39.mcfunction +3 -0
  1424. package/dist/data/test/function/atan2_fixed__then_5.mcfunction +2 -0
  1425. package/dist/data/test/function/atan2_fixed__then_9.mcfunction +4 -0
  1426. package/dist/data/test/function/avg3.mcfunction +11 -0
  1427. package/dist/data/test/function/avg5.mcfunction +17 -0
  1428. package/dist/data/test/function/barrier_wall.mcfunction +1 -0
  1429. package/dist/data/test/function/bernoulli.mcfunction +12 -0
  1430. package/dist/data/test/function/bernoulli__merge_1.mcfunction +6 -0
  1431. package/dist/data/test/function/bernoulli__merge_3.mcfunction +2 -0
  1432. package/dist/data/test/function/bernoulli__then_0.mcfunction +4 -0
  1433. package/dist/data/test/function/bernoulli__then_2.mcfunction +2 -0
  1434. package/dist/data/test/function/bezier_cubic.mcfunction +36 -0
  1435. package/dist/data/test/function/bezier_quad.mcfunction +20 -0
  1436. package/dist/data/test/function/bigint3_add_hi.mcfunction +11 -0
  1437. package/dist/data/test/function/bigint3_add_lo.mcfunction +8 -0
  1438. package/dist/data/test/function/bigint3_add_mid.mcfunction +11 -0
  1439. package/dist/data/test/function/bigint3_borrow_lo.mcfunction +5 -0
  1440. package/dist/data/test/function/bigint3_borrow_lo__merge_1.mcfunction +2 -0
  1441. package/dist/data/test/function/bigint3_borrow_lo__then_0.mcfunction +2 -0
  1442. package/dist/data/test/function/bigint3_borrow_mid.mcfunction +8 -0
  1443. package/dist/data/test/function/bigint3_borrow_mid__merge_1.mcfunction +2 -0
  1444. package/dist/data/test/function/bigint3_borrow_mid__then_0.mcfunction +2 -0
  1445. package/dist/data/test/function/bigint3_carry_lo.mcfunction +8 -0
  1446. package/dist/data/test/function/bigint3_carry_mid.mcfunction +11 -0
  1447. package/dist/data/test/function/bigint3_cmp.mcfunction +9 -0
  1448. package/dist/data/test/function/bigint3_cmp__merge_1.mcfunction +3 -0
  1449. package/dist/data/test/function/bigint3_cmp__merge_10.mcfunction +3 -0
  1450. package/dist/data/test/function/bigint3_cmp__merge_13.mcfunction +3 -0
  1451. package/dist/data/test/function/bigint3_cmp__merge_16.mcfunction +2 -0
  1452. package/dist/data/test/function/bigint3_cmp__merge_4.mcfunction +3 -0
  1453. package/dist/data/test/function/bigint3_cmp__merge_7.mcfunction +3 -0
  1454. package/dist/data/test/function/bigint3_cmp__then_0.mcfunction +2 -0
  1455. package/dist/data/test/function/bigint3_cmp__then_12.mcfunction +2 -0
  1456. package/dist/data/test/function/bigint3_cmp__then_15.mcfunction +2 -0
  1457. package/dist/data/test/function/bigint3_cmp__then_3.mcfunction +2 -0
  1458. package/dist/data/test/function/bigint3_cmp__then_6.mcfunction +2 -0
  1459. package/dist/data/test/function/bigint3_cmp__then_9.mcfunction +2 -0
  1460. package/dist/data/test/function/bigint3_div_chunk.mcfunction +11 -0
  1461. package/dist/data/test/function/bigint3_mul1_hi.mcfunction +8 -0
  1462. package/dist/data/test/function/bigint3_mul1_lo.mcfunction +8 -0
  1463. package/dist/data/test/function/bigint3_mul1_mid.mcfunction +2 -0
  1464. package/dist/data/test/function/bigint3_rem_chunk.mcfunction +11 -0
  1465. package/dist/data/test/function/bigint3_sub_hi.mcfunction +8 -0
  1466. package/dist/data/test/function/bigint3_sub_lo.mcfunction +5 -0
  1467. package/dist/data/test/function/bigint3_sub_lo__merge_1.mcfunction +5 -0
  1468. package/dist/data/test/function/bigint3_sub_lo__then_0.mcfunction +3 -0
  1469. package/dist/data/test/function/bigint3_sub_mid.mcfunction +12 -0
  1470. package/dist/data/test/function/bigint3_sub_mid__merge_1.mcfunction +1 -0
  1471. package/dist/data/test/function/bigint3_sub_mid__then_0.mcfunction +4 -0
  1472. package/dist/data/test/function/bigint3_to_int32.mcfunction +14 -0
  1473. package/dist/data/test/function/bigint_add.mcfunction +8 -0
  1474. package/dist/data/test/function/bigint_add__arr_a__test_arrays__a__b__test_arrays__b__result__test_arrays__r.mcfunction +6 -0
  1475. package/dist/data/test/function/bigint_add__arr_a__test_arrays__a__b__test_arrays__b__result__test_arrays__r__loop_body_1.mcfunction +22 -0
  1476. package/dist/data/test/function/bigint_add__arr_a__test_arrays__a__b__test_arrays__b__result__test_arrays__r__loop_exit_2.mcfunction +1 -0
  1477. package/dist/data/test/function/bigint_add__arr_a__test_arrays__a__b__test_arrays__b__result__test_arrays__r__loop_header_0.mcfunction +4 -0
  1478. package/dist/data/test/function/bigint_add__arr_a__test_arrays__counter__b__test_arrays__one__result__test_arrays__r.mcfunction +6 -0
  1479. package/dist/data/test/function/bigint_add__arr_a__test_arrays__counter__b__test_arrays__one__result__test_arrays__r__loop_body_1.mcfunction +22 -0
  1480. package/dist/data/test/function/bigint_add__arr_a__test_arrays__counter__b__test_arrays__one__result__test_arrays__r__loop_exit_2.mcfunction +1 -0
  1481. package/dist/data/test/function/bigint_add__arr_a__test_arrays__counter__b__test_arrays__one__result__test_arrays__r__loop_header_0.mcfunction +4 -0
  1482. package/dist/data/test/function/bigint_add__loop_body_1.mcfunction +12 -0
  1483. package/dist/data/test/function/bigint_add__loop_exit_2.mcfunction +1 -0
  1484. package/dist/data/test/function/bigint_add__loop_header_0.mcfunction +4 -0
  1485. package/dist/data/test/function/bigint_base.mcfunction +2 -0
  1486. package/dist/data/test/function/bigint_chunk.mcfunction +2 -0
  1487. package/dist/data/test/function/bigint_cmp.mcfunction +5 -0
  1488. package/dist/data/test/function/bigint_cmp__arr_a__test_arrays__g__b__test_arrays__h.mcfunction +3 -0
  1489. package/dist/data/test/function/bigint_cmp__arr_a__test_arrays__g__b__test_arrays__h__loop_body_1.mcfunction +7 -0
  1490. package/dist/data/test/function/bigint_cmp__arr_a__test_arrays__g__b__test_arrays__h__loop_exit_2.mcfunction +2 -0
  1491. package/dist/data/test/function/bigint_cmp__arr_a__test_arrays__g__b__test_arrays__h__loop_header_0.mcfunction +3 -0
  1492. package/dist/data/test/function/bigint_cmp__arr_a__test_arrays__g__b__test_arrays__h__merge_4.mcfunction +7 -0
  1493. package/dist/data/test/function/bigint_cmp__arr_a__test_arrays__g__b__test_arrays__h__merge_7.mcfunction +4 -0
  1494. package/dist/data/test/function/bigint_cmp__arr_a__test_arrays__g__b__test_arrays__h__then_3.mcfunction +2 -0
  1495. package/dist/data/test/function/bigint_cmp__arr_a__test_arrays__g__b__test_arrays__h__then_6.mcfunction +2 -0
  1496. package/dist/data/test/function/bigint_cmp__loop_body_1.mcfunction +3 -0
  1497. package/dist/data/test/function/bigint_cmp__loop_exit_2.mcfunction +2 -0
  1498. package/dist/data/test/function/bigint_cmp__loop_header_0.mcfunction +3 -0
  1499. package/dist/data/test/function/bigint_cmp__merge_4.mcfunction +3 -0
  1500. package/dist/data/test/function/bigint_cmp__merge_7.mcfunction +4 -0
  1501. package/dist/data/test/function/bigint_cmp__then_3.mcfunction +2 -0
  1502. package/dist/data/test/function/bigint_cmp__then_6.mcfunction +2 -0
  1503. package/dist/data/test/function/bigint_copy.mcfunction +3 -0
  1504. package/dist/data/test/function/bigint_copy__loop_body_1.mcfunction +4 -0
  1505. package/dist/data/test/function/bigint_copy__loop_exit_2.mcfunction +1 -0
  1506. package/dist/data/test/function/bigint_copy__loop_header_0.mcfunction +3 -0
  1507. package/dist/data/test/function/bigint_div_small.mcfunction +6 -0
  1508. package/dist/data/test/function/bigint_div_small__loop_body_1.mcfunction +12 -0
  1509. package/dist/data/test/function/bigint_div_small__loop_exit_2.mcfunction +1 -0
  1510. package/dist/data/test/function/bigint_div_small__loop_header_0.mcfunction +3 -0
  1511. package/dist/data/test/function/bigint_is_zero.mcfunction +4 -0
  1512. package/dist/data/test/function/bigint_is_zero__loop_body_1.mcfunction +4 -0
  1513. package/dist/data/test/function/bigint_is_zero__loop_exit_2.mcfunction +2 -0
  1514. package/dist/data/test/function/bigint_is_zero__loop_header_0.mcfunction +3 -0
  1515. package/dist/data/test/function/bigint_is_zero__merge_4.mcfunction +4 -0
  1516. package/dist/data/test/function/bigint_is_zero__then_3.mcfunction +2 -0
  1517. package/dist/data/test/function/bigint_leading_zeros.mcfunction +5 -0
  1518. package/dist/data/test/function/bigint_leading_zeros__loop_body_1.mcfunction +4 -0
  1519. package/dist/data/test/function/bigint_leading_zeros__loop_exit_2.mcfunction +1 -0
  1520. package/dist/data/test/function/bigint_leading_zeros__loop_header_0.mcfunction +3 -0
  1521. package/dist/data/test/function/bigint_leading_zeros__merge_4.mcfunction +9 -0
  1522. package/dist/data/test/function/bigint_leading_zeros__then_3.mcfunction +1 -0
  1523. package/dist/data/test/function/bigint_mod_small.mcfunction +6 -0
  1524. package/dist/data/test/function/bigint_mod_small__loop_body_1.mcfunction +12 -0
  1525. package/dist/data/test/function/bigint_mod_small__loop_exit_2.mcfunction +1 -0
  1526. package/dist/data/test/function/bigint_mod_small__loop_header_0.mcfunction +3 -0
  1527. package/dist/data/test/function/bigint_mul_small.mcfunction +8 -0
  1528. package/dist/data/test/function/bigint_mul_small__arr_a__test_arrays__e__result__test_arrays__f.mcfunction +7 -0
  1529. package/dist/data/test/function/bigint_mul_small__arr_a__test_arrays__e__result__test_arrays__f__loop_body_1.mcfunction +20 -0
  1530. package/dist/data/test/function/bigint_mul_small__arr_a__test_arrays__e__result__test_arrays__f__loop_exit_2.mcfunction +1 -0
  1531. package/dist/data/test/function/bigint_mul_small__arr_a__test_arrays__e__result__test_arrays__f__loop_header_0.mcfunction +4 -0
  1532. package/dist/data/test/function/bigint_mul_small__loop_body_1.mcfunction +12 -0
  1533. package/dist/data/test/function/bigint_mul_small__loop_exit_2.mcfunction +1 -0
  1534. package/dist/data/test/function/bigint_mul_small__loop_header_0.mcfunction +4 -0
  1535. package/dist/data/test/function/bigint_shift_left.mcfunction +3 -0
  1536. package/dist/data/test/function/bigint_shift_left__loop_body_1.mcfunction +4 -0
  1537. package/dist/data/test/function/bigint_shift_left__loop_exit_2.mcfunction +1 -0
  1538. package/dist/data/test/function/bigint_shift_left__loop_header_0.mcfunction +5 -0
  1539. package/dist/data/test/function/bigint_sub.mcfunction +8 -0
  1540. package/dist/data/test/function/bigint_sub__arr_a__test_arrays__c__b__test_arrays__d__result__test_arrays__s.mcfunction +6 -0
  1541. package/dist/data/test/function/bigint_sub__arr_a__test_arrays__c__b__test_arrays__d__result__test_arrays__s__loop_body_1.mcfunction +13 -0
  1542. package/dist/data/test/function/bigint_sub__arr_a__test_arrays__c__b__test_arrays__d__result__test_arrays__s__loop_exit_2.mcfunction +1 -0
  1543. package/dist/data/test/function/bigint_sub__arr_a__test_arrays__c__b__test_arrays__d__result__test_arrays__s__loop_header_0.mcfunction +4 -0
  1544. package/dist/data/test/function/bigint_sub__arr_a__test_arrays__c__b__test_arrays__d__result__test_arrays__s__merge_4.mcfunction +4 -0
  1545. package/dist/data/test/function/bigint_sub__arr_a__test_arrays__c__b__test_arrays__d__result__test_arrays__s__merge_6.mcfunction +7 -0
  1546. package/dist/data/test/function/bigint_sub__arr_a__test_arrays__c__b__test_arrays__d__result__test_arrays__s__then_3.mcfunction +5 -0
  1547. package/dist/data/test/function/bigint_sub__arr_a__test_arrays__c__b__test_arrays__d__result__test_arrays__s__then_5.mcfunction +2 -0
  1548. package/dist/data/test/function/bigint_sub__loop_body_1.mcfunction +9 -0
  1549. package/dist/data/test/function/bigint_sub__loop_exit_2.mcfunction +1 -0
  1550. package/dist/data/test/function/bigint_sub__loop_header_0.mcfunction +4 -0
  1551. package/dist/data/test/function/bigint_sub__merge_4.mcfunction +4 -0
  1552. package/dist/data/test/function/bigint_sub__merge_6.mcfunction +4 -0
  1553. package/dist/data/test/function/bigint_sub__then_3.mcfunction +5 -0
  1554. package/dist/data/test/function/bigint_sub__then_5.mcfunction +2 -0
  1555. package/dist/data/test/function/bigint_zero.mcfunction +3 -0
  1556. package/dist/data/test/function/bigint_zero__loop_body_1.mcfunction +4 -0
  1557. package/dist/data/test/function/bigint_zero__loop_exit_2.mcfunction +1 -0
  1558. package/dist/data/test/function/bigint_zero__loop_header_0.mcfunction +3 -0
  1559. package/dist/data/test/function/billboard_y.mcfunction +7 -0
  1560. package/dist/data/test/function/bit_and.mcfunction +6 -0
  1561. package/dist/data/test/function/bit_and__loop_body_1.mcfunction +9 -0
  1562. package/dist/data/test/function/bit_and__loop_exit_2.mcfunction +1 -0
  1563. package/dist/data/test/function/bit_and__loop_header_0.mcfunction +4 -0
  1564. package/dist/data/test/function/bit_and__merge_4.mcfunction +8 -0
  1565. package/dist/data/test/function/bit_and__merge_6.mcfunction +1 -0
  1566. package/dist/data/test/function/bit_and__then_3.mcfunction +9 -0
  1567. package/dist/data/test/function/bit_and__then_5.mcfunction +4 -0
  1568. package/dist/data/test/function/bit_clear.mcfunction +5 -0
  1569. package/dist/data/test/function/bit_clear__loop_body_1.mcfunction +8 -0
  1570. package/dist/data/test/function/bit_clear__loop_exit_2.mcfunction +9 -0
  1571. package/dist/data/test/function/bit_clear__loop_header_0.mcfunction +3 -0
  1572. package/dist/data/test/function/bit_clear__merge_4.mcfunction +1 -0
  1573. package/dist/data/test/function/bit_clear__then_3.mcfunction +3 -0
  1574. package/dist/data/test/function/bit_get.mcfunction +5 -0
  1575. package/dist/data/test/function/bit_get__loop_body_1.mcfunction +8 -0
  1576. package/dist/data/test/function/bit_get__loop_exit_2.mcfunction +6 -0
  1577. package/dist/data/test/function/bit_get__loop_header_0.mcfunction +3 -0
  1578. package/dist/data/test/function/bit_not.mcfunction +5 -0
  1579. package/dist/data/test/function/bit_not__loop_body_1.mcfunction +9 -0
  1580. package/dist/data/test/function/bit_not__loop_exit_2.mcfunction +1 -0
  1581. package/dist/data/test/function/bit_not__loop_header_0.mcfunction +4 -0
  1582. package/dist/data/test/function/bit_not__merge_4.mcfunction +8 -0
  1583. package/dist/data/test/function/bit_not__then_3.mcfunction +4 -0
  1584. package/dist/data/test/function/bit_or.mcfunction +6 -0
  1585. package/dist/data/test/function/bit_or__loop_body_1.mcfunction +9 -0
  1586. package/dist/data/test/function/bit_or__loop_exit_2.mcfunction +1 -0
  1587. package/dist/data/test/function/bit_or__loop_header_0.mcfunction +4 -0
  1588. package/dist/data/test/function/bit_or__merge_4.mcfunction +9 -0
  1589. package/dist/data/test/function/bit_or__merge_6.mcfunction +8 -0
  1590. package/dist/data/test/function/bit_or__merge_8.mcfunction +1 -0
  1591. package/dist/data/test/function/bit_or__then_3.mcfunction +4 -0
  1592. package/dist/data/test/function/bit_or__then_5.mcfunction +9 -0
  1593. package/dist/data/test/function/bit_or__then_7.mcfunction +4 -0
  1594. package/dist/data/test/function/bit_set.mcfunction +5 -0
  1595. package/dist/data/test/function/bit_set__loop_body_1.mcfunction +8 -0
  1596. package/dist/data/test/function/bit_set__loop_exit_2.mcfunction +9 -0
  1597. package/dist/data/test/function/bit_set__loop_header_0.mcfunction +3 -0
  1598. package/dist/data/test/function/bit_set__merge_4.mcfunction +1 -0
  1599. package/dist/data/test/function/bit_set__then_3.mcfunction +3 -0
  1600. package/dist/data/test/function/bit_shl.mcfunction +5 -0
  1601. package/dist/data/test/function/bit_shl__loop_body_1.mcfunction +8 -0
  1602. package/dist/data/test/function/bit_shl__loop_exit_2.mcfunction +1 -0
  1603. package/dist/data/test/function/bit_shl__loop_header_0.mcfunction +3 -0
  1604. package/dist/data/test/function/bit_shr.mcfunction +5 -0
  1605. package/dist/data/test/function/bit_shr__loop_body_1.mcfunction +8 -0
  1606. package/dist/data/test/function/bit_shr__loop_exit_2.mcfunction +1 -0
  1607. package/dist/data/test/function/bit_shr__loop_header_0.mcfunction +3 -0
  1608. package/dist/data/test/function/bit_toggle.mcfunction +5 -0
  1609. package/dist/data/test/function/bit_toggle__loop_body_1.mcfunction +8 -0
  1610. package/dist/data/test/function/bit_toggle__loop_exit_2.mcfunction +9 -0
  1611. package/dist/data/test/function/bit_toggle__loop_header_0.mcfunction +3 -0
  1612. package/dist/data/test/function/bit_toggle__merge_4.mcfunction +3 -0
  1613. package/dist/data/test/function/bit_toggle__then_3.mcfunction +3 -0
  1614. package/dist/data/test/function/bit_xor.mcfunction +6 -0
  1615. package/dist/data/test/function/bit_xor__loop_body_1.mcfunction +13 -0
  1616. package/dist/data/test/function/bit_xor__loop_exit_2.mcfunction +1 -0
  1617. package/dist/data/test/function/bit_xor__loop_header_0.mcfunction +4 -0
  1618. package/dist/data/test/function/bit_xor__merge_4.mcfunction +8 -0
  1619. package/dist/data/test/function/bit_xor__then_3.mcfunction +4 -0
  1620. package/dist/data/test/function/bounce_v.mcfunction +10 -0
  1621. package/dist/data/test/function/buff_all.mcfunction +22 -0
  1622. package/dist/data/test/function/cbrt_fx.mcfunction +5 -0
  1623. package/dist/data/test/function/cbrt_fx__loop_body_6.mcfunction +7 -0
  1624. package/dist/data/test/function/cbrt_fx__loop_exit_7.mcfunction +1 -0
  1625. package/dist/data/test/function/cbrt_fx__loop_header_5.mcfunction +4 -0
  1626. package/dist/data/test/function/cbrt_fx__merge_1.mcfunction +8 -0
  1627. package/dist/data/test/function/cbrt_fx__merge_11.mcfunction +5 -0
  1628. package/dist/data/test/function/cbrt_fx__merge_13.mcfunction +4 -0
  1629. package/dist/data/test/function/cbrt_fx__merge_4.mcfunction +2 -0
  1630. package/dist/data/test/function/cbrt_fx__merge_9.mcfunction +13 -0
  1631. package/dist/data/test/function/cbrt_fx__then_0.mcfunction +2 -0
  1632. package/dist/data/test/function/cbrt_fx__then_10.mcfunction +2 -0
  1633. package/dist/data/test/function/cbrt_fx__then_12.mcfunction +2 -0
  1634. package/dist/data/test/function/cbrt_fx__then_3.mcfunction +2 -0
  1635. package/dist/data/test/function/cbrt_fx__then_8.mcfunction +2 -0
  1636. package/dist/data/test/function/cbrt_newton.mcfunction +5 -0
  1637. package/dist/data/test/function/cbrt_newton__else_7.mcfunction +2 -0
  1638. package/dist/data/test/function/cbrt_newton__merge_1.mcfunction +11 -0
  1639. package/dist/data/test/function/cbrt_newton__merge_4.mcfunction +1 -0
  1640. package/dist/data/test/function/cbrt_newton__merge_6.mcfunction +1 -0
  1641. package/dist/data/test/function/cbrt_newton__then_0.mcfunction +2 -0
  1642. package/dist/data/test/function/cbrt_newton__then_3.mcfunction +17 -0
  1643. package/dist/data/test/function/cbrt_newton__then_5.mcfunction +11 -0
  1644. package/dist/data/test/function/ceil_div.mcfunction +9 -0
  1645. package/dist/data/test/function/chebyshev.mcfunction +14 -0
  1646. package/dist/data/test/function/chebyshev3d.mcfunction +19 -0
  1647. package/dist/data/test/function/chebyshev3d__merge_1.mcfunction +4 -0
  1648. package/dist/data/test/function/chebyshev3d__merge_3.mcfunction +4 -0
  1649. package/dist/data/test/function/chebyshev3d__merge_5.mcfunction +4 -0
  1650. package/dist/data/test/function/chebyshev3d__merge_7.mcfunction +3 -0
  1651. package/dist/data/test/function/chebyshev3d__merge_9.mcfunction +1 -0
  1652. package/dist/data/test/function/chebyshev3d__then_0.mcfunction +4 -0
  1653. package/dist/data/test/function/chebyshev3d__then_2.mcfunction +4 -0
  1654. package/dist/data/test/function/chebyshev3d__then_4.mcfunction +4 -0
  1655. package/dist/data/test/function/chebyshev3d__then_6.mcfunction +2 -0
  1656. package/dist/data/test/function/chebyshev3d__then_8.mcfunction +2 -0
  1657. package/dist/data/test/function/chebyshev__merge_1.mcfunction +4 -0
  1658. package/dist/data/test/function/chebyshev__merge_3.mcfunction +3 -0
  1659. package/dist/data/test/function/chebyshev__merge_5.mcfunction +1 -0
  1660. package/dist/data/test/function/chebyshev__then_0.mcfunction +4 -0
  1661. package/dist/data/test/function/chebyshev__then_2.mcfunction +4 -0
  1662. package/dist/data/test/function/chebyshev__then_4.mcfunction +1 -0
  1663. package/dist/data/test/function/check_holding_item.mcfunction +1 -0
  1664. package/dist/data/test/function/check_look_down.mcfunction +1 -0
  1665. package/dist/data/test/function/check_look_down__foreach_t0.mcfunction +2 -0
  1666. package/dist/data/test/function/check_look_straight.mcfunction +1 -0
  1667. package/dist/data/test/function/check_look_straight__foreach_t0.mcfunction +2 -0
  1668. package/dist/data/test/function/check_look_up.mcfunction +1 -0
  1669. package/dist/data/test/function/check_look_up__foreach_t0.mcfunction +2 -0
  1670. package/dist/data/test/function/chunk_hi.mcfunction +5 -0
  1671. package/dist/data/test/function/chunk_lo.mcfunction +5 -0
  1672. package/dist/data/test/function/circular_x.mcfunction +14 -0
  1673. package/dist/data/test/function/circular_z.mcfunction +14 -0
  1674. package/dist/data/test/function/clamp3.mcfunction +7 -0
  1675. package/dist/data/test/function/clamp3__merge_1.mcfunction +4 -0
  1676. package/dist/data/test/function/clamp3__merge_4.mcfunction +1 -0
  1677. package/dist/data/test/function/clamp3__then_0.mcfunction +1 -0
  1678. package/dist/data/test/function/clamp3__then_3.mcfunction +1 -0
  1679. package/dist/data/test/function/clamp_circle_x.mcfunction +13 -0
  1680. package/dist/data/test/function/clamp_circle_x__merge_1.mcfunction +10 -0
  1681. package/dist/data/test/function/clamp_circle_x__then_0.mcfunction +1 -0
  1682. package/dist/data/test/function/clamp_circle_y.mcfunction +13 -0
  1683. package/dist/data/test/function/clamp_circle_y__merge_1.mcfunction +10 -0
  1684. package/dist/data/test/function/clamp_circle_y__then_0.mcfunction +1 -0
  1685. package/dist/data/test/function/clamp_velocity.mcfunction +5 -0
  1686. package/dist/data/test/function/clamp_velocity__merge_1.mcfunction +5 -0
  1687. package/dist/data/test/function/clamp_velocity__merge_4.mcfunction +1 -0
  1688. package/dist/data/test/function/clamp_velocity__then_0.mcfunction +1 -0
  1689. package/dist/data/test/function/clamp_velocity__then_3.mcfunction +3 -0
  1690. package/dist/data/test/function/cleanup_teams.mcfunction +8 -0
  1691. package/dist/data/test/function/clear_area.mcfunction +1 -0
  1692. package/dist/data/test/function/clear_effect.mcfunction +1 -0
  1693. package/dist/data/test/function/clear_effects.mcfunction +1 -0
  1694. package/dist/data/test/function/clear_inventory.mcfunction +1 -0
  1695. package/dist/data/test/function/collatz_steps.mcfunction +5 -0
  1696. package/dist/data/test/function/collatz_steps__else_8.mcfunction +6 -0
  1697. package/dist/data/test/function/collatz_steps__loop_body_4.mcfunction +7 -0
  1698. package/dist/data/test/function/collatz_steps__loop_exit_5.mcfunction +1 -0
  1699. package/dist/data/test/function/collatz_steps__loop_header_3.mcfunction +4 -0
  1700. package/dist/data/test/function/collatz_steps__merge_1.mcfunction +3 -0
  1701. package/dist/data/test/function/collatz_steps__merge_7.mcfunction +4 -0
  1702. package/dist/data/test/function/collatz_steps__then_0.mcfunction +2 -0
  1703. package/dist/data/test/function/collatz_steps__then_6.mcfunction +5 -0
  1704. package/dist/data/test/function/combinations.mcfunction +6 -0
  1705. package/dist/data/test/function/combinations__loop_body_9.mcfunction +15 -0
  1706. package/dist/data/test/function/combinations__loop_exit_10.mcfunction +1 -0
  1707. package/dist/data/test/function/combinations__loop_header_8.mcfunction +3 -0
  1708. package/dist/data/test/function/combinations__merge_1.mcfunction +3 -0
  1709. package/dist/data/test/function/combinations__merge_4.mcfunction +6 -0
  1710. package/dist/data/test/function/combinations__merge_7.mcfunction +3 -0
  1711. package/dist/data/test/function/combinations__then_0.mcfunction +2 -0
  1712. package/dist/data/test/function/combinations__then_3.mcfunction +2 -0
  1713. package/dist/data/test/function/combinations__then_6.mcfunction +4 -0
  1714. package/dist/data/test/function/cooldown_ready.mcfunction +7 -0
  1715. package/dist/data/test/function/cooldown_ready__merge_1.mcfunction +4 -0
  1716. package/dist/data/test/function/cooldown_ready__merge_4.mcfunction +2 -0
  1717. package/dist/data/test/function/cooldown_ready__then_0.mcfunction +2 -0
  1718. package/dist/data/test/function/cooldown_ready__then_3.mcfunction +2 -0
  1719. package/dist/data/test/function/cooldown_start.mcfunction +3 -0
  1720. package/dist/data/test/function/cooldown_tick.mcfunction +7 -0
  1721. package/dist/data/test/function/cooldown_tick__else_5.mcfunction +2 -0
  1722. package/dist/data/test/function/cooldown_tick__merge_1.mcfunction +4 -0
  1723. package/dist/data/test/function/cooldown_tick__merge_4.mcfunction +1 -0
  1724. package/dist/data/test/function/cooldown_tick__merge_7.mcfunction +1 -0
  1725. package/dist/data/test/function/cooldown_tick__then_0.mcfunction +1 -0
  1726. package/dist/data/test/function/cooldown_tick__then_3.mcfunction +7 -0
  1727. package/dist/data/test/function/cooldown_tick__then_6.mcfunction +2 -0
  1728. package/dist/data/test/function/cos_fixed.mcfunction +7 -0
  1729. package/dist/data/test/function/cos_fixed__const_0.mcfunction +5 -0
  1730. package/dist/data/test/function/cos_hp.mcfunction +8 -0
  1731. package/dist/data/test/function/count_digits.mcfunction +6 -0
  1732. package/dist/data/test/function/count_digits__loop_body_6.mcfunction +8 -0
  1733. package/dist/data/test/function/count_digits__loop_exit_7.mcfunction +1 -0
  1734. package/dist/data/test/function/count_digits__loop_header_5.mcfunction +4 -0
  1735. package/dist/data/test/function/count_digits__merge_1.mcfunction +4 -0
  1736. package/dist/data/test/function/count_digits__merge_3.mcfunction +2 -0
  1737. package/dist/data/test/function/count_digits__then_0.mcfunction +4 -0
  1738. package/dist/data/test/function/count_digits__then_2.mcfunction +2 -0
  1739. package/dist/data/test/function/create_blue_team.mcfunction +10 -0
  1740. package/dist/data/test/function/create_green_team.mcfunction +10 -0
  1741. package/dist/data/test/function/create_health_bar.mcfunction +24 -0
  1742. package/dist/data/test/function/create_progress_bar.mcfunction +24 -0
  1743. package/dist/data/test/function/create_red_team.mcfunction +10 -0
  1744. package/dist/data/test/function/create_team.mcfunction +8 -0
  1745. package/dist/data/test/function/create_timer_bar.mcfunction +30 -0
  1746. package/dist/data/test/function/create_yellow_team.mcfunction +10 -0
  1747. package/dist/data/test/function/cross2d.mcfunction +11 -0
  1748. package/dist/data/test/function/cross3d_x.mcfunction +11 -0
  1749. package/dist/data/test/function/cross3d_y.mcfunction +11 -0
  1750. package/dist/data/test/function/cross3d_z.mcfunction +11 -0
  1751. package/dist/data/test/function/cubic_disc_fx.mcfunction +26 -0
  1752. package/dist/data/test/function/cubic_newton.mcfunction +8 -0
  1753. package/dist/data/test/function/cubic_newton__loop_body_1.mcfunction +55 -0
  1754. package/dist/data/test/function/cubic_newton__loop_exit_2.mcfunction +1 -0
  1755. package/dist/data/test/function/cubic_newton__loop_header_0.mcfunction +4 -0
  1756. package/dist/data/test/function/cubic_newton__merge_10.mcfunction +1 -0
  1757. package/dist/data/test/function/cubic_newton__merge_4.mcfunction +4 -0
  1758. package/dist/data/test/function/cubic_newton__merge_6.mcfunction +4 -0
  1759. package/dist/data/test/function/cubic_newton__merge_8.mcfunction +4 -0
  1760. package/dist/data/test/function/cubic_newton__then_3.mcfunction +2 -0
  1761. package/dist/data/test/function/cubic_newton__then_5.mcfunction +13 -0
  1762. package/dist/data/test/function/cubic_newton__then_7.mcfunction +4 -0
  1763. package/dist/data/test/function/cubic_newton__then_9.mcfunction +2 -0
  1764. package/dist/data/test/function/curve_length_2d.mcfunction +6 -0
  1765. package/dist/data/test/function/curve_length_2d__loop_body_1.mcfunction +32 -0
  1766. package/dist/data/test/function/curve_length_2d__loop_exit_2.mcfunction +1 -0
  1767. package/dist/data/test/function/curve_length_2d__loop_header_0.mcfunction +5 -0
  1768. package/dist/data/test/function/cylinder_contains.mcfunction +20 -0
  1769. package/dist/data/test/function/cylinder_contains__merge_1.mcfunction +2 -0
  1770. package/dist/data/test/function/cylinder_contains__then_0.mcfunction +2 -0
  1771. package/dist/data/test/function/damage.mcfunction +9 -0
  1772. package/dist/data/test/function/damage__else_2.mcfunction +2 -0
  1773. package/dist/data/test/function/damage__merge_1.mcfunction +1 -0
  1774. package/dist/data/test/function/damage__then_0.mcfunction +2 -0
  1775. package/dist/data/test/function/debug_bigint.mcfunction +25 -0
  1776. package/dist/data/test/function/deriv_central.mcfunction +7 -0
  1777. package/dist/data/test/function/deriv_central__merge_1.mcfunction +10 -0
  1778. package/dist/data/test/function/deriv_central__then_0.mcfunction +2 -0
  1779. package/dist/data/test/function/deriv_forward.mcfunction +7 -0
  1780. package/dist/data/test/function/deriv_forward__merge_1.mcfunction +8 -0
  1781. package/dist/data/test/function/deriv_forward__then_0.mcfunction +2 -0
  1782. package/dist/data/test/function/digit_sum.mcfunction +6 -0
  1783. package/dist/data/test/function/digit_sum__loop_body_6.mcfunction +11 -0
  1784. package/dist/data/test/function/digit_sum__loop_exit_7.mcfunction +1 -0
  1785. package/dist/data/test/function/digit_sum__loop_header_5.mcfunction +4 -0
  1786. package/dist/data/test/function/digit_sum__merge_1.mcfunction +4 -0
  1787. package/dist/data/test/function/digit_sum__merge_3.mcfunction +2 -0
  1788. package/dist/data/test/function/digit_sum__then_0.mcfunction +4 -0
  1789. package/dist/data/test/function/digit_sum__then_2.mcfunction +2 -0
  1790. package/dist/data/test/function/digital_root.mcfunction +5 -0
  1791. package/dist/data/test/function/digital_root__merge_1.mcfunction +8 -0
  1792. package/dist/data/test/function/digital_root__merge_4.mcfunction +1 -0
  1793. package/dist/data/test/function/digital_root__then_0.mcfunction +2 -0
  1794. package/dist/data/test/function/digital_root__then_3.mcfunction +2 -0
  1795. package/dist/data/test/function/disable_fire_spread.mcfunction +1 -0
  1796. package/dist/data/test/function/disable_keep_inventory.mcfunction +1 -0
  1797. package/dist/data/test/function/disable_mob_griefing.mcfunction +1 -0
  1798. package/dist/data/test/function/distance2d_fixed.mcfunction +13 -0
  1799. package/dist/data/test/function/distance3d_fixed.mcfunction +18 -0
  1800. package/dist/data/test/function/div3_hp.mcfunction +23 -0
  1801. package/dist/data/test/function/div_hp.mcfunction +13 -0
  1802. package/dist/data/test/function/divfix.mcfunction +6 -0
  1803. package/dist/data/test/function/divfix__merge_1.mcfunction +6 -0
  1804. package/dist/data/test/function/divfix__then_0.mcfunction +2 -0
  1805. package/dist/data/test/function/dot2d.mcfunction +11 -0
  1806. package/dist/data/test/function/dot3d.mcfunction +17 -0
  1807. package/dist/data/test/function/draw_circle.mcfunction +8 -0
  1808. package/dist/data/test/function/draw_circle__loop_body_1.mcfunction +34 -0
  1809. package/dist/data/test/function/draw_circle__loop_exit_2.mcfunction +1 -0
  1810. package/dist/data/test/function/draw_circle__loop_header_0.mcfunction +3 -0
  1811. package/dist/data/test/function/draw_helix.mcfunction +10 -0
  1812. package/dist/data/test/function/draw_helix__loop_body_1.mcfunction +42 -0
  1813. package/dist/data/test/function/draw_helix__loop_exit_2.mcfunction +1 -0
  1814. package/dist/data/test/function/draw_helix__loop_header_0.mcfunction +3 -0
  1815. package/dist/data/test/function/draw_line_2d.mcfunction +9 -0
  1816. package/dist/data/test/function/draw_line_2d__loop_body_1.mcfunction +34 -0
  1817. package/dist/data/test/function/draw_line_2d__loop_exit_2.mcfunction +1 -0
  1818. package/dist/data/test/function/draw_line_2d__loop_header_0.mcfunction +3 -0
  1819. package/dist/data/test/function/dump_advanced.mcfunction +1 -0
  1820. package/dist/data/test/function/dump_bigint.mcfunction +1 -0
  1821. package/dist/data/test/function/dump_math.mcfunction +1 -0
  1822. package/dist/data/test/function/ease_in_back.mcfunction +26 -0
  1823. package/dist/data/test/function/ease_in_bounce.mcfunction +9 -0
  1824. package/dist/data/test/function/ease_in_cubic.mcfunction +12 -0
  1825. package/dist/data/test/function/ease_in_expo.mcfunction +5 -0
  1826. package/dist/data/test/function/ease_in_expo__merge_1.mcfunction +11 -0
  1827. package/dist/data/test/function/ease_in_expo__then_0.mcfunction +2 -0
  1828. package/dist/data/test/function/ease_in_out_back.mcfunction +5 -0
  1829. package/dist/data/test/function/ease_in_out_back__merge_1.mcfunction +14 -0
  1830. package/dist/data/test/function/ease_in_out_back__then_0.mcfunction +10 -0
  1831. package/dist/data/test/function/ease_in_out_bounce.mcfunction +5 -0
  1832. package/dist/data/test/function/ease_in_out_bounce__merge_1.mcfunction +14 -0
  1833. package/dist/data/test/function/ease_in_out_bounce__then_0.mcfunction +10 -0
  1834. package/dist/data/test/function/ease_in_out_cubic.mcfunction +5 -0
  1835. package/dist/data/test/function/ease_in_out_cubic__merge_1.mcfunction +17 -0
  1836. package/dist/data/test/function/ease_in_out_cubic__then_0.mcfunction +13 -0
  1837. package/dist/data/test/function/ease_in_out_quad.mcfunction +5 -0
  1838. package/dist/data/test/function/ease_in_out_quad__merge_1.mcfunction +12 -0
  1839. package/dist/data/test/function/ease_in_out_quad__then_0.mcfunction +8 -0
  1840. package/dist/data/test/function/ease_in_out_sine.mcfunction +5 -0
  1841. package/dist/data/test/function/ease_in_out_sine__merge_1.mcfunction +14 -0
  1842. package/dist/data/test/function/ease_in_out_sine__then_0.mcfunction +10 -0
  1843. package/dist/data/test/function/ease_in_quad.mcfunction +7 -0
  1844. package/dist/data/test/function/ease_in_quart.mcfunction +12 -0
  1845. package/dist/data/test/function/ease_in_sine.mcfunction +30 -0
  1846. package/dist/data/test/function/ease_linear.mcfunction +2 -0
  1847. package/dist/data/test/function/ease_out_back.mcfunction +9 -0
  1848. package/dist/data/test/function/ease_out_bounce.mcfunction +6 -0
  1849. package/dist/data/test/function/ease_out_bounce__merge_1.mcfunction +4 -0
  1850. package/dist/data/test/function/ease_out_bounce__merge_4.mcfunction +4 -0
  1851. package/dist/data/test/function/ease_out_bounce__merge_7.mcfunction +15 -0
  1852. package/dist/data/test/function/ease_out_bounce__then_0.mcfunction +11 -0
  1853. package/dist/data/test/function/ease_out_bounce__then_3.mcfunction +15 -0
  1854. package/dist/data/test/function/ease_out_bounce__then_6.mcfunction +15 -0
  1855. package/dist/data/test/function/ease_out_cubic.mcfunction +16 -0
  1856. package/dist/data/test/function/ease_out_expo.mcfunction +5 -0
  1857. package/dist/data/test/function/ease_out_expo__merge_1.mcfunction +8 -0
  1858. package/dist/data/test/function/ease_out_expo__then_0.mcfunction +2 -0
  1859. package/dist/data/test/function/ease_out_quad.mcfunction +11 -0
  1860. package/dist/data/test/function/ease_out_quart.mcfunction +16 -0
  1861. package/dist/data/test/function/ease_out_sine.mcfunction +9 -0
  1862. package/dist/data/test/function/ease_smooth.mcfunction +23 -0
  1863. package/dist/data/test/function/ease_smoother.mcfunction +41 -0
  1864. package/dist/data/test/function/enable_keep_inventory.mcfunction +1 -0
  1865. package/dist/data/test/function/end_sparkles_at.mcfunction +1 -0
  1866. package/dist/data/test/function/enemy_health.mcfunction +2 -0
  1867. package/dist/data/test/function/example_right_click.mcfunction +1 -0
  1868. package/dist/data/test/function/example_right_click__foreach_t0.mcfunction +5 -0
  1869. package/dist/data/test/function/example_right_click__foreach_t0__merge_1.mcfunction +1 -0
  1870. package/dist/data/test/function/example_right_click__foreach_t0__then_0.mcfunction +3 -0
  1871. package/dist/data/test/function/exp_dist_approx.mcfunction +12 -0
  1872. package/dist/data/test/function/exp_dist_approx__merge_1.mcfunction +15 -0
  1873. package/dist/data/test/function/exp_dist_approx__merge_3.mcfunction +10 -0
  1874. package/dist/data/test/function/exp_dist_approx__merge_5.mcfunction +1 -0
  1875. package/dist/data/test/function/exp_dist_approx__then_0.mcfunction +4 -0
  1876. package/dist/data/test/function/exp_dist_approx__then_2.mcfunction +2 -0
  1877. package/dist/data/test/function/exp_dist_approx__then_4.mcfunction +2 -0
  1878. package/dist/data/test/function/exp_fx.mcfunction +16 -0
  1879. package/dist/data/test/function/exp_fx__loop_body_10.mcfunction +8 -0
  1880. package/dist/data/test/function/exp_fx__loop_body_5.mcfunction +8 -0
  1881. package/dist/data/test/function/exp_fx__loop_exit_11.mcfunction +1 -0
  1882. package/dist/data/test/function/exp_fx__loop_exit_6.mcfunction +1 -0
  1883. package/dist/data/test/function/exp_fx__loop_header_4.mcfunction +3 -0
  1884. package/dist/data/test/function/exp_fx__loop_header_9.mcfunction +3 -0
  1885. package/dist/data/test/function/exp_fx__merge_1.mcfunction +47 -0
  1886. package/dist/data/test/function/exp_fx__merge_3.mcfunction +4 -0
  1887. package/dist/data/test/function/exp_fx__merge_8.mcfunction +1 -0
  1888. package/dist/data/test/function/exp_fx__then_0.mcfunction +7 -0
  1889. package/dist/data/test/function/exp_fx__then_2.mcfunction +2 -0
  1890. package/dist/data/test/function/exp_fx__then_7.mcfunction +5 -0
  1891. package/dist/data/test/function/explosion_effect.mcfunction +1 -0
  1892. package/dist/data/test/function/factorial.mcfunction +5 -0
  1893. package/dist/data/test/function/factorial__loop_body_4.mcfunction +7 -0
  1894. package/dist/data/test/function/factorial__loop_exit_5.mcfunction +1 -0
  1895. package/dist/data/test/function/factorial__loop_header_3.mcfunction +3 -0
  1896. package/dist/data/test/function/factorial__merge_1.mcfunction +3 -0
  1897. package/dist/data/test/function/factorial__then_0.mcfunction +2 -0
  1898. package/dist/data/test/function/fbm_1d.mcfunction +9 -0
  1899. package/dist/data/test/function/fbm_1d__loop_body_1.mcfunction +33 -0
  1900. package/dist/data/test/function/fbm_1d__loop_exit_2.mcfunction +4 -0
  1901. package/dist/data/test/function/fbm_1d__loop_header_0.mcfunction +3 -0
  1902. package/dist/data/test/function/fbm_1d__merge_4.mcfunction +6 -0
  1903. package/dist/data/test/function/fbm_1d__then_3.mcfunction +2 -0
  1904. package/dist/data/test/function/fbm_2d.mcfunction +10 -0
  1905. package/dist/data/test/function/fbm_2d__loop_body_1.mcfunction +39 -0
  1906. package/dist/data/test/function/fbm_2d__loop_exit_2.mcfunction +4 -0
  1907. package/dist/data/test/function/fbm_2d__loop_header_0.mcfunction +3 -0
  1908. package/dist/data/test/function/fbm_2d__merge_4.mcfunction +6 -0
  1909. package/dist/data/test/function/fbm_2d__then_3.mcfunction +2 -0
  1910. package/dist/data/test/function/fib.mcfunction +5 -0
  1911. package/dist/data/test/function/fib__loop_body_7.mcfunction +8 -0
  1912. package/dist/data/test/function/fib__loop_exit_8.mcfunction +1 -0
  1913. package/dist/data/test/function/fib__loop_header_6.mcfunction +3 -0
  1914. package/dist/data/test/function/fib__merge_1.mcfunction +4 -0
  1915. package/dist/data/test/function/fib__merge_4.mcfunction +4 -0
  1916. package/dist/data/test/function/fib__then_0.mcfunction +2 -0
  1917. package/dist/data/test/function/fib__then_3.mcfunction +2 -0
  1918. package/dist/data/test/function/flames.mcfunction +1 -0
  1919. package/dist/data/test/function/format_time_h.mcfunction +5 -0
  1920. package/dist/data/test/function/format_time_m.mcfunction +8 -0
  1921. package/dist/data/test/function/format_time_s.mcfunction +8 -0
  1922. package/dist/data/test/function/friction_decel.mcfunction +5 -0
  1923. package/dist/data/test/function/friction_decel__merge_1.mcfunction +5 -0
  1924. package/dist/data/test/function/friction_decel__merge_4.mcfunction +2 -0
  1925. package/dist/data/test/function/friction_decel__then_0.mcfunction +3 -0
  1926. package/dist/data/test/function/friction_decel__then_3.mcfunction +3 -0
  1927. package/dist/data/test/function/gamma_int.mcfunction +5 -0
  1928. package/dist/data/test/function/gamma_int__merge_1.mcfunction +6 -0
  1929. package/dist/data/test/function/gamma_int__then_0.mcfunction +2 -0
  1930. package/dist/data/test/function/gather_all.mcfunction +8 -0
  1931. package/dist/data/test/function/gcd.mcfunction +7 -0
  1932. package/dist/data/test/function/gcd__loop_body_5.mcfunction +5 -0
  1933. package/dist/data/test/function/gcd__loop_exit_6.mcfunction +1 -0
  1934. package/dist/data/test/function/gcd__loop_header_4.mcfunction +4 -0
  1935. package/dist/data/test/function/gcd__merge_1.mcfunction +5 -0
  1936. package/dist/data/test/function/gcd__merge_3.mcfunction +1 -0
  1937. package/dist/data/test/function/gcd__then_0.mcfunction +4 -0
  1938. package/dist/data/test/function/gcd__then_2.mcfunction +4 -0
  1939. package/dist/data/test/function/give_kit_archer.mcfunction +6 -0
  1940. package/dist/data/test/function/give_kit_mage.mcfunction +5 -0
  1941. package/dist/data/test/function/give_kit_warrior.mcfunction +6 -0
  1942. package/dist/data/test/function/glass_box.mcfunction +2 -0
  1943. package/dist/data/test/function/glow.mcfunction +1 -0
  1944. package/dist/data/test/function/goto_arena.mcfunction +7 -0
  1945. package/dist/data/test/function/goto_lobby.mcfunction +7 -0
  1946. package/dist/data/test/function/gravity_fx.mcfunction +2 -0
  1947. package/dist/data/test/function/happy_at.mcfunction +1 -0
  1948. package/dist/data/test/function/hash_1d.mcfunction +15 -0
  1949. package/dist/data/test/function/hash_1d_pos.mcfunction +9 -0
  1950. package/dist/data/test/function/hash_1d_pos__merge_1.mcfunction +4 -0
  1951. package/dist/data/test/function/hash_1d_pos__then_0.mcfunction +4 -0
  1952. package/dist/data/test/function/hash_2d.mcfunction +11 -0
  1953. package/dist/data/test/function/hash_2d_pos.mcfunction +11 -0
  1954. package/dist/data/test/function/hash_2d_pos__merge_1.mcfunction +4 -0
  1955. package/dist/data/test/function/hash_2d_pos__then_0.mcfunction +4 -0
  1956. package/dist/data/test/function/hash_int.mcfunction +6 -0
  1957. package/dist/data/test/function/hash_int__merge_1.mcfunction +14 -0
  1958. package/dist/data/test/function/hash_int__merge_3.mcfunction +14 -0
  1959. package/dist/data/test/function/hash_int__merge_5.mcfunction +1 -0
  1960. package/dist/data/test/function/hash_int__then_0.mcfunction +4 -0
  1961. package/dist/data/test/function/hash_int__then_2.mcfunction +4 -0
  1962. package/dist/data/test/function/hash_int__then_4.mcfunction +4 -0
  1963. package/dist/data/test/function/heal.mcfunction +5 -0
  1964. package/dist/data/test/function/heap_new.mcfunction +7 -0
  1965. package/dist/data/test/function/heap_new__loop_body_1.mcfunction +7 -0
  1966. package/dist/data/test/function/heap_new__loop_exit_2.mcfunction +1 -0
  1967. package/dist/data/test/function/heap_new__loop_header_0.mcfunction +4 -0
  1968. package/dist/data/test/function/heap_peek.mcfunction +2 -0
  1969. package/dist/data/test/function/heap_pop.mcfunction +4 -0
  1970. package/dist/data/test/function/heap_pop__else_13.mcfunction +2 -0
  1971. package/dist/data/test/function/heap_pop__loop_body_1.mcfunction +14 -0
  1972. package/dist/data/test/function/heap_pop__loop_exit_2.mcfunction +1 -0
  1973. package/dist/data/test/function/heap_pop__loop_header_0.mcfunction +4 -0
  1974. package/dist/data/test/function/heap_pop__merge_10.mcfunction +1 -0
  1975. package/dist/data/test/function/heap_pop__merge_12.mcfunction +1 -0
  1976. package/dist/data/test/function/heap_pop__merge_4.mcfunction +3 -0
  1977. package/dist/data/test/function/heap_pop__merge_6.mcfunction +1 -0
  1978. package/dist/data/test/function/heap_pop__merge_8.mcfunction +3 -0
  1979. package/dist/data/test/function/heap_pop__then_11.mcfunction +2 -0
  1980. package/dist/data/test/function/heap_pop__then_3.mcfunction +3 -0
  1981. package/dist/data/test/function/heap_pop__then_5.mcfunction +2 -0
  1982. package/dist/data/test/function/heap_pop__then_7.mcfunction +3 -0
  1983. package/dist/data/test/function/heap_pop__then_9.mcfunction +2 -0
  1984. package/dist/data/test/function/heap_push.mcfunction +6 -0
  1985. package/dist/data/test/function/heap_push__else_5.mcfunction +2 -0
  1986. package/dist/data/test/function/heap_push__else_8.mcfunction +2 -0
  1987. package/dist/data/test/function/heap_push__loop_body_1.mcfunction +4 -0
  1988. package/dist/data/test/function/heap_push__loop_exit_2.mcfunction +1 -0
  1989. package/dist/data/test/function/heap_push__loop_header_0.mcfunction +4 -0
  1990. package/dist/data/test/function/heap_push__merge_4.mcfunction +1 -0
  1991. package/dist/data/test/function/heap_push__merge_7.mcfunction +1 -0
  1992. package/dist/data/test/function/heap_push__then_3.mcfunction +7 -0
  1993. package/dist/data/test/function/heap_push__then_6.mcfunction +2 -0
  1994. package/dist/data/test/function/heap_size.mcfunction +2 -0
  1995. package/dist/data/test/function/hearts_at.mcfunction +1 -0
  1996. package/dist/data/test/function/hide_bar.mcfunction +4 -0
  1997. package/dist/data/test/function/hsl_to_b.mcfunction +23 -0
  1998. package/dist/data/test/function/hsl_to_b__merge_1.mcfunction +29 -0
  1999. package/dist/data/test/function/hsl_to_b__merge_12.mcfunction +4 -0
  2000. package/dist/data/test/function/hsl_to_b__merge_15.mcfunction +3 -0
  2001. package/dist/data/test/function/hsl_to_b__merge_3.mcfunction +4 -0
  2002. package/dist/data/test/function/hsl_to_b__merge_6.mcfunction +4 -0
  2003. package/dist/data/test/function/hsl_to_b__merge_9.mcfunction +4 -0
  2004. package/dist/data/test/function/hsl_to_b__then_0.mcfunction +4 -0
  2005. package/dist/data/test/function/hsl_to_b__then_11.mcfunction +3 -0
  2006. package/dist/data/test/function/hsl_to_b__then_14.mcfunction +3 -0
  2007. package/dist/data/test/function/hsl_to_b__then_2.mcfunction +1 -0
  2008. package/dist/data/test/function/hsl_to_b__then_5.mcfunction +1 -0
  2009. package/dist/data/test/function/hsl_to_b__then_8.mcfunction +3 -0
  2010. package/dist/data/test/function/hsl_to_g.mcfunction +23 -0
  2011. package/dist/data/test/function/hsl_to_g__merge_1.mcfunction +29 -0
  2012. package/dist/data/test/function/hsl_to_g__merge_12.mcfunction +4 -0
  2013. package/dist/data/test/function/hsl_to_g__merge_15.mcfunction +1 -0
  2014. package/dist/data/test/function/hsl_to_g__merge_3.mcfunction +4 -0
  2015. package/dist/data/test/function/hsl_to_g__merge_6.mcfunction +4 -0
  2016. package/dist/data/test/function/hsl_to_g__merge_9.mcfunction +4 -0
  2017. package/dist/data/test/function/hsl_to_g__then_0.mcfunction +4 -0
  2018. package/dist/data/test/function/hsl_to_g__then_11.mcfunction +3 -0
  2019. package/dist/data/test/function/hsl_to_g__then_14.mcfunction +1 -0
  2020. package/dist/data/test/function/hsl_to_g__then_2.mcfunction +3 -0
  2021. package/dist/data/test/function/hsl_to_g__then_5.mcfunction +3 -0
  2022. package/dist/data/test/function/hsl_to_g__then_8.mcfunction +3 -0
  2023. package/dist/data/test/function/hsl_to_packed.mcfunction +24 -0
  2024. package/dist/data/test/function/hsl_to_r.mcfunction +23 -0
  2025. package/dist/data/test/function/hsl_to_r__merge_1.mcfunction +29 -0
  2026. package/dist/data/test/function/hsl_to_r__merge_12.mcfunction +4 -0
  2027. package/dist/data/test/function/hsl_to_r__merge_15.mcfunction +3 -0
  2028. package/dist/data/test/function/hsl_to_r__merge_3.mcfunction +4 -0
  2029. package/dist/data/test/function/hsl_to_r__merge_6.mcfunction +4 -0
  2030. package/dist/data/test/function/hsl_to_r__merge_9.mcfunction +4 -0
  2031. package/dist/data/test/function/hsl_to_r__then_0.mcfunction +4 -0
  2032. package/dist/data/test/function/hsl_to_r__then_11.mcfunction +1 -0
  2033. package/dist/data/test/function/hsl_to_r__then_14.mcfunction +3 -0
  2034. package/dist/data/test/function/hsl_to_r__then_2.mcfunction +3 -0
  2035. package/dist/data/test/function/hsl_to_r__then_5.mcfunction +3 -0
  2036. package/dist/data/test/function/hsl_to_r__then_8.mcfunction +1 -0
  2037. package/dist/data/test/function/impact_velocity.mcfunction +5 -0
  2038. package/dist/data/test/function/impact_velocity__merge_1.mcfunction +16 -0
  2039. package/dist/data/test/function/impact_velocity__then_0.mcfunction +2 -0
  2040. package/dist/data/test/function/init_div.mcfunction +1 -0
  2041. package/dist/data/test/function/init_trig.mcfunction +1 -0
  2042. package/dist/data/test/function/insertion_sort.mcfunction +4 -0
  2043. package/dist/data/test/function/insertion_sort__else_11.mcfunction +2 -0
  2044. package/dist/data/test/function/insertion_sort__else_8.mcfunction +2 -0
  2045. package/dist/data/test/function/insertion_sort__loop_body_1.mcfunction +6 -0
  2046. package/dist/data/test/function/insertion_sort__loop_body_4.mcfunction +4 -0
  2047. package/dist/data/test/function/insertion_sort__loop_exit_2.mcfunction +1 -0
  2048. package/dist/data/test/function/insertion_sort__loop_exit_5.mcfunction +4 -0
  2049. package/dist/data/test/function/insertion_sort__loop_header_0.mcfunction +3 -0
  2050. package/dist/data/test/function/insertion_sort__loop_header_3.mcfunction +4 -0
  2051. package/dist/data/test/function/insertion_sort__merge_10.mcfunction +1 -0
  2052. package/dist/data/test/function/insertion_sort__merge_7.mcfunction +1 -0
  2053. package/dist/data/test/function/insertion_sort__then_6.mcfunction +3 -0
  2054. package/dist/data/test/function/insertion_sort__then_9.mcfunction +4 -0
  2055. package/dist/data/test/function/insertion_sort_desc.mcfunction +4 -0
  2056. package/dist/data/test/function/insertion_sort_desc__else_11.mcfunction +2 -0
  2057. package/dist/data/test/function/insertion_sort_desc__else_8.mcfunction +2 -0
  2058. package/dist/data/test/function/insertion_sort_desc__loop_body_1.mcfunction +6 -0
  2059. package/dist/data/test/function/insertion_sort_desc__loop_body_4.mcfunction +4 -0
  2060. package/dist/data/test/function/insertion_sort_desc__loop_exit_2.mcfunction +1 -0
  2061. package/dist/data/test/function/insertion_sort_desc__loop_exit_5.mcfunction +4 -0
  2062. package/dist/data/test/function/insertion_sort_desc__loop_header_0.mcfunction +3 -0
  2063. package/dist/data/test/function/insertion_sort_desc__loop_header_3.mcfunction +4 -0
  2064. package/dist/data/test/function/insertion_sort_desc__merge_10.mcfunction +1 -0
  2065. package/dist/data/test/function/insertion_sort_desc__merge_7.mcfunction +1 -0
  2066. package/dist/data/test/function/insertion_sort_desc__then_6.mcfunction +3 -0
  2067. package/dist/data/test/function/insertion_sort_desc__then_9.mcfunction +4 -0
  2068. package/dist/data/test/function/int32_to_bigint3_hi.mcfunction +5 -0
  2069. package/dist/data/test/function/int32_to_bigint3_hi__merge_1.mcfunction +4 -0
  2070. package/dist/data/test/function/int32_to_bigint3_hi__then_0.mcfunction +4 -0
  2071. package/dist/data/test/function/int32_to_bigint3_lo.mcfunction +5 -0
  2072. package/dist/data/test/function/int32_to_bigint3_lo__merge_1.mcfunction +4 -0
  2073. package/dist/data/test/function/int32_to_bigint3_lo__then_0.mcfunction +4 -0
  2074. package/dist/data/test/function/int32_to_bigint3_mid.mcfunction +5 -0
  2075. package/dist/data/test/function/int32_to_bigint3_mid__merge_1.mcfunction +7 -0
  2076. package/dist/data/test/function/int32_to_bigint3_mid__then_0.mcfunction +4 -0
  2077. package/dist/data/test/function/integrate_simpson.mcfunction +7 -0
  2078. package/dist/data/test/function/integrate_simpson__loop_body_6.mcfunction +7 -0
  2079. package/dist/data/test/function/integrate_simpson__loop_exit_7.mcfunction +6 -0
  2080. package/dist/data/test/function/integrate_simpson__loop_header_5.mcfunction +5 -0
  2081. package/dist/data/test/function/integrate_simpson__merge_1.mcfunction +8 -0
  2082. package/dist/data/test/function/integrate_simpson__merge_11.mcfunction +4 -0
  2083. package/dist/data/test/function/integrate_simpson__merge_4.mcfunction +5 -0
  2084. package/dist/data/test/function/integrate_simpson__merge_9.mcfunction +7 -0
  2085. package/dist/data/test/function/integrate_simpson__then_0.mcfunction +6 -0
  2086. package/dist/data/test/function/integrate_simpson__then_10.mcfunction +6 -0
  2087. package/dist/data/test/function/integrate_simpson__then_3.mcfunction +4 -0
  2088. package/dist/data/test/function/integrate_simpson__then_8.mcfunction +6 -0
  2089. package/dist/data/test/function/integrate_trapezoid.mcfunction +7 -0
  2090. package/dist/data/test/function/integrate_trapezoid__loop_body_4.mcfunction +7 -0
  2091. package/dist/data/test/function/integrate_trapezoid__loop_exit_5.mcfunction +6 -0
  2092. package/dist/data/test/function/integrate_trapezoid__loop_header_3.mcfunction +5 -0
  2093. package/dist/data/test/function/integrate_trapezoid__merge_1.mcfunction +11 -0
  2094. package/dist/data/test/function/integrate_trapezoid__then_0.mcfunction +2 -0
  2095. package/dist/data/test/function/interactions_init.mcfunction +9 -0
  2096. package/dist/data/test/function/invisible.mcfunction +1 -0
  2097. package/dist/data/test/function/is_grounded.mcfunction +5 -0
  2098. package/dist/data/test/function/is_grounded__merge_1.mcfunction +2 -0
  2099. package/dist/data/test/function/is_grounded__then_0.mcfunction +2 -0
  2100. package/dist/data/test/function/is_op.mcfunction +2 -0
  2101. package/dist/data/test/function/is_op__exec_t1.mcfunction +1 -0
  2102. package/dist/data/test/function/is_prime.mcfunction +5 -0
  2103. package/dist/data/test/function/is_prime__loop_body_10.mcfunction +6 -0
  2104. package/dist/data/test/function/is_prime__loop_exit_11.mcfunction +2 -0
  2105. package/dist/data/test/function/is_prime__loop_header_9.mcfunction +5 -0
  2106. package/dist/data/test/function/is_prime__merge_1.mcfunction +4 -0
  2107. package/dist/data/test/function/is_prime__merge_13.mcfunction +4 -0
  2108. package/dist/data/test/function/is_prime__merge_4.mcfunction +7 -0
  2109. package/dist/data/test/function/is_prime__merge_7.mcfunction +2 -0
  2110. package/dist/data/test/function/is_prime__then_0.mcfunction +2 -0
  2111. package/dist/data/test/function/is_prime__then_12.mcfunction +2 -0
  2112. package/dist/data/test/function/is_prime__then_3.mcfunction +2 -0
  2113. package/dist/data/test/function/is_prime__then_6.mcfunction +2 -0
  2114. package/dist/data/test/function/is_sneaking.mcfunction +5 -0
  2115. package/dist/data/test/function/is_sneaking__merge_1.mcfunction +2 -0
  2116. package/dist/data/test/function/is_sneaking__then_0.mcfunction +2 -0
  2117. package/dist/data/test/function/isqrt.mcfunction +5 -0
  2118. package/dist/data/test/function/isqrt__loop_body_10.mcfunction +8 -0
  2119. package/dist/data/test/function/isqrt__loop_body_13.mcfunction +11 -0
  2120. package/dist/data/test/function/isqrt__loop_body_7.mcfunction +8 -0
  2121. package/dist/data/test/function/isqrt__loop_exit_11.mcfunction +2 -0
  2122. package/dist/data/test/function/isqrt__loop_exit_14.mcfunction +1 -0
  2123. package/dist/data/test/function/isqrt__loop_exit_8.mcfunction +9 -0
  2124. package/dist/data/test/function/isqrt__loop_header_12.mcfunction +4 -0
  2125. package/dist/data/test/function/isqrt__loop_header_6.mcfunction +4 -0
  2126. package/dist/data/test/function/isqrt__loop_header_9.mcfunction +3 -0
  2127. package/dist/data/test/function/isqrt__merge_1.mcfunction +4 -0
  2128. package/dist/data/test/function/isqrt__merge_16.mcfunction +5 -0
  2129. package/dist/data/test/function/isqrt__merge_4.mcfunction +3 -0
  2130. package/dist/data/test/function/isqrt__then_0.mcfunction +2 -0
  2131. package/dist/data/test/function/isqrt__then_15.mcfunction +1 -0
  2132. package/dist/data/test/function/isqrt__then_3.mcfunction +2 -0
  2133. package/dist/data/test/function/julia_iter.mcfunction +9 -0
  2134. package/dist/data/test/function/julia_iter__loop_body_1.mcfunction +36 -0
  2135. package/dist/data/test/function/julia_iter__loop_exit_2.mcfunction +1 -0
  2136. package/dist/data/test/function/julia_iter__loop_header_0.mcfunction +3 -0
  2137. package/dist/data/test/function/julia_iter__merge_4.mcfunction +4 -0
  2138. package/dist/data/test/function/julia_iter__then_3.mcfunction +1 -0
  2139. package/dist/data/test/function/jump.mcfunction +1 -0
  2140. package/dist/data/test/function/lambda_demo.mcfunction +2 -0
  2141. package/dist/data/test/function/launch_up.mcfunction +6 -0
  2142. package/dist/data/test/function/lcm.mcfunction +11 -0
  2143. package/dist/data/test/function/lcm__merge_1.mcfunction +5 -0
  2144. package/dist/data/test/function/lcm__then_0.mcfunction +2 -0
  2145. package/dist/data/test/function/length2d_fixed.mcfunction +15 -0
  2146. package/dist/data/test/function/length3d_fixed.mcfunction +20 -0
  2147. package/dist/data/test/function/lerp.mcfunction +13 -0
  2148. package/dist/data/test/function/lerp2d_x.mcfunction +13 -0
  2149. package/dist/data/test/function/lerp2d_y.mcfunction +13 -0
  2150. package/dist/data/test/function/lerp_angle.mcfunction +7 -0
  2151. package/dist/data/test/function/lerp_angle__loop_body_1.mcfunction +4 -0
  2152. package/dist/data/test/function/lerp_angle__loop_body_4.mcfunction +4 -0
  2153. package/dist/data/test/function/lerp_angle__loop_exit_2.mcfunction +1 -0
  2154. package/dist/data/test/function/lerp_angle__loop_exit_5.mcfunction +8 -0
  2155. package/dist/data/test/function/lerp_angle__loop_header_0.mcfunction +4 -0
  2156. package/dist/data/test/function/lerp_angle__loop_header_3.mcfunction +3 -0
  2157. package/dist/data/test/function/list_avg.mcfunction +9 -0
  2158. package/dist/data/test/function/list_clamp_all.mcfunction +6 -0
  2159. package/dist/data/test/function/list_clamp_all__loop_body_1.mcfunction +4 -0
  2160. package/dist/data/test/function/list_clamp_all__loop_exit_2.mcfunction +1 -0
  2161. package/dist/data/test/function/list_clamp_all__loop_header_0.mcfunction +4 -0
  2162. package/dist/data/test/function/list_clamp_all__merge_4.mcfunction +4 -0
  2163. package/dist/data/test/function/list_clamp_all__merge_6.mcfunction +4 -0
  2164. package/dist/data/test/function/list_clamp_all__then_3.mcfunction +1 -0
  2165. package/dist/data/test/function/list_clamp_all__then_5.mcfunction +1 -0
  2166. package/dist/data/test/function/list_contains.mcfunction +5 -0
  2167. package/dist/data/test/function/list_contains__loop_body_1.mcfunction +4 -0
  2168. package/dist/data/test/function/list_contains__loop_exit_2.mcfunction +2 -0
  2169. package/dist/data/test/function/list_contains__loop_header_0.mcfunction +4 -0
  2170. package/dist/data/test/function/list_contains__merge_4.mcfunction +4 -0
  2171. package/dist/data/test/function/list_contains__then_3.mcfunction +2 -0
  2172. package/dist/data/test/function/list_count_if_gt.mcfunction +6 -0
  2173. package/dist/data/test/function/list_count_if_gt__loop_body_1.mcfunction +4 -0
  2174. package/dist/data/test/function/list_count_if_gt__loop_exit_2.mcfunction +1 -0
  2175. package/dist/data/test/function/list_count_if_gt__loop_header_0.mcfunction +4 -0
  2176. package/dist/data/test/function/list_count_if_gt__merge_4.mcfunction +4 -0
  2177. package/dist/data/test/function/list_count_if_gt__then_3.mcfunction +4 -0
  2178. package/dist/data/test/function/list_fill.mcfunction +3 -0
  2179. package/dist/data/test/function/list_fill__loop_body_1.mcfunction +4 -0
  2180. package/dist/data/test/function/list_fill__loop_exit_2.mcfunction +1 -0
  2181. package/dist/data/test/function/list_fill__loop_header_0.mcfunction +4 -0
  2182. package/dist/data/test/function/list_index_of.mcfunction +5 -0
  2183. package/dist/data/test/function/list_index_of__loop_body_1.mcfunction +4 -0
  2184. package/dist/data/test/function/list_index_of__loop_exit_2.mcfunction +2 -0
  2185. package/dist/data/test/function/list_index_of__loop_header_0.mcfunction +4 -0
  2186. package/dist/data/test/function/list_index_of__merge_4.mcfunction +4 -0
  2187. package/dist/data/test/function/list_index_of__then_3.mcfunction +1 -0
  2188. package/dist/data/test/function/list_max.mcfunction +5 -0
  2189. package/dist/data/test/function/list_max3.mcfunction +7 -0
  2190. package/dist/data/test/function/list_max3__merge_1.mcfunction +3 -0
  2191. package/dist/data/test/function/list_max3__merge_3.mcfunction +1 -0
  2192. package/dist/data/test/function/list_max3__then_0.mcfunction +2 -0
  2193. package/dist/data/test/function/list_max3__then_2.mcfunction +2 -0
  2194. package/dist/data/test/function/list_max5.mcfunction +9 -0
  2195. package/dist/data/test/function/list_max5__merge_1.mcfunction +3 -0
  2196. package/dist/data/test/function/list_max5__merge_3.mcfunction +3 -0
  2197. package/dist/data/test/function/list_max5__merge_5.mcfunction +3 -0
  2198. package/dist/data/test/function/list_max5__merge_7.mcfunction +1 -0
  2199. package/dist/data/test/function/list_max5__then_0.mcfunction +2 -0
  2200. package/dist/data/test/function/list_max5__then_2.mcfunction +2 -0
  2201. package/dist/data/test/function/list_max5__then_4.mcfunction +2 -0
  2202. package/dist/data/test/function/list_max5__then_6.mcfunction +2 -0
  2203. package/dist/data/test/function/list_max__loop_body_1.mcfunction +4 -0
  2204. package/dist/data/test/function/list_max__loop_exit_2.mcfunction +1 -0
  2205. package/dist/data/test/function/list_max__loop_header_0.mcfunction +4 -0
  2206. package/dist/data/test/function/list_max__merge_4.mcfunction +4 -0
  2207. package/dist/data/test/function/list_max__then_3.mcfunction +2 -0
  2208. package/dist/data/test/function/list_min.mcfunction +5 -0
  2209. package/dist/data/test/function/list_min3.mcfunction +7 -0
  2210. package/dist/data/test/function/list_min3__merge_1.mcfunction +3 -0
  2211. package/dist/data/test/function/list_min3__merge_3.mcfunction +1 -0
  2212. package/dist/data/test/function/list_min3__then_0.mcfunction +2 -0
  2213. package/dist/data/test/function/list_min3__then_2.mcfunction +2 -0
  2214. package/dist/data/test/function/list_min5.mcfunction +9 -0
  2215. package/dist/data/test/function/list_min5__merge_1.mcfunction +3 -0
  2216. package/dist/data/test/function/list_min5__merge_3.mcfunction +3 -0
  2217. package/dist/data/test/function/list_min5__merge_5.mcfunction +3 -0
  2218. package/dist/data/test/function/list_min5__merge_7.mcfunction +1 -0
  2219. package/dist/data/test/function/list_min5__then_0.mcfunction +2 -0
  2220. package/dist/data/test/function/list_min5__then_2.mcfunction +2 -0
  2221. package/dist/data/test/function/list_min5__then_4.mcfunction +2 -0
  2222. package/dist/data/test/function/list_min5__then_6.mcfunction +2 -0
  2223. package/dist/data/test/function/list_min__loop_body_1.mcfunction +4 -0
  2224. package/dist/data/test/function/list_min__loop_exit_2.mcfunction +1 -0
  2225. package/dist/data/test/function/list_min__loop_header_0.mcfunction +4 -0
  2226. package/dist/data/test/function/list_min__merge_4.mcfunction +4 -0
  2227. package/dist/data/test/function/list_min__then_3.mcfunction +2 -0
  2228. package/dist/data/test/function/list_reverse.mcfunction +6 -0
  2229. package/dist/data/test/function/list_reverse__loop_body_1.mcfunction +9 -0
  2230. package/dist/data/test/function/list_reverse__loop_exit_2.mcfunction +1 -0
  2231. package/dist/data/test/function/list_reverse__loop_header_0.mcfunction +4 -0
  2232. package/dist/data/test/function/list_sort_asc.mcfunction +4 -0
  2233. package/dist/data/test/function/list_sort_asc__loop_body_1.mcfunction +2 -0
  2234. package/dist/data/test/function/list_sort_asc__loop_body_4.mcfunction +3 -0
  2235. package/dist/data/test/function/list_sort_asc__loop_exit_2.mcfunction +1 -0
  2236. package/dist/data/test/function/list_sort_asc__loop_exit_5.mcfunction +4 -0
  2237. package/dist/data/test/function/list_sort_asc__loop_header_0.mcfunction +5 -0
  2238. package/dist/data/test/function/list_sort_asc__loop_header_3.mcfunction +7 -0
  2239. package/dist/data/test/function/list_sort_asc__merge_7.mcfunction +4 -0
  2240. package/dist/data/test/function/list_sort_asc__then_6.mcfunction +1 -0
  2241. package/dist/data/test/function/list_sort_desc.mcfunction +4 -0
  2242. package/dist/data/test/function/list_sort_desc__loop_body_1.mcfunction +2 -0
  2243. package/dist/data/test/function/list_sort_desc__loop_body_4.mcfunction +3 -0
  2244. package/dist/data/test/function/list_sort_desc__loop_exit_2.mcfunction +1 -0
  2245. package/dist/data/test/function/list_sort_desc__loop_exit_5.mcfunction +4 -0
  2246. package/dist/data/test/function/list_sort_desc__loop_header_0.mcfunction +5 -0
  2247. package/dist/data/test/function/list_sort_desc__loop_header_3.mcfunction +7 -0
  2248. package/dist/data/test/function/list_sort_desc__merge_7.mcfunction +4 -0
  2249. package/dist/data/test/function/list_sort_desc__then_6.mcfunction +1 -0
  2250. package/dist/data/test/function/list_sum.mcfunction +5 -0
  2251. package/dist/data/test/function/list_sum3.mcfunction +8 -0
  2252. package/dist/data/test/function/list_sum4.mcfunction +11 -0
  2253. package/dist/data/test/function/list_sum5.mcfunction +14 -0
  2254. package/dist/data/test/function/list_sum__loop_body_1.mcfunction +7 -0
  2255. package/dist/data/test/function/list_sum__loop_exit_2.mcfunction +1 -0
  2256. package/dist/data/test/function/list_sum__loop_header_0.mcfunction +4 -0
  2257. package/dist/data/test/function/ln.mcfunction +9 -0
  2258. package/dist/data/test/function/ln__loop_body_1.mcfunction +8 -0
  2259. package/dist/data/test/function/ln__loop_body_4.mcfunction +8 -0
  2260. package/dist/data/test/function/ln__loop_exit_2.mcfunction +1 -0
  2261. package/dist/data/test/function/ln__loop_exit_5.mcfunction +37 -0
  2262. package/dist/data/test/function/ln__loop_header_0.mcfunction +3 -0
  2263. package/dist/data/test/function/ln__loop_header_3.mcfunction +6 -0
  2264. package/dist/data/test/function/load.mcfunction +1 -0
  2265. package/dist/data/test/function/log10_fx.mcfunction +11 -0
  2266. package/dist/data/test/function/log2_fx.mcfunction +11 -0
  2267. package/dist/data/test/function/log2_int.mcfunction +5 -0
  2268. package/dist/data/test/function/log2_int__loop_body_4.mcfunction +8 -0
  2269. package/dist/data/test/function/log2_int__loop_exit_5.mcfunction +1 -0
  2270. package/dist/data/test/function/log2_int__loop_header_3.mcfunction +4 -0
  2271. package/dist/data/test/function/log2_int__merge_1.mcfunction +3 -0
  2272. package/dist/data/test/function/log2_int__then_0.mcfunction +2 -0
  2273. package/dist/data/test/function/loga_fx.mcfunction +10 -0
  2274. package/dist/data/test/function/loga_fx__merge_1.mcfunction +9 -0
  2275. package/dist/data/test/function/loga_fx__then_0.mcfunction +2 -0
  2276. package/dist/data/test/function/mandelbrot_iter.mcfunction +7 -0
  2277. package/dist/data/test/function/mandelbrot_iter__loop_body_1.mcfunction +36 -0
  2278. package/dist/data/test/function/mandelbrot_iter__loop_exit_2.mcfunction +1 -0
  2279. package/dist/data/test/function/mandelbrot_iter__loop_header_0.mcfunction +3 -0
  2280. package/dist/data/test/function/mandelbrot_iter__merge_4.mcfunction +4 -0
  2281. package/dist/data/test/function/mandelbrot_iter__then_3.mcfunction +1 -0
  2282. package/dist/data/test/function/manhattan.mcfunction +14 -0
  2283. package/dist/data/test/function/manhattan3d.mcfunction +19 -0
  2284. package/dist/data/test/function/manhattan3d__merge_1.mcfunction +4 -0
  2285. package/dist/data/test/function/manhattan3d__merge_3.mcfunction +4 -0
  2286. package/dist/data/test/function/manhattan3d__merge_5.mcfunction +5 -0
  2287. package/dist/data/test/function/manhattan3d__then_0.mcfunction +4 -0
  2288. package/dist/data/test/function/manhattan3d__then_2.mcfunction +4 -0
  2289. package/dist/data/test/function/manhattan3d__then_4.mcfunction +4 -0
  2290. package/dist/data/test/function/manhattan__merge_1.mcfunction +4 -0
  2291. package/dist/data/test/function/manhattan__merge_3.mcfunction +3 -0
  2292. package/dist/data/test/function/manhattan__then_0.mcfunction +4 -0
  2293. package/dist/data/test/function/manhattan__then_2.mcfunction +4 -0
  2294. package/dist/data/test/function/map.mcfunction +12 -0
  2295. package/dist/data/test/function/map__merge_1.mcfunction +11 -0
  2296. package/dist/data/test/function/map__then_0.mcfunction +1 -0
  2297. package/dist/data/test/function/max_heap_pop.mcfunction +4 -0
  2298. package/dist/data/test/function/max_heap_pop__else_13.mcfunction +2 -0
  2299. package/dist/data/test/function/max_heap_pop__loop_body_1.mcfunction +14 -0
  2300. package/dist/data/test/function/max_heap_pop__loop_exit_2.mcfunction +1 -0
  2301. package/dist/data/test/function/max_heap_pop__loop_header_0.mcfunction +4 -0
  2302. package/dist/data/test/function/max_heap_pop__merge_10.mcfunction +1 -0
  2303. package/dist/data/test/function/max_heap_pop__merge_12.mcfunction +1 -0
  2304. package/dist/data/test/function/max_heap_pop__merge_4.mcfunction +3 -0
  2305. package/dist/data/test/function/max_heap_pop__merge_6.mcfunction +1 -0
  2306. package/dist/data/test/function/max_heap_pop__merge_8.mcfunction +3 -0
  2307. package/dist/data/test/function/max_heap_pop__then_11.mcfunction +2 -0
  2308. package/dist/data/test/function/max_heap_pop__then_3.mcfunction +3 -0
  2309. package/dist/data/test/function/max_heap_pop__then_5.mcfunction +2 -0
  2310. package/dist/data/test/function/max_heap_pop__then_7.mcfunction +3 -0
  2311. package/dist/data/test/function/max_heap_pop__then_9.mcfunction +2 -0
  2312. package/dist/data/test/function/max_heap_push.mcfunction +6 -0
  2313. package/dist/data/test/function/max_heap_push__else_5.mcfunction +2 -0
  2314. package/dist/data/test/function/max_heap_push__else_8.mcfunction +2 -0
  2315. package/dist/data/test/function/max_heap_push__loop_body_1.mcfunction +4 -0
  2316. package/dist/data/test/function/max_heap_push__loop_exit_2.mcfunction +1 -0
  2317. package/dist/data/test/function/max_heap_push__loop_header_0.mcfunction +4 -0
  2318. package/dist/data/test/function/max_heap_push__merge_4.mcfunction +1 -0
  2319. package/dist/data/test/function/max_heap_push__merge_7.mcfunction +1 -0
  2320. package/dist/data/test/function/max_heap_push__then_3.mcfunction +7 -0
  2321. package/dist/data/test/function/max_heap_push__then_6.mcfunction +2 -0
  2322. package/dist/data/test/function/mc_day_angle.mcfunction +16 -0
  2323. package/dist/data/test/function/midpoint.mcfunction +8 -0
  2324. package/dist/data/test/function/mod_pow.mcfunction +7 -0
  2325. package/dist/data/test/function/mod_pow__loop_body_6.mcfunction +7 -0
  2326. package/dist/data/test/function/mod_pow__loop_exit_7.mcfunction +1 -0
  2327. package/dist/data/test/function/mod_pow__loop_header_5.mcfunction +4 -0
  2328. package/dist/data/test/function/mod_pow__merge_1.mcfunction +8 -0
  2329. package/dist/data/test/function/mod_pow__merge_4.mcfunction +2 -0
  2330. package/dist/data/test/function/mod_pow__merge_9.mcfunction +10 -0
  2331. package/dist/data/test/function/mod_pow__then_0.mcfunction +2 -0
  2332. package/dist/data/test/function/mod_pow__then_3.mcfunction +4 -0
  2333. package/dist/data/test/function/mod_pow__then_8.mcfunction +6 -0
  2334. package/dist/data/test/function/mulfix.mcfunction +8 -0
  2335. package/dist/data/test/function/neg2d_x.mcfunction +4 -0
  2336. package/dist/data/test/function/neg2d_y.mcfunction +4 -0
  2337. package/dist/data/test/function/neg3d_x.mcfunction +4 -0
  2338. package/dist/data/test/function/neg3d_y.mcfunction +4 -0
  2339. package/dist/data/test/function/neg3d_z.mcfunction +4 -0
  2340. package/dist/data/test/function/newton_sqrt.mcfunction +5 -0
  2341. package/dist/data/test/function/newton_sqrt__loop_body_7.mcfunction +10 -0
  2342. package/dist/data/test/function/newton_sqrt__loop_exit_8.mcfunction +1 -0
  2343. package/dist/data/test/function/newton_sqrt__loop_header_6.mcfunction +3 -0
  2344. package/dist/data/test/function/newton_sqrt__merge_1.mcfunction +4 -0
  2345. package/dist/data/test/function/newton_sqrt__merge_4.mcfunction +6 -0
  2346. package/dist/data/test/function/newton_sqrt__then_0.mcfunction +2 -0
  2347. package/dist/data/test/function/newton_sqrt__then_3.mcfunction +2 -0
  2348. package/dist/data/test/function/newton_step.mcfunction +7 -0
  2349. package/dist/data/test/function/newton_step__merge_1.mcfunction +8 -0
  2350. package/dist/data/test/function/newton_step__then_0.mcfunction +1 -0
  2351. package/dist/data/test/function/next_lcg.mcfunction +7 -0
  2352. package/dist/data/test/function/night_vision.mcfunction +1 -0
  2353. package/dist/data/test/function/noise1d.mcfunction +13 -0
  2354. package/dist/data/test/function/noise1d__merge_1.mcfunction +20 -0
  2355. package/dist/data/test/function/noise1d__merge_3.mcfunction +4 -0
  2356. package/dist/data/test/function/noise1d__merge_5.mcfunction +11 -0
  2357. package/dist/data/test/function/noise1d__then_0.mcfunction +7 -0
  2358. package/dist/data/test/function/noise1d__then_2.mcfunction +4 -0
  2359. package/dist/data/test/function/noise1d__then_4.mcfunction +4 -0
  2360. package/dist/data/test/function/norm3_hp.mcfunction +43 -0
  2361. package/dist/data/test/function/normal_approx12.mcfunction +15 -0
  2362. package/dist/data/test/function/normal_approx12__merge_1.mcfunction +17 -0
  2363. package/dist/data/test/function/normal_approx12__merge_11.mcfunction +17 -0
  2364. package/dist/data/test/function/normal_approx12__merge_13.mcfunction +17 -0
  2365. package/dist/data/test/function/normal_approx12__merge_15.mcfunction +17 -0
  2366. package/dist/data/test/function/normal_approx12__merge_17.mcfunction +17 -0
  2367. package/dist/data/test/function/normal_approx12__merge_19.mcfunction +17 -0
  2368. package/dist/data/test/function/normal_approx12__merge_21.mcfunction +17 -0
  2369. package/dist/data/test/function/normal_approx12__merge_23.mcfunction +9 -0
  2370. package/dist/data/test/function/normal_approx12__merge_3.mcfunction +17 -0
  2371. package/dist/data/test/function/normal_approx12__merge_5.mcfunction +17 -0
  2372. package/dist/data/test/function/normal_approx12__merge_7.mcfunction +17 -0
  2373. package/dist/data/test/function/normal_approx12__merge_9.mcfunction +17 -0
  2374. package/dist/data/test/function/normal_approx12__then_0.mcfunction +4 -0
  2375. package/dist/data/test/function/normal_approx12__then_10.mcfunction +4 -0
  2376. package/dist/data/test/function/normal_approx12__then_12.mcfunction +4 -0
  2377. package/dist/data/test/function/normal_approx12__then_14.mcfunction +4 -0
  2378. package/dist/data/test/function/normal_approx12__then_16.mcfunction +4 -0
  2379. package/dist/data/test/function/normal_approx12__then_18.mcfunction +4 -0
  2380. package/dist/data/test/function/normal_approx12__then_2.mcfunction +4 -0
  2381. package/dist/data/test/function/normal_approx12__then_20.mcfunction +4 -0
  2382. package/dist/data/test/function/normal_approx12__then_22.mcfunction +4 -0
  2383. package/dist/data/test/function/normal_approx12__then_4.mcfunction +4 -0
  2384. package/dist/data/test/function/normal_approx12__then_6.mcfunction +4 -0
  2385. package/dist/data/test/function/normal_approx12__then_8.mcfunction +4 -0
  2386. package/dist/data/test/function/normalize2d_x.mcfunction +11 -0
  2387. package/dist/data/test/function/normalize2d_x__merge_1.mcfunction +6 -0
  2388. package/dist/data/test/function/normalize2d_x__then_0.mcfunction +2 -0
  2389. package/dist/data/test/function/normalize2d_y.mcfunction +11 -0
  2390. package/dist/data/test/function/normalize2d_y__merge_1.mcfunction +6 -0
  2391. package/dist/data/test/function/normalize2d_y__then_0.mcfunction +2 -0
  2392. package/dist/data/test/function/on_double_sneak.mcfunction +1 -0
  2393. package/dist/data/test/function/on_double_sneak__foreach_t0.mcfunction +9 -0
  2394. package/dist/data/test/function/on_double_sneak__foreach_t0__merge_1.mcfunction +1 -0
  2395. package/dist/data/test/function/on_double_sneak__foreach_t0__merge_3.mcfunction +2 -0
  2396. package/dist/data/test/function/on_double_sneak__foreach_t0__then_0.mcfunction +6 -0
  2397. package/dist/data/test/function/on_double_sneak__foreach_t0__then_2.mcfunction +2 -0
  2398. package/dist/data/test/function/on_right_click.mcfunction +1 -0
  2399. package/dist/data/test/function/on_right_click__foreach_t1.mcfunction +5 -0
  2400. package/dist/data/test/function/on_right_click__foreach_t1__merge_1.mcfunction +1 -0
  2401. package/dist/data/test/function/on_right_click__foreach_t1__then_0.mcfunction +3 -0
  2402. package/dist/data/test/function/on_sneak_click.mcfunction +1 -0
  2403. package/dist/data/test/function/on_sneak_click__foreach_t0.mcfunction +7 -0
  2404. package/dist/data/test/function/on_sneak_click__foreach_t0__else_4.mcfunction +3 -0
  2405. package/dist/data/test/function/on_sneak_click__foreach_t0__merge_1.mcfunction +1 -0
  2406. package/dist/data/test/function/on_sneak_click__foreach_t0__merge_3.mcfunction +1 -0
  2407. package/dist/data/test/function/on_sneak_click__foreach_t0__then_0.mcfunction +4 -0
  2408. package/dist/data/test/function/on_sneak_click__foreach_t0__then_2.mcfunction +3 -0
  2409. package/dist/data/test/function/on_sneak_start.mcfunction +1 -0
  2410. package/dist/data/test/function/on_sneak_start__foreach_t0.mcfunction +5 -0
  2411. package/dist/data/test/function/on_sneak_start__foreach_t0__else_2.mcfunction +2 -0
  2412. package/dist/data/test/function/on_sneak_start__foreach_t0__merge_1.mcfunction +1 -0
  2413. package/dist/data/test/function/on_sneak_start__foreach_t0__then_0.mcfunction +2 -0
  2414. package/dist/data/test/function/parabola_land_t.mcfunction +7 -0
  2415. package/dist/data/test/function/parabola_x.mcfunction +8 -0
  2416. package/dist/data/test/function/parabola_y.mcfunction +17 -0
  2417. package/dist/data/test/function/particle_at_fx.mcfunction +1 -0
  2418. package/dist/data/test/function/particle_dot.mcfunction +1 -0
  2419. package/dist/data/test/function/pathfind_bfs.mcfunction +11 -0
  2420. package/dist/data/test/function/pathfind_bfs__else_33.mcfunction +4 -0
  2421. package/dist/data/test/function/pathfind_bfs__else_8.mcfunction +19 -0
  2422. package/dist/data/test/function/pathfind_bfs__loop_body_1.mcfunction +10 -0
  2423. package/dist/data/test/function/pathfind_bfs__loop_body_29.mcfunction +6 -0
  2424. package/dist/data/test/function/pathfind_bfs__loop_body_35.mcfunction +9 -0
  2425. package/dist/data/test/function/pathfind_bfs__loop_body_4.mcfunction +9 -0
  2426. package/dist/data/test/function/pathfind_bfs__loop_exit_2.mcfunction +24 -0
  2427. package/dist/data/test/function/pathfind_bfs__loop_exit_30.mcfunction +6 -0
  2428. package/dist/data/test/function/pathfind_bfs__loop_exit_36.mcfunction +1 -0
  2429. package/dist/data/test/function/pathfind_bfs__loop_exit_5.mcfunction +6 -0
  2430. package/dist/data/test/function/pathfind_bfs__loop_header_0.mcfunction +4 -0
  2431. package/dist/data/test/function/pathfind_bfs__loop_header_28.mcfunction +4 -0
  2432. package/dist/data/test/function/pathfind_bfs__loop_header_3.mcfunction +3 -0
  2433. package/dist/data/test/function/pathfind_bfs__loop_header_34.mcfunction +4 -0
  2434. package/dist/data/test/function/pathfind_bfs__merge_10.mcfunction +11 -0
  2435. package/dist/data/test/function/pathfind_bfs__merge_12.mcfunction +1 -0
  2436. package/dist/data/test/function/pathfind_bfs__merge_14.mcfunction +11 -0
  2437. package/dist/data/test/function/pathfind_bfs__merge_16.mcfunction +1 -0
  2438. package/dist/data/test/function/pathfind_bfs__merge_18.mcfunction +11 -0
  2439. package/dist/data/test/function/pathfind_bfs__merge_20.mcfunction +1 -0
  2440. package/dist/data/test/function/pathfind_bfs__merge_22.mcfunction +1 -0
  2441. package/dist/data/test/function/pathfind_bfs__merge_24.mcfunction +1 -0
  2442. package/dist/data/test/function/pathfind_bfs__merge_26.mcfunction +5 -0
  2443. package/dist/data/test/function/pathfind_bfs__merge_32.mcfunction +1 -0
  2444. package/dist/data/test/function/pathfind_bfs__merge_7.mcfunction +1 -0
  2445. package/dist/data/test/function/pathfind_bfs__then_11.mcfunction +15 -0
  2446. package/dist/data/test/function/pathfind_bfs__then_13.mcfunction +13 -0
  2447. package/dist/data/test/function/pathfind_bfs__then_15.mcfunction +15 -0
  2448. package/dist/data/test/function/pathfind_bfs__then_17.mcfunction +13 -0
  2449. package/dist/data/test/function/pathfind_bfs__then_19.mcfunction +15 -0
  2450. package/dist/data/test/function/pathfind_bfs__then_21.mcfunction +13 -0
  2451. package/dist/data/test/function/pathfind_bfs__then_23.mcfunction +15 -0
  2452. package/dist/data/test/function/pathfind_bfs__then_25.mcfunction +1 -0
  2453. package/dist/data/test/function/pathfind_bfs__then_31.mcfunction +2 -0
  2454. package/dist/data/test/function/pathfind_bfs__then_6.mcfunction +3 -0
  2455. package/dist/data/test/function/pathfind_bfs__then_9.mcfunction +13 -0
  2456. package/dist/data/test/function/pathfind_bfs_coro.mcfunction +1 -0
  2457. package/dist/data/test/function/pcg_next_hi.mcfunction +8 -0
  2458. package/dist/data/test/function/pcg_next_lo.mcfunction +7 -0
  2459. package/dist/data/test/function/pcg_output.mcfunction +14 -0
  2460. package/dist/data/test/function/pcg_output__merge_1.mcfunction +1 -0
  2461. package/dist/data/test/function/pcg_output__then_0.mcfunction +4 -0
  2462. package/dist/data/test/function/pf_heuristic.mcfunction +14 -0
  2463. package/dist/data/test/function/pf_heuristic__merge_1.mcfunction +4 -0
  2464. package/dist/data/test/function/pf_heuristic__merge_3.mcfunction +6 -0
  2465. package/dist/data/test/function/pf_heuristic__then_0.mcfunction +4 -0
  2466. package/dist/data/test/function/pf_heuristic__then_2.mcfunction +4 -0
  2467. package/dist/data/test/function/pf_is_blocked.mcfunction +7 -0
  2468. package/dist/data/test/function/pf_is_blocked__merge_1.mcfunction +4 -0
  2469. package/dist/data/test/function/pf_is_blocked__merge_10.mcfunction +4 -0
  2470. package/dist/data/test/function/pf_is_blocked__merge_4.mcfunction +4 -0
  2471. package/dist/data/test/function/pf_is_blocked__merge_7.mcfunction +4 -0
  2472. package/dist/data/test/function/pf_is_blocked__then_0.mcfunction +2 -0
  2473. package/dist/data/test/function/pf_is_blocked__then_3.mcfunction +2 -0
  2474. package/dist/data/test/function/pf_is_blocked__then_6.mcfunction +2 -0
  2475. package/dist/data/test/function/pf_is_blocked__then_9.mcfunction +2 -0
  2476. package/dist/data/test/function/pf_new_map.mcfunction +4 -0
  2477. package/dist/data/test/function/pf_new_map__loop_body_1.mcfunction +7 -0
  2478. package/dist/data/test/function/pf_new_map__loop_exit_2.mcfunction +1 -0
  2479. package/dist/data/test/function/pf_new_map__loop_header_0.mcfunction +4 -0
  2480. package/dist/data/test/function/pf_noop.mcfunction +1 -0
  2481. package/dist/data/test/function/pf_pack.mcfunction +8 -0
  2482. package/dist/data/test/function/pf_set_blocked.mcfunction +5 -0
  2483. package/dist/data/test/function/pf_set_open.mcfunction +5 -0
  2484. package/dist/data/test/function/pf_unpack_x.mcfunction +5 -0
  2485. package/dist/data/test/function/pf_unpack_z.mcfunction +5 -0
  2486. package/dist/data/test/function/popcount.mcfunction +5 -0
  2487. package/dist/data/test/function/popcount__loop_body_1.mcfunction +7 -0
  2488. package/dist/data/test/function/popcount__loop_exit_2.mcfunction +1 -0
  2489. package/dist/data/test/function/popcount__loop_header_0.mcfunction +4 -0
  2490. package/dist/data/test/function/popcount__merge_4.mcfunction +8 -0
  2491. package/dist/data/test/function/popcount__then_3.mcfunction +4 -0
  2492. package/dist/data/test/function/portal_effect.mcfunction +1 -0
  2493. package/dist/data/test/function/pow_int.mcfunction +6 -0
  2494. package/dist/data/test/function/pow_int__loop_body_4.mcfunction +7 -0
  2495. package/dist/data/test/function/pow_int__loop_exit_5.mcfunction +1 -0
  2496. package/dist/data/test/function/pow_int__loop_header_3.mcfunction +4 -0
  2497. package/dist/data/test/function/pow_int__merge_1.mcfunction +4 -0
  2498. package/dist/data/test/function/pow_int__merge_7.mcfunction +8 -0
  2499. package/dist/data/test/function/pow_int__then_0.mcfunction +2 -0
  2500. package/dist/data/test/function/pow_int__then_6.mcfunction +4 -0
  2501. package/dist/data/test/function/projectile_land_t.mcfunction +5 -0
  2502. package/dist/data/test/function/projectile_land_t__merge_1.mcfunction +7 -0
  2503. package/dist/data/test/function/projectile_land_t__then_0.mcfunction +2 -0
  2504. package/dist/data/test/function/projectile_max_height.mcfunction +10 -0
  2505. package/dist/data/test/function/projectile_vy.mcfunction +9 -0
  2506. package/dist/data/test/function/projectile_x.mcfunction +8 -0
  2507. package/dist/data/test/function/projectile_y.mcfunction +19 -0
  2508. package/dist/data/test/function/ptimer/new.mcfunction +3 -0
  2509. package/dist/data/test/function/ptimer/reset.mcfunction +1 -0
  2510. package/dist/data/test/function/ptimer/tick.mcfunction +8 -0
  2511. package/dist/data/test/function/ptimer/tick__merge_1.mcfunction +2 -0
  2512. package/dist/data/test/function/ptimer/tick__then_0.mcfunction +3 -0
  2513. package/dist/data/test/function/quadratic_disc.mcfunction +12 -0
  2514. package/dist/data/test/function/quadratic_x1.mcfunction +7 -0
  2515. package/dist/data/test/function/quadratic_x1__merge_1.mcfunction +13 -0
  2516. package/dist/data/test/function/quadratic_x1__merge_4.mcfunction +15 -0
  2517. package/dist/data/test/function/quadratic_x1__then_0.mcfunction +2 -0
  2518. package/dist/data/test/function/quadratic_x1__then_3.mcfunction +2 -0
  2519. package/dist/data/test/function/quadratic_x2.mcfunction +7 -0
  2520. package/dist/data/test/function/quadratic_x2__merge_1.mcfunction +13 -0
  2521. package/dist/data/test/function/quadratic_x2__merge_4.mcfunction +15 -0
  2522. package/dist/data/test/function/quadratic_x2__then_0.mcfunction +2 -0
  2523. package/dist/data/test/function/quadratic_x2__then_3.mcfunction +2 -0
  2524. package/dist/data/test/function/quat_cos_half.mcfunction +8 -0
  2525. package/dist/data/test/function/quat_sin_half.mcfunction +8 -0
  2526. package/dist/data/test/function/random_bool.mcfunction +6 -0
  2527. package/dist/data/test/function/random_bool__merge_1.mcfunction +4 -0
  2528. package/dist/data/test/function/random_bool__then_0.mcfunction +4 -0
  2529. package/dist/data/test/function/random_range.mcfunction +8 -0
  2530. package/dist/data/test/function/random_range__merge_1.mcfunction +7 -0
  2531. package/dist/data/test/function/random_range__then_0.mcfunction +4 -0
  2532. package/dist/data/test/function/regen.mcfunction +1 -0
  2533. package/dist/data/test/function/remove_bar.mcfunction +3 -0
  2534. package/dist/data/test/function/remove_from_teams.mcfunction +3 -0
  2535. package/dist/data/test/function/remove_item.mcfunction +1 -0
  2536. package/dist/data/test/function/resistance.mcfunction +1 -0
  2537. package/dist/data/test/function/reverse_int.mcfunction +7 -0
  2538. package/dist/data/test/function/reverse_int__loop_body_3.mcfunction +14 -0
  2539. package/dist/data/test/function/reverse_int__loop_exit_4.mcfunction +4 -0
  2540. package/dist/data/test/function/reverse_int__loop_header_2.mcfunction +4 -0
  2541. package/dist/data/test/function/reverse_int__merge_1.mcfunction +2 -0
  2542. package/dist/data/test/function/reverse_int__merge_6.mcfunction +1 -0
  2543. package/dist/data/test/function/reverse_int__then_0.mcfunction +5 -0
  2544. package/dist/data/test/function/reverse_int__then_5.mcfunction +3 -0
  2545. package/dist/data/test/function/rgb_b.mcfunction +5 -0
  2546. package/dist/data/test/function/rgb_g.mcfunction +8 -0
  2547. package/dist/data/test/function/rgb_lerp.mcfunction +71 -0
  2548. package/dist/data/test/function/rgb_pack.mcfunction +14 -0
  2549. package/dist/data/test/function/rgb_r.mcfunction +8 -0
  2550. package/dist/data/test/function/rgb_to_h.mcfunction +7 -0
  2551. package/dist/data/test/function/rgb_to_h__merge_1.mcfunction +3 -0
  2552. package/dist/data/test/function/rgb_to_h__merge_12.mcfunction +3 -0
  2553. package/dist/data/test/function/rgb_to_h__merge_14.mcfunction +1 -0
  2554. package/dist/data/test/function/rgb_to_h__merge_17.mcfunction +9 -0
  2555. package/dist/data/test/function/rgb_to_h__merge_3.mcfunction +4 -0
  2556. package/dist/data/test/function/rgb_to_h__merge_5.mcfunction +3 -0
  2557. package/dist/data/test/function/rgb_to_h__merge_7.mcfunction +7 -0
  2558. package/dist/data/test/function/rgb_to_h__merge_9.mcfunction +3 -0
  2559. package/dist/data/test/function/rgb_to_h__then_0.mcfunction +2 -0
  2560. package/dist/data/test/function/rgb_to_h__then_11.mcfunction +11 -0
  2561. package/dist/data/test/function/rgb_to_h__then_13.mcfunction +4 -0
  2562. package/dist/data/test/function/rgb_to_h__then_16.mcfunction +9 -0
  2563. package/dist/data/test/function/rgb_to_h__then_2.mcfunction +2 -0
  2564. package/dist/data/test/function/rgb_to_h__then_4.mcfunction +2 -0
  2565. package/dist/data/test/function/rgb_to_h__then_6.mcfunction +2 -0
  2566. package/dist/data/test/function/rgb_to_h__then_8.mcfunction +2 -0
  2567. package/dist/data/test/function/rgb_to_l.mcfunction +7 -0
  2568. package/dist/data/test/function/rgb_to_l__merge_1.mcfunction +3 -0
  2569. package/dist/data/test/function/rgb_to_l__merge_3.mcfunction +4 -0
  2570. package/dist/data/test/function/rgb_to_l__merge_5.mcfunction +3 -0
  2571. package/dist/data/test/function/rgb_to_l__merge_7.mcfunction +9 -0
  2572. package/dist/data/test/function/rgb_to_l__then_0.mcfunction +2 -0
  2573. package/dist/data/test/function/rgb_to_l__then_2.mcfunction +2 -0
  2574. package/dist/data/test/function/rgb_to_l__then_4.mcfunction +2 -0
  2575. package/dist/data/test/function/rgb_to_l__then_6.mcfunction +2 -0
  2576. package/dist/data/test/function/rgb_to_s.mcfunction +7 -0
  2577. package/dist/data/test/function/rgb_to_s__merge_1.mcfunction +3 -0
  2578. package/dist/data/test/function/rgb_to_s__merge_12.mcfunction +10 -0
  2579. package/dist/data/test/function/rgb_to_s__merge_3.mcfunction +4 -0
  2580. package/dist/data/test/function/rgb_to_s__merge_5.mcfunction +3 -0
  2581. package/dist/data/test/function/rgb_to_s__merge_7.mcfunction +7 -0
  2582. package/dist/data/test/function/rgb_to_s__merge_9.mcfunction +12 -0
  2583. package/dist/data/test/function/rgb_to_s__then_0.mcfunction +2 -0
  2584. package/dist/data/test/function/rgb_to_s__then_11.mcfunction +8 -0
  2585. package/dist/data/test/function/rgb_to_s__then_2.mcfunction +2 -0
  2586. package/dist/data/test/function/rgb_to_s__then_4.mcfunction +2 -0
  2587. package/dist/data/test/function/rgb_to_s__then_6.mcfunction +2 -0
  2588. package/dist/data/test/function/rgb_to_s__then_8.mcfunction +2 -0
  2589. package/dist/data/test/function/riemann_left.mcfunction +6 -0
  2590. package/dist/data/test/function/riemann_left__loop_body_1.mcfunction +7 -0
  2591. package/dist/data/test/function/riemann_left__loop_exit_2.mcfunction +6 -0
  2592. package/dist/data/test/function/riemann_left__loop_header_0.mcfunction +5 -0
  2593. package/dist/data/test/function/riemann_mid.mcfunction +6 -0
  2594. package/dist/data/test/function/riemann_mid__loop_body_1.mcfunction +7 -0
  2595. package/dist/data/test/function/riemann_mid__loop_exit_2.mcfunction +6 -0
  2596. package/dist/data/test/function/riemann_mid__loop_header_0.mcfunction +3 -0
  2597. package/dist/data/test/function/riemann_right.mcfunction +6 -0
  2598. package/dist/data/test/function/riemann_right__loop_body_1.mcfunction +7 -0
  2599. package/dist/data/test/function/riemann_right__loop_exit_2.mcfunction +6 -0
  2600. package/dist/data/test/function/riemann_right__loop_header_0.mcfunction +3 -0
  2601. package/dist/data/test/function/rotate2d_x.mcfunction +20 -0
  2602. package/dist/data/test/function/rotate2d_y.mcfunction +20 -0
  2603. package/dist/data/test/function/rotate_x_y.mcfunction +28 -0
  2604. package/dist/data/test/function/rotate_x_z.mcfunction +28 -0
  2605. package/dist/data/test/function/rotate_y_x.mcfunction +28 -0
  2606. package/dist/data/test/function/rotate_y_z.mcfunction +30 -0
  2607. package/dist/data/test/function/running_m2.mcfunction +16 -0
  2608. package/dist/data/test/function/running_mean.mcfunction +7 -0
  2609. package/dist/data/test/function/running_mean__merge_1.mcfunction +13 -0
  2610. package/dist/data/test/function/running_mean__then_0.mcfunction +1 -0
  2611. package/dist/data/test/function/scale2d_x.mcfunction +8 -0
  2612. package/dist/data/test/function/scale2d_y.mcfunction +8 -0
  2613. package/dist/data/test/function/scale3d_x.mcfunction +8 -0
  2614. package/dist/data/test/function/scale3d_y.mcfunction +8 -0
  2615. package/dist/data/test/function/scale3d_z.mcfunction +8 -0
  2616. package/dist/data/test/function/scale_x.mcfunction +8 -0
  2617. package/dist/data/test/function/scale_y.mcfunction +8 -0
  2618. package/dist/data/test/function/scale_z.mcfunction +8 -0
  2619. package/dist/data/test/function/second_deriv.mcfunction +8 -0
  2620. package/dist/data/test/function/second_deriv__merge_1.mcfunction +14 -0
  2621. package/dist/data/test/function/second_deriv__then_0.mcfunction +2 -0
  2622. package/dist/data/test/function/seconds_to_ticks.mcfunction +5 -0
  2623. package/dist/data/test/function/set_day.mcfunction +1 -0
  2624. package/dist/data/test/function/set_easy.mcfunction +1 -0
  2625. package/dist/data/test/function/set_hard.mcfunction +1 -0
  2626. package/dist/data/test/function/set_midnight.mcfunction +1 -0
  2627. package/dist/data/test/function/set_night.mcfunction +1 -0
  2628. package/dist/data/test/function/set_noon.mcfunction +1 -0
  2629. package/dist/data/test/function/set_normal.mcfunction +1 -0
  2630. package/dist/data/test/function/set_peaceful.mcfunction +1 -0
  2631. package/dist/data/test/function/setup_four_teams.mcfunction +4 -0
  2632. package/dist/data/test/function/setup_two_teams.mcfunction +2 -0
  2633. package/dist/data/test/function/show_bar.mcfunction +4 -0
  2634. package/dist/data/test/function/showcase_load.mcfunction +4 -0
  2635. package/dist/data/test/function/showcase_tick.mcfunction +1 -0
  2636. package/dist/data/test/function/sign.mcfunction +5 -0
  2637. package/dist/data/test/function/sign__merge_1.mcfunction +4 -0
  2638. package/dist/data/test/function/sign__merge_4.mcfunction +2 -0
  2639. package/dist/data/test/function/sign__then_0.mcfunction +2 -0
  2640. package/dist/data/test/function/sign__then_3.mcfunction +2 -0
  2641. package/dist/data/test/function/simpson_step.mcfunction +16 -0
  2642. package/dist/data/test/function/sin_fixed.mcfunction +9 -0
  2643. package/dist/data/test/function/sin_fixed__merge_1.mcfunction +4 -0
  2644. package/dist/data/test/function/sin_fixed__merge_3.mcfunction +4 -0
  2645. package/dist/data/test/function/sin_fixed__merge_6.mcfunction +4 -0
  2646. package/dist/data/test/function/sin_fixed__merge_9.mcfunction +10 -0
  2647. package/dist/data/test/function/sin_fixed__then_0.mcfunction +4 -0
  2648. package/dist/data/test/function/sin_fixed__then_2.mcfunction +6 -0
  2649. package/dist/data/test/function/sin_fixed__then_5.mcfunction +8 -0
  2650. package/dist/data/test/function/sin_fixed__then_8.mcfunction +10 -0
  2651. package/dist/data/test/function/sin_hp.mcfunction +8 -0
  2652. package/dist/data/test/function/slow_fall.mcfunction +1 -0
  2653. package/dist/data/test/function/smoke.mcfunction +1 -0
  2654. package/dist/data/test/function/smootherstep.mcfunction +10 -0
  2655. package/dist/data/test/function/smootherstep__merge_1.mcfunction +12 -0
  2656. package/dist/data/test/function/smootherstep__merge_4.mcfunction +4 -0
  2657. package/dist/data/test/function/smootherstep__merge_6.mcfunction +27 -0
  2658. package/dist/data/test/function/smootherstep__then_0.mcfunction +2 -0
  2659. package/dist/data/test/function/smootherstep__then_3.mcfunction +2 -0
  2660. package/dist/data/test/function/smootherstep__then_5.mcfunction +2 -0
  2661. package/dist/data/test/function/smoothstep.mcfunction +10 -0
  2662. package/dist/data/test/function/smoothstep__merge_1.mcfunction +12 -0
  2663. package/dist/data/test/function/smoothstep__merge_4.mcfunction +4 -0
  2664. package/dist/data/test/function/smoothstep__merge_6.mcfunction +15 -0
  2665. package/dist/data/test/function/smoothstep__then_0.mcfunction +2 -0
  2666. package/dist/data/test/function/smoothstep__then_3.mcfunction +2 -0
  2667. package/dist/data/test/function/smoothstep__then_5.mcfunction +2 -0
  2668. package/dist/data/test/function/solve2x2_x.mcfunction +17 -0
  2669. package/dist/data/test/function/solve2x2_x__merge_1.mcfunction +12 -0
  2670. package/dist/data/test/function/solve2x2_x__then_0.mcfunction +2 -0
  2671. package/dist/data/test/function/solve2x2_y.mcfunction +17 -0
  2672. package/dist/data/test/function/solve2x2_y__merge_1.mcfunction +12 -0
  2673. package/dist/data/test/function/solve2x2_y__then_0.mcfunction +2 -0
  2674. package/dist/data/test/function/sort2_max.mcfunction +5 -0
  2675. package/dist/data/test/function/sort2_max__merge_1.mcfunction +1 -0
  2676. package/dist/data/test/function/sort2_max__then_0.mcfunction +1 -0
  2677. package/dist/data/test/function/sort2_min.mcfunction +5 -0
  2678. package/dist/data/test/function/sort2_min__merge_1.mcfunction +1 -0
  2679. package/dist/data/test/function/sort2_min__then_0.mcfunction +1 -0
  2680. package/dist/data/test/function/sort3.mcfunction +10 -0
  2681. package/dist/data/test/function/sort3__merge_1.mcfunction +3 -0
  2682. package/dist/data/test/function/sort3__merge_10.mcfunction +1 -0
  2683. package/dist/data/test/function/sort3__merge_3.mcfunction +3 -0
  2684. package/dist/data/test/function/sort3__merge_5.mcfunction +4 -0
  2685. package/dist/data/test/function/sort3__merge_7.mcfunction +4 -0
  2686. package/dist/data/test/function/sort3__then_0.mcfunction +4 -0
  2687. package/dist/data/test/function/sort3__then_2.mcfunction +4 -0
  2688. package/dist/data/test/function/sort3__then_4.mcfunction +4 -0
  2689. package/dist/data/test/function/sort3__then_6.mcfunction +1 -0
  2690. package/dist/data/test/function/sort3__then_9.mcfunction +1 -0
  2691. package/dist/data/test/function/sort4.mcfunction +12 -0
  2692. package/dist/data/test/function/sort4__merge_1.mcfunction +3 -0
  2693. package/dist/data/test/function/sort4__merge_11.mcfunction +4 -0
  2694. package/dist/data/test/function/sort4__merge_14.mcfunction +4 -0
  2695. package/dist/data/test/function/sort4__merge_17.mcfunction +1 -0
  2696. package/dist/data/test/function/sort4__merge_3.mcfunction +3 -0
  2697. package/dist/data/test/function/sort4__merge_5.mcfunction +3 -0
  2698. package/dist/data/test/function/sort4__merge_7.mcfunction +3 -0
  2699. package/dist/data/test/function/sort4__merge_9.mcfunction +4 -0
  2700. package/dist/data/test/function/sort4__then_0.mcfunction +4 -0
  2701. package/dist/data/test/function/sort4__then_10.mcfunction +1 -0
  2702. package/dist/data/test/function/sort4__then_13.mcfunction +1 -0
  2703. package/dist/data/test/function/sort4__then_16.mcfunction +1 -0
  2704. package/dist/data/test/function/sort4__then_2.mcfunction +4 -0
  2705. package/dist/data/test/function/sort4__then_4.mcfunction +4 -0
  2706. package/dist/data/test/function/sort4__then_6.mcfunction +4 -0
  2707. package/dist/data/test/function/sort4__then_8.mcfunction +4 -0
  2708. package/dist/data/test/function/sort5.mcfunction +14 -0
  2709. package/dist/data/test/function/sort5__merge_1.mcfunction +3 -0
  2710. package/dist/data/test/function/sort5__merge_11.mcfunction +3 -0
  2711. package/dist/data/test/function/sort5__merge_13.mcfunction +3 -0
  2712. package/dist/data/test/function/sort5__merge_15.mcfunction +3 -0
  2713. package/dist/data/test/function/sort5__merge_17.mcfunction +4 -0
  2714. package/dist/data/test/function/sort5__merge_19.mcfunction +4 -0
  2715. package/dist/data/test/function/sort5__merge_22.mcfunction +4 -0
  2716. package/dist/data/test/function/sort5__merge_25.mcfunction +4 -0
  2717. package/dist/data/test/function/sort5__merge_28.mcfunction +1 -0
  2718. package/dist/data/test/function/sort5__merge_3.mcfunction +3 -0
  2719. package/dist/data/test/function/sort5__merge_5.mcfunction +3 -0
  2720. package/dist/data/test/function/sort5__merge_7.mcfunction +3 -0
  2721. package/dist/data/test/function/sort5__merge_9.mcfunction +3 -0
  2722. package/dist/data/test/function/sort5__then_0.mcfunction +4 -0
  2723. package/dist/data/test/function/sort5__then_10.mcfunction +4 -0
  2724. package/dist/data/test/function/sort5__then_12.mcfunction +4 -0
  2725. package/dist/data/test/function/sort5__then_14.mcfunction +4 -0
  2726. package/dist/data/test/function/sort5__then_16.mcfunction +4 -0
  2727. package/dist/data/test/function/sort5__then_18.mcfunction +1 -0
  2728. package/dist/data/test/function/sort5__then_2.mcfunction +4 -0
  2729. package/dist/data/test/function/sort5__then_21.mcfunction +1 -0
  2730. package/dist/data/test/function/sort5__then_24.mcfunction +1 -0
  2731. package/dist/data/test/function/sort5__then_27.mcfunction +1 -0
  2732. package/dist/data/test/function/sort5__then_4.mcfunction +4 -0
  2733. package/dist/data/test/function/sort5__then_6.mcfunction +4 -0
  2734. package/dist/data/test/function/sort5__then_8.mcfunction +4 -0
  2735. package/dist/data/test/function/sort_merge.mcfunction +10 -0
  2736. package/dist/data/test/function/sort_merge__else_11.mcfunction +7 -0
  2737. package/dist/data/test/function/sort_merge__else_14.mcfunction +2 -0
  2738. package/dist/data/test/function/sort_merge__else_5.mcfunction +3 -0
  2739. package/dist/data/test/function/sort_merge__else_8.mcfunction +7 -0
  2740. package/dist/data/test/function/sort_merge__loop_body_1.mcfunction +3 -0
  2741. package/dist/data/test/function/sort_merge__loop_exit_2.mcfunction +1 -0
  2742. package/dist/data/test/function/sort_merge__loop_header_0.mcfunction +4 -0
  2743. package/dist/data/test/function/sort_merge__merge_10.mcfunction +1 -0
  2744. package/dist/data/test/function/sort_merge__merge_13.mcfunction +1 -0
  2745. package/dist/data/test/function/sort_merge__merge_4.mcfunction +1 -0
  2746. package/dist/data/test/function/sort_merge__merge_7.mcfunction +1 -0
  2747. package/dist/data/test/function/sort_merge__then_12.mcfunction +7 -0
  2748. package/dist/data/test/function/sort_merge__then_3.mcfunction +3 -0
  2749. package/dist/data/test/function/sort_merge__then_6.mcfunction +3 -0
  2750. package/dist/data/test/function/sort_merge__then_9.mcfunction +7 -0
  2751. package/dist/data/test/function/sparkles_at.mcfunction +1 -0
  2752. package/dist/data/test/function/speed.mcfunction +1 -0
  2753. package/dist/data/test/function/sphere_contains.mcfunction +28 -0
  2754. package/dist/data/test/function/sphere_contains__merge_1.mcfunction +2 -0
  2755. package/dist/data/test/function/sphere_contains__then_0.mcfunction +2 -0
  2756. package/dist/data/test/function/spiral_ring.mcfunction +5 -0
  2757. package/dist/data/test/function/spiral_ring__merge_1.mcfunction +13 -0
  2758. package/dist/data/test/function/spiral_ring__then_0.mcfunction +2 -0
  2759. package/dist/data/test/function/spread_players.mcfunction +1 -0
  2760. package/dist/data/test/function/spring_force.mcfunction +11 -0
  2761. package/dist/data/test/function/spring_update_v.mcfunction +18 -0
  2762. package/dist/data/test/function/sqrt_fixed.mcfunction +8 -0
  2763. package/dist/data/test/function/sqrt_fx.mcfunction +8 -0
  2764. package/dist/data/test/function/sqrt_hp.mcfunction +17 -0
  2765. package/dist/data/test/function/sqrt_hp__merge_1.mcfunction +21 -0
  2766. package/dist/data/test/function/sqrt_hp__then_0.mcfunction +2 -0
  2767. package/dist/data/test/function/start.mcfunction +8 -0
  2768. package/dist/data/test/function/std_dev_approx.mcfunction +5 -0
  2769. package/dist/data/test/function/std_dev_approx__merge_1.mcfunction +13 -0
  2770. package/dist/data/test/function/std_dev_approx__then_0.mcfunction +2 -0
  2771. package/dist/data/test/function/stop.mcfunction +2 -0
  2772. package/dist/data/test/function/stop__foreach_t0.mcfunction +1 -0
  2773. package/dist/data/test/function/str_len.mcfunction +2 -0
  2774. package/dist/data/test/function/strength.mcfunction +1 -0
  2775. package/dist/data/test/function/sub2d_x.mcfunction +5 -0
  2776. package/dist/data/test/function/sub2d_y.mcfunction +5 -0
  2777. package/dist/data/test/function/sub3d_x.mcfunction +5 -0
  2778. package/dist/data/test/function/sub3d_y.mcfunction +5 -0
  2779. package/dist/data/test/function/sub3d_z.mcfunction +5 -0
  2780. package/dist/data/test/function/t.mcfunction +3 -0
  2781. package/dist/data/test/function/teleport_to.mcfunction +9 -0
  2782. package/dist/data/test/function/teleport_to_entity.mcfunction +5 -0
  2783. package/dist/data/test/function/terrain_height.mcfunction +24 -0
  2784. package/dist/data/test/function/test.mcfunction +5 -0
  2785. package/dist/data/test/function/test__loop_body_1.mcfunction +9 -0
  2786. package/dist/data/test/function/test__loop_exit_2.mcfunction +1 -0
  2787. package/dist/data/test/function/test__loop_header_0.mcfunction +3 -0
  2788. package/dist/data/test/function/tick_to_ms.mcfunction +5 -0
  2789. package/dist/data/test/function/tick_to_seconds.mcfunction +5 -0
  2790. package/dist/data/test/function/tile_center.mcfunction +10 -0
  2791. package/dist/data/test/function/tile_of.mcfunction +6 -0
  2792. package/dist/data/test/function/tile_of__merge_1.mcfunction +7 -0
  2793. package/dist/data/test/function/tile_of__then_0.mcfunction +3 -0
  2794. package/dist/data/test/function/timer/done.mcfunction +4 -0
  2795. package/dist/data/test/function/timer/elapsed.mcfunction +2 -0
  2796. package/dist/data/test/function/timer/new.mcfunction +5 -0
  2797. package/dist/data/test/function/timer/pause.mcfunction +1 -0
  2798. package/dist/data/test/function/timer/remaining.mcfunction +9 -0
  2799. package/dist/data/test/function/timer/remaining__merge_1.mcfunction +2 -0
  2800. package/dist/data/test/function/timer/remaining__then_0.mcfunction +1 -0
  2801. package/dist/data/test/function/timer/reset.mcfunction +1 -0
  2802. package/dist/data/test/function/timer/start.mcfunction +1 -0
  2803. package/dist/data/test/function/timer/tick.mcfunction +8 -0
  2804. package/dist/data/test/function/timer/tick__merge_1.mcfunction +1 -0
  2805. package/dist/data/test/function/timer/tick__merge_3.mcfunction +1 -0
  2806. package/dist/data/test/function/timer/tick__then_0.mcfunction +3 -0
  2807. package/dist/data/test/function/timer/tick__then_2.mcfunction +4 -0
  2808. package/dist/data/test/function/totem_at.mcfunction +1 -0
  2809. package/dist/data/test/function/trapezoid_step.mcfunction +11 -0
  2810. package/dist/data/test/function/uniform_frac.mcfunction +11 -0
  2811. package/dist/data/test/function/uniform_frac__merge_1.mcfunction +4 -0
  2812. package/dist/data/test/function/uniform_frac__then_0.mcfunction +4 -0
  2813. package/dist/data/test/function/uniform_int.mcfunction +13 -0
  2814. package/dist/data/test/function/uniform_int__merge_1.mcfunction +9 -0
  2815. package/dist/data/test/function/uniform_int__then_0.mcfunction +4 -0
  2816. package/dist/data/test/function/uniform_scale.mcfunction +8 -0
  2817. package/dist/data/test/function/update_bar.mcfunction +5 -0
  2818. package/dist/data/test/function/update_bar_color.mcfunction +6 -0
  2819. package/dist/data/test/function/update_bar_color__else_2.mcfunction +4 -0
  2820. package/dist/data/test/function/update_bar_color__else_5.mcfunction +4 -0
  2821. package/dist/data/test/function/update_bar_color__merge_1.mcfunction +1 -0
  2822. package/dist/data/test/function/update_bar_color__merge_4.mcfunction +1 -0
  2823. package/dist/data/test/function/update_bar_color__then_0.mcfunction +4 -0
  2824. package/dist/data/test/function/update_bar_color__then_3.mcfunction +4 -0
  2825. package/dist/data/test/function/update_pos.mcfunction +5 -0
  2826. package/dist/data/test/function/value_noise_1d.mcfunction +13 -0
  2827. package/dist/data/test/function/value_noise_1d__merge_1.mcfunction +39 -0
  2828. package/dist/data/test/function/value_noise_1d__then_0.mcfunction +7 -0
  2829. package/dist/data/test/function/value_noise_2d.mcfunction +14 -0
  2830. package/dist/data/test/function/value_noise_2d__merge_1.mcfunction +12 -0
  2831. package/dist/data/test/function/value_noise_2d__merge_3.mcfunction +98 -0
  2832. package/dist/data/test/function/value_noise_2d__then_0.mcfunction +7 -0
  2833. package/dist/data/test/function/value_noise_2d__then_2.mcfunction +7 -0
  2834. package/dist/data/test/function/variance_from_m2.mcfunction +6 -0
  2835. package/dist/data/test/function/variance_from_m2__merge_1.mcfunction +5 -0
  2836. package/dist/data/test/function/variance_from_m2__then_0.mcfunction +2 -0
  2837. package/dist/data/test/function/water_drag_fx.mcfunction +2 -0
  2838. package/dist/data/test/function/weapon_damage.mcfunction +5 -0
  2839. package/dist/data/test/function/weather_clear.mcfunction +1 -0
  2840. package/dist/data/test/function/weather_rain.mcfunction +1 -0
  2841. package/dist/data/test/function/weather_thunder.mcfunction +1 -0
  2842. package/dist/data/test/function/weighted2.mcfunction +16 -0
  2843. package/dist/data/test/function/weighted2__merge_1.mcfunction +5 -0
  2844. package/dist/data/test/function/weighted2__merge_3.mcfunction +2 -0
  2845. package/dist/data/test/function/weighted2__then_0.mcfunction +4 -0
  2846. package/dist/data/test/function/weighted2__then_2.mcfunction +2 -0
  2847. package/dist/data/test/function/weighted3.mcfunction +19 -0
  2848. package/dist/data/test/function/weighted3__merge_1.mcfunction +6 -0
  2849. package/dist/data/test/function/weighted3__merge_3.mcfunction +5 -0
  2850. package/dist/data/test/function/weighted3__merge_6.mcfunction +2 -0
  2851. package/dist/data/test/function/weighted3__then_0.mcfunction +4 -0
  2852. package/dist/data/test/function/weighted3__then_2.mcfunction +2 -0
  2853. package/dist/data/test/function/weighted3__then_5.mcfunction +2 -0
  2854. package/dist/data/test_dmul/function/__double_mul_macro.mcfunction +1 -0
  2855. package/dist/data/test_dmul/function/double_mul_fixed.mcfunction +6 -0
  2856. package/dist/data/test_dmul/function/load.mcfunction +1 -0
  2857. package/dist/data/test_double_fn/function/double_test.mcfunction +2 -0
  2858. package/dist/data/test_double_fn/function/load.mcfunction +1 -0
  2859. package/dist/data/test_double_fn2/function/double_test.mcfunction +2 -0
  2860. package/dist/data/test_double_fn2/function/load.mcfunction +1 -0
  2861. package/dist/data/test_double_pass/function/caller_fn.mcfunction +4 -0
  2862. package/dist/data/test_double_pass/function/consume_double.mcfunction +2 -0
  2863. package/dist/data/test_double_pass/function/load.mcfunction +1 -0
  2864. package/dist/data/test_macro/function/load.mcfunction +1 -0
  2865. package/dist/data/test_macro/function/macro_helper.mcfunction +1 -0
  2866. package/dist/data/test_macro3/function/__dmul_macro.mcfunction +1 -0
  2867. package/dist/data/test_macro3/function/double_mul_test.mcfunction +7 -0
  2868. package/dist/data/test_macro3/function/load.mcfunction +1 -0
  2869. package/dist/data/test_ret_double/function/load.mcfunction +1 -0
  2870. package/dist/data/test_ret_double/function/make_double.mcfunction +3 -0
  2871. package/dist/data/test_ret_double/function/use_it.mcfunction +3 -0
  2872. package/dist/data/turret/function/__load.mcfunction +5 -0
  2873. package/dist/data/turret/function/__tick.mcfunction +4 -0
  2874. package/dist/data/turret/function/__trigger_deploy_turret_dispatch.mcfunction +4 -0
  2875. package/dist/data/turret/function/deploy_turret.mcfunction +8 -0
  2876. package/dist/data/turret/function/turret_tick/at_1.mcfunction +2 -0
  2877. package/dist/data/turret/function/turret_tick/foreach_0.mcfunction +2 -0
  2878. package/dist/data/turret/function/turret_tick/foreach_2.mcfunction +2 -0
  2879. package/dist/data/turret/function/turret_tick/tick_body.mcfunction +3 -0
  2880. package/dist/data/turret/function/turret_tick/tick_skip.mcfunction +1 -0
  2881. package/dist/data/turret/function/turret_tick.mcfunction +5 -0
  2882. package/dist/diagnostics/index.d.ts +44 -0
  2883. package/dist/diagnostics/index.js +140 -0
  2884. package/dist/events/types.d.ts +35 -0
  2885. package/dist/events/types.js +59 -0
  2886. package/dist/formatter/index.d.ts +1 -0
  2887. package/dist/formatter/index.js +26 -0
  2888. package/dist/gcd2.map.json +15 -0
  2889. package/dist/gcd3.map.json +17 -0
  2890. package/dist/gcd_test.map.json +15 -0
  2891. package/dist/index.d.ts +62 -0
  2892. package/dist/ir/builder.d.ts +33 -0
  2893. package/dist/ir/builder.js +99 -0
  2894. package/dist/ir/types.d.ts +132 -0
  2895. package/dist/ir/types.js +15 -0
  2896. package/dist/isqrttest.map.json +15 -0
  2897. package/dist/lexer/index.d.ts +37 -0
  2898. package/dist/lexer/index.js +569 -0
  2899. package/dist/lowering/index.d.ts +188 -0
  2900. package/dist/lowering/index.js +3405 -0
  2901. package/dist/mathtest.map.json +6 -0
  2902. package/dist/mc-test/client.d.ts +128 -0
  2903. package/dist/mc-test/client.js +174 -0
  2904. package/dist/mc-test/runner.d.ts +28 -0
  2905. package/dist/mc-test/runner.js +150 -0
  2906. package/dist/mc-test/setup.d.ts +11 -0
  2907. package/dist/mc-test/setup.js +98 -0
  2908. package/dist/mc-validator/index.d.ts +17 -0
  2909. package/dist/mc-validator/index.js +322 -0
  2910. package/dist/mypack.map.json +27 -0
  2911. package/dist/nbt/index.d.ts +86 -0
  2912. package/dist/nbt/index.js +250 -0
  2913. package/dist/optimizer/commands.d.ts +38 -0
  2914. package/dist/optimizer/commands.js +451 -0
  2915. package/dist/optimizer/dce.d.ts +34 -0
  2916. package/dist/optimizer/dce.js +639 -0
  2917. package/dist/optimizer/passes.d.ts +34 -0
  2918. package/dist/optimizer/passes.js +243 -0
  2919. package/dist/optimizer/structure.d.ts +9 -0
  2920. package/dist/optimizer/structure.js +356 -0
  2921. package/dist/pack.mcmeta +6 -0
  2922. package/dist/parser/index.d.ts +93 -0
  2923. package/dist/parser/index.js +1687 -0
  2924. package/dist/repl.d.ts +16 -0
  2925. package/dist/repl.js +165 -0
  2926. package/dist/reqtest.map.json +4 -0
  2927. package/dist/reqtest2.map.json +4 -0
  2928. package/dist/runtime/index.d.ts +107 -0
  2929. package/dist/runtime/index.js +1409 -0
  2930. package/dist/runtime.map.json +7 -0
  2931. package/dist/src/__tests__/array-dynamic.test.js +42 -0
  2932. package/dist/src/__tests__/budget.test.js +4 -0
  2933. package/dist/src/__tests__/builtins.test.d.ts +1 -0
  2934. package/dist/src/__tests__/builtins.test.js +55 -0
  2935. package/dist/src/__tests__/cache/cache-behavior.test.d.ts +10 -0
  2936. package/dist/src/__tests__/cache/cache-behavior.test.js +425 -0
  2937. package/dist/src/__tests__/cache-extra.test.d.ts +5 -0
  2938. package/dist/src/__tests__/cache-extra.test.js +211 -0
  2939. package/dist/src/__tests__/cli-init.test.d.ts +1 -0
  2940. package/dist/src/__tests__/cli-init.test.js +97 -0
  2941. package/dist/src/__tests__/cli-publish.test.d.ts +9 -0
  2942. package/dist/src/__tests__/cli-publish.test.js +189 -0
  2943. package/dist/src/__tests__/cli.test.js +76 -0
  2944. package/dist/src/__tests__/codegen.test.d.ts +1 -0
  2945. package/dist/src/__tests__/codegen.test.js +152 -0
  2946. package/dist/src/__tests__/compile-preprocess.test.d.ts +11 -0
  2947. package/dist/src/__tests__/compile-preprocess.test.js +328 -0
  2948. package/dist/src/__tests__/compiler/break-stmt.test.d.ts +1 -0
  2949. package/dist/src/__tests__/compiler/break-stmt.test.js +58 -0
  2950. package/dist/src/__tests__/compiler/const-decl.test.d.ts +1 -0
  2951. package/dist/src/__tests__/compiler/const-decl.test.js +123 -0
  2952. package/dist/src/__tests__/compiler/continue-stmt.test.d.ts +1 -0
  2953. package/dist/src/__tests__/compiler/continue-stmt.test.js +67 -0
  2954. package/dist/src/__tests__/compiler/coroutine-extended.test.d.ts +17 -0
  2955. package/dist/src/__tests__/compiler/coroutine-extended.test.js +565 -0
  2956. package/dist/src/__tests__/compiler/deprecated.test.d.ts +4 -0
  2957. package/dist/src/__tests__/compiler/deprecated.test.js +285 -0
  2958. package/dist/src/__tests__/compiler/do-while.test.d.ts +1 -0
  2959. package/dist/src/__tests__/compiler/do-while.test.js +120 -0
  2960. package/dist/src/__tests__/compiler/enum-payload.test.d.ts +9 -0
  2961. package/dist/src/__tests__/compiler/enum-payload.test.js +272 -0
  2962. package/dist/src/__tests__/compiler/interface.test.d.ts +10 -0
  2963. package/dist/src/__tests__/compiler/interface.test.js +258 -0
  2964. package/dist/src/__tests__/compiler/labeled-loops.test.d.ts +1 -0
  2965. package/dist/src/__tests__/compiler/labeled-loops.test.js +263 -0
  2966. package/dist/src/__tests__/compiler/match-string.test.d.ts +1 -0
  2967. package/dist/src/__tests__/compiler/match-string.test.js +43 -0
  2968. package/dist/src/__tests__/compiler/memoize.test.d.ts +1 -0
  2969. package/dist/src/__tests__/compiler/memoize.test.js +113 -0
  2970. package/dist/src/__tests__/compiler/method-chain.test.d.ts +5 -0
  2971. package/dist/src/__tests__/compiler/method-chain.test.js +115 -0
  2972. package/dist/src/__tests__/compiler/module-import.test.d.ts +12 -0
  2973. package/dist/src/__tests__/compiler/module-import.test.js +261 -0
  2974. package/dist/src/__tests__/compiler/option-extensions.test.d.ts +6 -0
  2975. package/dist/src/__tests__/compiler/option-extensions.test.js +191 -0
  2976. package/dist/src/__tests__/compiler/profile-decorator.test.d.ts +1 -0
  2977. package/dist/src/__tests__/compiler/profile-decorator.test.js +69 -0
  2978. package/dist/src/__tests__/compiler/string-advanced.test.d.ts +7 -0
  2979. package/dist/src/__tests__/compiler/string-advanced.test.js +281 -0
  2980. package/dist/src/__tests__/compiler/struct-extends.test.d.ts +1 -0
  2981. package/dist/src/__tests__/compiler/struct-extends.test.js +95 -0
  2982. package/dist/src/__tests__/compiler/throttle-retry.test.d.ts +1 -0
  2983. package/dist/src/__tests__/compiler/throttle-retry.test.js +166 -0
  2984. package/dist/src/__tests__/compiler/tuple-type.test.d.ts +10 -0
  2985. package/dist/src/__tests__/compiler/tuple-type.test.js +229 -0
  2986. package/dist/src/__tests__/compiler/watch-decorator.test.d.ts +1 -0
  2987. package/dist/src/__tests__/compiler/watch-decorator.test.js +65 -0
  2988. package/dist/src/__tests__/config/project-config.test.d.ts +1 -0
  2989. package/dist/src/__tests__/config/project-config.test.js +199 -0
  2990. package/dist/src/__tests__/config-decorator.test.d.ts +8 -0
  2991. package/dist/src/__tests__/config-decorator.test.js +142 -0
  2992. package/dist/src/__tests__/debug-compile.test.d.ts +1 -0
  2993. package/dist/src/__tests__/debug-compile.test.js +24 -0
  2994. package/dist/src/__tests__/debug-compile2.test.d.ts +1 -0
  2995. package/dist/src/__tests__/debug-compile2.test.js +19 -0
  2996. package/dist/src/__tests__/debug-compile3.test.d.ts +1 -0
  2997. package/dist/src/__tests__/debug-compile3.test.js +22 -0
  2998. package/dist/src/__tests__/debug-wm.test.d.ts +1 -0
  2999. package/dist/src/__tests__/debug-wm.test.js +50 -0
  3000. package/dist/src/__tests__/debug_gen.d.ts +1 -0
  3001. package/dist/src/__tests__/debug_gen.js +24 -0
  3002. package/dist/src/__tests__/debug_scoreboard.test.d.ts +1 -0
  3003. package/dist/src/__tests__/debug_scoreboard.test.js +19 -0
  3004. package/dist/src/__tests__/debug_scoreboard2.test.d.ts +1 -0
  3005. package/dist/src/__tests__/debug_scoreboard2.test.js +27 -0
  3006. package/dist/src/__tests__/debug_scoreboard3.test.d.ts +1 -0
  3007. package/dist/src/__tests__/debug_scoreboard3.test.js +37 -0
  3008. package/dist/src/__tests__/diagnostics-extra.test.d.ts +6 -0
  3009. package/dist/src/__tests__/diagnostics-extra.test.js +132 -0
  3010. package/dist/src/__tests__/e2e/ecs-stdlib.test.d.ts +7 -0
  3011. package/dist/src/__tests__/e2e/ecs-stdlib.test.js +328 -0
  3012. package/dist/src/__tests__/e2e/events-stdlib.test.d.ts +1 -0
  3013. package/dist/src/__tests__/e2e/events-stdlib.test.js +81 -0
  3014. package/dist/src/__tests__/e2e/fft-stdlib.test.d.ts +13 -0
  3015. package/dist/src/__tests__/e2e/fft-stdlib.test.js +288 -0
  3016. package/dist/src/__tests__/e2e/ode-stdlib.test.d.ts +1 -0
  3017. package/dist/src/__tests__/e2e/ode-stdlib.test.js +91 -0
  3018. package/dist/src/__tests__/e2e/stdlib-e2e.test.js +205 -0
  3019. package/dist/src/__tests__/e2e.test.d.ts +6 -0
  3020. package/dist/src/__tests__/e2e.test.js +1789 -0
  3021. package/dist/src/__tests__/emit/compile-branches.test.d.ts +1 -0
  3022. package/dist/src/__tests__/emit/compile-branches.test.js +123 -0
  3023. package/dist/src/__tests__/emit/compile-coverage.test.d.ts +25 -0
  3024. package/dist/src/__tests__/emit/compile-coverage.test.js +617 -0
  3025. package/dist/src/__tests__/emit/compile-extra-branches.test.d.ts +12 -0
  3026. package/dist/src/__tests__/emit/compile-extra-branches.test.js +225 -0
  3027. package/dist/src/__tests__/emit/compile-mocked-branches.test.d.ts +0 -0
  3028. package/dist/src/__tests__/emit/compile-mocked-branches.test.js +238 -0
  3029. package/dist/src/__tests__/emit/compile.test.d.ts +1 -0
  3030. package/dist/src/__tests__/emit/compile.test.js +95 -0
  3031. package/dist/src/__tests__/emit/execute-chain.test.d.ts +10 -0
  3032. package/dist/src/__tests__/emit/execute-chain.test.js +94 -0
  3033. package/dist/src/__tests__/emit/index.test.d.ts +1 -0
  3034. package/dist/src/__tests__/emit/index.test.js +181 -0
  3035. package/dist/src/__tests__/emit/modules-branches.test.d.ts +1 -0
  3036. package/dist/src/__tests__/emit/modules-branches.test.js +88 -0
  3037. package/dist/src/__tests__/emit/modules-coverage.test.d.ts +15 -0
  3038. package/dist/src/__tests__/emit/modules-coverage.test.js +221 -0
  3039. package/dist/src/__tests__/emit/modules-errors.test.d.ts +12 -0
  3040. package/dist/src/__tests__/emit/modules-errors.test.js +169 -0
  3041. package/dist/src/__tests__/emit/modules-extra.test.d.ts +1 -0
  3042. package/dist/src/__tests__/emit/modules-extra.test.js +77 -0
  3043. package/dist/src/__tests__/emit/modules-rewrite.test.d.ts +17 -0
  3044. package/dist/src/__tests__/emit/modules-rewrite.test.js +204 -0
  3045. package/dist/src/__tests__/emit/source-map.test.d.ts +1 -0
  3046. package/dist/src/__tests__/emit/source-map.test.js +167 -0
  3047. package/dist/src/__tests__/entity-types.test.d.ts +1 -0
  3048. package/dist/src/__tests__/entity-types.test.js +203 -0
  3049. package/dist/src/__tests__/enum.test.js +5 -2
  3050. package/dist/src/__tests__/error-recovery.test.d.ts +7 -0
  3051. package/dist/src/__tests__/error-recovery.test.js +217 -0
  3052. package/dist/src/__tests__/events-types-extra.test.d.ts +10 -0
  3053. package/dist/src/__tests__/events-types-extra.test.js +91 -0
  3054. package/dist/src/__tests__/events-types.test.d.ts +4 -0
  3055. package/dist/src/__tests__/events-types.test.js +56 -0
  3056. package/dist/src/__tests__/for-each.test.d.ts +1 -0
  3057. package/dist/src/__tests__/for-each.test.js +125 -0
  3058. package/dist/src/__tests__/formatter.test.js +13 -5
  3059. package/dist/src/__tests__/hir/lower-extra.test.d.ts +9 -0
  3060. package/dist/src/__tests__/hir/lower-extra.test.js +140 -0
  3061. package/dist/src/__tests__/hir/monomorphize-extra.test.d.ts +15 -0
  3062. package/dist/src/__tests__/hir/monomorphize-extra.test.js +200 -0
  3063. package/dist/src/__tests__/hir/monomorphize-extra2.test.d.ts +16 -0
  3064. package/dist/src/__tests__/hir/monomorphize-extra2.test.js +316 -0
  3065. package/dist/src/__tests__/incremental.test.js +10 -2
  3066. package/dist/src/__tests__/index-extra.test.d.ts +10 -0
  3067. package/dist/src/__tests__/index-extra.test.js +71 -0
  3068. package/dist/src/__tests__/lexer.test.js +2 -2
  3069. package/dist/src/__tests__/lint/rules.test.d.ts +5 -0
  3070. package/dist/src/__tests__/lint/rules.test.js +208 -0
  3071. package/dist/src/__tests__/lir/lower.test.js +29 -0
  3072. package/dist/src/__tests__/lir/verify.test.js +30 -0
  3073. package/dist/src/__tests__/lowering.test.d.ts +1 -0
  3074. package/dist/src/__tests__/lowering.test.js +1015 -0
  3075. package/dist/src/__tests__/lsp/completion.test.d.ts +7 -0
  3076. package/dist/src/__tests__/lsp/completion.test.js +583 -0
  3077. package/dist/src/__tests__/lsp/definition.test.d.ts +7 -0
  3078. package/dist/src/__tests__/lsp/definition.test.js +454 -0
  3079. package/dist/src/__tests__/lsp/diagnostics.test.d.ts +10 -0
  3080. package/dist/src/__tests__/lsp/diagnostics.test.js +98 -0
  3081. package/dist/src/__tests__/lsp/hover-docs.test.d.ts +10 -0
  3082. package/dist/src/__tests__/lsp/hover-docs.test.js +210 -0
  3083. package/dist/src/__tests__/lsp-logic.test.d.ts +1 -0
  3084. package/dist/src/__tests__/lsp-logic.test.js +145 -0
  3085. package/dist/src/__tests__/lsp.test.js +4 -1
  3086. package/dist/src/__tests__/macro.test.d.ts +8 -0
  3087. package/dist/src/__tests__/macro.test.js +306 -0
  3088. package/dist/src/__tests__/match.test.d.ts +10 -0
  3089. package/dist/src/__tests__/match.test.js +197 -0
  3090. package/dist/src/__tests__/mc-integration/item-entity-events.test.d.ts +18 -0
  3091. package/dist/src/__tests__/mc-integration/item-entity-events.test.js +291 -0
  3092. package/dist/src/__tests__/mc-integration/stdlib-coverage-2.test.d.ts +13 -0
  3093. package/dist/src/__tests__/mc-integration/stdlib-coverage-2.test.js +837 -0
  3094. package/dist/src/__tests__/mc-integration/stdlib-coverage-3.test.d.ts +13 -0
  3095. package/dist/src/__tests__/mc-integration/stdlib-coverage-3.test.js +1227 -0
  3096. package/dist/src/__tests__/mc-integration/stdlib-coverage-4.test.d.ts +13 -0
  3097. package/dist/src/__tests__/mc-integration/stdlib-coverage-4.test.js +1509 -0
  3098. package/dist/src/__tests__/mc-integration/stdlib-coverage-5.test.d.ts +14 -0
  3099. package/dist/src/__tests__/mc-integration/stdlib-coverage-5.test.js +1374 -0
  3100. package/dist/src/__tests__/mc-integration/stdlib-coverage-6.test.d.ts +10 -0
  3101. package/dist/src/__tests__/mc-integration/stdlib-coverage-6.test.js +759 -0
  3102. package/dist/src/__tests__/mc-integration/stdlib-coverage-7.test.d.ts +13 -0
  3103. package/dist/src/__tests__/mc-integration/stdlib-coverage-7.test.js +855 -0
  3104. package/dist/src/__tests__/mc-integration/stdlib-coverage.test.d.ts +13 -0
  3105. package/dist/src/__tests__/mc-integration/stdlib-coverage.test.js +711 -0
  3106. package/dist/src/__tests__/mc-integration/syntax-coverage.test.d.ts +9 -0
  3107. package/dist/src/__tests__/mc-integration/syntax-coverage.test.js +446 -0
  3108. package/dist/src/__tests__/mc-integration.test.js +173 -7
  3109. package/dist/src/__tests__/mc-validator-coverage.test.d.ts +13 -0
  3110. package/dist/src/__tests__/mc-validator-coverage.test.js +296 -0
  3111. package/dist/src/__tests__/mc-validator-extra.test.d.ts +13 -0
  3112. package/dist/src/__tests__/mc-validator-extra.test.js +245 -0
  3113. package/dist/src/__tests__/mir/lower-extra.test.d.ts +20 -0
  3114. package/dist/src/__tests__/mir/lower-extra.test.js +361 -0
  3115. package/dist/src/__tests__/mir/lower-extra2.test.d.ts +17 -0
  3116. package/dist/src/__tests__/mir/lower-extra2.test.js +317 -0
  3117. package/dist/src/__tests__/mir/lower-extra3.test.d.ts +19 -0
  3118. package/dist/src/__tests__/mir/lower-extra3.test.js +249 -0
  3119. package/dist/src/__tests__/mir/lower-extra4.test.d.ts +23 -0
  3120. package/dist/src/__tests__/mir/lower-extra4.test.js +606 -0
  3121. package/dist/src/__tests__/mir/lower-extra5.test.d.ts +25 -0
  3122. package/dist/src/__tests__/mir/lower-extra5.test.js +543 -0
  3123. package/dist/src/__tests__/mir/lower-extra6.test.d.ts +16 -0
  3124. package/dist/src/__tests__/mir/lower-extra6.test.js +471 -0
  3125. package/dist/src/__tests__/mir/lower-extra7.test.d.ts +35 -0
  3126. package/dist/src/__tests__/mir/lower-extra7.test.js +921 -0
  3127. package/dist/src/__tests__/mir/lower-extra8.test.d.ts +19 -0
  3128. package/dist/src/__tests__/mir/lower-extra8.test.js +626 -0
  3129. package/dist/src/__tests__/mir/lower-extra9.test.d.ts +14 -0
  3130. package/dist/src/__tests__/mir/lower-extra9.test.js +717 -0
  3131. package/dist/src/__tests__/nbt.test.d.ts +1 -0
  3132. package/dist/src/__tests__/nbt.test.js +82 -0
  3133. package/dist/src/__tests__/optimizer/auto-inline.test.d.ts +1 -0
  3134. package/dist/src/__tests__/optimizer/auto-inline.test.js +176 -0
  3135. package/dist/src/__tests__/optimizer/cse.test.d.ts +4 -0
  3136. package/dist/src/__tests__/optimizer/cse.test.js +178 -0
  3137. package/dist/src/__tests__/optimizer/inline_fn.test.d.ts +1 -0
  3138. package/dist/src/__tests__/optimizer/inline_fn.test.js +221 -0
  3139. package/dist/src/__tests__/optimizer/licm.test.d.ts +1 -0
  3140. package/dist/src/__tests__/optimizer/licm.test.js +244 -0
  3141. package/dist/src/__tests__/optimizer/optimizer-extended.test.d.ts +12 -0
  3142. package/dist/src/__tests__/optimizer/optimizer-extended.test.js +993 -0
  3143. package/dist/src/__tests__/optimizer/strength-reduction.test.d.ts +1 -0
  3144. package/dist/src/__tests__/optimizer/strength-reduction.test.js +86 -0
  3145. package/dist/src/__tests__/optimizer/tco.test.d.ts +14 -0
  3146. package/dist/src/__tests__/optimizer/tco.test.js +203 -0
  3147. package/dist/src/__tests__/optimizer-advanced.test.d.ts +1 -0
  3148. package/dist/src/__tests__/optimizer-advanced.test.js +124 -0
  3149. package/dist/src/__tests__/optimizer.test.d.ts +1 -0
  3150. package/dist/src/__tests__/optimizer.test.js +149 -0
  3151. package/dist/src/__tests__/parser-coverage.test.d.ts +25 -0
  3152. package/dist/src/__tests__/parser-coverage.test.js +491 -0
  3153. package/dist/src/__tests__/parser-extra.test.d.ts +6 -0
  3154. package/dist/src/__tests__/parser-extra.test.js +451 -0
  3155. package/dist/src/__tests__/parser.test.js +15 -3
  3156. package/dist/src/__tests__/repl-extra.test.d.ts +13 -0
  3157. package/dist/src/__tests__/repl-extra.test.js +174 -0
  3158. package/dist/src/__tests__/repl-server-extra.test.d.ts +10 -0
  3159. package/dist/src/__tests__/repl-server-extra.test.js +161 -0
  3160. package/dist/src/__tests__/repl-server.test.d.ts +6 -0
  3161. package/dist/src/__tests__/repl-server.test.js +146 -0
  3162. package/dist/src/__tests__/runtime-extra.test.d.ts +15 -0
  3163. package/dist/src/__tests__/runtime-extra.test.js +732 -0
  3164. package/dist/src/__tests__/runtime.test.d.ts +1 -0
  3165. package/dist/src/__tests__/runtime.test.js +194 -0
  3166. package/dist/src/__tests__/singleton-decorator.test.d.ts +11 -0
  3167. package/dist/src/__tests__/singleton-decorator.test.js +260 -0
  3168. package/dist/src/__tests__/sourcemap.test.js +1 -1
  3169. package/dist/src/__tests__/stdlib/advanced.test.d.ts +5 -0
  3170. package/dist/src/__tests__/stdlib/advanced.test.js +301 -0
  3171. package/dist/src/__tests__/stdlib/arr-len.test.d.ts +13 -0
  3172. package/dist/src/__tests__/stdlib/arr-len.test.js +195 -0
  3173. package/dist/src/__tests__/stdlib/bigint.test.d.ts +4 -0
  3174. package/dist/src/__tests__/stdlib/bigint.test.js +83 -0
  3175. package/dist/src/__tests__/stdlib/bits.test.d.ts +4 -0
  3176. package/dist/src/__tests__/stdlib/bits.test.js +96 -0
  3177. package/dist/src/__tests__/stdlib/bossbar.test.d.ts +4 -0
  3178. package/dist/src/__tests__/stdlib/bossbar.test.js +72 -0
  3179. package/dist/src/__tests__/stdlib/color.test.d.ts +4 -0
  3180. package/dist/src/__tests__/stdlib/color.test.js +84 -0
  3181. package/dist/src/__tests__/stdlib/combat.test.d.ts +4 -0
  3182. package/dist/src/__tests__/stdlib/combat.test.js +64 -0
  3183. package/dist/src/__tests__/stdlib/cooldown.test.d.ts +4 -0
  3184. package/dist/src/__tests__/stdlib/cooldown.test.js +64 -0
  3185. package/dist/src/__tests__/stdlib/dialog.test.d.ts +6 -0
  3186. package/dist/src/__tests__/stdlib/dialog.test.js +150 -0
  3187. package/dist/src/__tests__/stdlib/ecs.test.d.ts +4 -0
  3188. package/dist/src/__tests__/stdlib/ecs.test.js +81 -0
  3189. package/dist/src/__tests__/stdlib/effects.test.d.ts +4 -0
  3190. package/dist/src/__tests__/stdlib/effects.test.js +72 -0
  3191. package/dist/src/__tests__/stdlib/events.test.d.ts +4 -0
  3192. package/dist/src/__tests__/stdlib/events.test.js +55 -0
  3193. package/dist/src/__tests__/stdlib/expr.test.d.ts +4 -0
  3194. package/dist/src/__tests__/stdlib/expr.test.js +77 -0
  3195. package/dist/src/__tests__/stdlib/fft.test.d.ts +4 -0
  3196. package/dist/src/__tests__/stdlib/fft.test.js +82 -0
  3197. package/dist/src/__tests__/stdlib/graph.test.d.ts +4 -0
  3198. package/dist/src/__tests__/stdlib/graph.test.js +102 -0
  3199. package/dist/src/__tests__/stdlib/interactions.test.d.ts +4 -0
  3200. package/dist/src/__tests__/stdlib/interactions.test.js +60 -0
  3201. package/dist/src/__tests__/stdlib/inventory.test.d.ts +4 -0
  3202. package/dist/src/__tests__/stdlib/inventory.test.js +68 -0
  3203. package/dist/src/__tests__/stdlib/linalg.test.d.ts +5 -0
  3204. package/dist/src/__tests__/stdlib/linalg.test.js +78 -0
  3205. package/dist/src/__tests__/stdlib/map.test.d.ts +1 -0
  3206. package/dist/src/__tests__/stdlib/map.test.js +84 -0
  3207. package/dist/src/__tests__/stdlib/math.test.js +19 -6
  3208. package/dist/src/__tests__/stdlib/math_hp.test.d.ts +4 -0
  3209. package/dist/src/__tests__/stdlib/math_hp.test.js +80 -0
  3210. package/dist/src/__tests__/stdlib/mobs.test.d.ts +4 -0
  3211. package/dist/src/__tests__/stdlib/mobs.test.js +61 -0
  3212. package/dist/src/__tests__/stdlib/noise.test.d.ts +4 -0
  3213. package/dist/src/__tests__/stdlib/noise.test.js +73 -0
  3214. package/dist/src/__tests__/stdlib/ode.test.d.ts +4 -0
  3215. package/dist/src/__tests__/stdlib/ode.test.js +68 -0
  3216. package/dist/src/__tests__/stdlib/parabola.test.d.ts +4 -0
  3217. package/dist/src/__tests__/stdlib/parabola.test.js +77 -0
  3218. package/dist/src/__tests__/stdlib/particles.test.d.ts +4 -0
  3219. package/dist/src/__tests__/stdlib/particles.test.js +68 -0
  3220. package/dist/src/__tests__/stdlib/physics.test.d.ts +4 -0
  3221. package/dist/src/__tests__/stdlib/physics.test.js +76 -0
  3222. package/dist/src/__tests__/stdlib/player.test.d.ts +4 -0
  3223. package/dist/src/__tests__/stdlib/player.test.js +64 -0
  3224. package/dist/src/__tests__/stdlib/quaternion.test.d.ts +4 -0
  3225. package/dist/src/__tests__/stdlib/quaternion.test.js +73 -0
  3226. package/dist/src/__tests__/stdlib/queue.test.d.ts +1 -0
  3227. package/dist/src/__tests__/stdlib/queue.test.js +97 -0
  3228. package/dist/src/__tests__/stdlib/random.test.d.ts +4 -0
  3229. package/dist/src/__tests__/stdlib/random.test.js +76 -0
  3230. package/dist/src/__tests__/stdlib/result.test.d.ts +12 -0
  3231. package/dist/src/__tests__/stdlib/result.test.js +329 -0
  3232. package/dist/src/__tests__/stdlib/scheduler.test.d.ts +6 -0
  3233. package/dist/src/__tests__/stdlib/scheduler.test.js +188 -0
  3234. package/dist/src/__tests__/stdlib/set_int.test.d.ts +1 -0
  3235. package/dist/src/__tests__/stdlib/set_int.test.js +88 -0
  3236. package/dist/src/__tests__/stdlib/sets.test.d.ts +6 -0
  3237. package/dist/src/__tests__/stdlib/sets.test.js +60 -0
  3238. package/dist/src/__tests__/stdlib/signal.test.d.ts +4 -0
  3239. package/dist/src/__tests__/stdlib/signal.test.js +84 -0
  3240. package/dist/src/__tests__/stdlib/sort-v2.test.d.ts +4 -0
  3241. package/dist/src/__tests__/stdlib/sort-v2.test.js +131 -0
  3242. package/dist/src/__tests__/stdlib/spawn.test.d.ts +4 -0
  3243. package/dist/src/__tests__/stdlib/spawn.test.js +68 -0
  3244. package/dist/src/__tests__/stdlib/state.test.d.ts +5 -0
  3245. package/dist/src/__tests__/stdlib/state.test.js +176 -0
  3246. package/dist/src/__tests__/stdlib/string.test.d.ts +12 -0
  3247. package/dist/src/__tests__/stdlib/string.test.js +231 -0
  3248. package/dist/src/__tests__/stdlib/strings.test.d.ts +4 -0
  3249. package/dist/src/__tests__/stdlib/strings.test.js +83 -0
  3250. package/dist/src/__tests__/stdlib/tags.test.d.ts +4 -0
  3251. package/dist/src/__tests__/stdlib/tags.test.js +57 -0
  3252. package/dist/src/__tests__/stdlib/teams.test.d.ts +4 -0
  3253. package/dist/src/__tests__/stdlib/teams.test.js +72 -0
  3254. package/dist/src/__tests__/stdlib/timer.test.d.ts +4 -0
  3255. package/dist/src/__tests__/stdlib/timer.test.js +79 -0
  3256. package/dist/src/__tests__/stdlib/vec.test.d.ts +5 -0
  3257. package/dist/src/__tests__/stdlib/vec.test.js +94 -0
  3258. package/dist/src/__tests__/stdlib/world.test.d.ts +4 -0
  3259. package/dist/src/__tests__/stdlib/world.test.js +72 -0
  3260. package/dist/src/__tests__/stdlib-advanced.test.d.ts +4 -0
  3261. package/dist/src/__tests__/stdlib-advanced.test.js +374 -0
  3262. package/dist/src/__tests__/stdlib-bigint.test.d.ts +7 -0
  3263. package/dist/src/__tests__/stdlib-bigint.test.js +426 -0
  3264. package/dist/src/__tests__/stdlib-math.test.d.ts +7 -0
  3265. package/dist/src/__tests__/stdlib-math.test.js +351 -0
  3266. package/dist/src/__tests__/stdlib-vec.test.d.ts +4 -0
  3267. package/dist/src/__tests__/stdlib-vec.test.js +263 -0
  3268. package/dist/src/__tests__/struct-display.test.d.ts +1 -0
  3269. package/dist/src/__tests__/struct-display.test.js +64 -0
  3270. package/dist/src/__tests__/structure-optimizer.test.d.ts +1 -0
  3271. package/dist/src/__tests__/structure-optimizer.test.js +33 -0
  3272. package/dist/src/__tests__/test-framework/runner.test.d.ts +10 -0
  3273. package/dist/src/__tests__/test-framework/runner.test.js +193 -0
  3274. package/dist/src/__tests__/timer-debug.test.d.ts +1 -0
  3275. package/dist/src/__tests__/timer-debug.test.js +33 -0
  3276. package/dist/src/__tests__/tuner/adapters.test.d.ts +14 -0
  3277. package/dist/src/__tests__/tuner/adapters.test.js +194 -0
  3278. package/dist/src/__tests__/tuner/simulator-extra.test.d.ts +4 -0
  3279. package/dist/src/__tests__/tuner/simulator-extra.test.js +193 -0
  3280. package/dist/src/__tests__/typechecker-coverage.test.d.ts +30 -0
  3281. package/dist/src/__tests__/typechecker-coverage.test.js +627 -0
  3282. package/dist/src/__tests__/typechecker.test.js +8 -6
  3283. package/dist/src/__tests__/var-allocator.test.d.ts +1 -0
  3284. package/dist/src/__tests__/var-allocator.test.js +69 -0
  3285. package/dist/src/__tests__/watch-decorator.test.d.ts +1 -0
  3286. package/dist/src/__tests__/watch-decorator.test.js +54 -0
  3287. package/dist/src/ast/types.d.ts +123 -4
  3288. package/dist/src/cache/incremental.d.ts +13 -14
  3289. package/dist/src/cache/incremental.js +106 -89
  3290. package/dist/src/cache/index.d.ts +8 -2
  3291. package/dist/src/cache/index.js +18 -6
  3292. package/dist/src/cli.d.ts +1 -0
  3293. package/dist/src/cli.js +466 -17
  3294. package/dist/src/codegen/cmdblock/index.d.ts +26 -0
  3295. package/dist/src/codegen/cmdblock/index.js +45 -0
  3296. package/dist/src/codegen/mcfunction/index.d.ts +40 -0
  3297. package/dist/src/codegen/mcfunction/index.js +606 -0
  3298. package/dist/src/codegen/structure/index.d.ts +24 -0
  3299. package/dist/src/codegen/structure/index.js +279 -0
  3300. package/dist/src/codegen/var-allocator.d.ts +45 -0
  3301. package/dist/src/codegen/var-allocator.js +104 -0
  3302. package/dist/src/config/project-config.d.ts +29 -0
  3303. package/dist/src/config/project-config.js +180 -0
  3304. package/dist/src/diagnostics/index.d.ts +9 -0
  3305. package/dist/src/diagnostics/index.js +18 -1
  3306. package/dist/src/emit/compile.d.ts +10 -0
  3307. package/dist/src/emit/compile.js +405 -50
  3308. package/dist/src/emit/index.d.ts +42 -0
  3309. package/dist/src/emit/index.js +326 -14
  3310. package/dist/src/emit/modules.js +24 -5
  3311. package/dist/src/emit/sourcemap.d.ts +23 -27
  3312. package/dist/src/emit/sourcemap.js +52 -30
  3313. package/dist/src/events/types.d.ts +1 -1
  3314. package/dist/src/events/types.js +4 -1
  3315. package/dist/src/formatter/index.js +33 -8
  3316. package/dist/src/hir/deprecated.d.ts +13 -0
  3317. package/dist/src/hir/deprecated.js +218 -0
  3318. package/dist/src/hir/lower.js +199 -9
  3319. package/dist/src/hir/monomorphize.js +32 -6
  3320. package/dist/src/hir/types.d.ts +80 -2
  3321. package/dist/src/index.d.ts +6 -0
  3322. package/dist/src/index.js +18 -3
  3323. package/dist/src/ir/builder.d.ts +33 -0
  3324. package/dist/src/ir/builder.js +99 -0
  3325. package/dist/src/ir/types.d.ts +132 -0
  3326. package/dist/src/ir/types.js +15 -0
  3327. package/dist/src/lexer/index.d.ts +2 -1
  3328. package/dist/src/lexer/index.js +39 -3
  3329. package/dist/src/lint/index.d.ts +45 -0
  3330. package/dist/src/lint/index.js +930 -0
  3331. package/dist/src/lir/lower.js +34 -0
  3332. package/dist/src/lir/types.d.ts +2 -0
  3333. package/dist/src/lowering/index.d.ts +188 -0
  3334. package/dist/src/lowering/index.js +3405 -0
  3335. package/dist/src/lsp/main.js +0 -0
  3336. package/dist/src/lsp/server.js +423 -123
  3337. package/dist/src/mir/lower.js +1075 -88
  3338. package/dist/src/mir/macro.js +36 -2
  3339. package/dist/src/mir/types.d.ts +17 -0
  3340. package/dist/src/mir/verify.js +11 -0
  3341. package/dist/src/optimizer/auto-inline.d.ts +2 -0
  3342. package/dist/src/optimizer/auto-inline.js +67 -0
  3343. package/dist/src/optimizer/commands.d.ts +38 -0
  3344. package/dist/src/optimizer/commands.js +451 -0
  3345. package/dist/src/optimizer/cse.d.ts +20 -0
  3346. package/dist/src/optimizer/cse.js +234 -0
  3347. package/dist/src/optimizer/inline.d.ts +26 -0
  3348. package/dist/src/optimizer/inline.js +286 -0
  3349. package/dist/src/optimizer/interprocedural.js +8 -0
  3350. package/dist/src/optimizer/licm.d.ts +32 -0
  3351. package/dist/src/optimizer/licm.js +371 -0
  3352. package/dist/src/optimizer/passes.d.ts +34 -0
  3353. package/dist/src/optimizer/passes.js +243 -0
  3354. package/dist/src/optimizer/pipeline.js +12 -2
  3355. package/dist/src/optimizer/strength_reduction.d.ts +15 -0
  3356. package/dist/src/optimizer/strength_reduction.js +90 -0
  3357. package/dist/src/optimizer/structure.d.ts +9 -0
  3358. package/dist/src/optimizer/structure.js +356 -0
  3359. package/dist/src/optimizer/tco.d.ts +53 -0
  3360. package/dist/src/optimizer/tco.js +238 -0
  3361. package/dist/src/parser/index.d.ts +33 -0
  3362. package/dist/src/parser/index.js +480 -71
  3363. package/dist/src/repl-server.d.ts +13 -0
  3364. package/dist/src/repl-server.js +127 -0
  3365. package/dist/src/runtime/index.js +24 -0
  3366. package/dist/src/structs/expand.d.ts +15 -0
  3367. package/dist/src/structs/expand.js +46 -0
  3368. package/dist/src/testing/runner.d.ts +40 -0
  3369. package/dist/src/testing/runner.js +237 -0
  3370. package/dist/src/typechecker/index.d.ts +3 -0
  3371. package/dist/src/typechecker/index.js +265 -13
  3372. package/dist/src2/__tests__/e2e/basic.test.d.ts +8 -0
  3373. package/dist/src2/__tests__/e2e/basic.test.js +140 -0
  3374. package/dist/src2/__tests__/e2e/macros.test.d.ts +9 -0
  3375. package/dist/src2/__tests__/e2e/macros.test.js +182 -0
  3376. package/dist/src2/__tests__/e2e/migrate.test.d.ts +13 -0
  3377. package/dist/src2/__tests__/e2e/migrate.test.js +2739 -0
  3378. package/dist/src2/__tests__/hir/desugar.test.d.ts +1 -0
  3379. package/dist/src2/__tests__/hir/desugar.test.js +234 -0
  3380. package/dist/src2/__tests__/lir/lower.test.d.ts +1 -0
  3381. package/dist/src2/__tests__/lir/lower.test.js +559 -0
  3382. package/dist/src2/__tests__/lir/types.test.d.ts +1 -0
  3383. package/dist/src2/__tests__/lir/types.test.js +185 -0
  3384. package/dist/src2/__tests__/lir/verify.test.d.ts +1 -0
  3385. package/dist/src2/__tests__/lir/verify.test.js +221 -0
  3386. package/dist/src2/__tests__/mir/arithmetic.test.d.ts +1 -0
  3387. package/dist/src2/__tests__/mir/arithmetic.test.js +130 -0
  3388. package/dist/src2/__tests__/mir/control-flow.test.d.ts +1 -0
  3389. package/dist/src2/__tests__/mir/control-flow.test.js +205 -0
  3390. package/dist/src2/__tests__/mir/verify.test.d.ts +1 -0
  3391. package/dist/src2/__tests__/mir/verify.test.js +223 -0
  3392. package/dist/src2/__tests__/optimizer/block_merge.test.d.ts +1 -0
  3393. package/dist/src2/__tests__/optimizer/block_merge.test.js +78 -0
  3394. package/dist/src2/__tests__/optimizer/branch_simplify.test.d.ts +1 -0
  3395. package/dist/src2/__tests__/optimizer/branch_simplify.test.js +58 -0
  3396. package/dist/src2/__tests__/optimizer/constant_fold.test.d.ts +1 -0
  3397. package/dist/src2/__tests__/optimizer/constant_fold.test.js +131 -0
  3398. package/dist/src2/__tests__/optimizer/copy_prop.test.d.ts +1 -0
  3399. package/dist/src2/__tests__/optimizer/copy_prop.test.js +91 -0
  3400. package/dist/src2/__tests__/optimizer/dce.test.d.ts +1 -0
  3401. package/dist/src2/__tests__/optimizer/dce.test.js +76 -0
  3402. package/dist/src2/__tests__/optimizer/pipeline.test.d.ts +1 -0
  3403. package/dist/src2/__tests__/optimizer/pipeline.test.js +102 -0
  3404. package/dist/src2/emit/compile.d.ts +19 -0
  3405. package/dist/src2/emit/compile.js +80 -0
  3406. package/dist/src2/emit/index.d.ts +17 -0
  3407. package/dist/src2/emit/index.js +172 -0
  3408. package/dist/src2/hir/lower.d.ts +15 -0
  3409. package/dist/src2/hir/lower.js +378 -0
  3410. package/dist/src2/hir/types.d.ts +373 -0
  3411. package/dist/src2/hir/types.js +16 -0
  3412. package/dist/src2/lir/lower.d.ts +15 -0
  3413. package/dist/src2/lir/lower.js +453 -0
  3414. package/dist/src2/lir/types.d.ts +136 -0
  3415. package/dist/src2/lir/types.js +11 -0
  3416. package/dist/src2/lir/verify.d.ts +14 -0
  3417. package/dist/src2/lir/verify.js +113 -0
  3418. package/dist/src2/mir/lower.d.ts +9 -0
  3419. package/dist/src2/mir/lower.js +1030 -0
  3420. package/dist/src2/mir/macro.d.ts +22 -0
  3421. package/dist/src2/mir/macro.js +168 -0
  3422. package/dist/src2/mir/types.d.ts +183 -0
  3423. package/dist/src2/mir/types.js +11 -0
  3424. package/dist/src2/mir/verify.d.ts +16 -0
  3425. package/dist/src2/mir/verify.js +216 -0
  3426. package/dist/src2/optimizer/block_merge.d.ts +12 -0
  3427. package/dist/src2/optimizer/block_merge.js +84 -0
  3428. package/dist/src2/optimizer/branch_simplify.d.ts +9 -0
  3429. package/dist/src2/optimizer/branch_simplify.js +28 -0
  3430. package/dist/src2/optimizer/constant_fold.d.ts +10 -0
  3431. package/dist/src2/optimizer/constant_fold.js +85 -0
  3432. package/dist/src2/optimizer/copy_prop.d.ts +9 -0
  3433. package/dist/src2/optimizer/copy_prop.js +113 -0
  3434. package/dist/src2/optimizer/dce.d.ts +8 -0
  3435. package/dist/src2/optimizer/dce.js +155 -0
  3436. package/dist/src2/optimizer/pipeline.d.ts +10 -0
  3437. package/dist/src2/optimizer/pipeline.js +42 -0
  3438. package/dist/swap_test.map.json +14 -0
  3439. package/dist/tsconfig.tsbuildinfo +1 -0
  3440. package/dist/typechecker/index.d.ts +61 -0
  3441. package/dist/typechecker/index.js +1034 -0
  3442. package/dist/types/entity-hierarchy.d.ts +29 -0
  3443. package/dist/types/entity-hierarchy.js +107 -0
  3444. package/doc-drafts/redscript-docs/docs/en/stdlib/graph.md +104 -0
  3445. package/doc-drafts/redscript-docs/docs/en/stdlib/parabola.md +113 -0
  3446. package/doc-drafts/redscript-docs/docs/en/stdlib/pathfind.md +104 -0
  3447. package/doc-drafts/redscript-docs/docs/en/stdlib/physics.md +134 -0
  3448. package/doc-drafts/redscript-docs/docs/en/stdlib/quaternion.md +135 -0
  3449. package/doc-drafts/redscript-docs/docs/zh/stdlib/graph.md +104 -0
  3450. package/doc-drafts/redscript-docs/docs/zh/stdlib/parabola.md +113 -0
  3451. package/doc-drafts/redscript-docs/docs/zh/stdlib/pathfind.md +104 -0
  3452. package/doc-drafts/redscript-docs/docs/zh/stdlib/physics.md +134 -0
  3453. package/doc-drafts/redscript-docs/docs/zh/stdlib/quaternion.md +135 -0
  3454. package/docs/stdlib/result.md +156 -0
  3455. package/docs/stdlib/result.zh.md +156 -0
  3456. package/editors/vscode/fixtures/test.mcrs +7 -0
  3457. package/editors/vscode/out/extension.js +2763 -340
  3458. package/editors/vscode/out/lsp-server.js +15322 -0
  3459. package/editors/vscode/package-lock.json +9 -4
  3460. package/editors/vscode/package.json +1 -1
  3461. package/editors/vscode/snippets/redscript.json +109 -30
  3462. package/editors/vscode/src/extension.ts +4 -7
  3463. package/examples/display-demo.mcrs +64 -0
  3464. package/examples/game/racing.mcrs +301 -0
  3465. package/examples/game/tower_defense.mcrs +311 -0
  3466. package/examples/math/physics_sim.mcrs +322 -0
  3467. package/examples/rpg/boss_fight.mcrs +313 -0
  3468. package/examples/rpg/health_system.mcrs +237 -0
  3469. package/examples/rpg/inventory.mcrs +265 -0
  3470. package/examples/util/debug_hud.mcrs +279 -0
  3471. package/jest.config.js +15 -2
  3472. package/package.json +12 -3
  3473. package/playground/index.html +823 -0
  3474. package/scripts/gen-docs.ts +533 -0
  3475. package/scripts/update-redscript-docs-stdlib.sh +770 -0
  3476. package/src/__tests__/array-dynamic.test.ts +42 -0
  3477. package/src/__tests__/budget.test.ts +5 -0
  3478. package/src/__tests__/builtins.test.ts +66 -0
  3479. package/src/__tests__/cache/cache-behavior.test.ts +480 -0
  3480. package/src/__tests__/cache-extra.test.ts +199 -0
  3481. package/src/__tests__/cli-docs.test.ts +77 -0
  3482. package/src/__tests__/cli-init.test.ts +91 -0
  3483. package/src/__tests__/cli-publish.test.ts +190 -0
  3484. package/src/__tests__/cli.test.ts +117 -1
  3485. package/src/__tests__/compile-preprocess.test.ts +366 -0
  3486. package/src/__tests__/compiler/break-stmt.test.ts +66 -0
  3487. package/src/__tests__/compiler/const-decl.test.ts +141 -0
  3488. package/src/__tests__/compiler/continue-stmt.test.ts +81 -0
  3489. package/src/__tests__/compiler/coroutine-extended.test.ts +723 -0
  3490. package/src/__tests__/compiler/deprecated.test.ts +305 -0
  3491. package/src/__tests__/compiler/do-while.test.ts +130 -0
  3492. package/src/__tests__/compiler/enum-payload.test.ts +299 -0
  3493. package/src/__tests__/compiler/interface.test.ts +287 -0
  3494. package/src/__tests__/compiler/labeled-loops.test.ts +279 -0
  3495. package/src/__tests__/compiler/match-string.test.ts +45 -0
  3496. package/src/__tests__/compiler/memoize.test.ts +126 -0
  3497. package/src/__tests__/compiler/method-chain.test.ts +121 -0
  3498. package/src/__tests__/compiler/module-import.test.ts +240 -0
  3499. package/src/__tests__/compiler/option-extensions.test.ts +207 -0
  3500. package/src/__tests__/compiler/profile-decorator.test.ts +79 -0
  3501. package/src/__tests__/compiler/string-advanced.test.ts +310 -0
  3502. package/src/__tests__/compiler/struct-extends.test.ts +109 -0
  3503. package/src/__tests__/compiler/throttle-retry.test.ts +191 -0
  3504. package/src/__tests__/compiler/tuple-type.test.ts +263 -0
  3505. package/src/__tests__/compiler/watch-decorator.test.ts +72 -0
  3506. package/src/__tests__/config/project-config.test.ts +181 -0
  3507. package/src/__tests__/config-decorator.test.ts +157 -0
  3508. package/src/__tests__/diagnostics-extra.test.ts +155 -0
  3509. package/src/__tests__/e2e/ecs-stdlib.test.ts +371 -0
  3510. package/src/__tests__/e2e/events-stdlib.test.ts +50 -0
  3511. package/src/__tests__/e2e/fft-stdlib.test.ts +313 -0
  3512. package/src/__tests__/e2e/ode-stdlib.test.ts +68 -0
  3513. package/src/__tests__/e2e/stdlib-e2e.test.ts +266 -0
  3514. package/src/__tests__/emit/compile-branches.test.ts +135 -0
  3515. package/src/__tests__/emit/compile-coverage.test.ts +696 -0
  3516. package/src/__tests__/emit/compile-extra-branches.test.ts +228 -0
  3517. package/src/__tests__/emit/compile-mocked-branches.test.ts +249 -0
  3518. package/src/__tests__/emit/compile.test.ts +107 -0
  3519. package/src/__tests__/emit/execute-chain.test.ts +114 -0
  3520. package/src/__tests__/emit/index.test.ts +190 -0
  3521. package/src/__tests__/emit/modules-branches.test.ts +90 -0
  3522. package/src/__tests__/emit/modules-coverage.test.ts +241 -0
  3523. package/src/__tests__/emit/modules-errors.test.ts +192 -0
  3524. package/src/__tests__/emit/modules-extra.test.ts +80 -0
  3525. package/src/__tests__/emit/modules-rewrite.test.ts +232 -0
  3526. package/src/__tests__/emit/source-map.test.ts +152 -0
  3527. package/src/__tests__/enum.test.ts +5 -2
  3528. package/src/__tests__/error-recovery.test.ts +226 -0
  3529. package/src/__tests__/events-types-extra.test.ts +110 -0
  3530. package/src/__tests__/events-types.test.ts +66 -0
  3531. package/src/__tests__/for-each.test.ts +135 -0
  3532. package/src/__tests__/formatter.test.ts +15 -5
  3533. package/src/__tests__/generics.test.ts +16 -9
  3534. package/src/__tests__/hir/lower-extra.test.ts +151 -0
  3535. package/src/__tests__/hir/monomorphize-coverage.test.ts +432 -0
  3536. package/src/__tests__/hir/monomorphize-extra.test.ts +220 -0
  3537. package/src/__tests__/hir/monomorphize-extra2.test.ts +350 -0
  3538. package/src/__tests__/impl.test.ts +12 -8
  3539. package/src/__tests__/incremental.test.ts +10 -2
  3540. package/src/__tests__/index-extra.test.ts +79 -0
  3541. package/src/__tests__/lexer.test.ts +2 -2
  3542. package/src/__tests__/lint/hir-coverage.test.ts +1716 -0
  3543. package/src/__tests__/lint/rules-coverage.test.ts +598 -0
  3544. package/src/__tests__/lint/rules.test.ts +230 -0
  3545. package/src/__tests__/lir/lower.test.ts +33 -0
  3546. package/src/__tests__/lir/verify.test.ts +33 -0
  3547. package/src/__tests__/lsp/completion.test.ts +687 -0
  3548. package/src/__tests__/lsp/definition.test.ts +499 -0
  3549. package/src/__tests__/lsp/diagnostics.test.ts +108 -0
  3550. package/src/__tests__/lsp/hover-docs.test.ts +222 -0
  3551. package/src/__tests__/lsp-logic.test.ts +162 -0
  3552. package/src/__tests__/lsp.test.ts +4 -1
  3553. package/src/__tests__/match.test.ts +212 -0
  3554. package/src/__tests__/mc-integration/item-entity-events.test.ts +303 -0
  3555. package/src/__tests__/mc-integration/stdlib-coverage-2.test.ts +822 -0
  3556. package/src/__tests__/mc-integration/stdlib-coverage-3.test.ts +1105 -0
  3557. package/src/__tests__/mc-integration/stdlib-coverage-4.test.ts +1366 -0
  3558. package/src/__tests__/mc-integration/stdlib-coverage-5.test.ts +1245 -0
  3559. package/src/__tests__/mc-integration/stdlib-coverage-6.test.ts +755 -0
  3560. package/src/__tests__/mc-integration/stdlib-coverage-7.test.ts +771 -0
  3561. package/src/__tests__/mc-integration/stdlib-coverage.test.ts +704 -0
  3562. package/src/__tests__/mc-integration/syntax-coverage.test.ts +469 -0
  3563. package/src/__tests__/mc-integration.test.ts +184 -6
  3564. package/src/__tests__/mc-validator-coverage.test.ts +325 -0
  3565. package/src/__tests__/mc-validator-extra.test.ts +252 -0
  3566. package/src/__tests__/mir/lower-extra.test.ts +402 -0
  3567. package/src/__tests__/mir/lower-extra2.test.ts +348 -0
  3568. package/src/__tests__/mir/lower-extra3.test.ts +277 -0
  3569. package/src/__tests__/mir/lower-extra4.test.ts +636 -0
  3570. package/src/__tests__/mir/lower-extra5.test.ts +612 -0
  3571. package/src/__tests__/mir/lower-extra6.test.ts +520 -0
  3572. package/src/__tests__/mir/lower-extra7.test.ts +1045 -0
  3573. package/src/__tests__/mir/lower-extra8.test.ts +704 -0
  3574. package/src/__tests__/mir/lower-extra9.test.ts +821 -0
  3575. package/src/__tests__/optimizer/auto-inline.test.ts +206 -0
  3576. package/src/__tests__/optimizer/cse.test.ts +195 -0
  3577. package/src/__tests__/optimizer/inline_fn.test.ts +263 -0
  3578. package/src/__tests__/optimizer/licm.test.ts +358 -0
  3579. package/src/__tests__/optimizer/nbt-coalesce.test.ts +147 -0
  3580. package/src/__tests__/optimizer/optimizer-extended.test.ts +1081 -0
  3581. package/src/__tests__/optimizer/scoreboard-batch.test.ts +141 -0
  3582. package/src/__tests__/optimizer/strength-reduction.test.ts +111 -0
  3583. package/src/__tests__/optimizer/tco-coverage.test.ts +309 -0
  3584. package/src/__tests__/optimizer/tco.test.ts +238 -0
  3585. package/src/__tests__/option.test.ts +14 -7
  3586. package/src/__tests__/parser-coverage.test.ts +576 -0
  3587. package/src/__tests__/parser-extra.test.ts +531 -0
  3588. package/src/__tests__/parser.test.ts +17 -3
  3589. package/src/__tests__/repl-extra.test.ts +195 -0
  3590. package/src/__tests__/repl-server-extra.test.ts +150 -0
  3591. package/src/__tests__/repl-server.test.ts +122 -0
  3592. package/src/__tests__/runtime-extra.test.ts +862 -0
  3593. package/src/__tests__/runtime.test.ts +194 -0
  3594. package/src/__tests__/singleton-decorator.test.ts +285 -0
  3595. package/src/__tests__/sourcemap.test.ts +1 -1
  3596. package/src/__tests__/stdlib/advanced.test.ts +312 -0
  3597. package/src/__tests__/stdlib/arr-len.test.ts +231 -0
  3598. package/src/__tests__/stdlib/bigint.test.ts +57 -0
  3599. package/src/__tests__/stdlib/bits.test.ts +75 -0
  3600. package/src/__tests__/stdlib/bossbar.test.ts +45 -0
  3601. package/src/__tests__/stdlib/color.test.ts +60 -0
  3602. package/src/__tests__/stdlib/combat.test.ts +35 -0
  3603. package/src/__tests__/stdlib/cooldown.test.ts +35 -0
  3604. package/src/__tests__/stdlib/dialog.test.ts +140 -0
  3605. package/src/__tests__/stdlib/ecs.test.ts +54 -0
  3606. package/src/__tests__/stdlib/effects.test.ts +45 -0
  3607. package/src/__tests__/stdlib/events.test.ts +23 -0
  3608. package/src/__tests__/stdlib/expr.test.ts +48 -0
  3609. package/src/__tests__/stdlib/fft.test.ts +54 -0
  3610. package/src/__tests__/stdlib/graph.test.ts +77 -0
  3611. package/src/__tests__/stdlib/interactions.test.ts +30 -0
  3612. package/src/__tests__/stdlib/inventory.test.ts +40 -0
  3613. package/src/__tests__/stdlib/linalg.test.ts +52 -0
  3614. package/src/__tests__/stdlib/map.test.ts +55 -0
  3615. package/src/__tests__/stdlib/math.test.ts +19 -5
  3616. package/src/__tests__/stdlib/math_hp.test.ts +55 -0
  3617. package/src/__tests__/stdlib/mobs.test.ts +40 -0
  3618. package/src/__tests__/stdlib/noise.test.ts +46 -0
  3619. package/src/__tests__/stdlib/ode.test.ts +40 -0
  3620. package/src/__tests__/stdlib/parabola.test.ts +51 -0
  3621. package/src/__tests__/stdlib/particles.test.ts +40 -0
  3622. package/src/__tests__/stdlib/physics.test.ts +50 -0
  3623. package/src/__tests__/stdlib/player.test.ts +35 -0
  3624. package/src/__tests__/stdlib/quaternion.test.ts +46 -0
  3625. package/src/__tests__/stdlib/queue.test.ts +73 -0
  3626. package/src/__tests__/stdlib/random.test.ts +50 -0
  3627. package/src/__tests__/stdlib/result.test.ts +326 -0
  3628. package/src/__tests__/stdlib/scheduler.test.ts +182 -0
  3629. package/src/__tests__/stdlib/set_int.test.ts +62 -0
  3630. package/src/__tests__/stdlib/sets.test.ts +28 -0
  3631. package/src/__tests__/stdlib/signal.test.ts +60 -0
  3632. package/src/__tests__/stdlib/sort-v2.test.ts +111 -0
  3633. package/src/__tests__/stdlib/spawn.test.ts +40 -0
  3634. package/src/__tests__/stdlib/state.test.ts +164 -0
  3635. package/src/__tests__/stdlib/string.test.ts +224 -0
  3636. package/src/__tests__/stdlib/strings.test.ts +55 -0
  3637. package/src/__tests__/stdlib/tags.test.ts +32 -0
  3638. package/src/__tests__/stdlib/teams.test.ts +45 -0
  3639. package/src/__tests__/stdlib/timer.test.ts +53 -0
  3640. package/src/__tests__/stdlib/vec.test.ts +72 -0
  3641. package/src/__tests__/stdlib/world.test.ts +45 -0
  3642. package/src/__tests__/struct-display.test.ts +69 -0
  3643. package/src/__tests__/test-framework/runner.test.ts +208 -0
  3644. package/src/__tests__/tuner/adapters.test.ts +232 -0
  3645. package/src/__tests__/tuner/simulator-extra.test.ts +222 -0
  3646. package/src/__tests__/tuple.test.ts +11 -4
  3647. package/src/__tests__/typechecker-coverage.test.ts +671 -0
  3648. package/src/__tests__/typechecker.test.ts +9 -6
  3649. package/src/__tests__/watch-decorator.test.ts +59 -0
  3650. package/src/ast/types.ts +78 -4
  3651. package/src/cache/incremental.ts +128 -99
  3652. package/src/cache/index.ts +35 -8
  3653. package/src/cli.ts +538 -29
  3654. package/src/config/project-config.ts +176 -0
  3655. package/src/diagnostics/index.ts +22 -0
  3656. package/src/docs.ts +98 -0
  3657. package/src/emit/compile.ts +417 -51
  3658. package/src/emit/index.ts +389 -18
  3659. package/src/emit/modules.ts +21 -4
  3660. package/src/emit/sourcemap.ts +64 -43
  3661. package/src/events/types.ts +4 -1
  3662. package/src/examples/capture_the_flag.mcrs +2 -2
  3663. package/src/examples/hunger_games.mcrs +4 -4
  3664. package/src/examples/parkour_race.mcrs +8 -8
  3665. package/src/examples/tutorial_02_variables.mcrs +5 -5
  3666. package/src/examples/tutorial_03_functions_structs.mcrs +6 -6
  3667. package/src/examples/tutorial_04_selectors.mcrs +1 -1
  3668. package/src/examples/tutorial_05_decorators.mcrs +3 -3
  3669. package/src/examples/tutorial_06_math_particles.mcrs +9 -9
  3670. package/src/examples/tutorial_07_random.mcrs +4 -4
  3671. package/src/examples/tutorial_08_coroutine.mcrs +7 -7
  3672. package/src/examples/tutorial_09_precision.mcrs +12 -12
  3673. package/src/examples/tutorial_10_kill_race.mcrs +7 -7
  3674. package/src/examples/zombie_survival.mcrs +7 -7
  3675. package/src/formatter/index.ts +35 -8
  3676. package/src/hir/deprecated.ts +212 -0
  3677. package/src/hir/lower.ts +225 -11
  3678. package/src/hir/monomorphize.ts +34 -7
  3679. package/src/hir/types.ts +38 -2
  3680. package/src/index.ts +23 -3
  3681. package/src/lexer/index.ts +45 -6
  3682. package/src/lint/index.ts +922 -0
  3683. package/src/lir/lower.ts +36 -0
  3684. package/src/lir/types.ts +4 -0
  3685. package/src/lsp/server.ts +418 -118
  3686. package/src/mir/lower.ts +1080 -92
  3687. package/src/mir/macro.ts +30 -2
  3688. package/src/mir/types.ts +14 -0
  3689. package/src/mir/verify.ts +12 -2
  3690. package/src/optimizer/auto-inline.ts +86 -0
  3691. package/src/optimizer/copy_prop.ts +2 -2
  3692. package/src/optimizer/coroutine.ts +3 -3
  3693. package/src/optimizer/cse.ts +205 -0
  3694. package/src/optimizer/dce.ts +2 -2
  3695. package/src/optimizer/inline.ts +335 -0
  3696. package/src/optimizer/interprocedural.ts +9 -1
  3697. package/src/optimizer/licm.ts +454 -0
  3698. package/src/optimizer/nbt-coalesce.ts +109 -0
  3699. package/src/optimizer/pipeline.ts +16 -2
  3700. package/src/optimizer/scoreboard-batch.ts +52 -0
  3701. package/src/optimizer/strength_reduction.ts +95 -0
  3702. package/src/optimizer/tco.ts +267 -0
  3703. package/src/optimizer/unroll.ts +2 -2
  3704. package/src/parser/index.ts +488 -66
  3705. package/src/repl-server.ts +102 -0
  3706. package/src/runtime/index.ts +26 -0
  3707. package/src/stdlib/advanced.mcrs +271 -101
  3708. package/src/stdlib/bigint.mcrs +224 -11
  3709. package/src/stdlib/bits.mcrs +75 -12
  3710. package/src/stdlib/bossbar.mcrs +37 -8
  3711. package/src/stdlib/calculus.mcrs +82 -26
  3712. package/src/stdlib/color.mcrs +98 -16
  3713. package/src/stdlib/combat.mcrs +36 -12
  3714. package/src/stdlib/cooldown.mcrs +19 -0
  3715. package/src/stdlib/dialog.mcrs +93 -0
  3716. package/src/stdlib/easing.mcrs +132 -12
  3717. package/src/stdlib/ecs.mcrs +355 -0
  3718. package/src/stdlib/effects.mcrs +88 -12
  3719. package/src/stdlib/events.mcrs +48 -0
  3720. package/src/stdlib/expr.mcrs +18 -3
  3721. package/src/stdlib/fft.mcrs +187 -0
  3722. package/src/stdlib/geometry.mcrs +137 -39
  3723. package/src/stdlib/graph.mcrs +347 -0
  3724. package/src/stdlib/heap.mcrs +49 -8
  3725. package/src/stdlib/i18n/zh.yaml +2891 -0
  3726. package/src/stdlib/interactions.mcrs +43 -20
  3727. package/src/stdlib/inventory.mcrs +14 -3
  3728. package/src/stdlib/linalg.mcrs +415 -0
  3729. package/src/stdlib/list.mcrs +168 -18
  3730. package/src/stdlib/map.mcrs +112 -0
  3731. package/src/stdlib/math.mcrs +68 -18
  3732. package/src/stdlib/math_hp.mcrs +124 -33
  3733. package/src/stdlib/matrix.mcrs +237 -11
  3734. package/src/stdlib/mobs.mcrs +87 -0
  3735. package/src/stdlib/noise.mcrs +65 -21
  3736. package/src/stdlib/ode.mcrs +264 -0
  3737. package/src/stdlib/parabola.mcrs +104 -29
  3738. package/src/stdlib/particles.mcrs +78 -21
  3739. package/src/stdlib/pathfind.mcrs +89 -35
  3740. package/src/stdlib/physics.mcrs +134 -26
  3741. package/src/stdlib/player.mcrs +18 -0
  3742. package/src/stdlib/quaternion.mcrs +213 -9
  3743. package/src/stdlib/queue.mcrs +123 -0
  3744. package/src/stdlib/random.mcrs +63 -18
  3745. package/src/stdlib/result.mcrs +111 -0
  3746. package/src/stdlib/scheduler.mcrs +320 -0
  3747. package/src/stdlib/set_int.mcrs +240 -0
  3748. package/src/stdlib/sets.mcrs +49 -19
  3749. package/src/stdlib/signal.mcrs +151 -79
  3750. package/src/stdlib/sort.mcrs +111 -6
  3751. package/src/stdlib/spawn.mcrs +30 -7
  3752. package/src/stdlib/state.mcrs +100 -0
  3753. package/src/stdlib/strings.mcrs +131 -3
  3754. package/src/stdlib/tags.mcrs +2 -2
  3755. package/src/stdlib/teams.mcrs +22 -10
  3756. package/src/stdlib/timer.mcrs +36 -6
  3757. package/src/stdlib/vec.mcrs +44 -9
  3758. package/src/stdlib/world.mcrs +57 -25
  3759. package/src/structs/expand.ts +64 -0
  3760. package/src/testing/runner.ts +271 -0
  3761. package/src/typechecker/index.ts +287 -13
  3762. package/test_trig.ts +43 -0
@@ -8,34 +8,89 @@
8
8
  Object.defineProperty(exports, "__esModule", { value: true });
9
9
  exports.lowerToMIR = lowerToMIR;
10
10
  const macro_1 = require("./macro");
11
+ function formatTypeNode(type) {
12
+ switch (type.kind) {
13
+ case 'named':
14
+ return type.name;
15
+ case 'array':
16
+ return `${formatTypeNode(type.elem)}[]`;
17
+ case 'struct':
18
+ case 'enum':
19
+ return type.name;
20
+ case 'function_type':
21
+ return `fn(${type.params.map(formatTypeNode).join(', ')}) -> ${formatTypeNode(type.return)}`;
22
+ case 'entity':
23
+ return type.entityType;
24
+ case 'selector':
25
+ return type.entityType ? `selector<${type.entityType}>` : 'selector';
26
+ case 'tuple':
27
+ return `(${type.elements.map(formatTypeNode).join(', ')})`;
28
+ case 'option':
29
+ return `Option<${formatTypeNode(type.inner)}>`;
30
+ }
31
+ }
32
+ function formatFunctionSignature(fn) {
33
+ const params = fn.params
34
+ .map(param => `${param.name}: ${formatTypeNode(param.type)}`)
35
+ .join(', ');
36
+ return `fn ${fn.name}(${params}) -> ${formatTypeNode(fn.returnType)}`;
37
+ }
11
38
  // ---------------------------------------------------------------------------
12
39
  // Public API
13
40
  // ---------------------------------------------------------------------------
14
41
  function lowerToMIR(hir, sourceFile) {
15
42
  // Build struct definitions: name → field names
16
43
  const structDefs = new Map();
44
+ // Track @singleton struct names for special expansion of GameState::set(gs) calls
45
+ const singletonStructs = new Set();
17
46
  for (const s of hir.structs) {
18
47
  structDefs.set(s.name, s.fields.map(f => f.name));
48
+ if (s.isSingleton)
49
+ singletonStructs.add(s.name);
19
50
  }
20
51
  // Build enum definitions: enumName → variantName → integer value
21
52
  const enumDefs = new Map();
53
+ // Build enum payload info: enumName → variantName → field list
54
+ const enumPayloads = new Map();
22
55
  for (const e of hir.enums) {
23
56
  const variants = new Map();
57
+ const payloads = new Map();
24
58
  for (const v of e.variants) {
25
59
  variants.set(v.name, v.value ?? 0);
60
+ if (v.fields && v.fields.length > 0) {
61
+ payloads.set(v.name, v.fields);
62
+ }
26
63
  }
27
64
  enumDefs.set(e.name, variants);
65
+ if (payloads.size > 0) {
66
+ enumPayloads.set(e.name, payloads);
67
+ }
28
68
  }
29
- // Build impl method info: typeName → methodName → { hasSelf }
69
+ // Build impl method info: typeName → methodName → { hasSelf, returnStructName? }
30
70
  const implMethods = new Map();
31
71
  for (const ib of hir.implBlocks) {
32
72
  const methods = new Map();
33
73
  for (const m of ib.methods) {
34
74
  const hasSelf = m.params.length > 0 && m.params[0].name === 'self';
35
- methods.set(m.name, { hasSelf });
75
+ const returnStructName = m.returnType.kind === 'struct' ? m.returnType.name : undefined;
76
+ methods.set(m.name, { hasSelf, returnStructName });
36
77
  }
37
78
  implMethods.set(ib.typeName, methods);
38
79
  }
80
+ // Build Display impl registry: typeName → f-string parts from to_string body
81
+ // Used to inline Display::to_string() calls at call sites instead of generating a function.
82
+ const displayImpls = new Map();
83
+ for (const ib of hir.implBlocks) {
84
+ if (ib.traitName === 'Display') {
85
+ const toStringMethod = ib.methods.find(m => m.name === 'to_string');
86
+ if (toStringMethod && toStringMethod.body.length > 0) {
87
+ const firstStmt = toStringMethod.body[0];
88
+ if (firstStmt.kind === 'return' && firstStmt.value && firstStmt.value.kind === 'f_string') {
89
+ displayImpls.set(ib.typeName, firstStmt.value.parts);
90
+ }
91
+ }
92
+ }
93
+ }
39
94
  // Pre-scan for macro functions
40
95
  const macroInfo = (0, macro_1.detectMacroFunctions)(hir);
41
96
  // Build function param info for call_macro generation at call sites
@@ -56,15 +111,27 @@ function lowerToMIR(hir, sourceFile) {
56
111
  }
57
112
  // Shared registry: specializedName → [mirFn, ...helpers]
58
113
  const specializedFnsRegistry = new Map();
114
+ // Build module-level const map: name → integer value (for inlining at use sites)
115
+ const constValues = new Map();
116
+ for (const c of hir.consts) {
117
+ if (c.value.kind === 'int_lit')
118
+ constValues.set(c.name, c.value.value);
119
+ else if (c.value.kind === 'bool_lit')
120
+ constValues.set(c.name, c.value.value ? 1 : 0);
121
+ else if (c.value.kind === 'float_lit')
122
+ constValues.set(c.name, Math.round(c.value.value * 10000));
123
+ }
59
124
  const allFunctions = [];
60
125
  for (const f of hir.functions) {
61
- const { fn, helpers } = lowerFunction(f, hir.namespace, structDefs, implMethods, macroInfo, fnParamInfo, enumDefs, sourceFile, timerCounter, undefined, hirFnMap, specializedFnsRegistry);
126
+ const { fn, helpers } = lowerFunction(f, hir.namespace, structDefs, implMethods, macroInfo, fnParamInfo, enumDefs, sourceFile, timerCounter, undefined, hirFnMap, specializedFnsRegistry, undefined, enumPayloads, constValues, singletonStructs, displayImpls);
62
127
  allFunctions.push(fn, ...helpers);
63
128
  }
64
- // Lower impl block methods
129
+ // Lower impl block methods (skip Display::to_string — inlined at call sites instead)
65
130
  for (const ib of hir.implBlocks) {
131
+ if (ib.traitName === 'Display')
132
+ continue; // Display impls are inlined, not emitted as functions
66
133
  for (const m of ib.methods) {
67
- const { fn, helpers } = lowerImplMethod(m, ib.typeName, hir.namespace, structDefs, implMethods, macroInfo, fnParamInfo, enumDefs, sourceFile, timerCounter);
134
+ const { fn, helpers } = lowerImplMethod(m, ib.typeName, hir.namespace, structDefs, implMethods, macroInfo, fnParamInfo, enumDefs, sourceFile, timerCounter, enumPayloads, constValues);
68
135
  allFunctions.push(fn, ...helpers);
69
136
  }
70
137
  }
@@ -82,12 +149,14 @@ function lowerToMIR(hir, sourceFile) {
82
149
  // Function lowering context
83
150
  // ---------------------------------------------------------------------------
84
151
  class FnContext {
85
- constructor(namespace, fnName, structDefs = new Map(), implMethods = new Map(), macroInfo = new Map(), fnParamInfo = new Map(), enumDefs = new Map(), timerCounter = { count: 0, timerId: 0 }) {
152
+ constructor(namespace, fnName, structDefs = new Map(), implMethods = new Map(), macroInfo = new Map(), fnParamInfo = new Map(), enumDefs = new Map(), timerCounter = { count: 0, timerId: 0 }, enumPayloads = new Map()) {
86
153
  this.tempCounter = 0;
87
154
  this.blockCounter = 0;
88
155
  this.blocks = [];
89
- /** Stack of (loopHeader, loopExit, continueTo) for break/continue */
156
+ /** Stack of (loopHeader, loopExit, continueTo, label?) for break/continue */
90
157
  this.loopStack = [];
158
+ /** Pending label to attach to the next pushLoop call (set by labeled_loop lowering) */
159
+ this.pendingLoopLabel = undefined;
91
160
  /** Extracted helper functions for execute blocks */
92
161
  this.helperFunctions = [];
93
162
  /** Struct variable tracking: varName → { typeName, fields: fieldName → temp } */
@@ -96,6 +165,8 @@ class FnContext {
96
165
  this.tupleVars = new Map();
97
166
  /** Array variable tracking: varName → { ns, pathPrefix } for NBT-backed int[] */
98
167
  this.arrayVars = new Map();
168
+ /** String variable tracking: varName → storage path within rs:strings */
169
+ this.stringVars = new Map();
99
170
  /** Current source location (set during statement lowering) */
100
171
  this.currentSourceLoc = undefined;
101
172
  /** Source file path for the module being compiled */
@@ -107,10 +178,17 @@ class FnContext {
107
178
  /** Tracks double variables: varName → NBT storage path (without "rs:d " prefix) */
108
179
  this.doubleVars = new Map();
109
180
  this.doubleVarCount = 0;
181
+ this.stringVarCount = 0;
110
182
  /** HIR function definitions for array-arg monomorphization */
111
183
  this.hirFunctions = new Map();
112
184
  /** Shared registry of already-generated specialized (monomorphized) MIR functions */
113
185
  this.specializedFnsRegistry = new Map();
186
+ /** Module-level const values: name → integer value (inlined at use sites) */
187
+ this.constValues = new Map();
188
+ /** @singleton struct names — static_call GameState::set(gs) expands struct fields */
189
+ this.singletonStructs = new Set();
190
+ /** Display trait impls: typeName → f-string parts from to_string body (inlined at call sites) */
191
+ this.displayImpls = new Map();
114
192
  this.namespace = namespace;
115
193
  this.fnName = fnName;
116
194
  this.structDefs = structDefs;
@@ -119,6 +197,7 @@ class FnContext {
119
197
  this.fnParamInfo = fnParamInfo;
120
198
  this.currentMacroParams = macroInfo.get(fnName)?.macroParams ?? new Set();
121
199
  this.enumDefs = enumDefs;
200
+ this.enumPayloads = enumPayloads;
122
201
  this.timerCounter = timerCounter;
123
202
  const entry = this.makeBlock('entry');
124
203
  this.currentBlock = entry;
@@ -157,8 +236,13 @@ class FnContext {
157
236
  current() {
158
237
  return this.currentBlock;
159
238
  }
160
- pushLoop(header, exit, continueTo) {
161
- this.loopStack.push({ header, exit, continueTo: continueTo ?? header });
239
+ setPendingLoopLabel(label) {
240
+ this.pendingLoopLabel = label;
241
+ }
242
+ pushLoop(header, exit, continueTo, label) {
243
+ const effectiveLabel = label ?? this.pendingLoopLabel;
244
+ this.pendingLoopLabel = undefined;
245
+ this.loopStack.push({ header, exit, continueTo: continueTo ?? header, label: effectiveLabel });
162
246
  }
163
247
  popLoop() {
164
248
  this.loopStack.pop();
@@ -166,6 +250,14 @@ class FnContext {
166
250
  currentLoop() {
167
251
  return this.loopStack[this.loopStack.length - 1];
168
252
  }
253
+ /** Find loop by label — searches from innermost to outermost */
254
+ findLoopByLabel(label) {
255
+ for (let i = this.loopStack.length - 1; i >= 0; i--) {
256
+ if (this.loopStack[i].label === label)
257
+ return this.loopStack[i];
258
+ }
259
+ return undefined;
260
+ }
169
261
  getNamespace() {
170
262
  return this.namespace;
171
263
  }
@@ -178,6 +270,10 @@ class FnContext {
178
270
  this.doubleVars.set(varName, path);
179
271
  return path;
180
272
  }
273
+ /** Allocate a unique NBT storage path for a string value */
274
+ freshStringVar(varName) {
275
+ return `${this.namespace}_${this.fnName}_${varName}_${this.stringVarCount++}`;
276
+ }
181
277
  }
182
278
  // ---------------------------------------------------------------------------
183
279
  // Function lowering
@@ -190,10 +286,13 @@ hirFnMap,
190
286
  /** Shared registry of already-generated specialized MIR functions */
191
287
  specializedFnsRegistry,
192
288
  /** Override the MIR function name (used when generating specialized versions) */
193
- overrideName) {
289
+ overrideName, enumPayloads = new Map(), constValues = new Map(), singletonStructs = new Set(), displayImpls = new Map()) {
194
290
  const mirFnName = overrideName ?? fn.name;
195
- const ctx = new FnContext(namespace, mirFnName, structDefs, implMethods, macroInfo, fnParamInfo, enumDefs, timerCounter);
196
- ctx.sourceFile = sourceFile;
291
+ const ctx = new FnContext(namespace, mirFnName, structDefs, implMethods, macroInfo, fnParamInfo, enumDefs, timerCounter, enumPayloads);
292
+ ctx.sourceFile = fn.sourceFile ?? sourceFile;
293
+ ctx.constValues = constValues;
294
+ ctx.singletonStructs = singletonStructs;
295
+ ctx.displayImpls = displayImpls;
197
296
  if (hirFnMap)
198
297
  ctx.hirFunctions = hirFnMap;
199
298
  if (specializedFnsRegistry)
@@ -210,6 +309,7 @@ overrideName) {
210
309
  const params = [];
211
310
  const scope = new Map();
212
311
  let doubleParamSlot = 0;
312
+ let stringParamSlot = 0;
213
313
  fn.params.forEach((p) => {
214
314
  if (p.type.kind === 'array' && arrayArgBindings?.has(p.name)) {
215
315
  // Array param already bound via arrayVars; no scoreboard slot needed
@@ -222,6 +322,10 @@ overrideName) {
222
322
  // No scoreboard param slot; callee reads from rs:d __dp<i> via doubleVars
223
323
  return;
224
324
  }
325
+ if (p.type.kind === 'named' && (p.type.name === 'string' || p.type.name === 'format_string')) {
326
+ ctx.stringVars.set(p.name, `__sp${stringParamSlot++}`);
327
+ return;
328
+ }
225
329
  const t = ctx.freshTemp();
226
330
  params.push({ name: t, isMacroParam: fnMacroInfo?.macroParams.has(p.name) ?? false });
227
331
  scope.set(p.name, t);
@@ -243,13 +347,16 @@ overrideName) {
243
347
  blocks: liveBlocks,
244
348
  entry: 'entry',
245
349
  isMacro: fnMacroInfo != null,
350
+ sourceLoc: fn.span && (fn.sourceFile ?? sourceFile) ? { file: fn.sourceFile ?? sourceFile, line: fn.span.line, col: fn.span.col } : undefined,
351
+ sourceSnippet: formatFunctionSignature(fn),
246
352
  };
247
353
  return { fn: result, helpers: ctx.helperFunctions };
248
354
  }
249
- function lowerImplMethod(method, typeName, namespace, structDefs, implMethods, macroInfo = new Map(), fnParamInfo = new Map(), enumDefs = new Map(), sourceFile, timerCounter = { count: 0, timerId: 0 }) {
355
+ function lowerImplMethod(method, typeName, namespace, structDefs, implMethods, macroInfo = new Map(), fnParamInfo = new Map(), enumDefs = new Map(), sourceFile, timerCounter = { count: 0, timerId: 0 }, enumPayloads = new Map(), constValues = new Map()) {
250
356
  const fnName = `${typeName}::${method.name}`;
251
- const ctx = new FnContext(namespace, fnName, structDefs, implMethods, macroInfo, fnParamInfo, enumDefs, timerCounter);
252
- ctx.sourceFile = sourceFile;
357
+ const ctx = new FnContext(namespace, fnName, structDefs, implMethods, macroInfo, fnParamInfo, enumDefs, timerCounter, enumPayloads);
358
+ ctx.sourceFile = method.sourceFile ?? sourceFile;
359
+ ctx.constValues = constValues;
253
360
  const fields = structDefs.get(typeName) ?? [];
254
361
  const hasSelf = method.params.length > 0 && method.params[0].name === 'self';
255
362
  const params = [];
@@ -322,6 +429,8 @@ function lowerImplMethod(method, typeName, namespace, structDefs, implMethods, m
322
429
  blocks: liveBlocks,
323
430
  entry: 'entry',
324
431
  isMacro: macroInfo.has(fnName),
432
+ sourceLoc: method.span && (method.sourceFile ?? sourceFile) ? { file: method.sourceFile ?? sourceFile, line: method.span.line, col: method.span.col } : undefined,
433
+ sourceSnippet: formatFunctionSignature(method),
325
434
  };
326
435
  return { fn: result, helpers: ctx.helperFunctions };
327
436
  }
@@ -384,7 +493,14 @@ function lowerStmt(stmt, ctx, scope) {
384
493
  }
385
494
  switch (stmt.kind) {
386
495
  case 'let': {
387
- if (stmt.init.kind === 'some_lit') {
496
+ if (stmt.type?.kind === 'named' && (stmt.type.name === 'string' || stmt.type.name === 'format_string')) {
497
+ const path = lowerStringExprToPath(stmt.init, ctx, scope, stmt.name) ?? ctx.freshStringVar(stmt.name);
498
+ ctx.stringVars.set(stmt.name, path);
499
+ const t = ctx.freshTemp();
500
+ ctx.emit({ kind: 'const', dst: t, value: 0 });
501
+ scope.set(stmt.name, t);
502
+ }
503
+ else if (stmt.init.kind === 'some_lit') {
388
504
  // Some(expr) — create option struct vars: has=1, val=expr
389
505
  // Use __opt_ prefix so DCE treats these as side-effectful scoreboard writes
390
506
  const hasTemp = `__opt_${stmt.name}_has`;
@@ -409,10 +525,30 @@ function lowerStmt(stmt, ctx, scope) {
409
525
  const typeName = (stmt.type?.kind === 'struct') ? stmt.type.name : '__anon';
410
526
  const fieldTemps = new Map();
411
527
  for (const field of stmt.init.fields) {
412
- const val = lowerExpr(field.value, ctx, scope);
413
- const t = ctx.freshTemp();
414
- ctx.emit({ kind: 'copy', dst: t, src: val });
415
- fieldTemps.set(field.name, t);
528
+ if (field.value.kind === 'struct_lit') {
529
+ // Nested struct literal: register it as a synthetic var "${parentName}.${fieldName}"
530
+ // so that chained access like r.pos.x can be resolved
531
+ const nestedVarName = `${stmt.name}.${field.name}`;
532
+ const nestedTypeName = '__anon';
533
+ const nestedFieldTemps = new Map();
534
+ for (const nestedField of field.value.fields) {
535
+ const nval = lowerExpr(nestedField.value, ctx, scope);
536
+ const nt = ctx.freshTemp();
537
+ ctx.emit({ kind: 'copy', dst: nt, src: nval });
538
+ nestedFieldTemps.set(nestedField.name, nt);
539
+ }
540
+ ctx.structVars.set(nestedVarName, { typeName: nestedTypeName, fields: nestedFieldTemps });
541
+ // Store a placeholder temp (0) for the field itself in the parent struct
542
+ const t = ctx.freshTemp();
543
+ ctx.emit({ kind: 'const', dst: t, value: 0 });
544
+ fieldTemps.set(field.name, t);
545
+ }
546
+ else {
547
+ const val = lowerExpr(field.value, ctx, scope);
548
+ const t = ctx.freshTemp();
549
+ ctx.emit({ kind: 'copy', dst: t, src: val });
550
+ fieldTemps.set(field.name, t);
551
+ }
416
552
  }
417
553
  ctx.structVars.set(stmt.name, { typeName, fields: fieldTemps });
418
554
  }
@@ -426,9 +562,17 @@ function lowerStmt(stmt, ctx, scope) {
426
562
  const fieldTemps = new Map([['has', hasTemp], ['val', valTemp]]);
427
563
  ctx.structVars.set(stmt.name, { typeName: '__option', fields: fieldTemps });
428
564
  }
429
- else if (stmt.type?.kind === 'struct') {
565
+ else if (
566
+ // Struct-typed let: explicit annotation OR inferred from @singleton::get() return
567
+ stmt.type?.kind === 'struct' ||
568
+ (stmt.init.kind === 'static_call' &&
569
+ ctx.singletonStructs.has(stmt.init.type) &&
570
+ stmt.init.method === 'get')) {
430
571
  // Struct-typed let with non-literal init (e.g., call returning struct)
431
- const fields = ctx.structDefs.get(stmt.type.name);
572
+ const inferredStructName = stmt.type?.kind === 'struct'
573
+ ? stmt.type.name
574
+ : stmt.init.type;
575
+ const fields = ctx.structDefs.get(inferredStructName);
432
576
  if (fields) {
433
577
  lowerExpr(stmt.init, ctx, scope);
434
578
  // Copy from return field slots into struct variable temps
@@ -444,7 +588,7 @@ function lowerStmt(stmt, ctx, scope) {
444
588
  ctx.constTemps.set(t, constVal);
445
589
  }
446
590
  }
447
- ctx.structVars.set(stmt.name, { typeName: stmt.type.name, fields: fieldTemps });
591
+ ctx.structVars.set(stmt.name, { typeName: inferredStructName, fields: fieldTemps });
448
592
  }
449
593
  else {
450
594
  const valOp = lowerExpr(stmt.init, ctx, scope);
@@ -478,7 +622,7 @@ function lowerStmt(stmt, ctx, scope) {
478
622
  // Array literal: write to NBT storage, track the var for index access
479
623
  const ns = `${ctx.getNamespace()}:arrays`;
480
624
  const pathPrefix = stmt.name;
481
- ctx.arrayVars.set(stmt.name, { ns, pathPrefix });
625
+ ctx.arrayVars.set(stmt.name, { ns, pathPrefix, knownLen: stmt.init.elements.length });
482
626
  const elems = stmt.init.elements;
483
627
  // Check if all elements are pure integer literals (no side-effects)
484
628
  const allConst = elems.every(e => e.kind === 'int_lit');
@@ -488,14 +632,16 @@ function lowerStmt(stmt, ctx, scope) {
488
632
  ctx.emit({ kind: 'call', dst: null, fn: `__raw:data modify storage ${ns} ${pathPrefix} set value [${vals}]`, args: [] });
489
633
  }
490
634
  else {
491
- // Initialize with zeros, then overwrite dynamic elements
492
- const zeros = elems.map(() => '0').join(', ');
493
- ctx.emit({ kind: 'call', dst: null, fn: `__raw:data modify storage ${ns} ${pathPrefix} set value [${zeros}]`, args: [] });
635
+ // Initialize with known int_lit values (0 for dynamic slots), then overwrite dynamic elements.
636
+ // Using actual int_lit values avoids a bug where non-zero literals (e.g. 10000) would be
637
+ // left as 0 because the nbt_write for pure int_lits was skipped.
638
+ const initVals = elems.map(e => (e.kind === 'int_lit' ? String(e.value) : '0')).join(', ');
639
+ ctx.emit({ kind: 'call', dst: null, fn: `__raw:data modify storage ${ns} ${pathPrefix} set value [${initVals}]`, args: [] });
494
640
  for (let i = 0; i < elems.length; i++) {
641
+ if (elems[i].kind === 'int_lit')
642
+ continue; // already in the init array
495
643
  const elemOp = lowerExpr(elems[i], ctx, scope);
496
- if (elemOp.kind !== 'const' || (elems[i].kind !== 'int_lit')) {
497
- ctx.emit({ kind: 'nbt_write', ns, path: `${pathPrefix}[${i}]`, type: 'int', scale: 1, src: elemOp });
498
- }
644
+ ctx.emit({ kind: 'nbt_write', ns, path: `${pathPrefix}[${i}]`, type: 'int', scale: 1, src: elemOp });
499
645
  }
500
646
  }
501
647
  // Store array length as a temp in scope (for .len access)
@@ -584,6 +730,13 @@ function lowerStmt(stmt, ctx, scope) {
584
730
  }
585
731
  break;
586
732
  }
733
+ case 'const_decl': {
734
+ // Evaluate the literal at compile time and store in constValues for inlining at use sites
735
+ const op = lowerExpr(stmt.value, ctx, scope);
736
+ const numericValue = op.kind === 'const' ? op.value : 0;
737
+ ctx.constValues.set(stmt.name, numericValue);
738
+ break;
739
+ }
587
740
  case 'expr': {
588
741
  lowerExpr(stmt.expr, ctx, scope);
589
742
  break;
@@ -660,6 +813,32 @@ function lowerStmt(stmt, ctx, scope) {
660
813
  ctx.switchTo(dead);
661
814
  break;
662
815
  }
816
+ case 'break_label': {
817
+ const loop = ctx.findLoopByLabel(stmt.label);
818
+ if (!loop)
819
+ throw new Error(`break: label '${stmt.label}' not found`);
820
+ ctx.terminate({ kind: 'jump', target: loop.exit });
821
+ const dead = ctx.newBlock('post_break_label');
822
+ ctx.switchTo(dead);
823
+ break;
824
+ }
825
+ case 'continue_label': {
826
+ const loop = ctx.findLoopByLabel(stmt.label);
827
+ if (!loop)
828
+ throw new Error(`continue: label '${stmt.label}' not found`);
829
+ ctx.terminate({ kind: 'jump', target: loop.continueTo });
830
+ const dead = ctx.newBlock('post_continue_label');
831
+ ctx.switchTo(dead);
832
+ break;
833
+ }
834
+ case 'labeled_loop': {
835
+ // The body is a while/foreach stmt; we need to push the label into the loop stack.
836
+ // We do this by injecting the label into the next pushLoop call by temporarily
837
+ // storing the pending label in ctx, then letting the inner loop case handle it.
838
+ ctx.setPendingLoopLabel(stmt.label);
839
+ lowerStmt(stmt.body, ctx, scope);
840
+ break;
841
+ }
663
842
  case 'if': {
664
843
  const condOp = lowerExpr(stmt.cond, ctx, scope);
665
844
  const thenBlock = ctx.newBlock('then');
@@ -748,6 +927,8 @@ function lowerStmt(stmt, ctx, scope) {
748
927
  blocks: helperBlocks,
749
928
  entry: 'entry',
750
929
  isMacro: false,
930
+ sourceLoc: stmt.span && ctx.sourceFile ? { file: ctx.sourceFile, line: stmt.span.line, col: stmt.span.col } : undefined,
931
+ sourceSnippet: 'foreach helper',
751
932
  });
752
933
  ctx.emit({ kind: 'call_context', fn: helperName, subcommands });
753
934
  break;
@@ -771,51 +952,140 @@ function lowerStmt(stmt, ctx, scope) {
771
952
  blocks: execBlocks,
772
953
  entry: 'entry',
773
954
  isMacro: false,
955
+ sourceLoc: stmt.span && ctx.sourceFile ? { file: ctx.sourceFile, line: stmt.span.line, col: stmt.span.col } : undefined,
956
+ sourceSnippet: 'execute helper',
774
957
  });
775
958
  ctx.emit({ kind: 'call_context', fn: helperName, subcommands });
776
959
  break;
777
960
  }
778
961
  case 'match': {
962
+ const hasStringPats = stmt.arms.some(a => a.pattern.kind === 'PatExpr' && a.pattern.expr.kind === 'str_lit');
963
+ if (hasStringPats) {
964
+ const matchPath = lowerStringExprToPath(stmt.expr, ctx, scope, 'match');
965
+ if (!matchPath) {
966
+ throw new Error('String match requires a string literal or tracked string variable');
967
+ }
968
+ const mergeBlock = ctx.newBlock('match_merge');
969
+ for (let i = 0; i < stmt.arms.length; i++) {
970
+ const arm = stmt.arms[i];
971
+ const pat = arm.pattern;
972
+ if (pat.kind === 'PatWild') {
973
+ lowerBlock(arm.body, ctx, new Map(scope));
974
+ if (isPlaceholderTerm(ctx.current().term)) {
975
+ ctx.terminate({ kind: 'jump', target: mergeBlock.id });
976
+ }
977
+ continue;
978
+ }
979
+ if (pat.kind === 'PatExpr' && pat.expr.kind === 'str_lit') {
980
+ const cmpTemp = ctx.freshTemp();
981
+ ctx.emit({ kind: 'string_match', dst: cmpTemp, ns: 'rs:strings', path: matchPath, value: pat.expr.value });
982
+ const armBody = ctx.newBlock('match_arm');
983
+ const nextArm = ctx.newBlock('match_next');
984
+ ctx.terminate({ kind: 'branch', cond: { kind: 'temp', name: cmpTemp }, then: armBody.id, else: nextArm.id });
985
+ ctx.switchTo(armBody);
986
+ lowerBlock(arm.body, ctx, new Map(scope));
987
+ if (isPlaceholderTerm(ctx.current().term)) {
988
+ ctx.terminate({ kind: 'jump', target: mergeBlock.id });
989
+ }
990
+ ctx.switchTo(nextArm);
991
+ continue;
992
+ }
993
+ throw new Error(`Unsupported string match pattern: ${pat.kind}`);
994
+ }
995
+ if (isPlaceholderTerm(ctx.current().term)) {
996
+ ctx.terminate({ kind: 'jump', target: mergeBlock.id });
997
+ }
998
+ ctx.switchTo(mergeBlock);
999
+ break;
1000
+ }
779
1001
  // Lower match as chained if/else
780
- const matchVal = lowerExpr(stmt.expr, ctx, scope);
781
1002
  const mergeBlock = ctx.newBlock('match_merge');
1003
+ // Determine if any arm uses Option patterns (PatSome / PatNone).
1004
+ // If so, resolve the Option has/val slots from the subject ident.
1005
+ const hasOptionPats = stmt.arms.some(a => a.pattern.kind === 'PatSome' || a.pattern.kind === 'PatNone');
1006
+ // For Option match: resolve has/val temps from subject (must be an ident)
1007
+ let optHasOp;
1008
+ let optValTemp;
1009
+ if (hasOptionPats) {
1010
+ if (stmt.expr.kind === 'ident') {
1011
+ const sv = ctx.structVars.get(stmt.expr.name);
1012
+ if (sv && sv.typeName === '__option') {
1013
+ optHasOp = { kind: 'temp', name: sv.fields.get('has') };
1014
+ optValTemp = sv.fields.get('val');
1015
+ }
1016
+ else {
1017
+ // Fall back: evaluate and use __rf_has/__rf_val convention
1018
+ lowerExpr(stmt.expr, ctx, scope);
1019
+ const hasT = ctx.freshTemp();
1020
+ const valT = ctx.freshTemp();
1021
+ ctx.emit({ kind: 'copy', dst: hasT, src: { kind: 'temp', name: '__rf_has' } });
1022
+ ctx.emit({ kind: 'copy', dst: valT, src: { kind: 'temp', name: '__rf_val' } });
1023
+ optHasOp = { kind: 'temp', name: hasT };
1024
+ optValTemp = valT;
1025
+ }
1026
+ }
1027
+ else {
1028
+ lowerExpr(stmt.expr, ctx, scope);
1029
+ const hasT = ctx.freshTemp();
1030
+ const valT = ctx.freshTemp();
1031
+ ctx.emit({ kind: 'copy', dst: hasT, src: { kind: 'temp', name: '__rf_has' } });
1032
+ ctx.emit({ kind: 'copy', dst: valT, src: { kind: 'temp', name: '__rf_val' } });
1033
+ optHasOp = { kind: 'temp', name: hasT };
1034
+ optValTemp = valT;
1035
+ }
1036
+ }
1037
+ // For non-option match, evaluate the subject once
1038
+ const matchVal = hasOptionPats
1039
+ ? optHasOp // unused for non-option path
1040
+ : lowerExpr(stmt.expr, ctx, scope);
782
1041
  for (let i = 0; i < stmt.arms.length; i++) {
783
1042
  const arm = stmt.arms[i];
784
- if (arm.pattern === null) {
785
- // Default arm just emit the body
1043
+ const pat = arm.pattern;
1044
+ if (pat.kind === 'PatWild') {
1045
+ // Wildcard/default arm — always matches
786
1046
  lowerBlock(arm.body, ctx, new Map(scope));
787
1047
  if (isPlaceholderTerm(ctx.current().term)) {
788
1048
  ctx.terminate({ kind: 'jump', target: mergeBlock.id });
789
1049
  }
790
1050
  }
791
- else if (arm.pattern.kind === 'range_lit') {
792
- // Range pattern: e.g. 0..59 => emit ge/le comparisons
793
- const range = arm.pattern.range;
1051
+ else if (pat.kind === 'PatNone') {
1052
+ // None arm: optHasOp == 0
1053
+ const cmpTemp = ctx.freshTemp();
1054
+ ctx.emit({ kind: 'cmp', dst: cmpTemp, op: 'eq', a: optHasOp, b: { kind: 'const', value: 0 } });
794
1055
  const armBody = ctx.newBlock('match_arm');
795
1056
  const nextArm = ctx.newBlock('match_next');
796
- // Chain checks: if min defined, check matchVal >= min; if max defined, check matchVal <= max
797
- // Each failed check jumps to nextArm
798
- const checks = [];
799
- if (range.min !== undefined)
800
- checks.push({ op: 'ge', bound: range.min });
801
- if (range.max !== undefined)
802
- checks.push({ op: 'le', bound: range.max });
803
- if (checks.length === 0) {
804
- // Open range — always matches
805
- ctx.terminate({ kind: 'jump', target: armBody.id });
1057
+ ctx.terminate({ kind: 'branch', cond: { kind: 'temp', name: cmpTemp }, then: armBody.id, else: nextArm.id });
1058
+ ctx.switchTo(armBody);
1059
+ lowerBlock(arm.body, ctx, new Map(scope));
1060
+ if (isPlaceholderTerm(ctx.current().term)) {
1061
+ ctx.terminate({ kind: 'jump', target: mergeBlock.id });
806
1062
  }
807
- else {
808
- // Emit checks sequentially; each check passes → continue to next or armBody
809
- for (let ci = 0; ci < checks.length; ci++) {
810
- const { op, bound } = checks[ci];
811
- const cmpTemp = ctx.freshTemp();
812
- ctx.emit({ kind: 'cmp', dst: cmpTemp, op, a: matchVal, b: { kind: 'const', value: bound } });
813
- const passBlock = ci === checks.length - 1 ? armBody : ctx.newBlock('match_range_check');
814
- ctx.terminate({ kind: 'branch', cond: { kind: 'temp', name: cmpTemp }, then: passBlock.id, else: nextArm.id });
815
- if (ci < checks.length - 1)
816
- ctx.switchTo(passBlock);
817
- }
1063
+ ctx.switchTo(nextArm);
1064
+ }
1065
+ else if (pat.kind === 'PatSome') {
1066
+ // Some(x) arm: optHasOp == 1, bind x = optValTemp
1067
+ const cmpTemp = ctx.freshTemp();
1068
+ ctx.emit({ kind: 'cmp', dst: cmpTemp, op: 'eq', a: optHasOp, b: { kind: 'const', value: 1 } });
1069
+ const armBody = ctx.newBlock('match_arm');
1070
+ const nextArm = ctx.newBlock('match_next');
1071
+ ctx.terminate({ kind: 'branch', cond: { kind: 'temp', name: cmpTemp }, then: armBody.id, else: nextArm.id });
1072
+ ctx.switchTo(armBody);
1073
+ const armScope = new Map(scope);
1074
+ // Bind the pattern variable to the option value temp
1075
+ if (optValTemp)
1076
+ armScope.set(pat.binding, optValTemp);
1077
+ lowerBlock(arm.body, ctx, armScope);
1078
+ if (isPlaceholderTerm(ctx.current().term)) {
1079
+ ctx.terminate({ kind: 'jump', target: mergeBlock.id });
818
1080
  }
1081
+ ctx.switchTo(nextArm);
1082
+ }
1083
+ else if (pat.kind === 'PatInt') {
1084
+ const cmpTemp = ctx.freshTemp();
1085
+ ctx.emit({ kind: 'cmp', dst: cmpTemp, op: 'eq', a: matchVal, b: { kind: 'const', value: pat.value } });
1086
+ const armBody = ctx.newBlock('match_arm');
1087
+ const nextArm = ctx.newBlock('match_next');
1088
+ ctx.terminate({ kind: 'branch', cond: { kind: 'temp', name: cmpTemp }, then: armBody.id, else: nextArm.id });
819
1089
  ctx.switchTo(armBody);
820
1090
  lowerBlock(arm.body, ctx, new Map(scope));
821
1091
  if (isPlaceholderTerm(ctx.current().term)) {
@@ -823,20 +1093,86 @@ function lowerStmt(stmt, ctx, scope) {
823
1093
  }
824
1094
  ctx.switchTo(nextArm);
825
1095
  }
826
- else {
827
- const patOp = lowerExpr(arm.pattern, ctx, scope);
1096
+ else if (pat.kind === 'PatEnum') {
1097
+ // Enum pattern: check tag value matches, then bind payload fields via NBT reads
1098
+ const tagValue = ctx.enumDefs.get(pat.enumName)?.get(pat.variant) ?? 0;
828
1099
  const cmpTemp = ctx.freshTemp();
829
- ctx.emit({ kind: 'cmp', dst: cmpTemp, op: 'eq', a: matchVal, b: patOp });
1100
+ ctx.emit({ kind: 'cmp', dst: cmpTemp, op: 'eq', a: matchVal, b: { kind: 'const', value: tagValue } });
830
1101
  const armBody = ctx.newBlock('match_arm');
831
1102
  const nextArm = ctx.newBlock('match_next');
832
1103
  ctx.terminate({ kind: 'branch', cond: { kind: 'temp', name: cmpTemp }, then: armBody.id, else: nextArm.id });
833
1104
  ctx.switchTo(armBody);
834
- lowerBlock(arm.body, ctx, new Map(scope));
1105
+ const armScope = new Map(scope);
1106
+ // Bind each pattern variable by reading the corresponding NBT payload field
1107
+ const payloadFields = ctx.enumPayloads.get(pat.enumName)?.get(pat.variant) ?? [];
1108
+ for (let bi = 0; bi < pat.bindings.length; bi++) {
1109
+ const binding = pat.bindings[bi];
1110
+ const fieldDef = payloadFields[bi];
1111
+ const fieldName = fieldDef ? fieldDef.name : binding;
1112
+ const bindTemp = ctx.freshTemp();
1113
+ ctx.emit({
1114
+ kind: 'nbt_read',
1115
+ dst: bindTemp,
1116
+ ns: 'rs:enums',
1117
+ path: `${pat.enumName}_${fieldName}`,
1118
+ scale: 1,
1119
+ });
1120
+ armScope.set(binding, bindTemp);
1121
+ }
1122
+ lowerBlock(arm.body, ctx, armScope);
835
1123
  if (isPlaceholderTerm(ctx.current().term)) {
836
1124
  ctx.terminate({ kind: 'jump', target: mergeBlock.id });
837
1125
  }
838
1126
  ctx.switchTo(nextArm);
839
1127
  }
1128
+ else if (pat.kind === 'PatExpr') {
1129
+ // Legacy: range_lit or other expression
1130
+ const expr = pat.expr;
1131
+ if (expr.kind === 'range_lit') {
1132
+ const range = expr.range;
1133
+ const armBody = ctx.newBlock('match_arm');
1134
+ const nextArm = ctx.newBlock('match_next');
1135
+ const checks = [];
1136
+ if (range.min !== undefined)
1137
+ checks.push({ op: 'ge', bound: range.min });
1138
+ if (range.max !== undefined)
1139
+ checks.push({ op: 'le', bound: range.max });
1140
+ if (checks.length === 0) {
1141
+ ctx.terminate({ kind: 'jump', target: armBody.id });
1142
+ }
1143
+ else {
1144
+ for (let ci = 0; ci < checks.length; ci++) {
1145
+ const { op, bound } = checks[ci];
1146
+ const cmpTemp = ctx.freshTemp();
1147
+ ctx.emit({ kind: 'cmp', dst: cmpTemp, op, a: matchVal, b: { kind: 'const', value: bound } });
1148
+ const passBlock = ci === checks.length - 1 ? armBody : ctx.newBlock('match_range_check');
1149
+ ctx.terminate({ kind: 'branch', cond: { kind: 'temp', name: cmpTemp }, then: passBlock.id, else: nextArm.id });
1150
+ if (ci < checks.length - 1)
1151
+ ctx.switchTo(passBlock);
1152
+ }
1153
+ }
1154
+ ctx.switchTo(armBody);
1155
+ lowerBlock(arm.body, ctx, new Map(scope));
1156
+ if (isPlaceholderTerm(ctx.current().term)) {
1157
+ ctx.terminate({ kind: 'jump', target: mergeBlock.id });
1158
+ }
1159
+ ctx.switchTo(nextArm);
1160
+ }
1161
+ else {
1162
+ const patOp = lowerExpr(expr, ctx, scope);
1163
+ const cmpTemp = ctx.freshTemp();
1164
+ ctx.emit({ kind: 'cmp', dst: cmpTemp, op: 'eq', a: matchVal, b: patOp });
1165
+ const armBody = ctx.newBlock('match_arm');
1166
+ const nextArm = ctx.newBlock('match_next');
1167
+ ctx.terminate({ kind: 'branch', cond: { kind: 'temp', name: cmpTemp }, then: armBody.id, else: nextArm.id });
1168
+ ctx.switchTo(armBody);
1169
+ lowerBlock(arm.body, ctx, new Map(scope));
1170
+ if (isPlaceholderTerm(ctx.current().term)) {
1171
+ ctx.terminate({ kind: 'jump', target: mergeBlock.id });
1172
+ }
1173
+ ctx.switchTo(nextArm);
1174
+ }
1175
+ }
840
1176
  }
841
1177
  // If no default arm matched, jump to merge
842
1178
  if (isPlaceholderTerm(ctx.current().term)) {
@@ -906,6 +1242,52 @@ function lowerStmt(stmt, ctx, scope) {
906
1242
  ctx.switchTo(mergeBlock);
907
1243
  break;
908
1244
  }
1245
+ case 'while_let_some': {
1246
+ // while let Some(x) = init { body }
1247
+ // Compiles to: loop { check opt.has; if 0 break; bind x = opt.val; body }
1248
+ const headerBlock = ctx.newBlock('whl_header');
1249
+ const bodyBlock = ctx.newBlock('whl_body');
1250
+ const exitBlock = ctx.newBlock('whl_exit');
1251
+ ctx.terminate({ kind: 'jump', target: headerBlock.id });
1252
+ // Header: re-evaluate init and check has
1253
+ ctx.switchTo(headerBlock);
1254
+ let hasOp;
1255
+ let valTemp;
1256
+ const sv = (() => {
1257
+ if (stmt.init.kind === 'ident')
1258
+ return ctx.structVars.get(stmt.init.name);
1259
+ return undefined;
1260
+ })();
1261
+ if (sv && sv.typeName === '__option') {
1262
+ const hasT = sv.fields.get('has');
1263
+ const valT = sv.fields.get('val');
1264
+ hasOp = { kind: 'temp', name: hasT };
1265
+ valTemp = valT;
1266
+ }
1267
+ else {
1268
+ lowerExpr(stmt.init, ctx, scope);
1269
+ const hasT = ctx.freshTemp();
1270
+ const valT = ctx.freshTemp();
1271
+ ctx.emit({ kind: 'copy', dst: hasT, src: { kind: 'temp', name: '__rf_has' } });
1272
+ ctx.emit({ kind: 'copy', dst: valT, src: { kind: 'temp', name: '__rf_val' } });
1273
+ hasOp = { kind: 'temp', name: hasT };
1274
+ valTemp = valT;
1275
+ }
1276
+ ctx.terminate({ kind: 'branch', cond: hasOp, then: bodyBlock.id, else: exitBlock.id });
1277
+ // Body: bind x = val, run body
1278
+ ctx.switchTo(bodyBlock);
1279
+ const bodyScope = new Map(scope);
1280
+ if (valTemp)
1281
+ bodyScope.set(stmt.binding, valTemp);
1282
+ ctx.pushLoop(headerBlock.id, exitBlock.id, headerBlock.id);
1283
+ lowerBlock(stmt.body, ctx, bodyScope);
1284
+ ctx.popLoop();
1285
+ if (isPlaceholderTerm(ctx.current().term)) {
1286
+ ctx.terminate({ kind: 'jump', target: headerBlock.id });
1287
+ }
1288
+ ctx.switchTo(exitBlock);
1289
+ break;
1290
+ }
909
1291
  default: {
910
1292
  const _exhaustive = stmt;
911
1293
  throw new Error(`Unknown HIR statement kind: ${_exhaustive.kind}`);
@@ -981,6 +1363,10 @@ function lowerExpr(expr, ctx, scope) {
981
1363
  const temp = scope.get(expr.name);
982
1364
  if (temp)
983
1365
  return { kind: 'temp', name: temp };
1366
+ // Module-level const: inline the literal value directly (no scoreboard slot)
1367
+ if (ctx.constValues.has(expr.name)) {
1368
+ return { kind: 'const', value: ctx.constValues.get(expr.name) };
1369
+ }
984
1370
  // Unresolved ident — could be a global or external reference
985
1371
  const t = ctx.freshTemp();
986
1372
  ctx.emit({ kind: 'copy', dst: t, src: { kind: 'const', value: 0 } });
@@ -1109,6 +1495,35 @@ function lowerExpr(expr, ctx, scope) {
1109
1495
  const value = variants?.get(expr.variant) ?? 0;
1110
1496
  return { kind: 'const', value };
1111
1497
  }
1498
+ case 'enum_construct': {
1499
+ // Enum variant construction with payload:
1500
+ // Color::RGB(r: 10, g: 20, b: 30)
1501
+ // → scoreboard set tag = variant int value
1502
+ // → nbt_write rs:enums Color_r = 10, Color_g = 20, Color_b = 30
1503
+ const variants = ctx.enumDefs.get(expr.enumName);
1504
+ const tagValue = variants?.get(expr.variant) ?? 0;
1505
+ // Write tag to a temp (the result of the expression is the integer tag)
1506
+ const tagTemp = ctx.freshTemp();
1507
+ ctx.emit({ kind: 'const', dst: tagTemp, value: tagValue });
1508
+ // Write payload fields to NBT storage rs:enums
1509
+ const payloadFields = ctx.enumPayloads.get(expr.enumName)?.get(expr.variant) ?? [];
1510
+ for (const arg of expr.args) {
1511
+ const fieldDef = payloadFields.find(f => f.name === arg.name);
1512
+ const argOp = lowerExpr(arg.value, ctx, scope);
1513
+ // Determine NBT type from field definition
1514
+ const nbtType = fieldDef && (fieldDef.type.kind === 'named') &&
1515
+ (fieldDef.type.name === 'float' || fieldDef.type.name === 'fixed') ? 'float' : 'int';
1516
+ ctx.emit({
1517
+ kind: 'nbt_write',
1518
+ ns: 'rs:enums',
1519
+ path: `${expr.enumName}_${arg.name}`,
1520
+ type: nbtType,
1521
+ scale: 1,
1522
+ src: argOp,
1523
+ });
1524
+ }
1525
+ return { kind: 'temp', name: tagTemp };
1526
+ }
1112
1527
  case 'member': {
1113
1528
  // Enum variant access via dot syntax: Phase.Idle → integer constant
1114
1529
  if (expr.obj.kind === 'ident') {
@@ -1126,6 +1541,16 @@ function lowerExpr(expr, ctx, scope) {
1126
1541
  return { kind: 'temp', name: fieldTemp };
1127
1542
  }
1128
1543
  }
1544
+ // Chained struct field access: v.pos.x → look up synthetic var "v.pos" in structVars
1545
+ if (expr.obj.kind === 'member' && expr.obj.obj.kind === 'ident') {
1546
+ const syntheticName = `${expr.obj.obj.name}.${expr.obj.field}`;
1547
+ const nestedSv = ctx.structVars.get(syntheticName);
1548
+ if (nestedSv) {
1549
+ const fieldTemp = nestedSv.fields.get(expr.field);
1550
+ if (fieldTemp)
1551
+ return { kind: 'temp', name: fieldTemp };
1552
+ }
1553
+ }
1129
1554
  // Fallback: opaque
1130
1555
  const obj = lowerExpr(expr.obj, ctx, scope);
1131
1556
  const t = ctx.freshTemp();
@@ -1176,9 +1601,36 @@ function lowerExpr(expr, ctx, scope) {
1176
1601
  return valOp;
1177
1602
  }
1178
1603
  case 'call': {
1604
+ // Handle arr.len() — parser desugars obj.len() → call { fn: 'len', args: [obj] }
1605
+ if (expr.fn === 'len' && expr.args.length === 1 && expr.args[0].kind === 'ident') {
1606
+ const arrName = expr.args[0].name;
1607
+ const arrInfo = ctx.arrayVars.get(arrName);
1608
+ if (arrInfo) {
1609
+ if (arrInfo.knownLen !== undefined) {
1610
+ const t = ctx.freshTemp();
1611
+ ctx.emit({ kind: 'const', dst: t, value: arrInfo.knownLen });
1612
+ return { kind: 'temp', name: t };
1613
+ }
1614
+ // Dynamic array: read length at runtime via data get
1615
+ const t = ctx.freshTemp();
1616
+ ctx.emit({ kind: 'nbt_list_len', dst: t, ns: arrInfo.ns, path: arrInfo.pathPrefix });
1617
+ return { kind: 'temp', name: t };
1618
+ }
1619
+ // Also check scope (literal array length temp)
1620
+ const lenTemp = scope.get(arrName);
1621
+ if (lenTemp !== undefined) {
1622
+ return { kind: 'temp', name: lenTemp };
1623
+ }
1624
+ }
1179
1625
  // Handle scoreboard_get / score — read from vanilla MC scoreboard
1180
1626
  if (expr.fn === 'scoreboard_get' || expr.fn === 'score') {
1181
- const player = hirExprToStringLiteral(expr.args[0]);
1627
+ const playerArg = exprToCommandArg(expr.args[0], ctx.currentMacroParams);
1628
+ // If the arg is a plain ident (Player variable, not a macro param), use @s —
1629
+ // event handlers are always called via `execute as <player> run function ...`
1630
+ // so @s correctly refers to the player in context.
1631
+ const player = (!playerArg.isMacro && expr.args[0].kind === 'ident')
1632
+ ? '@s'
1633
+ : (playerArg.str || '@s');
1182
1634
  const obj = hirExprToStringLiteral(expr.args[1]);
1183
1635
  const t = ctx.freshTemp();
1184
1636
  ctx.emit({ kind: 'score_read', dst: t, player, obj });
@@ -1186,7 +1638,10 @@ function lowerExpr(expr, ctx, scope) {
1186
1638
  }
1187
1639
  // Handle scoreboard_set — write to vanilla MC scoreboard
1188
1640
  if (expr.fn === 'scoreboard_set') {
1189
- const player = hirExprToStringLiteral(expr.args[0]);
1641
+ const playerArg = exprToCommandArg(expr.args[0], ctx.currentMacroParams);
1642
+ const player = (!playerArg.isMacro && expr.args[0].kind === 'ident')
1643
+ ? '@s'
1644
+ : (playerArg.str || '@s');
1190
1645
  const obj = hirExprToStringLiteral(expr.args[1]);
1191
1646
  const src = lowerExpr(expr.args[2], ctx, scope);
1192
1647
  ctx.emit({ kind: 'score_write', player, obj, src });
@@ -1194,6 +1649,35 @@ function lowerExpr(expr, ctx, scope) {
1194
1649
  ctx.emit({ kind: 'const', dst: t, value: 0 });
1195
1650
  return { kind: 'temp', name: t };
1196
1651
  }
1652
+ // Handle storage_set_array(storagePath, fieldName, nbtArrayLiteral)
1653
+ // Writes a literal NBT int array to data storage (used in @load for tables).
1654
+ // Emits: data modify storage <storagePath> <fieldName> set value <nbtArray>
1655
+ if (expr.fn === 'storage_set_array' && expr.args.length >= 3) {
1656
+ const storagePath = hirExprToStringLiteral(expr.args[0]);
1657
+ const fieldName = hirExprToStringLiteral(expr.args[1]);
1658
+ const nbtLiteral = hirExprToStringLiteral(expr.args[2]);
1659
+ ctx.emit({ kind: 'call', dst: null, fn: `__raw:data modify storage ${storagePath} ${fieldName} set value ${nbtLiteral}`, args: [] });
1660
+ const t = ctx.freshTemp();
1661
+ ctx.emit({ kind: 'const', dst: t, value: 0 });
1662
+ return { kind: 'temp', name: t };
1663
+ }
1664
+ // Handle storage_get_int(storagePath, fieldName, index) → int
1665
+ // Reads one element from an NBT int-array stored in data storage.
1666
+ // Const index: execute store result score $dst run data get storage <ns> <field>[N] 1
1667
+ // Runtime index: nbt_read_dynamic via macro sub-function
1668
+ if (expr.fn === 'storage_get_int' && expr.args.length >= 3) {
1669
+ const storagePath = hirExprToStringLiteral(expr.args[0]);
1670
+ const fieldName = hirExprToStringLiteral(expr.args[1]);
1671
+ const indexOp = lowerExpr(expr.args[2], ctx, scope);
1672
+ const t = ctx.freshTemp();
1673
+ if (indexOp.kind === 'const') {
1674
+ ctx.emit({ kind: 'nbt_read', dst: t, ns: storagePath, path: `${fieldName}[${indexOp.value}]`, scale: 1 });
1675
+ }
1676
+ else {
1677
+ ctx.emit({ kind: 'nbt_read_dynamic', dst: t, ns: storagePath, pathPrefix: fieldName, indexSrc: indexOp });
1678
+ }
1679
+ return { kind: 'temp', name: t };
1680
+ }
1197
1681
  // Handle __entity_tag / __entity_untag — entity.tag("name") / entity.untag("name") sugar
1198
1682
  if (expr.fn === '__entity_tag' || expr.fn === '__entity_untag') {
1199
1683
  const selArg = expr.args[0];
@@ -1362,18 +1846,78 @@ function lowerExpr(expr, ctx, scope) {
1362
1846
  ctx.emit({ kind: 'const', dst: t, value: 0 });
1363
1847
  return { kind: 'temp', name: t };
1364
1848
  }
1849
+ // Handle int_to_str / bool_to_str — identity functions for scoreboard int/bool → string
1850
+ // In f-string context these are handled by precomputeFStringParts; outside that, just
1851
+ // evaluate the argument and return it (integer stays as integer for scoreboard purposes).
1852
+ if (expr.fn === 'int_to_str' || expr.fn === 'bool_to_str') {
1853
+ if (expr.args.length === 1) {
1854
+ return lowerExpr(expr.args[0], ctx, scope);
1855
+ }
1856
+ const t = ctx.freshTemp();
1857
+ ctx.emit({ kind: 'const', dst: t, value: 0 });
1858
+ return { kind: 'temp', name: t };
1859
+ }
1860
+ // Handle assert(cond[, message]) — test framework builtin
1861
+ if (expr.fn === 'assert') {
1862
+ const condArg = expr.args[0];
1863
+ const msgArg = expr.args[1];
1864
+ const condOp = condArg ? lowerExpr(condArg, ctx, scope) : { kind: 'const', value: 0 };
1865
+ // Evaluate condition to a temp
1866
+ let condTemp;
1867
+ if (condOp.kind === 'temp') {
1868
+ condTemp = condOp.name;
1869
+ }
1870
+ else {
1871
+ condTemp = ctx.freshTemp();
1872
+ ctx.emit({ kind: 'const', dst: condTemp, value: condOp.value });
1873
+ }
1874
+ // Get message string
1875
+ let msgStr = 'assert failed';
1876
+ if (msgArg && msgArg.kind === 'str_lit') {
1877
+ msgStr = msgArg.value;
1878
+ }
1879
+ const obj = `__${ctx.getNamespace()}`;
1880
+ // emit: execute unless score $condTemp <obj> matches 1 run tellraw @a "FAIL: <msg>"
1881
+ const failMsg = JSON.stringify({ text: `FAIL: ${msgStr}`, color: 'red' });
1882
+ ctx.emit({ kind: 'call', dst: null, fn: `__raw:execute unless score $${ctx.getFnName()}_${condTemp} ${obj} matches 1 run tellraw @a ${failMsg}`, args: [] });
1883
+ ctx.emit({ kind: 'call', dst: null, fn: `__raw:execute unless score $${ctx.getFnName()}_${condTemp} ${obj} matches 1 run scoreboard players add rs.test_failed rs.meta 1`, args: [] });
1884
+ const t = ctx.freshTemp();
1885
+ ctx.emit({ kind: 'const', dst: t, value: 0 });
1886
+ return { kind: 'temp', name: t };
1887
+ }
1365
1888
  // Handle builtin calls → raw MC commands
1366
1889
  if (macro_1.BUILTIN_SET.has(expr.fn)) {
1367
- const cmd = formatBuiltinCall(expr.fn, expr.args, ctx.currentMacroParams);
1890
+ // For text builtins with f-string args, precompute complex expressions to temp vars
1891
+ const TEXT_BUILTINS_SET = new Set(['tell', 'tellraw', 'title', 'subtitle', 'actionbar', 'announce']);
1892
+ let resolvedArgs = expr.args;
1893
+ if (TEXT_BUILTINS_SET.has(expr.fn)) {
1894
+ resolvedArgs = expr.args.map(arg => arg.kind === 'f_string' ? precomputeFStringParts(arg, ctx, scope) : arg);
1895
+ }
1896
+ const cmd = formatBuiltinCall(expr.fn, resolvedArgs, ctx.currentMacroParams, ctx.getNamespace());
1368
1897
  ctx.emit({ kind: 'call', dst: null, fn: `__raw:${cmd}`, args: [] });
1369
1898
  const t = ctx.freshTemp();
1370
1899
  ctx.emit({ kind: 'const', dst: t, value: 0 });
1371
1900
  return { kind: 'temp', name: t };
1372
1901
  }
1373
1902
  // Check for struct instance method call: parser desugars v.method() → call('method', [v, ...])
1903
+ // Some method names are remapped by the parser (e.g. add→set_add for set builtins).
1904
+ // We reverse-map them here to support impl methods with those names.
1905
+ const PARSER_METHOD_REMAP = {
1906
+ 'set_add': 'add', 'set_contains': 'contains', 'set_remove': 'remove', 'set_clear': 'clear',
1907
+ '__array_push': 'push', '__array_pop': 'pop',
1908
+ '__entity_tag': 'tag', '__entity_untag': 'untag', '__entity_has_tag': 'has_tag',
1909
+ };
1374
1910
  if (expr.args.length > 0 && expr.args[0].kind === 'ident') {
1375
1911
  const sv = ctx.structVars.get(expr.args[0].name);
1376
1912
  if (sv) {
1913
+ // Intercept Display::to_string() calls — inlined at f-string call sites; return 0 otherwise
1914
+ if (expr.fn === 'to_string' && ctx.displayImpls.has(sv.typeName)) {
1915
+ // Display::to_string() is expanded inline in f-string context (precomputeFStringParts).
1916
+ // Outside of that context, return a dummy 0 (the call is not valid standalone).
1917
+ const t = ctx.freshTemp();
1918
+ ctx.emit({ kind: 'const', dst: t, value: 0 });
1919
+ return { kind: 'temp', name: t };
1920
+ }
1377
1921
  // Intercept Timer method calls when _id is a known compile-time constant
1378
1922
  if (sv.typeName === 'Timer') {
1379
1923
  const idTemp = sv.fields.get('_id');
@@ -1382,7 +1926,10 @@ function lowerExpr(expr, ctx, scope) {
1382
1926
  return lowerTimerMethod(expr.fn, timerId, sv, ctx, scope, expr.args.slice(1));
1383
1927
  }
1384
1928
  }
1385
- const methodInfo = ctx.implMethods.get(sv.typeName)?.get(expr.fn);
1929
+ // Try direct name, then try reverse-mapped name (for parser-remapped builtins)
1930
+ const originalMethodName = PARSER_METHOD_REMAP[expr.fn] ?? expr.fn;
1931
+ const methodInfo = ctx.implMethods.get(sv.typeName)?.get(expr.fn)
1932
+ ?? ctx.implMethods.get(sv.typeName)?.get(originalMethodName);
1386
1933
  if (methodInfo?.hasSelf) {
1387
1934
  // Build args: self fields first, then remaining explicit args
1388
1935
  const fields = ctx.structDefs.get(sv.typeName) ?? [];
@@ -1411,7 +1958,7 @@ function lowerExpr(expr, ctx, scope) {
1411
1958
  }
1412
1959
  const allArgs = [...selfArgs, ...explicitArgs];
1413
1960
  const t = ctx.freshTemp();
1414
- ctx.emit({ kind: 'call', dst: t, fn: `${sv.typeName}::${expr.fn}`, args: allArgs });
1961
+ ctx.emit({ kind: 'call', dst: t, fn: `${sv.typeName}::${originalMethodName}`, args: allArgs });
1415
1962
  return { kind: 'temp', name: t };
1416
1963
  }
1417
1964
  }
@@ -1419,21 +1966,47 @@ function lowerExpr(expr, ctx, scope) {
1419
1966
  // Check if calling a macro function → emit call_macro
1420
1967
  const targetMacro = ctx.macroInfo.get(expr.fn);
1421
1968
  if (targetMacro) {
1422
- const args = expr.args.map(a => lowerExpr(a, ctx, scope));
1423
1969
  const targetParams = ctx.fnParamInfo.get(expr.fn) ?? [];
1424
1970
  const macroArgs = [];
1425
- for (let i = 0; i < targetParams.length && i < args.length; i++) {
1971
+ for (let i = 0; i < targetParams.length && i < expr.args.length; i++) {
1426
1972
  const paramName = targetParams[i].name;
1427
1973
  if (targetMacro.macroParams.has(paramName)) {
1428
1974
  const paramTypeName = targetMacro.paramTypes.get(paramName) ?? 'int';
1429
- const isFloat = paramTypeName === 'float';
1430
- const isFixed = paramTypeName === 'fixed';
1431
- macroArgs.push({
1432
- name: paramName,
1433
- value: args[i],
1434
- type: (isFloat || isFixed) ? 'double' : 'int',
1435
- scale: isFloat ? 0.01 : isFixed ? 0.0001 : 1,
1436
- });
1975
+ const isString = paramTypeName === 'string' || paramTypeName === 'format_string';
1976
+ const isSelector = paramTypeName === 'selector';
1977
+ if (isString) {
1978
+ // String macro params: store directly to rs:macro_args as NBT string
1979
+ const srcPath = lowerStringExprToPath(expr.args[i], ctx, scope, paramName);
1980
+ if (srcPath) {
1981
+ ctx.emit({
1982
+ kind: 'call',
1983
+ dst: null,
1984
+ fn: `__raw:data modify storage rs:macro_args ${paramName} set from storage rs:strings ${srcPath}`,
1985
+ args: [],
1986
+ });
1987
+ }
1988
+ }
1989
+ else if (isSelector) {
1990
+ // Selector macro params: store the selector string as an NBT string in rs:macro_args
1991
+ const arg = expr.args[i];
1992
+ const selStr = arg.kind === 'selector' ? arg.raw : '@s';
1993
+ ctx.emit({
1994
+ kind: 'call',
1995
+ dst: null,
1996
+ fn: `__raw:data modify storage rs:macro_args ${paramName} set value ${JSON.stringify(selStr)}`,
1997
+ args: [],
1998
+ });
1999
+ }
2000
+ else {
2001
+ const isFloat = paramTypeName === 'float';
2002
+ const isFixed = paramTypeName === 'fixed';
2003
+ macroArgs.push({
2004
+ name: paramName,
2005
+ value: lowerExpr(expr.args[i], ctx, scope),
2006
+ type: (isFloat || isFixed) ? 'double' : 'int',
2007
+ scale: isFloat ? 0.01 : isFixed ? 0.0001 : 1,
2008
+ });
2009
+ }
1437
2010
  }
1438
2011
  }
1439
2012
  const t = ctx.freshTemp();
@@ -1467,7 +2040,7 @@ function lowerExpr(expr, ctx, scope) {
1467
2040
  if (!ctx.specializedFnsRegistry.has(specializedName)) {
1468
2041
  // Placeholder to prevent re-entry
1469
2042
  ctx.specializedFnsRegistry.set(specializedName, []);
1470
- const { fn: specFn, helpers: specHelpers } = lowerFunction(targetHirFn, ctx.getNamespace(), ctx.structDefs, ctx.implMethods, ctx.macroInfo, ctx.fnParamInfo, ctx.enumDefs, ctx.sourceFile, ctx.timerCounter, arrayArgBindings, ctx.hirFunctions, ctx.specializedFnsRegistry, specializedName);
2043
+ const { fn: specFn, helpers: specHelpers } = lowerFunction(targetHirFn, ctx.getNamespace(), ctx.structDefs, ctx.implMethods, ctx.macroInfo, ctx.fnParamInfo, ctx.enumDefs, ctx.sourceFile, ctx.timerCounter, arrayArgBindings, ctx.hirFunctions, ctx.specializedFnsRegistry, specializedName, ctx.enumPayloads, ctx.constValues, ctx.singletonStructs, ctx.displayImpls);
1471
2044
  ctx.specializedFnsRegistry.set(specializedName, [specFn, ...specHelpers]);
1472
2045
  }
1473
2046
  // Emit call to the specialized function, passing only non-array args
@@ -1489,6 +2062,35 @@ function lowerExpr(expr, ctx, scope) {
1489
2062
  {
1490
2063
  const targetParams = ctx.fnParamInfo.get(expr.fn);
1491
2064
  if (targetParams) {
2065
+ const hasStringParam = targetParams.some(p => p.type.kind === 'named' && (p.type.name === 'string' || p.type.name === 'format_string'));
2066
+ if (hasStringParam) {
2067
+ const nonStringArgs = [];
2068
+ let stringSlot = 0;
2069
+ for (let i = 0; i < targetParams.length && i < expr.args.length; i++) {
2070
+ const p = targetParams[i];
2071
+ if (p.type.kind === 'named' && (p.type.name === 'string' || p.type.name === 'format_string')) {
2072
+ const srcPath = lowerStringExprToPath(expr.args[i], ctx, scope, `arg${stringSlot}`);
2073
+ if (srcPath) {
2074
+ ctx.emit({
2075
+ kind: 'call',
2076
+ dst: null,
2077
+ fn: `__raw:data modify storage rs:strings __sp${stringSlot} set from storage rs:strings ${srcPath}`,
2078
+ args: [],
2079
+ });
2080
+ }
2081
+ stringSlot++;
2082
+ }
2083
+ else {
2084
+ nonStringArgs.push(lowerExpr(expr.args[i], ctx, scope));
2085
+ }
2086
+ }
2087
+ for (let i = targetParams.length; i < expr.args.length; i++) {
2088
+ nonStringArgs.push(lowerExpr(expr.args[i], ctx, scope));
2089
+ }
2090
+ const t = ctx.freshTemp();
2091
+ ctx.emit({ kind: 'call', dst: t, fn: expr.fn, args: nonStringArgs });
2092
+ return { kind: 'temp', name: t };
2093
+ }
1492
2094
  const hasDoubleParam = targetParams.some(p => p.type.kind === 'named' && p.type.name === 'double');
1493
2095
  if (hasDoubleParam) {
1494
2096
  const ns = ctx.getNamespace();
@@ -1533,10 +2135,38 @@ function lowerExpr(expr, ctx, scope) {
1533
2135
  return { kind: 'temp', name: t };
1534
2136
  }
1535
2137
  case 'invoke': {
2138
+ // Check for array.len() call: arr.len() → compile-time constant or NBT length
2139
+ if (expr.callee.kind === 'member' && expr.callee.field === 'len' && expr.callee.obj.kind === 'ident') {
2140
+ const arrInfo = ctx.arrayVars.get(expr.callee.obj.name);
2141
+ if (arrInfo) {
2142
+ if (arrInfo.knownLen !== undefined) {
2143
+ // Compile-time constant length (literal array)
2144
+ const t = ctx.freshTemp();
2145
+ ctx.emit({ kind: 'const', dst: t, value: arrInfo.knownLen });
2146
+ return { kind: 'temp', name: t };
2147
+ }
2148
+ // Dynamic array (function parameter, heap_new, etc.): read length at runtime
2149
+ // emit: execute store result score $t __ns run data get storage ns:arrays path
2150
+ const t = ctx.freshTemp();
2151
+ ctx.emit({ kind: 'nbt_list_len', dst: t, ns: arrInfo.ns, path: arrInfo.pathPrefix });
2152
+ return { kind: 'temp', name: t };
2153
+ }
2154
+ // Also check scope-tracked length temp for literal arrays
2155
+ const lenTemp = scope.get(expr.callee.obj.name);
2156
+ if (lenTemp !== undefined) {
2157
+ return { kind: 'temp', name: lenTemp };
2158
+ }
2159
+ }
1536
2160
  // Check for struct method call: v.method(args)
1537
2161
  if (expr.callee.kind === 'member' && expr.callee.obj.kind === 'ident') {
1538
2162
  const sv = ctx.structVars.get(expr.callee.obj.name);
1539
2163
  if (sv) {
2164
+ // Intercept Display::to_string() — inlined in f-string context; return 0 otherwise
2165
+ if (expr.callee.field === 'to_string' && ctx.displayImpls.has(sv.typeName)) {
2166
+ const t = ctx.freshTemp();
2167
+ ctx.emit({ kind: 'const', dst: t, value: 0 });
2168
+ return { kind: 'temp', name: t };
2169
+ }
1540
2170
  // Intercept Timer method calls when _id is a known compile-time constant
1541
2171
  if (sv.typeName === 'Timer') {
1542
2172
  const idTemp = sv.fields.get('_id');
@@ -1561,6 +2191,35 @@ function lowerExpr(expr, ctx, scope) {
1561
2191
  }
1562
2192
  }
1563
2193
  }
2194
+ // Method chaining: callee obj is not a simple ident (e.g. v.scale(2).add(...))
2195
+ // Determine if the callee obj expression returns a struct via __rf_ slots
2196
+ if (expr.callee.kind === 'member' && expr.callee.obj.kind !== 'ident') {
2197
+ const returnedStructType = inferInvokeReturnStructType(expr.callee.obj, ctx);
2198
+ if (returnedStructType) {
2199
+ // Lower the inner call — result goes into __rf_ slots
2200
+ lowerExpr(expr.callee.obj, ctx, scope);
2201
+ // Read __rf_ slots into temps for this chained call
2202
+ const chainFields = ctx.structDefs.get(returnedStructType) ?? [];
2203
+ const chainFieldTemps = new Map();
2204
+ for (const fieldName of chainFields) {
2205
+ const ft = ctx.freshTemp();
2206
+ ctx.emit({ kind: 'copy', dst: ft, src: { kind: 'temp', name: `__rf_${fieldName}` } });
2207
+ chainFieldTemps.set(fieldName, ft);
2208
+ }
2209
+ const methodInfo = ctx.implMethods.get(returnedStructType)?.get(expr.callee.field);
2210
+ if (methodInfo?.hasSelf) {
2211
+ const selfArgs = chainFields.map(f => {
2212
+ const temp = chainFieldTemps.get(f);
2213
+ return temp ? { kind: 'temp', name: temp } : { kind: 'const', value: 0 };
2214
+ });
2215
+ const explicitArgs = expr.args.map(a => lowerExpr(a, ctx, scope));
2216
+ const allArgs = [...selfArgs, ...explicitArgs];
2217
+ const ct = ctx.freshTemp();
2218
+ ctx.emit({ kind: 'call', dst: ct, fn: `${returnedStructType}::${expr.callee.field}`, args: allArgs });
2219
+ return { kind: 'temp', name: ct };
2220
+ }
2221
+ }
2222
+ }
1564
2223
  // Fallback: generic invoke
1565
2224
  const calleeOp = lowerExpr(expr.callee, ctx, scope);
1566
2225
  const args = expr.args.map(a => lowerExpr(a, ctx, scope));
@@ -1587,6 +2246,29 @@ function lowerExpr(expr, ctx, scope) {
1587
2246
  ctx.emit({ kind: 'const', dst: t, value: 0 });
1588
2247
  return { kind: 'temp', name: t };
1589
2248
  }
2249
+ // @singleton struct static calls: expand struct arg field-by-field for ::set
2250
+ if (ctx.singletonStructs.has(expr.type)) {
2251
+ if (expr.method === 'get') {
2252
+ // GameState::get() — no struct args, our synthetic LIR fn writes to $__rf_<field> slots
2253
+ const t = ctx.freshTemp();
2254
+ ctx.emit({ kind: 'call', dst: t, fn: `${expr.type}::${expr.method}`, args: [] });
2255
+ return { kind: 'temp', name: t };
2256
+ }
2257
+ else if (expr.method === 'set' && expr.args.length === 1 && expr.args[0].kind === 'ident') {
2258
+ // GameState::set(gs) — flatten struct arg into individual field args ($p0, $p1, ...)
2259
+ const sv = ctx.structVars.get(expr.args[0].name);
2260
+ if (sv) {
2261
+ const fields = ctx.structDefs.get(sv.typeName) ?? [];
2262
+ const fieldArgs = fields.map(f => {
2263
+ const temp = sv.fields.get(f);
2264
+ return temp ? { kind: 'temp', name: temp } : { kind: 'const', value: 0 };
2265
+ });
2266
+ const t = ctx.freshTemp();
2267
+ ctx.emit({ kind: 'call', dst: t, fn: `${expr.type}::${expr.method}`, args: fieldArgs });
2268
+ return { kind: 'temp', name: t };
2269
+ }
2270
+ }
2271
+ }
1590
2272
  const args = expr.args.map(a => lowerExpr(a, ctx, scope));
1591
2273
  const t = ctx.freshTemp();
1592
2274
  ctx.emit({ kind: 'call', dst: t, fn: `${expr.type}::${expr.method}`, args });
@@ -1620,6 +2302,43 @@ function lowerExpr(expr, ctx, scope) {
1620
2302
  ctx.emit({ kind: 'const', dst: t, value: 0 });
1621
2303
  return { kind: 'temp', name: t };
1622
2304
  }
2305
+ case 'unwrap_or': {
2306
+ // opt.unwrap_or(default) → evaluate opt, if has=1 return val else return default
2307
+ const resultTemp = ctx.freshTemp();
2308
+ const defaultOp = lowerExpr(expr.default_, ctx, scope);
2309
+ ctx.emit({ kind: 'copy', dst: resultTemp, src: defaultOp });
2310
+ const sv = (() => {
2311
+ if (expr.opt.kind === 'ident')
2312
+ return ctx.structVars.get(expr.opt.name);
2313
+ return undefined;
2314
+ })();
2315
+ let hasOp;
2316
+ let valTemp;
2317
+ if (sv && sv.typeName === '__option') {
2318
+ const hasT = sv.fields.get('has');
2319
+ const valT = sv.fields.get('val');
2320
+ hasOp = { kind: 'temp', name: hasT };
2321
+ valTemp = valT;
2322
+ }
2323
+ else {
2324
+ lowerExpr(expr.opt, ctx, scope);
2325
+ const hasT = ctx.freshTemp();
2326
+ const valT = ctx.freshTemp();
2327
+ ctx.emit({ kind: 'copy', dst: hasT, src: { kind: 'temp', name: '__rf_has' } });
2328
+ ctx.emit({ kind: 'copy', dst: valT, src: { kind: 'temp', name: '__rf_val' } });
2329
+ hasOp = { kind: 'temp', name: hasT };
2330
+ valTemp = valT;
2331
+ }
2332
+ const someBlock = ctx.newBlock('unwrap_some');
2333
+ const mergeBlock = ctx.newBlock('unwrap_merge');
2334
+ ctx.terminate({ kind: 'branch', cond: hasOp, then: someBlock.id, else: mergeBlock.id });
2335
+ ctx.switchTo(someBlock);
2336
+ if (valTemp)
2337
+ ctx.emit({ kind: 'copy', dst: resultTemp, src: { kind: 'temp', name: valTemp } });
2338
+ ctx.terminate({ kind: 'jump', target: mergeBlock.id });
2339
+ ctx.switchTo(mergeBlock);
2340
+ return { kind: 'temp', name: resultTemp };
2341
+ }
1623
2342
  case 'type_cast': {
1624
2343
  const ns = ctx.getNamespace();
1625
2344
  const targetName = expr.targetType.kind === 'named' ? expr.targetType.name : null;
@@ -1747,6 +2466,31 @@ function lowerShortCircuitOr(expr, ctx, scope) {
1747
2466
  // ---------------------------------------------------------------------------
1748
2467
  // Timer method inlining
1749
2468
  // ---------------------------------------------------------------------------
2469
+ /**
2470
+ * Infer the struct type name returned by a chained invoke/call expression.
2471
+ * Used to support method chaining: v.scale(2).add(...) where scale() returns Vec2.
2472
+ * Returns the struct type name if determinable, otherwise undefined.
2473
+ */
2474
+ function inferInvokeReturnStructType(expr, ctx) {
2475
+ if (expr.kind === 'invoke' && expr.callee.kind === 'member') {
2476
+ // Find the receiver type via structVars
2477
+ let receiverTypeName;
2478
+ if (expr.callee.obj.kind === 'ident') {
2479
+ receiverTypeName = ctx.structVars.get(expr.callee.obj.name)?.typeName;
2480
+ }
2481
+ else {
2482
+ // Recursively infer the type for deeper chains
2483
+ receiverTypeName = inferInvokeReturnStructType(expr.callee.obj, ctx);
2484
+ }
2485
+ if (receiverTypeName) {
2486
+ const methodInfo = ctx.implMethods.get(receiverTypeName)?.get(expr.callee.field);
2487
+ if (methodInfo?.returnStructName) {
2488
+ return methodInfo.returnStructName;
2489
+ }
2490
+ }
2491
+ }
2492
+ return undefined;
2493
+ }
1750
2494
  /**
1751
2495
  * Inline a Timer instance method call using the statically-assigned timer ID.
1752
2496
  * Emits scoreboard operations directly, bypassing the Timer::* function calls.
@@ -1885,6 +2629,39 @@ function lowerExecuteSubcmd(sub) {
1885
2629
  }
1886
2630
  }
1887
2631
  }
2632
+ function lowerStringExprToPath(expr, ctx, scope, hint = 'str') {
2633
+ switch (expr.kind) {
2634
+ case 'str_lit': {
2635
+ const path = ctx.freshStringVar(hint);
2636
+ ctx.emit({
2637
+ kind: 'call',
2638
+ dst: null,
2639
+ fn: `__raw:data modify storage rs:strings ${path} set value ${JSON.stringify(expr.value)}`,
2640
+ args: [],
2641
+ });
2642
+ return path;
2643
+ }
2644
+ case 'ident':
2645
+ return ctx.stringVars.get(expr.name) ?? null;
2646
+ case 'assign': {
2647
+ if (!ctx.stringVars.has(expr.target))
2648
+ return null;
2649
+ const dstPath = ctx.stringVars.get(expr.target);
2650
+ const srcPath = lowerStringExprToPath(expr.value, ctx, scope, expr.target);
2651
+ if (!srcPath || srcPath === dstPath)
2652
+ return dstPath;
2653
+ ctx.emit({
2654
+ kind: 'call',
2655
+ dst: null,
2656
+ fn: `__raw:data modify storage rs:strings ${dstPath} set from storage rs:strings ${srcPath}`,
2657
+ args: [],
2658
+ });
2659
+ return dstPath;
2660
+ }
2661
+ default:
2662
+ return null;
2663
+ }
2664
+ }
1888
2665
  function selectorToString(sel) {
1889
2666
  // EntitySelector has kind like '@a', '@e', '@s', etc.
1890
2667
  // Filters are key=value pairs that become [key=value,key=value]
@@ -1921,7 +2698,147 @@ const MACRO_SENTINEL = '\x01';
1921
2698
  * If any argument uses a macro param, the command is prefixed with \x01
1922
2699
  * (converted to $ in LIR emission).
1923
2700
  */
1924
- function formatBuiltinCall(fn, args, macroParams) {
2701
+ /**
2702
+ * Convert an f_string HIRExpr to a Minecraft JSON text component string.
2703
+ * Each interpolated variable becomes a {"score":{"name":"$var","objective":"__ns"}} component.
2704
+ */
2705
+ /**
2706
+ * Pre-evaluate complex f-string expression parts to MIR temp vars,
2707
+ * returning a rewritten HIRExpr where each complex part is replaced by a simple ident.
2708
+ */
2709
+ function precomputeFStringParts(expr, ctx, scope) {
2710
+ if (expr.kind !== 'f_string')
2711
+ return expr;
2712
+ const newParts = [];
2713
+ for (const part of expr.parts) {
2714
+ if (part.kind === 'text') {
2715
+ newParts.push(part);
2716
+ continue;
2717
+ }
2718
+ const inner = part.expr;
2719
+ // Simple cases that fStringToJsonText already handles
2720
+ if (inner.kind === 'ident' || inner.kind === 'int_lit' || inner.kind === 'bool_lit') {
2721
+ newParts.push({ kind: 'expr', expr: inner });
2722
+ continue;
2723
+ }
2724
+ // Display::to_string() inline expansion in f-string context:
2725
+ // v.to_string() (desugared as call{fn:'to_string', args:[v]}) → inline the Display impl's f-string
2726
+ if (inner.kind === 'call' && inner.fn === 'to_string' && inner.args.length === 1 && inner.args[0].kind === 'ident') {
2727
+ const argName = inner.args[0].name;
2728
+ const sv = ctx.structVars.get(argName);
2729
+ if (sv && ctx.displayImpls.has(sv.typeName)) {
2730
+ const displayParts = ctx.displayImpls.get(sv.typeName);
2731
+ // Expand Display impl parts, substituting self.<field> with the actual struct field temps
2732
+ for (const dp of displayParts) {
2733
+ if (dp.kind === 'text') {
2734
+ newParts.push(dp);
2735
+ }
2736
+ else {
2737
+ const dpExpr = dp.expr;
2738
+ // member(ident('self'), field) → lookup struct field temp
2739
+ if (dpExpr.kind === 'member' && dpExpr.obj.kind === 'ident' && dpExpr.obj.name === 'self') {
2740
+ const fieldTemp = sv.fields.get(dpExpr.field);
2741
+ if (fieldTemp) {
2742
+ newParts.push({ kind: 'expr', expr: { kind: 'ident', name: fieldTemp } });
2743
+ }
2744
+ else {
2745
+ newParts.push({ kind: 'expr', expr: { kind: 'int_lit', value: 0 } });
2746
+ }
2747
+ }
2748
+ else {
2749
+ // Other expressions: lower them with self fields in scope
2750
+ const selfScope = new Map(scope);
2751
+ for (const [fieldName, fieldTemp] of sv.fields) {
2752
+ selfScope.set(`self.${fieldName}`, fieldTemp);
2753
+ }
2754
+ const tempOp = lowerExpr(dpExpr, ctx, selfScope);
2755
+ if (tempOp.kind === 'temp') {
2756
+ newParts.push({ kind: 'expr', expr: { kind: 'ident', name: tempOp.name } });
2757
+ }
2758
+ else if (tempOp.kind === 'const') {
2759
+ newParts.push({ kind: 'expr', expr: { kind: 'int_lit', value: tempOp.value } });
2760
+ }
2761
+ }
2762
+ }
2763
+ }
2764
+ continue;
2765
+ }
2766
+ }
2767
+ // int_to_str(x) / bool_to_str(x) in f-string: pass through the inner arg as a scoreboard score ref
2768
+ if (inner.kind === 'call' && (inner.fn === 'int_to_str' || inner.fn === 'bool_to_str') && inner.args.length === 1) {
2769
+ const arg = inner.args[0];
2770
+ if (arg.kind === 'ident') {
2771
+ newParts.push({ kind: 'expr', expr: arg });
2772
+ continue;
2773
+ }
2774
+ // If arg is complex, lower it first
2775
+ const argOp = lowerExpr(arg, ctx, scope);
2776
+ if (argOp.kind === 'temp') {
2777
+ newParts.push({ kind: 'expr', expr: { kind: 'ident', name: argOp.name } });
2778
+ }
2779
+ else if (argOp.kind === 'const') {
2780
+ newParts.push({ kind: 'expr', expr: { kind: 'int_lit', value: argOp.value } });
2781
+ }
2782
+ else {
2783
+ newParts.push(part);
2784
+ }
2785
+ continue;
2786
+ }
2787
+ // Complex expression: lower to a temp var, then reference it as ident
2788
+ const tempOp = lowerExpr(inner, ctx, scope);
2789
+ if (tempOp.kind === 'temp') {
2790
+ newParts.push({ kind: 'expr', expr: { kind: 'ident', name: tempOp.name } });
2791
+ }
2792
+ else if (tempOp.kind === 'const') {
2793
+ newParts.push({ kind: 'expr', expr: { kind: 'int_lit', value: tempOp.value } });
2794
+ }
2795
+ else {
2796
+ newParts.push(part);
2797
+ }
2798
+ }
2799
+ return { kind: 'f_string', parts: newParts };
2800
+ }
2801
+ function fStringToJsonText(expr, namespace) {
2802
+ if (expr.kind !== 'f_string')
2803
+ return JSON.stringify(expr.kind === 'str_lit' ? { text: expr.value } : { text: '~' });
2804
+ const objective = `__${namespace}`;
2805
+ const extra = [];
2806
+ for (const part of expr.parts) {
2807
+ if (part.kind === 'text') {
2808
+ if (part.value)
2809
+ extra.push({ text: part.value });
2810
+ }
2811
+ else {
2812
+ // expr part — must be a scoreboard variable (ident) or literal
2813
+ const inner = part.expr;
2814
+ if (inner.kind === 'ident') {
2815
+ extra.push({ score: { name: `$${inner.name}`, objective } });
2816
+ }
2817
+ else if (inner.kind === 'int_lit') {
2818
+ extra.push({ text: String(inner.value) });
2819
+ }
2820
+ else if (inner.kind === 'bool_lit') {
2821
+ extra.push({ text: inner.value ? 'true' : 'false' });
2822
+ }
2823
+ else {
2824
+ extra.push({ text: '?' });
2825
+ }
2826
+ }
2827
+ }
2828
+ if (extra.length === 0)
2829
+ return '{"text":""}';
2830
+ if (extra.length === 1)
2831
+ return JSON.stringify(extra[0]);
2832
+ return JSON.stringify({ text: '', extra });
2833
+ }
2834
+ function formatBuiltinCall(fn, args, macroParams, namespace = '') {
2835
+ // For text-display builtins, the message arg may be an f_string — convert to JSON text
2836
+ const TEXT_BUILTINS = new Set(['tell', 'tellraw', 'title', 'subtitle', 'actionbar', 'announce']);
2837
+ const resolveTextArg = (arg) => {
2838
+ if (arg.kind === 'f_string')
2839
+ return fStringToJsonText(arg, namespace);
2840
+ return JSON.stringify({ text: exprToCommandArg(arg, macroParams).str });
2841
+ };
1925
2842
  const fmtArgs = args.map(a => exprToCommandArg(a, macroParams));
1926
2843
  const strs = fmtArgs.map(a => a.str);
1927
2844
  const hasMacro = fmtArgs.some(a => a.isMacro);
@@ -1979,24 +2896,34 @@ function formatBuiltinCall(fn, args, macroParams) {
1979
2896
  cmd = `say ${strs[0] ?? ''}`;
1980
2897
  break;
1981
2898
  case 'tell':
1982
- case 'tellraw':
1983
- cmd = `tellraw ${strs[0]} {"text":"${strs[1]}"}`;
2899
+ case 'tellraw': {
2900
+ const msgJson = resolveTextArg(args[1]);
2901
+ cmd = `tellraw ${strs[0]} ${msgJson}`;
1984
2902
  break;
1985
- case 'title':
1986
- cmd = `title ${strs[0]} title {"text":"${strs[1]}"}`;
2903
+ }
2904
+ case 'title': {
2905
+ const msgJson = resolveTextArg(args[1]);
2906
+ cmd = `title ${strs[0]} title ${msgJson}`;
1987
2907
  break;
1988
- case 'actionbar':
1989
- cmd = `title ${strs[0]} actionbar {"text":"${strs[1]}"}`;
2908
+ }
2909
+ case 'actionbar': {
2910
+ const msgJson = resolveTextArg(args[1]);
2911
+ cmd = `title ${strs[0]} actionbar ${msgJson}`;
1990
2912
  break;
1991
- case 'subtitle':
1992
- cmd = `title ${strs[0]} subtitle {"text":"${strs[1]}"}`;
2913
+ }
2914
+ case 'subtitle': {
2915
+ const msgJson = resolveTextArg(args[1]);
2916
+ cmd = `title ${strs[0]} subtitle ${msgJson}`;
1993
2917
  break;
2918
+ }
1994
2919
  case 'title_times':
1995
2920
  cmd = `title ${strs[0]} times ${strs[1]} ${strs[2]} ${strs[3]}`;
1996
2921
  break;
1997
- case 'announce':
1998
- cmd = `tellraw @a {"text":"${strs[0]}"}`;
2922
+ case 'announce': {
2923
+ const msgJson = resolveTextArg(args[0]);
2924
+ cmd = `tellraw @a ${msgJson}`;
1999
2925
  break;
2926
+ }
2000
2927
  case 'give': {
2001
2928
  const nbt = strs[3] ? strs[3] : '';
2002
2929
  cmd = `give ${strs[0]} ${strs[1]}${nbt} ${strs[2] ?? '1'}`;
@@ -2057,6 +2984,66 @@ function formatBuiltinCall(fn, args, macroParams) {
2057
2984
  case 'xp_set':
2058
2985
  cmd = `xp set ${strs[0]} ${strs[1]} ${strs[2] ?? 'points'}`;
2059
2986
  break;
2987
+ case 'scoreboard_add_objective':
2988
+ cmd = strs[2] ? `scoreboard objectives add ${strs[0]} ${strs[1]} ${strs[2]}` : `scoreboard objectives add ${strs[0]} ${strs[1]}`;
2989
+ break;
2990
+ case 'scoreboard_remove_objective':
2991
+ cmd = `scoreboard objectives remove ${strs[0]}`;
2992
+ break;
2993
+ case 'scoreboard_display':
2994
+ cmd = `scoreboard objectives setdisplay ${strs[0]} ${strs[1] ?? ''}`;
2995
+ break;
2996
+ case 'scoreboard_hide':
2997
+ cmd = `scoreboard objectives setdisplay ${strs[0]}`;
2998
+ break;
2999
+ case 'team_add':
3000
+ cmd = strs[1] ? `team add ${strs[0]} ${strs[1]}` : `team add ${strs[0]}`;
3001
+ break;
3002
+ case 'team_remove':
3003
+ cmd = `team remove ${strs[0]}`;
3004
+ break;
3005
+ case 'team_join':
3006
+ cmd = `team join ${strs[0]} ${strs[1]}`;
3007
+ break;
3008
+ case 'team_leave':
3009
+ cmd = `team leave ${strs[0]}`;
3010
+ break;
3011
+ case 'team_option':
3012
+ cmd = `team modify ${strs[0]} ${strs[1]} ${strs[2]}`;
3013
+ break;
3014
+ case 'bossbar_add':
3015
+ cmd = `bossbar add ${strs[0]} ${strs[1] ? JSON.stringify({ text: strs[1] }) : '""'}`;
3016
+ break;
3017
+ case 'bossbar_remove':
3018
+ cmd = `bossbar remove ${strs[0]}`;
3019
+ break;
3020
+ case 'bossbar_set_value':
3021
+ cmd = `bossbar set ${strs[0]} value ${strs[1]}`;
3022
+ break;
3023
+ case 'bossbar_get_value':
3024
+ cmd = `bossbar get ${strs[0]} value`;
3025
+ break;
3026
+ case 'bossbar_set_max':
3027
+ cmd = `bossbar set ${strs[0]} max ${strs[1]}`;
3028
+ break;
3029
+ case 'bossbar_set_color':
3030
+ cmd = `bossbar set ${strs[0]} color ${strs[1]}`;
3031
+ break;
3032
+ case 'bossbar_set_style':
3033
+ cmd = `bossbar set ${strs[0]} style ${strs[1]}`;
3034
+ break;
3035
+ case 'bossbar_set_visible':
3036
+ cmd = `bossbar set ${strs[0]} visible ${strs[1]}`;
3037
+ break;
3038
+ case 'bossbar_set_players':
3039
+ cmd = `bossbar set ${strs[0]} players ${strs[1]}`;
3040
+ break;
3041
+ case 'data_get':
3042
+ cmd = `data get ${strs[0]} ${strs[1]} ${strs[2] ?? ''}`.trimEnd();
3043
+ break;
3044
+ case 'data_merge':
3045
+ cmd = `data merge ${strs[0]} ${strs[1]} ${strs[2]}`;
3046
+ break;
2060
3047
  default: cmd = `${fn} ${strs.join(' ')}`;
2061
3048
  }
2062
3049
  return hasMacro ? `${MACRO_SENTINEL}${cmd}` : cmd;