Commit Graph

44 Commits

Author SHA1 Message Date
ValKmjolnir a11e0726bb 🔥 add check for imported files' quantity 2024-05-12 23:29:48 +08:00
ValKmjolnir 96731d180f append code size from u32 to u64 2024-05-12 22:33:51 +08:00
ValKmjolnir 22b9bce298 add regex lib 2024-03-01 22:39:43 +08:00
ValKmjolnir b3e6b5784a add limited execution mode 2024-02-21 19:55:46 +08:00
ValKmjolnir c59743b2ed merge module/json.cpp into builtins 2023-12-10 23:55:18 +08:00
ValKmjolnir e8c8a6446b use reinterpret_cast and static_cast 2023-11-05 21:25:20 +08:00
ValKmjolnir 336139dcae 🐛 fix segfault in multi-assign/multi-def codegen 2023-11-05 20:30:54 +08:00
ValKmjolnir 49f8cefca0 avoid repeatedly importing the same modules 2023-11-01 23:49:15 +08:00
ValKmjolnir ccbe341dc5 add import logic for use statement 2023-11-01 00:37:02 +08:00
ValKmjolnir 4757dd220a 📝 add check for use statement 2023-10-31 19:53:01 +08:00
ValKmjolnir 88e4b86ccb add new module import syntax rule 2023-10-31 00:36:49 +08:00
ValKmjolnir c35ad2e6fa add stdin, stdout, stderr in io module 2023-10-30 23:20:49 +08:00
ValKmjolnir ef4af8f195 🐛 fix error codegen in foreach/forindex loop
undefined symbol was recognized as defined in symbol_finder, now it is
fixed :)
2023-10-26 22:40:20 +08:00
ValKmjolnir 9f7484596a 🐛 fix error report bug in import.cpp 2023-10-24 00:16:48 +08:00
ValKmjolnir d14b816fa0 📝 add notes 2023-10-07 00:55:20 +08:00
ValKmjolnir d69dd0b03f change intg to repl output operand 2023-10-02 00:46:12 +08:00
ValKmjolnir 7a10392bea 📝 improve note and code in codegen 2023-09-27 00:26:13 +08:00
ValKmjolnir 5e2bb411e5 optimize codegen 2023-09-24 00:41:29 +08:00
ValKmjolnir f8ecd2ae53 🔥 change codegen::gen to codegen::emit 2023-09-23 01:08:45 +08:00
ValKmjolnir 6c8b4c6a87 use incremental gc const initialization 2023-09-20 00:46:23 +08:00
ValKmjolnir cd4e0c1716 🎨 add namespace 2023-09-08 00:33:57 +08:00
ValKmjolnir a801669888 add experimental REPL (cpp) 2023-08-27 17:46:10 +08:00
ValKmjolnir fc2be49621 add check for symbol definition 2023-08-13 22:12:07 +08:00
ValKmjolnir 527cb5277b optimize vm 2023-08-10 00:40:00 +08:00
ValKmjolnir d690c779b8 split io lib 2023-08-09 00:31:23 +08:00
ValKmjolnir 044ccb4bc6 add profiling tools in debug mode 2023-08-06 20:02:12 +08:00
ValKmjolnir 56a26b6ab6 update std/math 2023-08-03 22:55:59 +08:00
ValKmjolnir 56762d719d split bits lib 2023-08-01 00:36:25 +08:00
ValKmjolnir 29b15b89f7 split coroutine lib from builtin 2023-07-31 00:25:36 +08:00
ValKmjolnir 654a37ab88 split math lib into new file 2023-07-30 00:19:38 +08:00
ValKmjolnir 227197996d native functions can be loaded from differen tables 2023-07-29 23:45:44 +08:00
ValKmjolnir 26a62dde9b 🐛 fix 2 bugs.
1. unary optimized number not generated bug
2. self-referenced module path not displayed correctly
2023-07-24 19:50:30 +08:00
ValKmjolnir 788e0026c2 optimize location info gen in codegen
and refactor lib.nas, add multiple native modules
2023-07-23 23:57:25 +08:00
ValKmjolnir 569d423772 📝 update 2023-07-21 00:33:04 +08:00
ValKmjolnir 25e202fbaf add check for generated module name 2023-07-20 19:56:27 +08:00
ValKmjolnir 4b597000ba optimize error report info 2023-07-17 00:38:33 +08:00
ValKmjolnir fe3847d69c add experimental namespace table 2023-07-16 21:31:51 +08:00
ValKmjolnir 4a7a2ce11e 🐛 fix bug in special argument "arg"
if defining a parameter named "arg", this will cause
error value of the last local variable of this function
2023-07-11 19:09:33 +08:00
ValKmjolnir 7e72661332 🐛 complete function of arg in all scopes 2023-07-09 16:21:09 +08:00
ValKmjolnir 3509655424 add special variable "arg" 2023-07-09 00:59:17 +08:00
ValKmjolnir b4482792c8 🧑‍💻 add important symbol "globals" 2023-07-06 22:10:07 +08:00
ValKmjolnir eca6141408 optimize codegen 2023-07-05 00:24:34 +08:00
ValKmjolnir 5c714d26aa update 2023-07-04 00:33:57 +08:00
ValKmjolnir 27bc544bbe 📝 rename files 2023-07-02 22:02:31 +08:00