Commit Graph

30 Commits

Author SHA1 Message Date
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
Valk Richard Li 6f5143657e update 2020-11-02 12:24:12 +08:00
Valk Richard Li 9a9277c505 update 2020-10-25 22:15:49 +08:00
Valk Richard Li e8341c7b06 change project structure
version 3.0
2020-10-23 14:53:04 +08:00