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
ValKmjolnir
6b20e0f167
🚀 add os.time() to get the local time string
2022-06-12 19:08:31 +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
c3a8e118f5
⚡ add u32 and() xor() or() nand() not()
2022-06-03 21:34:02 +08:00
ValKmjolnir
ebfacd9197
⚡ optimize codes
2022-05-22 18:19:13 +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
120ceb429a
🚀 add coroutine library(beta) and lib function settimer&maketimestamp
2022-05-19 20:09:23 +08:00
ValKmjolnir
712a047a43
🐛 now builtin_md5 uses unsigned char instead of char
2022-05-15 20:35:20 +08:00
ValKmjolnir
de262980cc
🎨 improve rawstr() and builtin_getcwd(..), change format output in nasal_vm::valinfo()
2022-05-07 02:22:49 +08:00
ValKmjolnir
23a5c1b1ad
🐛 bug fix
2022-05-06 20:58:02 +08:00
ValKmjolnir
f049e1f9fb
add test file diff.nas
2022-04-30 20:00:15 +08:00
ValKmjolnir
ca073499ae
optimize codes
2022-04-13 19:08:06 +08:00
ValKmjolnir
022460755f
optimize codes
2022-04-12 18:26:54 +08:00
ValKmjolnir
4503239731
change STACK_MAX_DEPTH to nasal_gc::stack_depth
2022-04-09 23:14:28 +08:00
ValKmjolnir
87cff700e8
change module/libmd5 to native function builtin_md5() in nasal_builtin.h
2022-04-06 22:30:49 +08:00
ValKmjolnir
bf5737ecfd
add native function abort(), assert()
2022-04-06 21:25:20 +08:00
ValKmjolnir
e846e51175
add native function: srand, values, find.
2022-04-05 22:15:05 +08:00
ValKmjolnir
aed5e27409
bug fix & optimize test code & add lib function: subvec, floor, abs, isfunc, isghost, isint, isnum, isscalar, isstr, isvec, vecindex(unfinished)
2022-04-04 18:38:25 +08:00
ValKmjolnir
83a8632e8e
update test/md5compare.nas & optimize test/md5.nas
2022-03-31 19:31:00 +08:00