Commit Graph

  • a59b577cd3 Make NativeFunction use exceptions (panics not converted though) Andrew Morris 2023-03-21 12:07:04 +11:00
  • 79534a8d38 Enable testing exceptions with test_output Andrew Morris 2023-03-21 11:23:05 +11:00
  • 215139e98b Exceptions for binary ops Andrew Morris 2023-03-21 11:14:44 +11:00
  • 11b547db15 Set up frame steps for exceptions Andrew Morris 2023-03-21 09:51:25 +11:00
  • eaf6280c71 Add Number.EPSILON Andrew Morris 2023-03-20 18:51:10 +11:00
  • 5b7a64049c Fix codify bigint suffix, adjust readme Andrew Morris 2023-03-20 18:29:01 +11:00
  • d2c437a9b6 BigInt Andrew Morris 2023-03-20 17:59:07 +11:00
  • 44de4a88f4 Allow using isFinite, isNaN, parseFloat, parseInt globally Andrew Morris 2023-03-20 14:39:49 +11:00
  • b71bf3a9d1 Array builtin Andrew Morris 2023-03-20 14:31:41 +11:00
  • 904f230416 inf -> Infinity Andrew Morris 2023-03-20 11:43:56 +11:00
  • 549e7e546a NaN, Infinity Andrew Morris 2023-03-20 11:34:48 +11:00
  • c3647969e8 Boolean methods Andrew Morris 2023-03-20 10:04:18 +11:00
  • 07a299c465 Boolean builtin Andrew Morris 2023-03-20 09:56:50 +11:00
  • 15fc9fa12b Module for builtins Andrew Morris 2023-03-20 09:35:35 +11:00
  • 58fae267bb Consistent naming Andrew Morris 2023-03-20 09:23:52 +11:00
  • 358c816fe3 More deduping of builtins, fix todo Andrew Morris 2023-03-20 09:20:51 +11:00
  • 8dfb174cb2 Deduplicate builtin name list Andrew Morris 2023-03-20 08:42:09 +11:00
  • 71bedae91e Update playground examples Andrew Morris 2023-03-19 14:07:51 +11:00
  • e168f0370a String(), Number() Andrew Morris 2023-03-19 13:54:33 +11:00
  • 14983eebea toString, valueOf Andrew Morris 2023-03-19 13:39:58 +11:00
  • 606b2be84d toExponential, toFixed Andrew Morris 2023-03-17 12:58:14 +11:00
  • 791e69dcca number_builtin Andrew Morris 2023-03-17 01:00:10 +11:00
  • 751bf7a30d substring, toLowerCase, toString, toUpperCase, trim, trimEnd, trimStart, valueOf Andrew Morris 2023-03-16 23:41:45 +11:00
  • d508831e9c Use details+summary for status sections Andrew Morris 2023-03-16 15:36:20 +11:00
  • cd75108328 Update status Andrew Morris 2023-03-16 15:06:44 +11:00
  • 2a489b3264 startsWith Andrew Morris 2023-03-15 13:05:29 +11:00
  • efb21c777a split Andrew Morris 2023-03-15 11:39:28 +11:00
  • 48314c692d slice (string) Andrew Morris 2023-03-15 09:21:58 +11:00
  • a9e52e564f repeat Andrew Morris 2023-03-14 11:49:58 +11:00
  • f2edd6f866 padEnd, padStart Andrew Morris 2023-03-14 09:40:21 +11:00
  • 32a2c45115 Add todos for localeCompare, match, matchAll Andrew Morris 2023-03-13 21:26:41 +11:00
  • f0d9c996e9 lastIndexOf Andrew Morris 2023-03-13 21:18:58 +11:00
  • 3f9a52a461 indexOf (string) Andrew Morris 2023-03-13 20:36:08 +11:00
  • c3c49f43ee includes Andrew Morris 2023-03-13 20:13:37 +11:00
  • 4de8f51495 Move comment Andrew Morris 2023-03-13 14:28:34 +11:00
  • 253b06141c fromCodePoint Andrew Morris 2023-03-13 14:25:55 +11:00
  • 11e77f36bd endsWith Andrew Morris 2023-03-13 14:02:35 +11:00
  • 22eb55a915 concat (string) Andrew Morris 2023-03-13 13:50:27 +11:00
  • d9077e8f01 Fix p22 Andrew Morris 2023-03-13 13:50:21 +11:00
  • fad421d693 Add failing input for string iteration Andrew Morris 2023-03-13 13:44:34 +11:00
  • fe730a613a Don't support charAt, charCodeAt Andrew Morris 2023-03-13 13:35:07 +11:00
  • d33d93bd34 Improve string indexing, codePointAt Andrew Morris 2023-03-13 12:52:33 +11:00
  • b6045b24c1 Move op_sub_string into string_methods Andrew Morris 2023-03-13 11:05:07 +11:00
  • 5d18949719 Simplify p22 Andrew Morris 2023-03-13 10:53:04 +11:00
  • cd20dab817 charCodeAt Andrew Morris 2023-03-13 10:46:59 +11:00
  • 66a09bf118 charAt test Andrew Morris 2023-03-13 10:34:48 +11:00
  • d33861a021 charAt 🫣 Andrew Morris 2023-03-12 21:30:09 +11:00
  • 560124898b String.prototype.at (and autoformatting) Andrew Morris 2023-03-12 21:08:45 +11:00
  • e5232e933c For-of loops Andrew Morris 2023-03-12 20:38:43 +11:00
  • cec98637ea Move control cases into functions Andrew Morris 2023-03-12 18:51:00 +11:00
  • 399cfaa389 Support named exports Andrew Morris 2023-03-12 16:40:21 +11:00
  • 860e1108f7 Fix export_name default Andrew Morris 2023-03-12 16:00:29 +11:00
  • 98d92b67e6 Support export { default as (name) } Andrew Morris 2023-03-12 15:51:06 +11:00
  • 8d54c0907c Support more named exports Andrew Morris 2023-03-12 15:32:57 +11:00
  • 1b76dcafa5 Partial support for named exports Andrew Morris 2023-03-12 15:17:14 +11:00
  • 951ee0005d Enumerate module decls Andrew Morris 2023-03-12 14:31:33 +11:00
  • 93496816a1 Docs for valuescript_program_embed Andrew Morris 2023-03-10 13:27:21 +11:00
  • 4e77747ae6 Add valuescript_program_embed Andrew Morris 2023-03-10 13:10:48 +11:00
  • c65f196121 p28 Andrew Morris 2023-03-10 11:00:37 +11:00
  • 98bc105f52 p26 Andrew Morris 2023-03-10 00:04:49 +11:00
  • 2d550a8e60 p25 Andrew Morris 2023-03-09 23:38:58 +11:00
  • 3ddc995cbf Improve p23 with binary search Andrew Morris 2023-03-09 23:07:00 +11:00
  • 1102068d1f p23 Andrew Morris 2023-03-09 22:58:16 +11:00
  • 87639764be p22 Andrew Morris 2023-03-09 22:41:18 +11:00
  • e2e0ef63b2 p21 Andrew Morris 2023-03-09 22:26:32 +11:00
  • 0dd2e26ca2 List local imports and tree shaking in the status section Andrew Morris 2023-03-09 16:30:37 +11:00
  • 5838080fae Extract prime functions and SillyBigInt in Project Euler solutions Andrew Morris 2023-03-09 16:25:09 +11:00
  • f2b2f4544b move BinaryTree to its own file Andrew Morris 2023-03-09 16:16:31 +11:00
  • 6e1b5645ac Implement default export class Andrew Morris 2023-03-09 16:14:19 +11:00
  • 2f98bf28ee Add other function to foo.ts Andrew Morris 2023-03-09 15:42:32 +11:00
  • e50ad6bf59 Use linked compilation in test_inputs.rs and add test Andrew Morris 2023-03-09 15:38:03 +11:00
  • e2f41deb95 Use linked compilation with run command Andrew Morris 2023-03-09 15:23:42 +11:00
  • 32943bad1a New compile command using linking Andrew Morris 2023-03-09 15:13:19 +11:00
  • c5b75b35de compile -> compile_module Andrew Morris 2023-03-09 14:17:56 +11:00
  • 1586faad56 shake_tree Andrew Morris 2023-03-09 14:14:51 +11:00
  • 8548733f05 PointerVisitation Andrew Morris 2023-03-09 13:47:22 +11:00
  • 27fcd10f8f collapse_pointers_of_pointers Andrew Morris 2023-03-09 13:08:14 +11:00
  • 9917b32903 Use visitor pattern for updating pointers Andrew Morris 2023-03-09 12:56:58 +11:00
  • 5244987f89 Link modules for vstc compile (almost works) Andrew Morris 2023-03-09 12:19:53 +11:00
  • 5e95be162e wip gather and link Andrew Morris 2023-03-08 22:29:58 +11:00
  • 452a2c5e06 Adjust copy Andrew Morris 2023-03-08 15:58:15 +11:00
  • 243e75f7ae clippy --fix Andrew Morris 2023-03-08 15:07:51 +11:00
  • 90aa54b9ab Improve copy, add contributing Andrew Morris 2023-03-08 14:10:45 +11:00
  • 5df451fb51 Simplify foundational example Andrew Morris 2023-03-08 13:30:03 +11:00
  • 76adc05837 BytecodeType::Unrecognized Andrew Morris 2023-03-08 12:10:09 +11:00
  • 8e44cb2e95 Compile (but not run) imports Andrew Morris 2023-03-08 11:12:53 +11:00
  • db2f2d4125 populate_scope_import and other populate_scope improvements Andrew Morris 2023-03-08 09:56:25 +11:00
  • 53d64addb9 Add Lazy to asm.rs Andrew Morris 2023-03-08 09:40:32 +11:00
  • 26d8a7d9aa Module variables concept Andrew Morris 2023-03-08 00:39:01 +11:00
  • 907c7072f7 More consistent definition ordering Andrew Morris 2023-03-07 11:37:18 +11:00
  • f6eafd1d39 Export functions and classes Andrew Morris 2023-03-07 11:27:08 +11:00
  • b4e450abcd Simplifiy todo diagnostics Andrew Morris 2023-03-07 10:54:12 +11:00
  • 5427fb1051 Populate scope for export decls Andrew Morris 2023-03-07 10:31:17 +11:00
  • 106bded066 Split out populate_scope Andrew Morris 2023-03-07 10:17:06 +11:00
  • 19904c41ec Ignore empty statements Andrew Morris 2023-03-07 10:09:56 +11:00
  • be9b078864 Simplify default exports, fix anonymous Andrew Morris 2023-03-07 10:05:17 +11:00
  • 264aff25aa Update assembly concepts to include export line Andrew Morris 2023-03-07 09:11:00 +11:00
  • cfd427b9be Add export line to assembly Andrew Morris 2023-03-07 08:50:56 +11:00
  • ff3b527c74 Test bytecode consistency when compiling via assembly Andrew Morris 2023-03-07 08:19:29 +11:00
  • c83432102f Compiler -> ModuleCompiler Andrew Morris 2023-03-07 08:12:26 +11:00