Commit Graph

1476 Commits

Author SHA1 Message Date
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 4c8e1dfe91 add new test file burningship.nas 2023-10-29 00:01:14 +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 bbed29eb65 add native function `ceil` 2023-10-26 00:04:20 +08:00
ValKmjolnir d56e1bff2c change json.JSON to json 2023-10-25 00:32:42 +08:00
ValKmjolnir 9f7484596a 🐛 fix error report bug in import.cpp 2023-10-24 00:16:48 +08:00
ValKmjolnir f7f4a38b47 🐛 fix abnormal debugger output on windows 2023-10-23 00:02:36 +08:00
ValKmjolnir 07a652cc37 🐛 fix compilation error using CMake 2023-10-22 23:52:39 +08:00
ValKmjolnir 9629108a1e improve readability of some codes 2023-10-22 23:45:10 +08:00
ValKmjolnir 1e1ab37e83 values can get data from namespace type 2023-10-21 18:13:52 +08:00
ValKmjolnir dfcccd4523 🐛 fix invalid debug mode problem 2023-10-21 18:00:11 +08:00
ValKmjolnir 820c05c986 change way of calling native functions 2023-10-21 00:31:39 +08:00
ValKmjolnir 7f8a0b6445 improve code & add new test file 2023-10-20 00:24:17 +08:00
ValKmjolnir 54317a39a7 improve error info of out-of-range 2023-10-18 00:29:53 +08:00
ValKmjolnir a298aa3a63 add detail error info in callh 2023-10-17 00:44:45 +08:00
ValKmjolnir 1580b31122 add function call trace info 2023-10-15 23:49:11 +08:00
ValKmjolnir aab7decd70 split type definition from gc.h 2023-10-15 21:46:53 +08:00
ValKmjolnir 8290b7df9f 🐛 fix mingw make error 2023-10-14 21:30:33 +08:00
ValKmjolnir ecfb679218 improve error info when lack arguments
in function call
2023-10-14 00:39:25 +08:00
ValKmjolnir 80f9fc5842 can convert minimum double from string 2023-10-11 00:20:02 +08:00
ValKmjolnir 0b179bf5ff 📝 update release notes and tutorials 2023-10-07 22:51:30 +08:00
ValKmjolnir 63b97fc5ea Merge branch 'master' into develop 2023-10-07 17:35:22 +08:00
Li Haokun d661a6b92d
Merge pull request #30 from sidi762/master
Updated makefile to ensure the macOS binaries build by GitHub action are backward compatible to macOS 10.15
2023-10-07 17:13:11 +08:00
Sidi Liang 5233cef16e
Update makefile 2023-10-07 14:41:46 +08:00
Sidi Liang 3874856f2b
Specify mmacosx-version-min in makefile
So apparently the static linking isn't working
2023-10-07 14:34:12 +08:00
Sidi Liang 56e3e4353b
Update makefile 2023-10-07 14:25:37 +08:00
Sidi Liang e3e501ab6a
Update makefile
Updated makefile to have the C++ standard libraries statically linked, so that older macOSs can still execute the program
2023-10-07 13:45:44 +08:00
ValKmjolnir d14b816fa0 📝 add notes 2023-10-07 00:55:20 +08:00
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