ValKmjolnir
80cc8e9db7
closure bugs fixed
2021-08-17 01:18:35 +08:00
ValKmjolnir
638ec1c3a3
use same indentation
2021-08-09 21:30:18 +08:00
Li Haokun
90ac468aa9
update
2021-08-09 19:13:39 +08:00
ValKmjolnir
65dfef0a33
update
2021-08-09 01:02:27 +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
Li Haokun
7a93f5b89b
update
2021-07-19 17:04:45 +08:00
Li Haokun
9fe7a86a3b
add trace back info
2021-07-16 17:18:13 +08:00
ValKmjolnir
590c595522
delete slice_stack
2021-07-07 14:46:46 +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
Valk Richard Li
00c6e3b4fd
nothing changed
2021-06-20 01:27:01 +08:00
Valk Richard Li
cdf7b92a8e
add statistical information
2021-06-19 00:32:10 +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
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
c5f4736984
change scope from unordered_map to vector
2021-04-19 19:12:41 +08:00
Valk Richard Li
c88620920b
add stl & more efficient scope
2021-04-02 22:19:29 +08:00
Valk Richard Li
c7316e9780
change id name & add test file
2021-03-30 00:12:48 +08:00
Valk Richard Li
be1bcdfe2c
bug fixed
2021-03-28 17:39:24 +08:00
Valk Richard Li
144e6f45da
gc changed to mark-sweep
2021-03-27 01:08:05 +08:00
Valk Richard Li
a421470715
change map to unordered_map
2021-03-01 15:54:58 +08:00
Valk Richard Li
78ba0641a6
change the way of calling built-in functions
...
change std::map to struct array,use index to call built-in functions.this may be more efficient.
2021-02-14 17:36:42 +08:00
Sidi Liang
8faa4ef2db
Library: Added core library function chr according to FlightGear Nasal
2021-02-13 21:40:10 +08:00
Sidi Liang
441c02d0fb
Library: Added core library function streq and cmp according to FlightGear Nasal
2021-02-13 21:09:13 +08:00
Sidi Liang
953ad80482
Library: Added core library function left and right according to FlightGear Nasal
2021-02-13 20:19:49 +08:00
Valk Richard Li
b5514fd269
update
2021-02-12 22:27:41 +08:00
Valk Richard Li
3be50116fa
update
2021-02-10 00:12:22 +08:00
Valk Richard Li
8069a1b659
update
2021-01-06 22:12:19 +08:00
Valk Richard Li
f0cb8b6ef3
update
2021-01-06 21:07:34 +08:00
Valk Richard Li
33d37771ce
update
2020-12-24 23:53:31 +08:00
Valk Richard Li
4617eb8f17
update
2020-12-19 23:47:04 +08:00
Valk Richard Li
9f30440286
preparation for v5.0
2020-12-19 01:26:15 +08:00
Valk Richard Li
9eb72f8754
update
2020-12-14 23:43:00 +08:00
Valk Richard Li
33e544387e
update
2020-12-01 19:35:32 +08:00
Valk Richard Li
f336e5c3ae
update
2020-11-30 23:54:32 +08:00
Valk Richard Li
f811368491
update
2020-11-20 19:15:12 +08:00
Valk Richard Li
a0a22f701d
update
2020-11-14 00:33:11 +08:00
Valk Richard Li
5c253bac88
print can show more details.
2020-11-10 22:30:54 +08:00
Valk Richard Li
155ce6fc0d
update & bug fixed
2020-11-03 19:27:21 +08:00
Valk Richard Li
2923d24e6c
update
2020-10-27 19:54:47 +08:00
Valk Richard Li
9a9277c505
update
2020-10-25 22:15:49 +08:00
Valk Richard Li
e8341c7b06
change project structure
...
version 3.0
2020-10-23 14:53:04 +08:00