Commit Graph

171 Commits

Author SHA1 Message Date
ValKmjolnir 89d5870c1b 📝 add notes in test files & use system("color") to use ANSI esc seq 2022-09-14 23:15:36 +08:00
ValKmjolnir 73c3279dae 📝 add interesting gifs into docs 2022-09-13 23:00:48 +08:00
ValKmjolnir 4b4489f833 🐛 fix bug that int() cannot convert numeric string 2022-09-12 22:45:35 +08:00
ValKmjolnir b743f090ec change parameter list of 2022-09-11 15:10:30 +08:00
ValKmjolnir 5b412153a3 optimize stl/sort.nas and test/calc.nas 2022-09-10 15:45:25 +08:00
ValKmjolnir a76253412e 🐛 fix bug that word_collector.nas split some words incorrectly 2022-09-09 21:48:10 +08:00
ValKmjolnir 40e6c85657 📝 update test file & add new test file word_collector.nas 2022-09-09 01:00:09 +08:00
ValKmjolnir 6cd88f4e45 🚀 add new stl file padding.nas and update test files. 2022-09-04 17:53:00 +08:00
ValKmjolnir 28fc1eb850 📝 use bold font in test/watchdog.nas 2022-09-01 00:04:14 +08:00
ValKmjolnir fb00ddc19a 🚀 add colorful error info print. 2022-08-31 00:56:19 +08:00
ValKmjolnir c7662af0fc 🚀 add lib function exit() and add test file watchdog.nas to run the nasal file when it is changed. 2022-08-27 18:12:32 +08:00
ValKmjolnir eb0f5ffcc2 📝 update stl/file and test files. 2022-08-27 17:26:01 +08:00
ValKmjolnir 99494c067c 🔥 delete --opcnt and replace the function of -o by --optimize. 2022-08-25 19:54:03 +08:00
ValKmjolnir a82ffe8b46 📝 add compilation time & update test/ppmgen.nas 2022-08-21 00:26:16 +08:00
ValKmjolnir 325a7236e7 several updates.
1. merge `--chkpath` `-cp` with `-d`

2. complete test/ppmgen.nas

3. update comments about why we don't use `atof` to convert string to
number

4. update .gitignore
2022-08-19 23:25:46 +08:00
ValKmjolnir 81daeca4cb 📝 add test file ppmgen.nas 2022-08-17 21:09:22 +08:00
ValKmjolnir de7c7b81cc 📝 update test/ascii-art.nas 2022-08-16 20:41:05 +08:00
ValKmjolnir eff98fa9b4 🚀 optimize stl/stack.nas, test/calc.nas & io.fin now returns empty string when cannot open file 2022-08-07 00:35:55 +08:00
ValKmjolnir 13ddfa5050 📝 delete unnecessary code & change test file. 2022-07-31 19:26:13 +08:00
ValKmjolnir ca6cb5daae 🐛 fix bug of incorrectly searching paths of lib.nas and dynamic libs.
`dylib.dlopen` now only needs file name of dynamic lib, not the real path.
2022-07-29 22:49:50 +08:00
ValKmjolnir 0d750ca685 optimize op_para and op_deft: change hashmap<string,u64> to hashmap<u32,u32> 2022-07-23 12:02:41 +08:00
ValKmjolnir 2fa59a7e95 optimize codes 2022-07-19 23:55:12 +08:00
ValKmjolnir 0d757c813b 🐛 fix bug in test/module_test.nas 2022-07-17 23:46:37 +08:00
ValKmjolnir b29edcace4 📝 change codes in test files. 2022-07-14 19:52:27 +08:00
ValKmjolnir bdd0cb2912 📝 change some identifiers' name. 2022-07-09 16:24:58 +08:00
ValKmjolnir a402e6d7d2 🚀 add a new way to import other files:
`import("./stl/queue.nas");` now has same function as `import.stl.queue;`
2022-07-06 22:21:01 +08:00
ValKmjolnir 3d1e3f49dc 📝 change identifiers' name and test/coroutine.nas, test/filesystem.nas 2022-07-06 16:04:21 +08:00
ValKmjolnir b5f839bebe 📝 change some identifiers' name. 2022-07-03 22:46:28 +08:00
ValKmjolnir 7124b22619 📝 update test files 2022-07-02 15:48:02 +08:00
ValKmjolnir f3ba80b41c 📝 unify code style of ./stl ./test 2022-07-02 13:53:50 +08:00
ValKmjolnir 41d5e2013e 🚀 update test/httptest.nas and doc/.html 2022-06-24 15:47:53 +08:00
ValKmjolnir abf4e8b735 📝 update test/httptest.nas 2022-06-23 22:16:24 +08:00
ValKmjolnir 12affcde2b 📝 update test/hexdump.nas test/md5compare.nas 2022-06-16 18:21:11 +08:00
ValKmjolnir 9d4a0e1b1f 📝 update stl/process_bar.nas 2022-06-16 01:03:51 +08:00
ValKmjolnir 031c56b08b 📝 update stl/process_bar.nas and test/md5compare.nas 2022-06-15 20:21:03 +08:00
ValKmjolnir bc90022dff 🚀 add stl/log.nas and stl/process_bar.nas 2022-06-15 00:36:49 +08:00
ValKmjolnir d4d21f7af3 📝 update stl/fg_env.nas 2022-06-11 20:53:13 +08:00
ValKmjolnir 503b834f05 📝 update test/httptest.nas 2022-06-11 12:49:26 +08:00
ValKmjolnir 17495f12f9 📝 update test/httptest.nas 2022-06-08 20:01:22 +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 954310293d add u32 and() xor() or() nand() not() 2022-06-03 21:34:02 +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 9194c966c8 🐛 visual changement & bug fix in test/json.nas & optimize test/bp.nas 2022-05-30 21:27:24 +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 6ee0ce9398 🐛 fix bug that gc cannot mark values in coroutine & add maketimer_sim.nas
update props_sim.nas

update auto_crash.nas
2022-05-23 20:23:20 +08:00
ValKmjolnir b4aad5249b 🎨 fix a bug in module/keyboard.cpp that if program exited with an error, the terminal may not echo the text you input 2022-05-20 21:42:28 +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 8915a9b96a 🚀 add coroutine library(beta) and lib function settimer&maketimestamp 2022-05-19 20:09:23 +08:00