ValKmjolnir
6b20e0f167
🚀 add os.time() to get the local time string
2022-06-12 19:08:31 +08:00
ValKmjolnir
a2e2d5d8f6
✨ add native function runtime.argv() to get command line arguments
2022-06-04 20:12:00 +08:00
ValKmjolnir
cb0fee04a9
🚀 add native function println & add test/occupation.nas
2022-06-04 19:22:28 +08:00
ValKmjolnir
4e6cd82ccb
🐛 fix unix.isdir & unix.isfile
2022-06-03 21:53:14 +08:00
ValKmjolnir
c3a8e118f5
⚡ add u32 and() xor() or() nand() not()
2022-06-03 21:34:02 +08:00
ValKmjolnir
7ec8418740
🚀 use ftime to calculate run time
2022-06-02 22:51:43 +08:00
ValKmjolnir
120ceb429a
🚀 add coroutine library(beta) and lib function settimer&maketimestamp
2022-05-19 20:09:23 +08:00
ValKmjolnir
f8692f1e4e
📝 update test files
2022-05-17 18:22:24 +08:00
ValKmjolnir
23a5c1b1ad
🐛 bug fix
2022-05-06 20:58:02 +08:00
ValKmjolnir
9c7f5f1a6e
update test file diff.nas& add math.max math.min
2022-05-01 21:10:23 +08:00
ValKmjolnir
87cff700e8
change module/libmd5 to native function builtin_md5() in nasal_builtin.h
2022-04-06 22:30:49 +08:00
ValKmjolnir
bf5737ecfd
add native function abort(), assert()
2022-04-06 21:25:20 +08:00
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
617ad03d33
add math.pow
2022-03-27 16:14:55 +08:00
ValKmjolnir
e6457651d3
add unix.waitpid
2022-03-16 18:44:38 +08:00
ValKmjolnir
d8156e839b
add unix.fork&unix.pipe(do not work on windows platform)
2022-03-09 19:03:12 +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
ca9b8581b4
add module.nas to safely use dylib
2022-03-05 21:52:29 +08:00
ValKmjolnir
d3df356299
add unix.environ() & use LPCWSTR in dylib.dlopen on Windows platform
2022-03-05 19:15:52 +08:00
ValKmjolnir
05fc5db337
change parameter name in native function split.
2022-02-17 23:34:58 +08:00
ValKmjolnir
3e7ba4d774
little update
2022-02-10 22:20:18 +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
05ab4640da
add notes of some native functions in lib.nas
2022-01-26 23:51:25 +08:00
ValKmjolnir
c27c5b70ee
little update
2021-12-16 23:53:13 +08:00
ValKmjolnir
5a80258d20
bug fixed & add os.platform
2021-12-08 18:46:32 +08:00
ValKmjolnir
9861ecd03e
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
aa191a9feb
delete ret stack/ add math.lg
...
now return address is stored on value stack
2021-12-02 22:23:22 +08:00
ValKmjolnir
52b49edbcf
add unix.isdir and unix.isfile
2021-11-15 22:47:52 +08:00
ValKmjolnir
f8e2918561
add unix.opendir unix.readdir unix.closedir
2021-10-31 23:11:04 +08:00
ValKmjolnir
e4ea34db51
add unix.time unix.chdir unix.sleep unix.getcwd unix.getenv
2021-10-29 19:52:49 +08:00
ValKmjolnir
4bfce37f40
add bits lib
2021-10-28 21:49:08 +08:00
ValKmjolnir
fd0d836c03
add io lib & bug fixed
2021-10-27 23:05:25 +08:00
ValKmjolnir
13d40e886e
update
2021-09-25 23:25:31 +08:00
Li Haokun
c498d5c8c4
add fg constants & change int(), num()
2021-09-02 19:10:49 +08:00
Li Haokun
11971267dc
add math.nan math.inf
2021-09-01 19:15:32 +08:00
Li Haokun
59dc0d1423
add isnan
2021-08-27 17:43:01 +08:00
Valk Richard Li
cdf7b92a8e
add statistical information
2021-06-19 00:32:10 +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
c88620920b
add stl & more efficient scope
2021-04-02 22:19:29 +08:00
Valk Richard Li
144e6f45da
gc changed to mark-sweep
2021-03-27 01:08:05 +08:00
Sidi Liang
388ef66308
Library: added comment for chr
2021-02-13 21:43:07 +08:00
Sidi Liang
8faa4ef2db
Library: Added core library function chr according to FlightGear Nasal
2021-02-13 21:40:10 +08:00
Sidi Liang
441c02d0fb
Library: Added core library function streq and cmp according to FlightGear Nasal
2021-02-13 21:09:13 +08:00
Sidi Liang
953ad80482
Library: Added core library function left and right according to FlightGear Nasal
2021-02-13 20:19:49 +08:00
Valk Richard Li
b5514fd269
update
2021-02-12 22:27:41 +08:00
Valk Richard Li
a09b748093
update math.pi :)
2020-11-09 00:33:15 +08:00