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
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
2405bada81
change scope from unordered_map to vector
2021-04-19 19:12:41 +08:00
Valk Richard Li
1f6e1a647e
add stl & more efficient scope
2021-04-02 22:19:29 +08:00
Valk Richard Li
4202c2081e
change id name & add test file
2021-03-30 00:12:48 +08:00
Valk Richard Li
6473b527a1
bug fixed
2021-03-28 17:39:24 +08:00
Valk Richard Li
a990fb606a
gc changed to mark-sweep
2021-03-27 01:08:05 +08:00
Valk Richard Li
f3370ef0f7
change map to unordered_map
2021-03-01 15:54:58 +08:00
Valk Richard Li
cc81ee94be
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
2eb0a6b332
Library: Added core library function chr according to FlightGear Nasal
2021-02-13 21:40:10 +08:00
Sidi Liang
9d5eafda09
Library: Added core library function streq and cmp according to FlightGear Nasal
2021-02-13 21:09:13 +08:00
Sidi Liang
db1b28898c
Library: Added core library function left and right according to FlightGear Nasal
2021-02-13 20:19:49 +08:00
Valk Richard Li
88b34c826c
update
2021-02-12 22:27:41 +08:00
Valk Richard Li
ee5f9519fe
update
2021-02-10 00:12:22 +08:00
Valk Richard Li
990f8dfc48
update
2021-01-06 22:12:19 +08:00
Valk Richard Li
f97ef49fb7
update
2021-01-06 21:07:34 +08:00
Valk Richard Li
ed0d3e862d
update
2020-12-24 23:53:31 +08:00
Valk Richard Li
cfc9a97144
update
2020-12-19 23:47:04 +08:00
Valk Richard Li
dff899061a
preparation for v5.0
2020-12-19 01:26:15 +08:00
Valk Richard Li
c95185e62b
update
2020-12-14 23:43:00 +08:00
Valk Richard Li
3e884bb20a
update
2020-12-01 19:35:32 +08:00
Valk Richard Li
6d9141ff2d
update
2020-11-30 23:54:32 +08:00
Valk Richard Li
931e6bae0b
update
2020-11-20 19:15:12 +08:00
Valk Richard Li
618278f11d
update
2020-11-14 00:33:11 +08:00
Valk Richard Li
58a5ed7e06
print can show more details.
2020-11-10 22:30:54 +08:00
Valk Richard Li
a0728ad193
update & bug fixed
2020-11-03 19:27:21 +08:00
Valk Richard Li
0f1ed3de1a
update
2020-10-27 19:54:47 +08:00
Valk Richard Li
ea99e073f7
update
2020-10-25 22:15:49 +08:00
Valk Richard Li
84f09cb932
change project structure
...
version 3.0
2020-10-23 14:53:04 +08:00