ValKmjolnir
|
82e9e97a26
|
add destructor for obj_file & change arguments in test/tetris.nas
|
2022-03-12 23:37:16 +08:00 |
ValKmjolnir
|
6a1338bb23
|
update test/tetris.nas
|
2022-03-11 23:42:09 +08:00 |
ValKmjolnir
|
3b8a092f36
|
fix bug in test/json.nas
|
2022-03-11 15:26:38 +08:00 |
ValKmjolnir
|
3d86a32b12
|
update fully functional test/json.nas
|
2022-03-11 15:11:24 +08:00 |
ValKmjolnir
|
f26719e1d3
|
visual update
|
2022-03-10 16:05:49 +08:00 |
ValKmjolnir
|
e54ef9620f
|
change nasal_ref value option functions' output types from pointers to references
|
2022-03-09 22:54:54 +08:00 |
ValKmjolnir
|
d8156e839b
|
add unix.fork&unix.pipe(do not work on windows platform)
|
2022-03-09 19:03:12 +08:00 |
ValKmjolnir
|
61666d275d
|
delete lstk&fstk, store local address and function on stack and in vm registers
|
2022-03-08 17:30:40 +08:00 |
ValKmjolnir
|
99f595e16f
|
update num->string algorithm, now the to_string will output strings with no tailing zeros
|
2022-03-08 13:40:27 +08:00 |
ValKmjolnir
|
debe32b187
|
safer stl/module.nas & add stl/file.nas encapsulated from lib.nas/io
|
2022-03-06 15:17:39 +08:00 |
ValKmjolnir
|
ca9b8581b4
|
add module.nas to safely use dylib
|
2022-03-05 21:52:29 +08:00 |
ValKmjolnir
|
a0b341deb5
|
try fix bug 'use of undeclared identifier 'environ'' on MacOS
|
2022-03-05 19:24:33 +08:00 |
ValKmjolnir
|
d3df356299
|
add unix.environ() & use LPCWSTR in dylib.dlopen on Windows platform
|
2022-03-05 19:15:52 +08:00 |
ValKmjolnir
|
cd808a5e6d
|
update detailed-info
|
2022-03-03 19:00:23 +08:00 |
ValKmjolnir
|
40f61a9dd4
|
fix bug of upval_state
|
2022-03-02 19:28:17 +08:00 |
ValKmjolnir
|
f312250d27
|
update
|
2022-03-01 14:36:05 +08:00 |
ValKmjolnir
|
3fac8aa665
|
fix bug in test/tetris.nas
|
2022-02-25 23:34:02 +08:00 |
ValKmjolnir
|
243aafd417
|
fix bug of `-o` not working.
|
2022-02-23 21:56:45 +08:00 |
ValKmjolnir
|
6bc03601d9
|
update test/tetris.nas
|
2022-02-23 01:09:31 +08:00 |
ValKmjolnir
|
f05acaecc7
|
fix bug in libkey and test/tetris.nas
|
2022-02-22 18:01:49 +08:00 |
ValKmjolnir
|
9456a903d7
|
finish tetris.nas
|
2022-02-21 17:10:13 +08:00 |
ValKmjolnir
|
984deed883
|
finish basic functions of tetris
|
2022-02-21 00:47:32 +08:00 |
ValKmjolnir
|
557cb2ebcf
|
finish map drawing in test/tetris.nas
|
2022-02-20 17:58:13 +08:00 |
ValKmjolnir
|
9c055a9a23
|
add new third-lib libkey that includes function: kbhit,getch,nonblock
|
2022-02-19 16:55:54 +08:00 |
ValKmjolnir
|
13a09343e6
|
update README.md
|
2022-02-18 15:59:27 +08:00 |
ValKmjolnir
|
8c67e04cc4
|
update test file
|
2022-02-18 15:36:34 +08:00 |
ValKmjolnir
|
e77bb73a82
|
add special character `\e`.
|
2022-02-18 01:58:49 +08:00 |
ValKmjolnir
|
05fc5db337
|
change parameter name in native function split.
|
2022-02-17 23:34:58 +08:00 |
ValKmjolnir
|
a4738e8c7d
|
delete operand `op_nop`
|
2022-02-16 23:27:22 +08:00 |
ValKmjolnir
|
5f6051e333
|
change tutorial's place in README.md
|
2022-02-15 23:42:17 +08:00 |
ValKmjolnir
|
51afe3dacd
|
fixed bug when -O0 the program crashes with code 01.
add `nasal_err():error(0){}` in `nasal_err.h:47` as the constructor.
|
2022-02-14 17:40:19 +08:00 |
ValKmjolnir
|
0291908675
|
update README.md
|
2022-02-14 17:29:26 +08:00 |
ValKmjolnir
|
5fba784d05
|
add new gc type vm_upval
|
2022-02-13 22:40:54 +08:00 |
ValKmjolnir
|
9139e34c0b
|
update README & bug fixed
|
2022-02-13 16:10:02 +08:00 |
ValKmjolnir
|
e7f503fae1
|
now local values are stored on stack. upvalue is generated when creating a new function in local scope.
may include some bugs inside. but all test files has passed the test so i decide to push it.
|
2022-02-12 23:12:30 +08:00 |
ValKmjolnir
|
980350d70a
|
prepare for function-call optimization
|
2022-02-12 18:03:50 +08:00 |
ValKmjolnir
|
0ccd3c9bd0
|
update test/calc.nas & print function of nasal_vec/nasal_hash
|
2022-02-11 17:04:27 +08:00 |
ValKmjolnir
|
3e7ba4d774
|
little update
|
2022-02-10 22:20:18 +08:00 |
ValKmjolnir
|
a176022840
|
add notes in lib.nas & add runtime.gc() & add total instruction count in '-o'.
|
2022-02-09 15:53:09 +08:00 |
ValKmjolnir
|
24a1e39ad3
|
add garbage collector and memory allocator info. use '-d' to activate this function.
|
2022-02-08 23:40:52 +08:00 |
ValKmjolnir
|
a09c6ae2f9
|
update/optimize test files
|
2022-02-07 23:41:50 +08:00 |
ValKmjolnir
|
2a85e92d4a
|
optimize test file & little update.
|
2022-02-06 19:55:45 +08:00 |
ValKmjolnir
|
92646840e4
|
reuse codes in nasal_vec::print and nasal_hash::print
now they all use nasal_ref::print
|
2022-02-05 23:55:56 +08:00 |
ValKmjolnir
|
c55ce758ed
|
change increment arguments to a more efficiency level & change gc.nil, gc.one, gc.zero to constant nil, one, zero
|
2022-02-04 01:51:30 +08:00 |
ValKmjolnir
|
aa301aefc3
|
change increment argument in nasal_gc, because new vm doesn't need to alloc new objects frequently.
vm_str 2048 -> 512
vm_func 1024 -> 512
vm_vec 8192 -> 512
|
2022-02-03 22:43:51 +08:00 |
ValKmjolnir
|
d6d90ab7c8
|
change 'global' & 'local' in codegen to std::unordered_map & std::vector<std::unordered_map>>
|
2022-02-02 23:52:00 +08:00 |
ValKmjolnir
|
bf780514e6
|
add constant string calculation in optimizer
|
2022-02-01 21:20:36 +08:00 |
ValKmjolnir
|
eaa54035ff
|
change name of enum:ast_hashmember->ast_pair, ast_new_iter->ast_iter
change ast_hashmember to ast_pair is because this type in fact is the same as std::pair<std::string,nasal_ref> in C++
|
2022-01-31 17:22:44 +08:00 |
ValKmjolnir
|
baa4f5a258
|
change error info of native function __builtin_import
|
2022-01-31 14:48:51 +08:00 |
ValKmjolnir
|
df24db5b58
|
optimize nasal_import::check_import
|
2022-01-30 23:26:30 +08:00 |