ValKmjolnir
7e4faed4a6
🚀 add new native function char
2022-11-12 17:03:56 +08:00
ValKmjolnir
97b3cefe75
⚡ add new ways of calling dylib function
2022-11-11 00:11:01 +08:00
ValKmjolnir
4fd69c6ce4
🚀 optimize code
2022-11-06 18:20:10 +08:00
ValKmjolnir
aaccfbda11
🐛 fix ast print bug & delete some macros
2022-10-30 18:40:03 +08:00
ValKmjolnir
0c216e5f16
🐛 safer builtin_logtime
2022-10-30 01:30:05 +08:00
ValKmjolnir
d121dcd630
🎨 improve format of code
2022-10-28 23:28:15 +08:00
ValKmjolnir
c705b75513
🚀 change module function parameter format to avoid warnings
2022-10-24 01:12:25 +08:00
ValKmjolnir
3fd1b25f79
🔥 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
405175061a
🚀 crashed coroutine will not make main thread crash.
2022-10-06 23:11:27 +08:00
ValKmjolnir
6ef22d3228
🚀 use std::ostream to unify nas_ref output
2022-09-23 21:45:08 +08:00
ValKmjolnir
c4cac512a6
🐛 fix compilation error of FindNextFile in other VS version.
2022-09-23 20:39:34 +08:00
ValKmjolnir
26f4e1359f
🐛 fix bug that int() cannot convert numeric string
2022-09-12 22:45:35 +08:00
ValKmjolnir
aa5b1d3d66
🚀 import information output of dbg, vm and codegen
2022-09-11 17:22:00 +08:00
ValKmjolnir
a13e419518
📝 fix MSVC warning in nasal_builtin.h & improve error output.
2022-09-04 23:08:06 +08:00
ValKmjolnir
5715c1df5f
🎨 improve error log output format.
2022-09-02 02:04:03 +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
52a38709bb
📝 diable warning C4566 in MSVC
2022-08-31 01:06:57 +08:00
ValKmjolnir
8293f85c5b
🚀 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
a91826607c
⚡ optimize header file, now modules could generate smaller dynamic libs.
2022-08-24 22:08:47 +08:00
ValKmjolnir
bb0a2e3669
⚡ reduce unnecessary errors & make io.read safer
2022-08-11 01:48:02 +08:00
ValKmjolnir
d65868f1e9
⚡ reduce unnecessary code & optimize code
2022-08-10 01:44:47 +08:00
ValKmjolnir
170f34a5e2
⚡ reduce unnecessary native-function errors.
2022-08-09 01:34:47 +08:00
ValKmjolnir
0493e18d0e
🚀 optimize code
2022-08-08 22:10:51 +08:00
ValKmjolnir
7ddb8593ad
🚀 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
2937c10c77
📝 little change
2022-08-05 23:22:32 +08:00
ValKmjolnir
e51878266a
⚡ reduce code size
2022-08-03 23:03:49 +08:00
ValKmjolnir
37841fc91e
⚡ optimize code & shrink code size
2022-08-02 22:03:28 +08:00
ValKmjolnir
44bfd74ca9
📝 optimize codes
2022-08-01 22:51:19 +08:00
ValKmjolnir
04a45064c8
📝 delete unnecessary code & change test file.
2022-07-31 19:26:13 +08:00
ValKmjolnir
068743aa4c
📝 change int in code to i32, optimize code.
2022-07-31 02:19:29 +08:00
ValKmjolnir
7ad1d69c64
⚡ optimize code & chdir will not trigger crash if failed to call
2022-07-30 19:17:33 +08:00
ValKmjolnir
52fcc9118c
🚀 input now can choose std::getline to read one line.
2022-07-30 01:31:56 +08:00
ValKmjolnir
006ed644e6
🚀 move fg constants to stl/fg_env.nas, add io.exists. now dlopen and import can search file in PATH.
2022-07-28 21:44:55 +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
46516485b5
📝 change name of used types
2022-07-23 12:35:21 +08:00
ValKmjolnir
f68a512845
📝 shrink size of README.md
2022-07-20 22:22:50 +08:00
ValKmjolnir
cc4ff38f28
⚡ optimize codes
2022-07-19 23:55:12 +08:00
ValKmjolnir
d8d457ce74
🐛 fix information print format on MSVC.
2022-07-16 18:47:27 +08:00
ValKmjolnir
51f780e637
🐛 fix error use of FindFirstFile.
2022-07-16 17:47:43 +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
d1a7d32e7b
📝 fix some wanings.
2022-07-11 23:53:23 +08:00
ValKmjolnir
2ed20f6362
📝 change some identifiers' name.
2022-07-09 16:24:58 +08:00
ValKmjolnir
9890b46f02
⚡ optimize code.
2022-07-08 23:00:36 +08:00
ValKmjolnir
5d4cff0aa8
🚀 shrink code size & now import module can search lib file from local dir and dirs in PATH
2022-07-08 00:42:56 +08:00
ValKmjolnir
c1d13ecd85
🐛 fix a bug that split doesn't work if delimeter's length is greater than 1.
2022-07-07 19:32:06 +08:00
ValKmjolnir
824a31ef55
⚡ optimize builtin_split.
2022-07-07 18:07:24 +08:00
ValKmjolnir
fb25a4973c
⚡ 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
75c46fa727
🚀 change usleep in builtin_sleep to cross platform c++11::std::this_thread::sleep_for.
...
Although this is not so accurate in Windows platform, the accuracy is still improved and this line of code does not need MinGW to build on Windows platform.
2022-07-07 14:35:10 +08:00
ValKmjolnir
bd5044add2
🚀 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
b638708722
📝 change identifiers' name and test/coroutine.nas, test/filesystem.nas
2022-07-06 16:04:21 +08:00