ValKmjolnir
2542f4e43e
📝 update test/module_test.nas
2022-05-17 21:48:08 +08:00
ValKmjolnir
387d44f9cb
📝 update test files
2022-05-17 18:22:24 +08:00
ValKmjolnir
3e418dbcff
🐛 bug fix
2022-05-06 20:58:02 +08:00
ValKmjolnir
e1f1fc64c4
update test file diff.nas& add math.max math.min
2022-05-01 21:10:23 +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
51e9b0b5ab
add math.pow
2022-03-27 16:14:55 +08:00
ValKmjolnir
1d5e2f5654
add unix.waitpid
2022-03-16 18:44:38 +08:00
ValKmjolnir
8309a6211a
add unix.fork&unix.pipe(do not work on windows platform)
2022-03-09 19:03:12 +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
15c5fbb1fb
add module.nas to safely use dylib
2022-03-05 21:52:29 +08:00
ValKmjolnir
ebb601abbf
add unix.environ() & use LPCWSTR in dylib.dlopen on Windows platform
2022-03-05 19:15:52 +08:00
ValKmjolnir
2be7324cde
change parameter name in native function split.
2022-02-17 23:34:58 +08:00
ValKmjolnir
4fa2a45a07
little update
2022-02-10 22:20:18 +08:00
ValKmjolnir
6908e509ac
add notes in lib.nas & add runtime.gc() & add total instruction count in '-o'.
2022-02-09 15:53:09 +08:00
ValKmjolnir
6601912de4
bug fixed in nasal_vec::print and nasal_hash::print
...
if vec's or hash's size is 0, a bug will occur because ++depth. now the ++depth has been put behind the size()
2022-01-29 19:51:43 +08:00
ValKmjolnir
82181b7af4
add debugger framework
...
with function:backtrace,run,help,show global/local/upvalue,exit
2021-12-20 21:33:22 +08:00
ValKmjolnir
e706214854
bug fixed & add os.platform
2021-12-08 18:46:32 +08:00
ValKmjolnir
ab6c194d71
add dylib.dlopen dylib.dlsym dylib.dlclose dylib.dlcall
...
now you could add your own modules into nasal without changing the source code!
2021-12-03 19:31:03 +08:00
ValKmjolnir
cabce9370a
delete ret stack/ add math.lg
...
now return address is stored on value stack
2021-12-02 22:23:22 +08:00
ValKmjolnir
e1d5ab2da5
add unix.isdir and unix.isfile
2021-11-15 22:47:52 +08:00
ValKmjolnir
aeefaebcec
add unix.opendir unix.readdir unix.closedir
2021-10-31 23:11:04 +08:00
ValKmjolnir
6b4116aece
add unix.time unix.chdir unix.sleep unix.getcwd unix.getenv
2021-10-29 19:52:49 +08:00
ValKmjolnir
d13e8084e5
add bits lib
2021-10-28 21:49:08 +08:00
ValKmjolnir
b131a3ea9e
add io lib & bug fixed
2021-10-27 23:05:25 +08:00
ValKmjolnir
602095f190
update variable name in nasal_lexer
2021-10-16 14:07:55 +08:00
ValKmjolnir
414c9c7487
change output format of information of bytecodes
2021-10-13 22:59:15 +08:00
ValKmjolnir
e2ed6d9013
update
2021-09-25 23:25:31 +08:00
Li Haokun
87d5740125
add fg constants & change int(), num()
2021-09-02 19:10:49 +08:00
Li Haokun
6f6383f4fc
add result.nas
2021-09-01 19:14:03 +08:00
Li Haokun
e7afc86d97
add isnan
2021-08-27 17:43:01 +08:00
Li Haokun
331e0e1728
fully functional closure
2021-08-11 14:54:17 +08:00
ValKmjolnir
ee9afe1cf1
change instruction dispatch to computed-goto
...
bug fixed
prepare for version 7.0
2021-06-26 14:53:10 +08:00
Valk Richard Li
b9aa7f5db2
add statistical information
2021-06-19 00:32:10 +08:00
Valk Richard Li
1cd627d9c7
Add command line parameters & chr supports extended ASCII
2021-06-11 15:16:06 +08:00
Valk Richard Li
a3d629a08e
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
1f6e1a647e
add stl & more efficient scope
2021-04-02 22:19:29 +08:00