ValKmjolnir
|
a166134cc5
|
🚀 add module/libsock.nas, preparing to add socket lib into this language.
|
2022-06-06 16:34:21 +08:00 |
|
ValKmjolnir
|
ec2866021f
|
✨ add native function runtime.argv() to get command line arguments
|
2022-06-04 20:12:00 +08:00 |
|
ValKmjolnir
|
c1808a7875
|
🚀 use ftime to calculate run time
|
2022-06-02 22:51:43 +08:00 |
|
ValKmjolnir
|
8b63c44266
|
⚡ optimize codes
|
2022-05-22 18:19:13 +08:00 |
|
ValKmjolnir
|
3e418dbcff
|
🐛 bug fix
|
2022-05-06 20:58:02 +08:00 |
|
ValKmjolnir
|
85490a3136
|
fix bug in codegen: foreach/forindex(id;vec/hash) may cause segmentation fault because of incorrect generated operand
|
2022-04-16 19:45:55 +08:00 |
|
ValKmjolnir
|
0b4db9467e
|
add native function abort(), assert()
|
2022-04-06 21:25:20 +08:00 |
|
ValKmjolnir
|
51e9b0b5ab
|
add math.pow
|
2022-03-27 16:14:55 +08:00 |
|
ValKmjolnir
|
d5d426d6eb
|
update main.cpp and bug fix
|
2022-03-20 18:28:45 +08:00 |
|
ValKmjolnir
|
7958fd8919
|
update README.md
|
2022-02-14 17:29:26 +08:00 |
|
ValKmjolnir
|
f16259b2da
|
update README & bug fixed
|
2022-02-13 16:10:02 +08:00 |
|
ValKmjolnir
|
0d5b0fa57d
|
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
|
ee01e0992c
|
add garbage collector and memory allocator info. use '-d' to activate this function.
|
2022-02-08 23:40:52 +08:00 |
|
ValKmjolnir
|
666feae851
|
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
|
88ef0f8dd6
|
add constant string calculation in optimizer
|
2022-02-01 21:20:36 +08:00 |
|
ValKmjolnir
|
6601912de4
|
bug fixed in nasal_vec::print and nasal_hash::print
if vec's or hash's size is 0, a bug will occur because ++depth. now the ++depth has been put behind the size()
|
2022-01-29 19:51:43 +08:00 |
|
ValKmjolnir
|
93b2edc08c
|
add new option -op & --optimize to use optimizer | delete bytecode op_pone & op_pzero
|
2022-01-22 13:37:49 +08:00 |
|
ValKmjolnir
|
6c3e5e6a02
|
add optimizer
optimizer now does one work: calculate const number before generating bytecode
|
2022-01-22 00:41:08 +08:00 |
|
ValKmjolnir
|
1ae354c0cf
|
lexer,parser,import,codegen use the same error module.
|
2021-12-23 21:15:50 +08:00 |
|
ValKmjolnir
|
bde94f8ec6
|
update error info (except parser)
prepare for nasal_err module
|
2021-12-23 14:09:54 +08:00 |
|
ValKmjolnir
|
82181b7af4
|
add debugger framework
with function:backtrace,run,help,show global/local/upvalue,exit
|
2021-12-20 21:33:22 +08:00 |
|
ValKmjolnir
|
bc9039dd37
|
change code structure
|
2021-11-02 22:44:42 +08:00 |
|
ValKmjolnir
|
aeefaebcec
|
add unix.opendir unix.readdir unix.closedir
|
2021-10-31 23:11:04 +08:00 |
|
ValKmjolnir
|
32465b92c8
|
fix sigsegv error
|
2021-10-18 21:50:25 +08:00 |
|
ValKmjolnir
|
515a2685fe
|
add detail crash info
|
2021-10-17 22:57:45 +08:00 |
|
ValKmjolnir
|
d7cffc76bd
|
update
|
2021-10-16 23:36:43 +08:00 |
|
ValKmjolnir
|
a7b1851967
|
optimize code structure
|
2021-10-16 21:08:57 +08:00 |
|
ValKmjolnir
|
a71b08a927
|
update
|
2021-10-15 22:21:57 +08:00 |
|
ValKmjolnir
|
645a652830
|
change function name and cli format
|
2021-10-14 23:22:28 +08:00 |
|
ValKmjolnir
|
414c9c7487
|
change output format of information of bytecodes
|
2021-10-13 22:59:15 +08:00 |
|
ValKmjolnir
|
42a330cda7
|
vm_nil,vm_num changed to no-gcobject
|
2021-10-08 23:18:26 +08:00 |
|
Li Haokun
|
52fbd729cc
|
bad access bug fixed
|
2021-09-13 19:55:03 +08:00 |
|
Li Haokun
|
87d5740125
|
add fg constants & change int(), num()
|
2021-09-02 19:10:49 +08:00 |
|
Li Haokun
|
6e8999b695
|
nothing changed
|
2021-08-24 19:34:52 +08:00 |
|
Li Haokun
|
1982ab6b8e
|
security holes fixed
|
2021-08-19 17:54:36 +08:00 |
|
Li Haokun
|
331e0e1728
|
fully functional closure
|
2021-08-11 14:54:17 +08:00 |
|
ValKmjolnir
|
49e9412915
|
use same indentation
|
2021-08-09 21:30:18 +08:00 |
|
Li Haokun
|
e9bd033883
|
update
|
2021-08-09 19:13:39 +08:00 |
|
ValKmjolnir
|
143a59c735
|
update
|
2021-08-09 01:02:27 +08:00 |
|
Li Haokun
|
d5e675d0d5
|
update
|
2021-08-06 18:57:06 +08:00 |
|
Li Haokun
|
b069f3875e
|
update
|
2021-08-05 19:02:41 +08:00 |
|
Li Haokun
|
a6fe835ed4
|
variables can be used before definition
change program to command line
change trace back info
change print function of nasal_vec and nasal_hash
|
2021-08-03 18:55:11 +08:00 |
|
ValKmjolnir
|
a1adb5b948
|
add test file
|
2021-08-01 22:34:02 +08:00 |
|
ValKmjolnir
|
4c2a4ca091
|
update readme:difference between this and andy's interpreter
|
2021-08-01 01:54:14 +08:00 |
|
Li Haokun
|
284ff5abb6
|
fixed bug in nasal_parse
|
2021-07-21 17:38:11 +08:00 |
|
Li Haokun
|
d9d7a1edfc
|
add trace back info
|
2021-07-16 17:18:13 +08:00 |
|
ValKmjolnir
|
5de65e584d
|
prepare for debugger
|
2021-07-16 02:17:53 +08:00 |
|
ValKmjolnir
|
ee9afe1cf1
|
change instruction dispatch to computed-goto
bug fixed
prepare for version 7.0
|
2021-06-26 14:53:10 +08:00 |
|
ValKmjolnir
|
855e0e441f
|
avoid unnecessary deep copy by using rvalue ref
and test file update.
bug fixed in test/lexer.nas
|
2021-06-24 22:10:08 +08:00 |
|
Valk Richard Li
|
411c2e5c4c
|
add tips
|
2021-06-13 01:01:32 +08:00 |
|