Li Haokun
40b690b67b
update
2021-08-05 19:02:41 +08:00
Li Haokun
fa618eb97f
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
91771297d3
add test file
2021-08-01 22:34:02 +08:00
ValKmjolnir
df634cb1b2
update readme:difference between this and andy's interpreter
2021-08-01 01:54:14 +08:00
Li Haokun
9ebabfe737
fixed bug in nasal_parse
2021-07-21 17:38:11 +08:00
Li Haokun
9fe7a86a3b
add trace back info
2021-07-16 17:18:13 +08:00
ValKmjolnir
9da029b8fe
prepare for debugger
2021-07-16 02:17:53 +08:00
ValKmjolnir
706659ba3d
change instruction dispatch to computed-goto
...
bug fixed
prepare for version 7.0
2021-06-26 14:53:10 +08:00
ValKmjolnir
3c9a10d710
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
4f3ddf803a
add tips
2021-06-13 01:01:32 +08:00
Valk Richard Li
de305d26ad
fixed an error in README
2021-06-12 01:23:06 +08:00
Valk Richard Li
1ae47807eb
Add command line parameters & chr supports extended ASCII
2021-06-11 15:16:06 +08:00
Valk Richard Li
3deea632f8
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
9f2c31149a
bug fixed
...
fixed SIGSEGV when failed to load file in nasal_lexer::openfile
2021-06-06 19:17:02 +08:00
Valk Richard Li
8e29a3ec5b
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
a68bf85f04
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
a463af53b7
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
6adb991c04
parser reports syntax error accurately
...
still need improvement
2021-05-04 01:13:53 +08:00
Valk Richard Li
b06e1bb5dd
add static symbol check & test file update
2021-03-30 15:55:38 +08:00
Valk Richard Li
144e6f45da
gc changed to mark-sweep
2021-03-27 01:08:05 +08:00
Valk Richard Li
569d5c6c6a
update
2021-03-11 23:18:04 +08:00
Valk Richard Li
7087c67d79
add constant table in vm
2021-03-08 19:45:33 +08:00
Valk Richard Li
a421470715
change map to unordered_map
2021-03-01 15:54:58 +08:00
Valk Richard Li
b1a5a5f6c0
clear memory footprint when codegen complete
2021-02-23 22:53:28 +08:00
Valk Richard Li
944f713ee9
update
2021-02-13 11:09:31 +08:00
Valk Richard Li
3be50116fa
update
2021-02-10 00:12:22 +08:00
Valk Richard Li
9474ac9ef0
update & bug fixed
2021-01-05 23:17:32 +08:00
Valk Richard Li
9f30440286
preparation for v5.0
2020-12-19 01:26:15 +08:00
Valk Richard Li
19ce1c5f34
update
2020-12-15 21:13:22 +08:00
Valk Richard Li
d8ce203ab3
update
2020-12-12 19:58:43 +08:00
Valk Richard Li
71f501a323
update
2020-12-12 01:58:40 +08:00
Valk Richard Li
789300e5f6
update
2020-12-10 00:01:25 +08:00
Valk Richard Li
fce34c12b3
update
2020-11-29 00:54:54 +08:00
Valk Richard Li
bbf5217374
update
2020-11-28 01:14:23 +08:00
Valk Richard Li
e9fd953273
update
2020-11-20 00:18:17 +08:00
Valk Richard Li
9958431b58
update
2020-10-23 17:10:02 +08:00
Valk Richard Li
e8341c7b06
change project structure
...
version 3.0
2020-10-23 14:53:04 +08:00
Valk Richard Li
53f275ce41
Delete main.cpp
2019-11-13 23:39:02 +08:00
Valk Richard Li
d3d162a83f
finish value search
2019-11-13 23:36:54 +08:00
Valk Richard Li
802c00c8bf
Delete main.cpp
2019-11-05 13:23:44 +08:00
Valk Richard Li
ee70ca81af
Update
2019-11-05 13:22:45 +08:00