Commit Graph

1443 Commits

Author SHA1 Message Date
ValKmjolnir 509bb6413f 📝 add notes 2023-10-07 00:55:20 +08:00
ValKmjolnir 8dedbc05fa 📝 update README 2023-10-04 11:52:09 +08:00
ValKmjolnir 42cc5fa39f change intg to repl output operand 2023-10-02 00:46:12 +08:00
ValKmjolnir bcd2555bbd 📝 improve note and code in codegen 2023-09-27 00:26:13 +08:00
ValKmjolnir d60065607f optimize codegen 2023-09-24 00:41:29 +08:00
ValKmjolnir 8a73932dd5 🔥 change codegen::gen to codegen::emit 2023-09-23 01:08:45 +08:00
ValKmjolnir 623191756f 🐛 fix memory leak in ast destructor 2023-09-20 21:11:13 +08:00
ValKmjolnir ff785872a4 use incremental gc const initialization 2023-09-20 00:46:23 +08:00
ValKmjolnir 0a94e8d2dd add command history in repl 2023-09-19 00:24:45 +08:00
ValKmjolnir e811965629 🔥 delete tools/repl.nas 2023-09-17 22:49:06 +08:00
ValKmjolnir cf3deaeb05 finish basic function of repl 2023-09-17 17:56:59 +08:00
ValKmjolnir a0015b5c51 using c++ cast 2023-09-15 00:04:19 +08:00
ValKmjolnir 12d73a6030 using c++ cast (wip) 2023-09-14 00:34:31 +08:00
ValKmjolnir bf770470eb 🎨 add namespace 2023-09-08 18:17:07 +08:00
ValKmjolnir 0c8804e6e4 🎨 add namespace 2023-09-08 00:33:57 +08:00
ValKmjolnir 8ca408ebec fix out of bound bug & delete fatal in lexer 2023-09-07 23:14:17 +08:00
ValKmjolnir a8c9ddbefe 🐛 fix out of bound bug 2023-09-06 19:29:59 +08:00
ValKmjolnir 30a14694dc repl does not write temp file now 2023-09-06 00:12:01 +08:00
ValKmjolnir 8c01bcf1ed update test/datalog.nas 2023-08-31 00:32:01 +08:00
ValKmjolnir 32ae68056e add experimental REPL (cpp) 2023-08-27 17:46:10 +08:00
ValKmjolnir 4006cacd04 maybe do not need o_intg anymore 2023-08-27 00:25:49 +08:00
ValKmjolnir 66fe75cacf optimize framework of vm 2023-08-24 23:24:04 +08:00
ValKmjolnir 4e6a186312 optimize lexer 2023-08-23 00:59:35 +08:00
ValKmjolnir 140fb8a650 optimize code 2023-08-21 21:35:34 +08:00
ValKmjolnir af46505005 Merge branch 'master' into develop 2023-08-20 22:37:41 +08:00
ValKmjolnir a59d321a96 fix old ambiguous syntax 2023-08-20 22:35:24 +08:00
ValKmjolnir e60a1c3e57 🐛 fix segfault in var x = (var a,b) = (1,2) 2023-08-20 16:48:53 +08:00
ValKmjolnir ad17202d54 📝 add experimental repl (for fun) 2023-08-19 21:36:12 +08:00
ValKmjolnir e2112192f2 add check for symbol definition 2023-08-13 22:12:07 +08:00
ValKmjolnir 99bfb8a150 📝 optimize code format 2023-08-13 00:31:11 +08:00
Li Haokun 1862d02a8b Merge pull request #26 from ValKmjolnir/develop
 simpler ghost type check mechanism & split lib
2023-08-12 11:54:13 +08:00
ValKmjolnir 3db4f0fd58 split dylib and unix lib 2023-08-11 00:48:57 +08:00
ValKmjolnir 7f493418fd optimize vm 2023-08-10 00:40:00 +08:00
ValKmjolnir 44397bb05e split io lib 2023-08-09 00:31:23 +08:00
ValKmjolnir 8dd2878a23 🔥 delete ghost type table 2023-08-08 20:50:47 +08:00
Li Haokun 5cd6c4d220 Merge pull request #25 from ValKmjolnir/develop
 support `globals` `arg` and module imports
2023-08-07 19:06:30 +08:00
ValKmjolnir 6992d5444b add profiling tools in debug mode 2023-08-06 20:02:12 +08:00
ValKmjolnir edc6e3711b symbol begins with '_' will not be exported 2023-08-05 00:08:28 +08:00
ValKmjolnir 981f17ca8e update std/math 2023-08-03 22:55:59 +08:00
ValKmjolnir 352f6c5caa add new functions in bits & math lib 2023-08-02 19:22:45 +08:00
ValKmjolnir 2e1d5e682b split bits lib 2023-08-01 00:36:25 +08:00
ValKmjolnir af1a60e3ef split coroutine lib from builtin 2023-07-31 00:25:36 +08:00
ValKmjolnir 076bd1ef2e split math lib into new file 2023-07-30 00:19:38 +08:00
ValKmjolnir d9d8044d64 native functions can be loaded from differen tables 2023-07-29 23:45:44 +08:00
ValKmjolnir 181a3c4f2f 📝 add bits.nas & dylib.nas & unix.nas 2023-07-25 00:22:11 +08:00
ValKmjolnir b3ba7da7fa 🐛 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 dc56162c55 optimize location info gen in codegen
and refactor lib.nas, add multiple native modules
2023-07-23 23:57:25 +08:00
ValKmjolnir 26bec82b52 📝 add logprint & change libs 2023-07-23 18:30:32 +08:00
ValKmjolnir a72a42fa41 📝 delete std/sort.nas & update test file 2023-07-23 00:30:14 +08:00
ValKmjolnir 8454bed0fe add check for self-imported module 2023-07-21 23:40:59 +08:00