Commit Graph

73 Commits

Author SHA1 Message Date
ValKmjolnir ac2744e24f change build scripts 2023-07-02 19:48:36 +08:00
ValKmjolnir a7a2f47d1e 🚀 switch build script to new nasal 2023-07-02 00:32:13 +08:00
ValKmjolnir 597c0388cb 🚀 update 2023-07-01 23:21:52 +08:00
ValKmjolnir b6886cc957 finish new codegen 2023-07-01 16:38:37 +08:00
ValKmjolnir 5d9267d3b9 add symbol_finder & codegen 2023-06-29 00:30:50 +08:00
ValKmjolnir 15f63210b4 add codegen/opcode/optimizer 2023-06-28 00:34:54 +08:00
ValKmjolnir e2ec8cb9a0 🚀 add function ghosttype 2023-06-27 22:54:13 +08:00
ValKmjolnir c516c0c3bf add new import & use c++17 2023-06-26 23:59:09 +08:00
ValKmjolnir 9f66960244 add ast dumper 2023-06-25 00:31:11 +08:00
ValKmjolnir 2ce13e2134 change ast used in parser 2023-06-24 16:50:43 +08:00
ValKmjolnir bcf274aed4 update 2023-06-19 00:10:14 +08:00
ValKmjolnir c95810b46c add nasal_new_lexer 2023-06-16 22:23:46 +08:00
ValKmjolnir ec1985b3cc update 2023-06-14 00:01:15 +08:00
ValKmjolnir da22dd03c0 add nasal_new_parse 2023-06-12 00:03:18 +08:00
ValKmjolnir 9bf4eacc62 prepare to use new ast 2023-06-05 00:11:37 +08:00
ValKmjolnir f914678311 add readline & os.arch
delete test file mandel.nas

change io.fin => io.readfile
2023-04-28 23:11:17 +08:00
ValKmjolnir 5519dc7a29 merge runtime regs into struct context 2023-04-08 00:18:58 +08:00
ValKmjolnir 3852ce23a3 split opcode to nasal_opcode.h 2023-04-04 00:29:17 +08:00
ValKmjolnir 7cdc5e40af visual update 2023-03-11 18:15:27 +08:00
ValKmjolnir 8161f3c514 optimize codegen 2023-03-09 23:00:25 +08:00
ValKmjolnir abe2464a67 📝 shorten the running time of test process 2023-03-02 00:36:48 +08:00
ValKmjolnir 068184f451 🐛 fix codegen for binary not on some ast nodes 2023-02-12 15:33:38 +08:00
ValKmjolnir 368b057a91 🚀 add binary negation 2023-02-12 15:22:05 +08:00
ValKmjolnir 79c1e27027 🐛 fix bug in test/calc.nas 2023-02-03 19:01:00 +08:00
ValKmjolnir dc6f3347b7 🎨 change clean command in makefile 2022-12-25 17:59:14 +08:00
ValKmjolnir d5996d6a1d 🎨 change clean command in makefiles 2022-12-25 17:58:05 +08:00
ValKmjolnir cb547499ac optimize gc 2022-12-07 01:17:40 +08:00
ValKmjolnir 9c6996b54e update test files 2022-12-03 01:24:56 +08:00
ValKmjolnir 4c5ffb0240 🎨 change code format 2022-11-26 22:49:22 +08:00
ValKmjolnir 4fd69c6ce4 🚀 optimize code 2022-11-06 18:20:10 +08:00
ValKmjolnir feea901e4d 🎨 improve code format
delete option -v, --version, -l, --lex
2022-10-30 01:26:26 +08:00
ValKmjolnir 405175061a 🚀 crashed coroutine will not make main thread crash. 2022-10-06 23:11:27 +08:00
ValKmjolnir f86ea2445f 🚀 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 27ceeb517d 🐛 fix bug that `make test` failed 2022-08-29 00:48:06 +08:00
ValKmjolnir 007b83bed5 📝 add test file `ppmgen.nas` 2022-08-17 21:09:22 +08:00
ValKmjolnir 2f43c47e77 🐛 fix compilation error of modules on macOS platform 2022-08-10 19:48:01 +08:00
ValKmjolnir db896e932f correct types in nasal_codegen.h 2022-07-27 00:59:35 +08:00
ValKmjolnir 99a131c552 🚀 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 cc4ff38f28 optimize codes 2022-07-19 23:55:12 +08:00
ValKmjolnir 577ecd14df 🚀 update makefile to choose different compilers by users & fix some codes for MSVC to compile. 2022-07-16 16:53:11 +08:00
ValKmjolnir a04ed2a4aa 📝 change makefile and update output format of --opcnt and --detail 2022-07-06 11:57:40 +08:00
ValKmjolnir 2bc15697df optimize codes and delete unused variables 2022-07-05 00:49:38 +08:00
ValKmjolnir 12d7dde42d 🚀 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 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 04ab09586b 🚀 add stl/fg_env.nas & delete test/props props_sim maketimer_sim.nas 2022-05-31 20:36:39 +08:00
ValKmjolnir 36a7868b0b 📝 add maketimer_multi_coroutine_test(vm_num) in test/maketimer_sim.nas 2022-05-23 22:12:58 +08:00
ValKmjolnir 07eeaadf96 optimize codes: store upvalue on stack & debugger now can output information of registers 2022-05-20 21:19:43 +08:00
ValKmjolnir f049e1f9fb add test file diff.nas 2022-04-30 20:00:15 +08:00
ValKmjolnir 7417d5e635 change makefile 2022-04-26 22:53:35 +08:00