Commit Graph

32 Commits

Author SHA1 Message Date
ValKmjolnir fcfbf5ce77 optimize codes and delete unused variables 2022-07-05 00:49:38 +08:00
ValKmjolnir 20a4a4df4e 🚀 finish socket library:
socket.socket()

socket.closesocket()

socket.shutdown()

socket.bind()

socket.listen()

socket.connect()

socket.accept()

socket.send() socket.sendto()

socket.recv() socket.recvfrom()

socket.errno()
2022-06-08 19:06:16 +08:00
ValKmjolnir ec2866021f add native function runtime.argv() to get command line arguments 2022-06-04 20:12:00 +08:00
ValKmjolnir 6f709f30f5 🚀 add native function println & add test/occupation.nas 2022-06-04 19:22:28 +08:00
ValKmjolnir ece6142475 🚀 add stl/fg_env.nas & delete test/props props_sim maketimer_sim.nas 2022-05-31 20:36:39 +08:00
ValKmjolnir f92089b90a 📝 add maketimer_multi_coroutine_test(vm_num) in test/maketimer_sim.nas 2022-05-23 22:12:58 +08:00
ValKmjolnir c47bc7b881 optimize codes: store upvalue on stack & debugger now can output information of registers 2022-05-20 21:19:43 +08:00
ValKmjolnir 3854e582a2 add test file diff.nas 2022-04-30 20:00:15 +08:00
ValKmjolnir 1d4494163c change makefile 2022-04-26 22:53:35 +08:00
ValKmjolnir ced02c9ac6 add test file wavecollapse.nas 2022-04-10 15:34:20 +08:00
ValKmjolnir c5362acaeb fix bug in test/md5.nas & add test file md5compare.nas 2022-03-29 22:36:28 +08:00
ValKmjolnir 51e9b0b5ab add math.pow 2022-03-27 16:14:55 +08:00
ValKmjolnir c6efb9f190 change opcode print format 2022-03-27 01:20:17 +08:00
ValKmjolnir 9740ae90a5 update docs 2022-03-14 20:29:49 +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 3cd9d02de4 update detailed-info 2022-03-03 19:00:23 +08:00
ValKmjolnir 7d602cf6ca update 2022-03-01 14:36:05 +08:00
ValKmjolnir 78361539c7 update test file 2022-02-18 15:36:34 +08:00
ValKmjolnir 4fa2a45a07 little update 2022-02-10 22:20:18 +08:00
ValKmjolnir ee01e0992c add garbage collector and memory allocator info. use '-d' to activate this function. 2022-02-08 23:40:52 +08:00
ValKmjolnir 88ef0f8dd6 add constant string calculation in optimizer 2022-02-01 21:20:36 +08:00
ValKmjolnir 6c3e5e6a02 add optimizer
optimizer now does one work: calculate const number before generating bytecode
2022-01-22 00:41:08 +08:00
ValKmjolnir 2ff88b7073 add test file 'turingmachine.nas' & change output format of ast & bug fixed 2021-12-28 20:23:47 +08:00
ValKmjolnir 1ae354c0cf lexer,parser,import,codegen use the same error module. 2021-12-23 21:15:50 +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 bc9039dd37 change code structure 2021-11-02 22:44:42 +08:00
ValKmjolnir 95451490ca bug fixed 2021-10-26 22:34:02 +08:00
ValKmjolnir 101714986d optimize nasal_ast and fix bug in opr_slc2 2021-10-20 20:54:23 +08:00
ValKmjolnir 32465b92c8 fix sigsegv error 2021-10-18 21:50:25 +08:00
ValKmjolnir 515a2685fe add detail crash info 2021-10-17 22:57:45 +08:00