Commit Graph

117 Commits

Author SHA1 Message Date
ValKmjolnir
a4bbb100b6 add utf-8 identifier check in nasal_lexer & fix printf format at windows platform & add test file utf8chk.nas 2022-05-07 16:50:13 +08:00
ValKmjolnir
3e418dbcff 🐛 bug fix 2022-05-06 20:58:02 +08:00
ValKmjolnir
7fd3c4213f bytecode info print and debugger will show the front 16 characters of strings whose length is greater than 16 2022-05-02 16:56:03 +08:00
ValKmjolnir
e1f1fc64c4 update test file diff.nas& add math.max math.min 2022-05-01 21:10:23 +08:00
ValKmjolnir
3854e582a2 add test file diff.nas 2022-04-30 20:00:15 +08:00
ValKmjolnir
ce48ec1b8d change visual settings in -c/-dbg 2022-04-23 01:51:49 +08:00
ValKmjolnir
f4bac99a3a optimize codes 2022-04-13 19:08:06 +08:00
ValKmjolnir
5cfe40e604 update test/wavecollapse.nas 2022-04-10 16:47:27 +08:00
ValKmjolnir
ced02c9ac6 add test file wavecollapse.nas 2022-04-10 15:34:20 +08:00
ValKmjolnir
c9fdf677b9 change test/md5compare.nas 2022-04-06 22:56:21 +08:00
ValKmjolnir
ad60aecdee change module/libmd5 to native function builtin_md5() in nasal_builtin.h 2022-04-06 22:30:49 +08:00
ValKmjolnir
0b4db9467e add native function abort(), assert() 2022-04-06 21:25:20 +08:00
ValKmjolnir
28ca3baf87 add native function isa(object,class) 2022-04-05 22:33:55 +08:00
ValKmjolnir
8b7e0e5181 add native function: srand, values, find. 2022-04-05 22:15:05 +08:00
ValKmjolnir
60a74a13c8 bug fixed & add systime, finished vecindex 2022-04-04 19:08:48 +08:00
ValKmjolnir
b92930cb71 bug fix & optimize test code & add lib function: subvec, floor, abs, isfunc, isghost, isint, isnum, isscalar, isstr, isvec, vecindex(unfinished) 2022-04-04 18:38:25 +08:00
ValKmjolnir
5f4b2d80dc optimize libmd5.nas & test/md5.nas 2022-04-03 18:10:00 +08:00
ValKmjolnir
a9c66685e4 change module/makefile and test/md5compare.nas 2022-04-01 22:52:04 +08:00
ValKmjolnir
1adeb2ed77 update test/md5compare.nas & optimize test/md5.nas 2022-03-31 19:31:00 +08:00
ValKmjolnir
141cdd79db update test/md5compare.nas
and CAUTION: now the cpp&nas md5 program may not calculate strings including unicode
2022-03-30 21:42:30 +08:00
ValKmjolnir
2cbd6a8e05 update md5compare.nas 2022-03-29 22:54:17 +08:00
ValKmjolnir
c5362acaeb fix bug in test/md5.nas & add test file md5compare.nas 2022-03-29 22:36:28 +08:00
ValKmjolnir
46f2392993 update test/md5.nas(still has bug) & add libmd5 in module(written in C++) 2022-03-28 17:14:11 +08:00
ValKmjolnir
51e9b0b5ab add math.pow 2022-03-27 16:14:55 +08:00
ValKmjolnir
b304fb5b7c update README.md 2022-03-27 01:36:38 +08:00
ValKmjolnir
c6efb9f190 change opcode print format 2022-03-27 01:20:17 +08:00
ValKmjolnir
b3a8b421f8 fix bug: windows ps/cmd output unicode in bytecodes abnormally.
so we use the hex format to print them.
2022-03-23 22:54:07 +08:00
ValKmjolnir
c2be0b9836 add test/snake.nas 2022-03-20 22:08:11 +08:00
ValKmjolnir
d5d426d6eb update main.cpp and bug fix 2022-03-20 18:28:45 +08:00
ValKmjolnir
b61e7dfcb3 update docs & fix bug in nasal_builtin.h 2022-03-16 15:30:34 +08:00
ValKmjolnir
9740ae90a5 update docs 2022-03-14 20:29:49 +08:00
ValKmjolnir
34a59db9c4 add destructor for obj_file & change arguments in test/tetris.nas 2022-03-12 23:37:16 +08:00
ValKmjolnir
01837de162 update test/tetris.nas 2022-03-11 23:42:09 +08:00
ValKmjolnir
015ef1e665 fix bug in test/json.nas 2022-03-11 15:26:38 +08:00
ValKmjolnir
b1b233fb00 update fully functional test/json.nas 2022-03-11 15:11:24 +08:00
ValKmjolnir
4bbeaa10b5 visual update 2022-03-10 16:05:49 +08:00
ValKmjolnir
8309a6211a add unix.fork&unix.pipe(do not work on windows platform) 2022-03-09 19:03:12 +08:00
ValKmjolnir
c00f1a2103 delete lstk&fstk, store local address and function on stack and in vm registers 2022-03-08 17:30:40 +08:00
ValKmjolnir
5ac882c01e update num->string algorithm, now the to_string will output strings with no tailing zeros 2022-03-08 13:40:27 +08:00
ValKmjolnir
b786dd0209 safer stl/module.nas & add stl/file.nas encapsulated from lib.nas/io 2022-03-06 15:17:39 +08:00
ValKmjolnir
ebb601abbf add unix.environ() & use LPCWSTR in dylib.dlopen on Windows platform 2022-03-05 19:15:52 +08:00
ValKmjolnir
7d602cf6ca update 2022-03-01 14:36:05 +08:00
ValKmjolnir
83e27aa0cb fix bug in test/tetris.nas 2022-02-25 23:34:02 +08:00
ValKmjolnir
4be9c8b5c1 update test/tetris.nas 2022-02-23 01:09:31 +08:00
ValKmjolnir
728211e611 fix bug in libkey and test/tetris.nas 2022-02-22 18:01:49 +08:00
ValKmjolnir
2d4255a162 finish tetris.nas 2022-02-21 17:10:13 +08:00
ValKmjolnir
98668da741 finish basic functions of tetris 2022-02-21 00:47:32 +08:00
ValKmjolnir
7812c7f691 finish map drawing in test/tetris.nas 2022-02-20 17:58:13 +08:00
ValKmjolnir
84aa18d5d2 add new third-lib libkey that includes function: kbhit,getch,nonblock 2022-02-19 16:55:54 +08:00
ValKmjolnir
78361539c7 update test file 2022-02-18 15:36:34 +08:00