Commit Graph

1304 Commits

Author SHA1 Message Date
ValKmjolnir 034085e6cb 🚀 add operator ^= &= |=
fix bug of parsing expressions beginning with floater
2023-02-28 00:30:27 +08:00
ValKmjolnir cdfb8d2e32 🔥 remove i32 bitwise native functions
now we use bitwise operators instead
2023-02-17 00:42:57 +08:00
ValKmjolnir a06b17546e 🚀 add bitwise operators or, xor, and 2023-02-16 00:24:32 +08:00
ValKmjolnir 43371d5b4c 🐛 fix codegen for binary not on some ast nodes 2023-02-12 15:33:38 +08:00
ValKmjolnir 8c02aa0fff 🚀 add binary negation 2023-02-12 15:22:05 +08:00
Li Haokun e2cbf22e72 Merge pull request #18 from sidi762/master
Update CI to include tests
2023-02-12 00:28:31 +08:00
Sidi Liang 252d801bc3 Update CI to include tests 2023-02-11 13:10:59 +08:00
ValKmjolnir e2e6a64bc7 🐛 fix bug in test/calc.nas 2023-02-03 19:01:00 +08:00
ValKmjolnir 94f7e0a80a 🚀 add test file auto-push.nas 2023-02-02 21:28:11 +08:00
ValKmjolnir 196c1933d1 🚀 add file::find_all_files_with_extension 2023-02-02 21:24:21 +08:00
ValKmjolnir 72551de9e9 🐛 fix bug that cannot parse return true/false 2023-02-02 19:35:42 +08:00
ValKmjolnir 8ef67d74cf 🐛 fix bugs in stl/json, now it runs correctly 2023-01-31 19:39:22 +08:00
ValKmjolnir 7e43a5a709 📝 update readme 2023-01-31 19:01:36 +08:00
ValKmjolnir ad94238b79 update test/ascii-art.nas 2023-01-30 19:13:08 +08:00
ValKmjolnir e65ee22021 change sprintf to snprintf in logtime() 2023-01-24 23:10:01 +08:00
ValKmjolnir 23f41891cf optimize test files
httptest.nas: when clicking mandel.nas link, this may cause memory overflow in new gc
2023-01-23 23:14:34 +08:00
ValKmjolnir 21a8579d8f add keyword support 'true' and 'false'
true is now number 1.0

false is number 0.0
2023-01-16 17:44:56 +08:00
ValKmjolnir 60a3f41f1d add detail location info in tokens
prepare for multi-line error reporter module
2023-01-10 22:22:27 +08:00
ValKmjolnir 29ee017af6 use new way of constructing var objects 2023-01-05 22:42:17 +08:00
ValKmjolnir 22aa3ac5b7 🚀 coroutine.resume can pass arguments 2023-01-02 18:53:58 +08:00
ValKmjolnir 4672211575 optimize code & add comments 2023-01-02 01:00:16 +08:00
ValKmjolnir cce9c83adc update test file 'life.nas' 2022-12-27 18:25:58 +08:00
ValKmjolnir c3675d7080 🎨 change clean command in makefile 2022-12-25 17:59:14 +08:00
ValKmjolnir c63bd531a5 🎨 change clean command in makefiles 2022-12-25 17:58:05 +08:00
ValKmjolnir 791ddfa3cb optimize test file 2022-12-10 01:24:46 +08:00
ValKmjolnir 9d33fafb81 🐛 fix dynamic arguments load bug in nasal_vm 2022-12-09 00:56:53 +08:00
ValKmjolnir 39faa33b4e optimize gc 2022-12-07 01:17:40 +08:00
ValKmjolnir c88cbd0063 add runtime.gc.extend 2022-12-04 20:28:51 +08:00
ValKmjolnir e43bd1eaf2 update test files 2022-12-03 01:24:56 +08:00
ValKmjolnir b28e85a7a1 little optimization 2022-11-30 01:11:26 +08:00
ValKmjolnir 57619cc079 optimize lexer 2022-11-28 21:16:39 +08:00
ValKmjolnir ffd5961c0f change enum tok to enum class tok 2022-11-27 23:47:58 +08:00
ValKmjolnir ec517589e2 🎨 add header pic 2022-11-26 23:36:12 +08:00
ValKmjolnir 34e29e398a 🎨 change code format 2022-11-26 22:49:22 +08:00
ValKmjolnir 7c075a6071 move lvalue check from parse to codegen 2022-11-20 17:06:13 +08:00
ValKmjolnir 58b10b99a7 🎨 improve error report 2022-11-19 22:47:19 +08:00
ValKmjolnir 2772fa748d 🚀 change module loading 2022-11-15 21:23:34 +08:00
ValKmjolnir 5821c40cb4 🚀 add new native function char 2022-11-12 17:03:56 +08:00
ValKmjolnir a3ce6a1824 optimize test/console3D.nas 2022-11-11 00:37:14 +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 2615a3ab85 🚀 optimize code 2022-11-06 18:20:10 +08:00
ValKmjolnir b950ed17c2 🚀 add gc time info 2022-11-04 21:36:54 +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 a366b1fc75 🐛 safer builtin_logtime 2022-10-30 01:30:05 +08:00
ValKmjolnir d3fd8ce336 🎨 improve code format
delete option -v, --version, -l, --lex
2022-10-30 01:26:26 +08:00
Li Haokun fee1a16181 Merge pull request #17 from sidi762/master
[Review needed] Added linux nightly build
2022-10-28 23:39:37 +08:00
ValKmjolnir b5828137f2 🎨 improve format of code next 2022-10-28 23:28:15 +08:00
Sidi Liang 4289e55fb5 Update c-cpp.yml 2022-10-24 01:32:05 +08:00