ValKmjolnir
12d73a6030
✨ using c++ cast (wip)
2023-09-14 00:34:31 +08:00
ValKmjolnir
bf770470eb
🎨 add namespace
2023-09-08 18:17:07 +08:00
ValKmjolnir
30a14694dc
⚡ repl does not write temp file now
2023-09-06 00:12:01 +08:00
ValKmjolnir
44397bb05e
✨ split io lib
2023-08-09 00:31:23 +08:00
ValKmjolnir
8dd2878a23
🔥 delete ghost type table
2023-08-08 20:50:47 +08:00
ValKmjolnir
181a3c4f2f
📝 add bits.nas & dylib.nas & unix.nas
2023-07-25 00:22:11 +08:00
ValKmjolnir
dc56162c55
✨ optimize location info gen in codegen
...
and refactor lib.nas, add multiple native modules
2023-07-23 23:57:25 +08:00
ValKmjolnir
a72a42fa41
📝 delete std/sort.nas & update test file
2023-07-23 00:30:14 +08:00
ValKmjolnir
1bcd297d23
✨ support nasal module
2023-07-20 00:54:57 +08:00
ValKmjolnir
56d91b6a65
📝 optimize code
2023-07-11 00:05:20 +08:00
ValKmjolnir
2e80f0a191
✨ add special variable "arg"
2023-07-09 00:59:17 +08:00
ValKmjolnir
9fbc1182e3
📝 rename files
2023-07-02 22:02:31 +08:00
ValKmjolnir
f8385556df
✨ change build scripts
2023-07-02 19:48:36 +08:00
ValKmjolnir
8feb19bb61
🚀 switch build script to new nasal
2023-07-02 00:32:13 +08:00
ValKmjolnir
f14f721299
✨ add new import & use c++17
2023-06-26 23:59:09 +08:00
ValKmjolnir
9001d30f3f
🐛 fix header in module for vs to build
2023-05-11 19:41:39 +08:00
ValKmjolnir
2e5697f88f
⚡ optimize ghost table structure
2023-05-11 19:26:34 +08:00
ValKmjolnir
19cc92c596
✨ improve function of ghost_register_table
2023-05-11 00:24:35 +08:00
ValKmjolnir
44d779758d
✨ add global_ghost_type_table for test
2023-05-10 00:48:04 +08:00
ValKmjolnir
cbb3906536
✨ add cmakelists.txt
2023-05-06 21:12:40 +08:00
ValKmjolnir
84fec7ae4f
✨ add test/jsonrpc.nas and fix bug
...
bug: in nasocket.cpp, recv and recvfrom do not place 0 after reciving
data into the buffer.
2023-03-23 00:09:51 +08:00
ValKmjolnir
29ee017af6
✨ use new way of constructing var objects
2023-01-05 22:42:17 +08:00
ValKmjolnir
c63bd531a5
🎨 change clean command in makefiles
2022-12-25 17:58:05 +08:00
ValKmjolnir
c88cbd0063
⚡ add runtime.gc.extend
2022-12-04 20:28:51 +08:00
ValKmjolnir
34e29e398a
🎨 change code format
2022-11-26 22:49:22 +08:00
ValKmjolnir
2772fa748d
🚀 change module loading
2022-11-15 21:23:34 +08:00
ValKmjolnir
a0fe9ac669
⚡ add new ways of calling dylib function
2022-11-11 00:11:01 +08:00
ValKmjolnir
e150b632db
🚀 add new module matrix.cpp (in dev)
2022-11-06 23:30:18 +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
8583be337e
🚀 change module function parameter format to avoid warnings
2022-10-24 01:12:25 +08:00
ValKmjolnir
1a0f81214f
🔥 change class name.
...
nasal_lexer -> lexer
nasal_parse -> parse
nasal_codegen -> codegen
nasal_vm -> vm
nasal_gc -> gc
nasal_dbg -> debugger
nasal_import -> linker
nas_ref -> var
2022-10-21 01:29:29 +08:00
ValKmjolnir
8d0eadaa74
📝 fix MSVC warning in nasal_builtin.h & improve error output.
2022-09-04 23:08:06 +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
6318f7e9e8
⚡ optimize header file, now modules could generate smaller dynamic libs.
2022-08-24 22:08:47 +08:00
ValKmjolnir
6f19398f90
🐛 fix compilation error of modules on macOS platform
2022-08-10 19:48:01 +08:00
ValKmjolnir
83c8d327bb
🐛 fix builtin_err in module to nas_err
2022-08-04 21:20:27 +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
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
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
00c7c4044a
⚡ optimize code & replace all printf with std::cout.
2022-07-09 23:36:14 +08:00
ValKmjolnir
ec308f8053
⚡ optimize codes. details:
...
1. delete gc::builtin_alloc
2. add convenient way of getting new string object: gc::newstr, and shrink the size of codes
3. update doc
4. add gc::temp to be used in native/module functions to avoid being recognized as garbage incorrectly when triggered mark-sweep
2022-07-07 17:51:30 +08:00
ValKmjolnir
3d1e3f49dc
📝 change identifiers' name and test/coroutine.nas, test/filesystem.nas
2022-07-06 16:04:21 +08:00
ValKmjolnir
f3ba80b41c
📝 unify code style of ./stl ./test
2022-07-02 13:53:50 +08:00
ValKmjolnir
503b834f05
📝 update test/httptest.nas
2022-06-11 12:49:26 +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
a166134cc5
🚀 add module/libsock.nas, preparing to add socket lib into this language.
2022-06-06 16:34:21 +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
2542f4e43e
📝 update test/module_test.nas
2022-05-17 21:48:08 +08:00
ValKmjolnir
ad60aecdee
change module/libmd5 to native function builtin_md5() in nasal_builtin.h
2022-04-06 22:30:49 +08:00