Commit Graph

1321 Commits

Author SHA1 Message Date
ValKmjolnir a17e6d920a 🎨 improve code style 2023-04-12 01:11:31 +08:00
ValKmjolnir cffc62f912 🐛 fix compilation warnings on macOS 2023-04-11 00:28:12 +08:00
ValKmjolnir 29ca40e62a 🎨 improve gc code structure 2023-04-10 00:24:50 +08:00
ValKmjolnir 8655c5091e merge runtime regs into struct context 2023-04-08 00:18:58 +08:00
ValKmjolnir 6410cfada2 split opcode to nasal_opcode.h 2023-04-04 00:29:17 +08:00
ValKmjolnir 4bcde1eb3f update test/jsonrpc.nas 2023-03-25 21:26:49 +08:00
ValKmjolnir 84fec7ae4f add test/jsonrpc.nas and fix bug
bug: in nasocket.cpp, recv and recvfrom do not place 0 after reciving
data into the buffer.
2023-03-23 00:09:51 +08:00
ValKmjolnir d6c75079af 📝 update test file datalog.nas 2023-03-14 00:16:54 +08:00
ValKmjolnir ab5462f556 visual update 2023-03-11 18:15:27 +08:00
ValKmjolnir 1039d7d7ba add new operand calculate const and pop 2023-03-10 22:27:06 +08:00
ValKmjolnir c6becf864d optimize codegen 2023-03-09 23:00:25 +08:00
ValKmjolnir dd804ee9f9 update error report for parser&codegen 2023-03-08 23:53:02 +08:00
ValKmjolnir 053dbf24b4 add multi-line error report and span 2023-03-08 01:12:01 +08:00
ValKmjolnir 241764545a 📝 shorten the running time of test process 2023-03-02 00:36:48 +08:00
ValKmjolnir 0c81187391 add error report info in stl/mat 2023-03-02 00:26:52 +08:00
ValKmjolnir 3631b1e9c8 🚀 add more matrix operation in stl/mat.nas
and bp example test
2023-03-01 23:37:13 +08:00
ValKmjolnir b2dea3f3f5 add std lib mat.nas 2023-03-01 00:41:34 +08:00
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