Commit Graph

1745 Commits

Author SHA1 Message Date
ValKmjolnir 63b0112b9d 📝 update README 2023-10-04 11:52:09 +08:00
Li Haokun 982c5750ef
Merge pull request #29 from ValKmjolnir/develop
 improve codegen and repl output
2023-10-02 00:52:05 +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 0a404694f6 🐛 fix memory leak in ast destructor 2023-09-20 21:11:13 +08:00
ValKmjolnir 6c8b4c6a87 use incremental gc const initialization 2023-09-20 00:46:23 +08:00
ValKmjolnir 85bc699905 add command history in repl 2023-09-19 00:24:45 +08:00
Li Haokun 38920382ea
Merge pull request #28 from ValKmjolnir/develop
 finish simple repl interpreter (experimental)
2023-09-18 00:50:54 +08:00
ValKmjolnir d0d9ce3b80 🔥 delete tools/repl.nas 2023-09-17 22:49:06 +08:00
ValKmjolnir 3e01239722 finish basic function of repl 2023-09-17 17:56:59 +08:00
ValKmjolnir b77d7fafb1 using c++ cast 2023-09-15 00:04:19 +08:00
ValKmjolnir 36a2aa67ef using c++ cast (wip) 2023-09-14 00:34:31 +08:00
ValKmjolnir c157d8a9b1 🎨 add namespace 2023-09-08 18:17:07 +08:00
Li Haokun 0c99eb15f0
Merge pull request #27 from ValKmjolnir/develop
🎨 bug fix & add experimental REPL & optimize framework of vm
2023-09-08 00:39:14 +08:00
ValKmjolnir cd4e0c1716 🎨 add namespace 2023-09-08 00:33:57 +08:00
ValKmjolnir d89f290a8a fix out of bound bug & delete fatal in lexer 2023-09-07 23:14:17 +08:00
ValKmjolnir 298b54c9ec 🐛 fix out of bound bug 2023-09-06 19:29:59 +08:00
ValKmjolnir ec03f0aee0 repl does not write temp file now 2023-09-06 00:12:01 +08:00
ValKmjolnir a0e6047296 update test/datalog.nas 2023-08-31 00:32:01 +08:00
ValKmjolnir a801669888 add experimental REPL (cpp) 2023-08-27 17:46:10 +08:00
ValKmjolnir ae5c76ecd5 maybe do not need o_intg anymore 2023-08-27 00:25:49 +08:00
ValKmjolnir 93528babdb optimize framework of vm 2023-08-24 23:24:04 +08:00
ValKmjolnir ba629e57d7 optimize lexer 2023-08-23 00:59:35 +08:00
ValKmjolnir 00449c2bfb optimize code 2023-08-21 21:35:34 +08:00
ValKmjolnir 939b4c4a65 Merge branch 'master' into develop 2023-08-20 22:37:41 +08:00
ValKmjolnir 6f259dc1ea fix old ambiguous syntax 2023-08-20 22:35:24 +08:00
ValKmjolnir 98b0086656 🐛 fix segfault in `var x = (var a,b) = (1,2)` 2023-08-20 16:48:53 +08:00
ValKmjolnir 88b039a82e 📝 add experimental repl (for fun) 2023-08-19 21:36:12 +08:00
ValKmjolnir fc2be49621 add check for symbol definition 2023-08-13 22:12:07 +08:00
ValKmjolnir 7d81246695 📝 optimize code format 2023-08-13 00:31:11 +08:00
Li Haokun afaef55c68
Merge pull request #26 from ValKmjolnir/develop
 simpler ghost type check mechanism & split lib
2023-08-12 11:54:13 +08:00
ValKmjolnir e131c8da4b split dylib and unix lib 2023-08-11 00:48:57 +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 52e6adfe28 🔥 delete ghost type table 2023-08-08 20:50:47 +08:00
Li Haokun 18d59dfa94
Merge pull request #25 from ValKmjolnir/develop
 support `globals` `arg` and module imports
2023-08-07 19:06:30 +08:00
ValKmjolnir 044ccb4bc6 add profiling tools in debug mode 2023-08-06 20:02:12 +08:00
ValKmjolnir 70a8be8e4c symbol begins with '_' will not be exported 2023-08-05 00:08:28 +08:00
ValKmjolnir 56a26b6ab6 update std/math 2023-08-03 22:55:59 +08:00
ValKmjolnir 5cc9824a62 add new functions in bits & math lib 2023-08-02 19:22:45 +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 fd7472b737 📝 add bits.nas & dylib.nas & unix.nas 2023-07-25 00:22:11 +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 51a0ef6b0c 📝 add logprint & change libs 2023-07-23 18:30:32 +08:00