Commit Graph

46 Commits

Author SHA1 Message Date
ValKmjolnir e43bd1eaf2 update test files 2022-12-03 01:24:56 +08:00
ValKmjolnir 34e29e398a 🎨 change code format 2022-11-26 22:49:22 +08:00
ValKmjolnir 2615a3ab85 🚀 optimize code 2022-11-06 18:20:10 +08:00
ValKmjolnir d3fd8ce336 🎨 improve code format
delete option -v, --version, -l, --lex
2022-10-30 01:26:26 +08:00
ValKmjolnir d3e784d191 🚀 crashed coroutine will not make main thread crash. 2022-10-06 23:11:27 +08:00
ValKmjolnir 2da3be7fc4 🚀 change cpp standard to c++14 & add command line colorful info output.
and fix a bug that program may crash if there's an error when coroutine is running
2022-08-31 23:24:41 +08:00
ValKmjolnir 4dfc4012df 🐛 fix bug that make test failed 2022-08-29 00:48:06 +08:00
ValKmjolnir 81daeca4cb 📝 add test file ppmgen.nas 2022-08-17 21:09:22 +08:00
ValKmjolnir 6f19398f90 🐛 fix compilation error of modules on macOS platform 2022-08-10 19:48:01 +08:00
ValKmjolnir 76aca0d528 correct types in nasal_codegen.h 2022-07-27 00:59:35 +08:00
ValKmjolnir 49a7ed28e9 🚀 change std::string to string, change identifiers' name, -o is now a function available in debug mode. 2022-07-23 17:00:25 +08:00
ValKmjolnir 2fa59a7e95 optimize codes 2022-07-19 23:55:12 +08:00
ValKmjolnir 7c1d45a200 🚀 update makefile to choose different compilers by users & fix some codes for MSVC to compile. 2022-07-16 16:53:11 +08:00
ValKmjolnir 4499bf7bac 📝 change makefile and update output format of --opcnt and --detail 2022-07-06 11:57:40 +08:00
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