ValKmjolnir
651ae4ef77
add native function isa(object,class)
2022-04-05 22:33:55 +08:00
ValKmjolnir
e846e51175
add native function: srand, values, find.
2022-04-05 22:15:05 +08:00
ValKmjolnir
399b2f0ce9
bug fixed & add systime, finished vecindex
2022-04-04 19:08:48 +08:00
ValKmjolnir
aed5e27409
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
a2b51fe212
optimize libmd5.nas & test/md5.nas
2022-04-03 18:10:00 +08:00
ValKmjolnir
92b684624d
change module/makefile and test/md5compare.nas
2022-04-01 22:52:04 +08:00
ValKmjolnir
83a8632e8e
update test/md5compare.nas & optimize test/md5.nas
2022-03-31 19:31:00 +08:00
ValKmjolnir
41b5304712
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
c5a12ade5c
update md5compare.nas
2022-03-29 22:54:17 +08:00
ValKmjolnir
7a939b417d
fix bug in test/md5.nas & add test file md5compare.nas
2022-03-29 22:36:28 +08:00
ValKmjolnir
dd7740f1fd
update test/md5.nas(still has bug) & add libmd5 in module(written in C++)
2022-03-28 17:14:11 +08:00
ValKmjolnir
617ad03d33
add math.pow
2022-03-27 16:14:55 +08:00
ValKmjolnir
7f22b25909
update README.md
2022-03-27 01:36:38 +08:00
ValKmjolnir
86f6296268
change opcode print format
2022-03-27 01:20:17 +08:00
ValKmjolnir
cf722fd98c
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
1dd3fd445c
add test/snake.nas
2022-03-20 22:08:11 +08:00
ValKmjolnir
27e25f84ec
update main.cpp and bug fix
2022-03-20 18:28:45 +08:00
ValKmjolnir
c4d52a88cd
update docs & fix bug in nasal_builtin.h
2022-03-16 15:30:34 +08:00
ValKmjolnir
9a099f66cb
update docs
2022-03-14 20:29:49 +08:00
ValKmjolnir
82e9e97a26
add destructor for obj_file & change arguments in test/tetris.nas
2022-03-12 23:37:16 +08:00
ValKmjolnir
6a1338bb23
update test/tetris.nas
2022-03-11 23:42:09 +08:00
ValKmjolnir
3b8a092f36
fix bug in test/json.nas
2022-03-11 15:26:38 +08:00
ValKmjolnir
3d86a32b12
update fully functional test/json.nas
2022-03-11 15:11:24 +08:00
ValKmjolnir
f26719e1d3
visual update
2022-03-10 16:05:49 +08:00
ValKmjolnir
d8156e839b
add unix.fork&unix.pipe(do not work on windows platform)
2022-03-09 19:03:12 +08:00
ValKmjolnir
61666d275d
delete lstk&fstk, store local address and function on stack and in vm registers
2022-03-08 17:30:40 +08:00
ValKmjolnir
99f595e16f
update num->string algorithm, now the to_string will output strings with no tailing zeros
2022-03-08 13:40:27 +08:00
ValKmjolnir
debe32b187
safer stl/module.nas & add stl/file.nas encapsulated from lib.nas/io
2022-03-06 15:17:39 +08:00
ValKmjolnir
d3df356299
add unix.environ() & use LPCWSTR in dylib.dlopen on Windows platform
2022-03-05 19:15:52 +08:00
ValKmjolnir
f312250d27
update
2022-03-01 14:36:05 +08:00
ValKmjolnir
3fac8aa665
fix bug in test/tetris.nas
2022-02-25 23:34:02 +08:00
ValKmjolnir
6bc03601d9
update test/tetris.nas
2022-02-23 01:09:31 +08:00
ValKmjolnir
f05acaecc7
fix bug in libkey and test/tetris.nas
2022-02-22 18:01:49 +08:00
ValKmjolnir
9456a903d7
finish tetris.nas
2022-02-21 17:10:13 +08:00
ValKmjolnir
984deed883
finish basic functions of tetris
2022-02-21 00:47:32 +08:00
ValKmjolnir
557cb2ebcf
finish map drawing in test/tetris.nas
2022-02-20 17:58:13 +08:00
ValKmjolnir
9c055a9a23
add new third-lib libkey that includes function: kbhit,getch,nonblock
2022-02-19 16:55:54 +08:00
ValKmjolnir
8c67e04cc4
update test file
2022-02-18 15:36:34 +08:00
ValKmjolnir
e77bb73a82
add special character `\e`.
2022-02-18 01:58:49 +08:00
ValKmjolnir
a4738e8c7d
delete operand `op_nop`
2022-02-16 23:27:22 +08:00
ValKmjolnir
0291908675
update README.md
2022-02-14 17:29:26 +08:00
ValKmjolnir
9139e34c0b
update README & bug fixed
2022-02-13 16:10:02 +08:00
ValKmjolnir
e7f503fae1
now local values are stored on stack. upvalue is generated when creating a new function in local scope.
...
may include some bugs inside. but all test files has passed the test so i decide to push it.
2022-02-12 23:12:30 +08:00
ValKmjolnir
0ccd3c9bd0
update test/calc.nas & print function of nasal_vec/nasal_hash
2022-02-11 17:04:27 +08:00
ValKmjolnir
a176022840
add notes in lib.nas & add runtime.gc() & add total instruction count in '-o'.
2022-02-09 15:53:09 +08:00
ValKmjolnir
a09c6ae2f9
update/optimize test files
2022-02-07 23:41:50 +08:00
ValKmjolnir
2a85e92d4a
optimize test file & little update.
2022-02-06 19:55:45 +08:00
ValKmjolnir
5778d1e38d
update new test data
2022-01-24 15:19:27 +08:00
ValKmjolnir
40344455e6
add optimizer
...
optimizer now does one work: calculate const number before generating bytecode
2022-01-22 00:41:08 +08:00
ValKmjolnir
630c99c39a
optimize codes
2022-01-16 22:48:00 +08:00
ValKmjolnir
46716620e3
add test file 'turingmachine.nas' & change output format of ast & bug fixed
2021-12-28 20:23:47 +08:00
ValKmjolnir
f0ae63bce5
lexer,parser,import,codegen use the same error module.
2021-12-23 21:15:50 +08:00
ValKmjolnir
189d49fa4a
add debugger framework
...
with function:backtrace,run,help,show global/local/upvalue,exit
2021-12-20 21:33:22 +08:00
ValKmjolnir
5a80258d20
bug fixed & add os.platform
2021-12-08 18:46:32 +08:00
ValKmjolnir
52b49edbcf
add unix.isdir and unix.isfile
2021-11-15 22:47:52 +08:00
ValKmjolnir
cd08b2d1bb
change code structure
2021-11-02 22:44:42 +08:00
ValKmjolnir
fd0d836c03
add io lib & bug fixed
2021-10-27 23:05:25 +08:00
ValKmjolnir
d4a9412947
optimize code structure
2021-10-16 21:08:57 +08:00
ValKmjolnir
577546763f
change function name and cli format
2021-10-14 23:22:28 +08:00
ValKmjolnir
58ea303202
complete simple tutorial
2021-10-14 13:42:07 +08:00
ValKmjolnir
818685c48d
change output format of information of bytecodes
2021-10-13 22:59:15 +08:00
ValKmjolnir
56289b5d22
fully functional closure & add benchmark
2021-10-10 14:29:23 +08:00
ValKmjolnir
d71b4f09e2
prepare for version 8.0
2021-10-08 15:32:18 +08:00
Li Haokun
618ce59233
bad access bug fixed
2021-09-13 19:55:03 +08:00
Li Haokun
071d8bd1ce
update
2021-09-10 19:13:42 +08:00
Li Haokun
418531a44a
add result.nas
2021-09-01 19:14:03 +08:00
Li Haokun
59dc0d1423
add isnan
2021-08-27 17:43:01 +08:00
Li Haokun
385f0af17e
nothing changed
2021-08-24 19:34:52 +08:00
Li Haokun
ef9b781961
security holes fixed
2021-08-19 17:54:36 +08:00
ValKmjolnir
80cc8e9db7
closure bugs fixed
2021-08-17 01:18:35 +08:00
Li Haokun
b2be386be8
update hexdump.nas
2021-08-13 15:10:20 +08:00
Li Haokun
e4c598cae6
add hexdump.nas
2021-08-12 20:01:51 +08:00
Li Haokun
35fc848672
fully functional closure
2021-08-11 14:54:17 +08:00
ValKmjolnir
91771297d3
add test file
2021-08-01 22:34:02 +08:00
Li Haokun
9ebabfe737
fixed bug in nasal_parse
2021-07-21 17:38:11 +08:00
ValKmjolnir
57d6bcdc52
add const compare instructions
2021-07-03 15:22:23 +08:00
ValKmjolnir
3c9a10d710
avoid unnecessary deep copy by using rvalue ref
...
and test file update.
bug fixed in test/lexer.nas
2021-06-24 22:10:08 +08:00
ValKmjolnir
fd57e9a47c
performance optimization of vm/lex/parse/test
2021-06-24 00:26:26 +08:00
Valk Richard Li
ae0dae5956
update
2021-06-21 01:02:09 +08:00
Valk Richard Li
0e979a6e7b
bug fixed & delete operand vapp
2021-06-15 00:49:32 +08:00
Valk Richard Li
dd144305da
update test file
2021-06-14 00:27:00 +08:00
Valk Richard Li
de305d26ad
fixed an error in README
2021-06-12 01:23:06 +08:00
Valk Richard Li
1ae47807eb
Add command line parameters & chr supports extended ASCII
2021-06-11 15:16:06 +08:00
Valk Richard Li
8e29a3ec5b
bug fixed & more efficient callfv
...
I changed callfv's way of calling a function with arguments in vm_vec.
now callfv fetches arguments from val_stack directly,so it runs test/fib.nas from 2.4s to 1.9s.
delete operand callf,add operands callfv & callfh.
also,i check val_stack's top to make sure there is not a stack overflow.
2021-06-03 21:49:31 +08:00
Valk Richard Li
6adb991c04
parser reports syntax error accurately
...
still need improvement
2021-05-04 01:13:53 +08:00
Valk Richard Li
c5f4736984
change scope from unordered_map to vector
2021-04-19 19:12:41 +08:00
Valk Richard Li
1a233fbe15
update
2021-04-12 13:21:13 +08:00
Valk Richard Li
a7d6518bff
add test file & update README
2021-04-04 23:35:13 +08:00
Valk Richard Li
c88620920b
add stl & more efficient scope
2021-04-02 22:19:29 +08:00
Valk Richard Li
125fc8a9fe
bug fixed & test file changes
...
compare operators now run more efficiently.
2021-03-31 20:59:13 +08:00
Valk Richard Li
b06e1bb5dd
add static symbol check & test file update
2021-03-30 15:55:38 +08:00
Valk Richard Li
c7316e9780
change id name & add test file
2021-03-30 00:12:48 +08:00
Valk Richard Li
be1bcdfe2c
bug fixed
2021-03-28 17:39:24 +08:00
Valk Richard Li
144e6f45da
gc changed to mark-sweep
2021-03-27 01:08:05 +08:00
Valk Richard Li
569d5c6c6a
update
2021-03-11 23:18:04 +08:00
Valk Richard Li
7087c67d79
add constant table in vm
2021-03-08 19:45:33 +08:00
Valk Richard Li
c4e6a89959
update test files and prepare the release of v5.0
2021-03-07 16:33:43 +08:00
Valk Richard Li
c21d40c466
change test files
2021-03-03 09:20:42 +08:00
Valk Richard Li
19b590f3bb
add test files
2021-03-03 01:09:57 +08:00
Valk Richard Li
9f30440286
preparation for v5.0
2020-12-19 01:26:15 +08:00