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
Valk Richard Li
1d3c4b0843
fixed an error in README
2021-06-12 01:23:06 +08:00
Valk Richard Li
1cd627d9c7
Add command line parameters & chr supports extended ASCII
2021-06-11 15:16:06 +08:00
Valk Richard Li
166fe32839
front end optimization&stack overflow prompt
...
change parameter type to avoid unnecessary copies of string.
change stack depth from 65536<<4 to 16+(65536<<2).
now you could know stack overflow when it happens
2021-06-07 23:53:43 +08:00
Valk Richard Li
a3dbaebfd8
bug fixed
...
fixed SIGSEGV when failed to load file in nasal_lexer::openfile
2021-06-06 19:17:02 +08:00
Valk Richard Li
a3d629a08e
bug fixed & more efficient callfv
...
I changed callfv's way of calling a function with arguments in vm_vec.
now callfv fetches arguments from val_stack directly,so it runs test/fib.nas from 2.4s to 1.9s.
delete operand callf,add operands callfv & callfh.
also,i check val_stack's top to make sure there is not a stack overflow.
2021-06-03 21:49:31 +08:00
Valk Richard Li
b2e85de7a7
bug fixed
...
a gc bug which causes fatal error.
add member value collect to make sure that nasal_val is not collected repeatedly.
use builtin_alloc in builtin function to avoid incorrect collection of value in use(gc_alloc).
change free_list to free_list[vm_type_size] to avoid too many calls of new/delete(but seems useless?)
but the most important thing is fixing this bug.
2021-05-31 19:10:59 +08:00
Valk Richard Li
20cfbfecd9
add license & other changes
...
parser recognizes syntax errors more accurately.
change some for loop to standard c++11 for(auto iter:obj)
add MIT license
change info in README.md
2021-05-04 17:39:24 +08:00
Valk Richard Li
6651fccbe8
parser reports syntax error accurately
...
still need improvement
2021-05-04 01:13:53 +08:00
Valk Richard Li
7f191f353e
add static symbol check & test file update
2021-03-30 15:55:38 +08:00
Valk Richard Li
a990fb606a
gc changed to mark-sweep
2021-03-27 01:08:05 +08:00
Valk Richard Li
0d662ab498
update
2021-03-11 23:18:04 +08:00
Valk Richard Li
ca27c5545a
add constant table in vm
2021-03-08 19:45:33 +08:00
Valk Richard Li
f3370ef0f7
change map to unordered_map
2021-03-01 15:54:58 +08:00
Valk Richard Li
05771321be
clear memory footprint when codegen complete
2021-02-23 22:53:28 +08:00
Valk Richard Li
468ad6157f
update
2021-02-13 11:09:31 +08:00
Valk Richard Li
ee5f9519fe
update
2021-02-10 00:12:22 +08:00
Valk Richard Li
14c43c6a42
update & bug fixed
2021-01-05 23:17:32 +08:00
Valk Richard Li
dff899061a
preparation for v5.0
2020-12-19 01:26:15 +08:00
Valk Richard Li
eed3667f59
update
2020-12-15 21:13:22 +08:00
Valk Richard Li
bced42ff38
update
2020-12-12 19:58:43 +08:00
Valk Richard Li
0fec1e462e
update
2020-12-12 01:58:40 +08:00
Valk Richard Li
3339917510
update
2020-12-10 00:01:25 +08:00
Valk Richard Li
6b94345a4d
update
2020-11-29 00:54:54 +08:00
Valk Richard Li
ff532a40db
update
2020-11-28 01:14:23 +08:00
Valk Richard Li
dfbd853f66
update
2020-11-20 00:18:17 +08:00
Valk Richard Li
53fb5b181f
update
2020-10-23 17:10:02 +08:00
Valk Richard Li
84f09cb932
change project structure
...
version 3.0
2020-10-23 14:53:04 +08:00
Valk Richard Li
776c09c045
Delete main.cpp
2019-11-13 23:39:02 +08:00
Valk Richard Li
13859a85e6
finish value search
2019-11-13 23:36:54 +08:00