Commit Graph

1424 Commits

Author SHA1 Message Date
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
ValKmjolnir dac5f39084 📝 update 2023-07-21 00:33:04 +08:00
ValKmjolnir c7f4ba9cff add check for generated module name 2023-07-20 19:56:27 +08:00
ValKmjolnir 1bcd297d23 support nasal module 2023-07-20 00:54:57 +08:00
ValKmjolnir 147915c277 update 2023-07-19 00:43:00 +08:00
ValKmjolnir 1bac72f849 optimize error report info 2023-07-17 00:38:33 +08:00
ValKmjolnir 5aec226e35 add experimental namespace table 2023-07-16 21:31:51 +08:00
ValKmjolnir f919f6cf86 add concurrent mark for experiment 2023-07-16 00:37:11 +08:00
ValKmjolnir 6488224fe4 optimize gc 2023-07-13 23:59:41 +08:00
ValKmjolnir 57c6085bc4 🐛 fix compilation error in vs 2022 2023-07-12 00:16:27 +08:00
Li Haokun 6627965706 Merge pull request #24 from ValKmjolnir/develop
🐛 fix bug of argument "arg"
2023-07-11 19:13:42 +08:00
ValKmjolnir b56373fc0a 🐛 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 56d91b6a65 📝 optimize code 2023-07-11 00:05:20 +08:00
ValKmjolnir 76565fba07 optimize gc 2023-07-10 20:34:21 +08:00
ValKmjolnir e65e7fbc88 update 2023-07-10 00:11:46 +08:00
ValKmjolnir 6166a8e0a5 add concat for vector 2023-07-09 16:45:10 +08:00
ValKmjolnir a82a396bb9 🐛 complete function of arg in all scopes 2023-07-09 16:21:09 +08:00
Li Haokun 18d04eee0c Merge pull request #23 from ValKmjolnir/develop: add special variable "arg"
 add special variable "arg"
2023-07-09 01:06:04 +08:00
ValKmjolnir 2e80f0a191 add special variable "arg" 2023-07-09 00:59:17 +08:00
ValKmjolnir 79865740ad 📝 add new test file feigenbaum.nas 2023-07-07 19:55:29 +08:00