Commit Graph

30 Commits

Author SHA1 Message Date
ValKmjolnir
11ed038c09 split type definition from gc.h 2023-10-15 21:46:53 +08:00
ValKmjolnir
b1e8ba3c6e 🐛 fix mingw make error 2023-10-14 21:30:33 +08:00
ValKmjolnir
c83669205e Merge branch 'master' into develop 2023-10-07 17:35:22 +08:00
Sidi Liang
a13b23eea1 Update makefile 2023-10-07 14:41:46 +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
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
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
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
6f19398f90 🐛 fix compilation error of modules on macOS platform 2022-08-10 19:48:01 +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
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
ad60aecdee change module/libmd5 to native function builtin_md5() in nasal_builtin.h 2022-04-06 22:30:49 +08:00
ValKmjolnir
a9c66685e4 change module/makefile and test/md5compare.nas 2022-04-01 22:52:04 +08:00
ValKmjolnir
46f2392993 update test/md5.nas(still has bug) & add libmd5 in module(written in C++) 2022-03-28 17:14:11 +08:00
ValKmjolnir
2d4255a162 finish tetris.nas 2022-02-21 17:10:13 +08:00
ValKmjolnir
84aa18d5d2 add new third-lib libkey that includes function: kbhit,getch,nonblock 2022-02-19 16:55:54 +08:00
ValKmjolnir
6812a389dc update new test data 2022-01-24 15:19:27 +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