Commit Graph

169 Commits

Author SHA1 Message Date
ValKmjolnir 9d33fafb81 🐛 fix dynamic arguments load bug in nasal_vm 2022-12-09 00:56:53 +08:00
ValKmjolnir c88cbd0063 add runtime.gc.extend 2022-12-04 20:28:51 +08:00
ValKmjolnir b28e85a7a1 little optimization 2022-11-30 01:11:26 +08:00
ValKmjolnir 34e29e398a 🎨 change code format 2022-11-26 22:49:22 +08:00
ValKmjolnir a0fe9ac669 add new ways of calling dylib function 2022-11-11 00:11:01 +08:00
ValKmjolnir e150b632db 🚀 add new module matrix.cpp (in dev) 2022-11-06 23:30:18 +08:00
ValKmjolnir d5bd3c0625 🚀 add test file console3D.nas 2022-11-04 01:18:38 +08:00
ValKmjolnir be42d47c93 🐛 fix ast print bug & delete some macros 2022-10-30 18:40:03 +08:00
ValKmjolnir b5828137f2 🎨 improve format of code 2022-10-28 23:28:15 +08:00
ValKmjolnir 8583be337e 🚀 change module function parameter format to avoid warnings 2022-10-24 01:12:25 +08:00
ValKmjolnir ce6a9865d7 🔥 change nasal_gc to gc 2022-10-23 01:29:20 +08:00
ValKmjolnir 1a0f81214f 🔥 change class name.
nasal_lexer -> lexer
nasal_parse -> parse
nasal_codegen -> codegen
nasal_vm -> vm
nasal_gc -> gc
nasal_dbg -> debugger
nasal_import -> linker
nas_ref -> var
2022-10-21 01:29:29 +08:00
ValKmjolnir d72aee62fa add stl/json.nas & fix bug
bug: may cause program crash if stack overflow occurs on main stack
2022-10-08 21:34:47 +08:00
ValKmjolnir d3e784d191 🚀 crashed coroutine will not make main thread crash. 2022-10-06 23:11:27 +08:00
ValKmjolnir 73c3279dae 📝 add interesting gifs into docs 2022-09-13 23:00:48 +08:00
ValKmjolnir 4bdfa9cb61 🚀 import information output of dbg, vm and codegen 2022-09-11 17:22:00 +08:00
ValKmjolnir 8d0eadaa74 📝 fix MSVC warning in nasal_builtin.h & improve error output. 2022-09-04 23:08:06 +08:00
ValKmjolnir f70ce082fd 🎨 improve error log output format. 2022-09-02 02:04:03 +08:00
ValKmjolnir 2da3be7fc4 🚀 change cpp standard to c++14 & add command line colorful info output.
and fix a bug that program may crash if there's an error when coroutine is running
2022-08-31 23:24:41 +08:00
ValKmjolnir 4dfc4012df 🐛 fix bug that make test failed 2022-08-29 00:48:06 +08:00
ValKmjolnir 47f0a4cf40 delete unnecessary prefix in die("") 2022-08-25 01:16:17 +08:00
ValKmjolnir 6318f7e9e8 optimize header file, now modules could generate smaller dynamic libs. 2022-08-24 22:08:47 +08:00
ValKmjolnir e92134c5e8 🚀 add [[noreturn]] 2022-08-16 01:40:22 +08:00
ValKmjolnir 4ab8a730a6 📝 change int in code to i32, optimize code. 2022-07-31 02:19:29 +08:00
ValKmjolnir 9c779b871f optimize code & chdir will not trigger crash if failed to call 2022-07-30 19:17:33 +08:00
ValKmjolnir fa8a568f72 🚀 shrink stack size & optimize nasal_vm::traceback 2022-07-25 00:23:07 +08:00
ValKmjolnir bbfe3fff9a 📝 doc fix 2022-07-23 17:21:44 +08:00
ValKmjolnir 49a7ed28e9 🚀 change std::string to string, change identifiers' name, -o is now a function available in debug mode. 2022-07-23 17:00:25 +08:00
ValKmjolnir 65fe7daff6 📝 change name of used types 2022-07-23 12:35:21 +08:00
ValKmjolnir 0d750ca685 optimize op_para and op_deft: change hashmap<string,u64> to hashmap<u32,u32> 2022-07-23 12:02:41 +08:00
ValKmjolnir a3c3c34565 change some branches 2022-07-22 22:24:48 +08:00
ValKmjolnir 7a9ce29710 🚀 change std::cout to std::clog to put some log info 2022-07-21 23:16:16 +08:00
ValKmjolnir bec589b85f 📝 shrink size of README.md 2022-07-20 22:22:50 +08:00
ValKmjolnir 2fa59a7e95 optimize codes 2022-07-19 23:55:12 +08:00
ValKmjolnir dea85929cd 📝 change identifiers' name 2022-07-18 23:54:44 +08:00
ValKmjolnir 6037fdccc3 🐛 fix information print format on MSVC. 2022-07-16 18:47:27 +08:00
ValKmjolnir 7c1d45a200 🚀 update makefile to choose different compilers by users & fix some codes for MSVC to compile. 2022-07-16 16:53:11 +08:00
ValKmjolnir 2f89c95307 first step trying to make this project compiled by MSVC: using indirect-threading, change \e to \033. 2022-07-16 01:02:33 +08:00
ValKmjolnir 1097e46a23 📝 fix some wanings. 2022-07-11 23:53:23 +08:00
ValKmjolnir 0be63c8684 📝 fix some warnings. 2022-07-10 23:55:51 +08:00
ValKmjolnir 00c7c4044a optimize code & replace all printf with std::cout. 2022-07-09 23:36:14 +08:00
ValKmjolnir bdd0cb2912 📝 change some identifiers' name. 2022-07-09 16:24:58 +08:00
ValKmjolnir fdcd85dadf optimize code. 2022-07-08 23:00:36 +08:00
ValKmjolnir 87d7de5d73 📝 change some identifiers' name. 2022-07-08 18:16:00 +08:00
ValKmjolnir aea8b317c7 🚀 shrink code size & now import module can search lib file from local dir and dirs in PATH 2022-07-08 00:42:56 +08:00
ValKmjolnir ec308f8053 optimize codes. details:
1. delete gc::builtin_alloc
2. add convenient way of getting new string object: gc::newstr, and shrink the size of codes
3. update doc
4. add gc::temp to be used in native/module functions to avoid being recognized as garbage incorrectly when triggered mark-sweep
2022-07-07 17:51:30 +08:00
ValKmjolnir 3d1e3f49dc 📝 change identifiers' name and test/coroutine.nas, test/filesystem.nas 2022-07-06 16:04:21 +08:00
ValKmjolnir 4499bf7bac 📝 change makefile and update output format of --opcnt and --detail 2022-07-06 11:57:40 +08:00
ValKmjolnir 9110a44b90 📝 change name of some identifiers. shrink size of main stack. 2022-07-05 18:13:54 +08:00
ValKmjolnir 7e25bc15e0 optimize vm 2022-07-04 00:16:04 +08:00