Commit Graph

576 Commits

Author SHA1 Message Date
Andrew Morris
399cfaa389 Support named exports 2023-03-12 16:40:21 +11:00
Andrew Morris
860e1108f7 Fix export_name default 2023-03-12 16:00:29 +11:00
Andrew Morris
98d92b67e6 Support export { default as (name) } 2023-03-12 15:51:06 +11:00
Andrew Morris
8d54c0907c Support more named exports 2023-03-12 15:32:57 +11:00
Andrew Morris
1b76dcafa5 Partial support for named exports 2023-03-12 15:17:14 +11:00
Andrew Morris
951ee0005d Enumerate module decls 2023-03-12 14:31:33 +11:00
Andrew Morris
93496816a1 Docs for valuescript_program_embed 2023-03-10 13:27:21 +11:00
Andrew Morris
4e77747ae6 Add valuescript_program_embed 2023-03-10 13:10:48 +11:00
Andrew Morris
c65f196121 p28 2023-03-10 11:00:37 +11:00
Andrew Morris
98bc105f52 p26 2023-03-10 00:04:49 +11:00
Andrew Morris
2d550a8e60 p25 2023-03-09 23:38:58 +11:00
Andrew Morris
3ddc995cbf Improve p23 with binary search 2023-03-09 23:07:00 +11:00
Andrew Morris
1102068d1f p23 2023-03-09 22:58:16 +11:00
Andrew Morris
87639764be p22 2023-03-09 22:41:18 +11:00
Andrew Morris
e2e0ef63b2 p21 2023-03-09 22:26:32 +11:00
Andrew Morris
0dd2e26ca2 List local imports and tree shaking in the status section 2023-03-09 16:30:37 +11:00
Andrew Morris
5838080fae Extract prime functions and SillyBigInt in Project Euler solutions 2023-03-09 16:25:09 +11:00
Andrew Morris
f2b2f4544b move BinaryTree to its own file 2023-03-09 16:16:31 +11:00
Andrew Morris
6e1b5645ac Implement default export class 2023-03-09 16:14:19 +11:00
Andrew Morris
2f98bf28ee Add other function to foo.ts 2023-03-09 15:42:32 +11:00
Andrew Morris
e50ad6bf59 Use linked compilation in test_inputs.rs and add test 2023-03-09 15:38:03 +11:00
Andrew Morris
e2f41deb95 Use linked compilation with run command 2023-03-09 15:23:42 +11:00
Andrew Morris
32943bad1a New compile command using linking 2023-03-09 15:13:19 +11:00
Andrew Morris
c5b75b35de compile -> compile_module 2023-03-09 14:17:56 +11:00
Andrew Morris
1586faad56 shake_tree 2023-03-09 14:14:51 +11:00
Andrew Morris
8548733f05 PointerVisitation 2023-03-09 13:47:22 +11:00
Andrew Morris
27fcd10f8f collapse_pointers_of_pointers 2023-03-09 13:08:14 +11:00
Andrew Morris
9917b32903 Use visitor pattern for updating pointers 2023-03-09 12:56:58 +11:00
Andrew Morris
5244987f89 Link modules for vstc compile (almost works) 2023-03-09 12:19:53 +11:00
Andrew Morris
5e95be162e wip gather and link 2023-03-08 22:29:58 +11:00
Andrew Morris
452a2c5e06 Adjust copy 2023-03-08 15:58:15 +11:00
Andrew Morris
243e75f7ae clippy --fix 2023-03-08 15:07:51 +11:00
Andrew Morris
90aa54b9ab Improve copy, add contributing 2023-03-08 14:10:45 +11:00
Andrew Morris
5df451fb51 Simplify foundational example 2023-03-08 13:30:03 +11:00
Andrew Morris
76adc05837 BytecodeType::Unrecognized 2023-03-08 12:10:09 +11:00
Andrew Morris
8e44cb2e95 Compile (but not run) imports 2023-03-08 11:12:53 +11:00
Andrew Morris
db2f2d4125 populate_scope_import and other populate_scope improvements 2023-03-08 09:56:25 +11:00
Andrew Morris
53d64addb9 Add Lazy to asm.rs 2023-03-08 09:40:32 +11:00
Andrew Morris
26d8a7d9aa Module variables concept 2023-03-08 00:39:01 +11:00
Andrew Morris
907c7072f7 More consistent definition ordering 2023-03-07 11:37:18 +11:00
Andrew Morris
f6eafd1d39 Export functions and classes 2023-03-07 11:27:08 +11:00
Andrew Morris
b4e450abcd Simplifiy todo diagnostics 2023-03-07 10:54:12 +11:00
Andrew Morris
5427fb1051 Populate scope for export decls 2023-03-07 10:31:17 +11:00
Andrew Morris
106bded066 Split out populate_scope 2023-03-07 10:17:06 +11:00
Andrew Morris
19904c41ec Ignore empty statements 2023-03-07 10:09:56 +11:00
Andrew Morris
be9b078864 Simplify default exports, fix anonymous 2023-03-07 10:05:17 +11:00
Andrew Morris
264aff25aa Update assembly concepts to include export line 2023-03-07 09:11:00 +11:00
Andrew Morris
cfd427b9be Add export line to assembly 2023-03-07 08:50:56 +11:00
Andrew Morris
ff3b527c74 Test bytecode consistency when compiling via assembly 2023-03-07 08:19:29 +11:00
Andrew Morris
c83432102f Compiler -> ModuleCompiler 2023-03-07 08:12:26 +11:00