Valk Richard Li
d51465cc82
change function of vapp & README update
2021-04-03 23:47:14 +08:00
Valk Richard Li
1f6e1a647e
add stl & more efficient scope
2021-04-02 22:19:29 +08:00
Valk Richard Li
e10517b741
bug fixed & test file changes
...
compare operators now run more efficiently.
2021-03-31 20:59:13 +08:00
Valk Richard Li
7f191f353e
add static symbol check & test file update
2021-03-30 15:55:38 +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
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
5fba496453
update test files and prepare the release of v5.0
v5.0
2021-03-07 16:33:43 +08:00
Valk Richard Li
6187ca1d8e
delete op_entry
2021-03-04 15:53:34 +08:00
Valk Richard Li
e8b8e53015
change test files
2021-03-03 09:20:42 +08:00
Valk Richard Li
2d0a89a210
add test files
2021-03-03 01:09:57 +08:00
Valk Richard Li
f3370ef0f7
change map to unordered_map
2021-03-01 15:54:58 +08:00
Valk Richard Li
bae077ac88
update
2021-02-27 22:45:51 +08:00
Valk Richard Li
23934f9c3f
add getParent & getPath
2021-02-25 22:30:28 +08:00
Valk Richard Li
a0fc1b4a61
add tutorial of how to add built-in function
2021-02-23 23:33:01 +08:00
Valk Richard Li
05771321be
clear memory footprint when codegen complete
2021-02-23 22:53:28 +08:00
Valk Richard Li
03dcdd0f1e
Add props lib & bug fixed(op_ret in foreach/index got SIGSEGV)
2021-02-18 23:49:29 +08:00
Valk Richard Li
6cb0e19ba3
codegen will not generate 'jmp' if 'if' and 'elsif' is the last condition
2021-02-18 11:45:47 +08:00
Valk Richard Li
1d02f7021d
bug fixed & more efficient function call
...
fixed a bug when different hash calling the same function,'me' will be set to the latest called hash's address.
changed the way of pushing the scope to the stack by copying a new scope from the function's scope address.
use map as the nasal_scop instead of list<map>,it'll be more efficient.
2021-02-17 19:31:44 +08:00
Valk Richard Li
e1beb1efe3
change identifier name to avoid misunderstanding
2021-02-15 15:29:55 +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
Valk Richard Li
afef865f69
bug fixed
2021-02-13 23:57:53 +08:00
Li Haokun
15ba831d96
Merge pull request #5 from sidi762/master
...
Added left, right, streq, cmp, chr to library functions
2021-02-13 07:24:17 -08:00
Sidi Liang
de154cd335
Library: added comment for chr
2021-02-13 21:43:07 +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
805efbd104
update
2021-02-13 14:37:21 +08:00
Valk Richard Li
92aaef55d2
update parser to LL(1)
2021-02-13 13:28:20 +08:00
Valk Richard Li
468ad6157f
update
2021-02-13 11:09:31 +08:00
Valk Richard Li
4112a05a83
identifiers' name changed
2021-02-12 23:48:51 +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
3b986fd845
update
2021-01-23 19:21:37 +08:00
Valk Richard Li
dfb537bbdc
update
2021-01-23 17:57:05 +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
14c43c6a42
update & bug fixed
2021-01-05 23:17:32 +08:00
Valk Richard Li
44327224ed
update
2021-01-05 01:55:17 +08:00
Valk Richard Li
538d37a0cd
update
2021-01-02 23:57:21 +08:00
Valk Richard Li
010984330a
update
2020-12-29 19:09:20 +08:00
Valk Richard Li
d92bc191bd
bug fixed
2020-12-26 19:05:04 +08:00
Valk Richard Li
4bc12110bb
bug fixed
2020-12-25 22:06:42 +08:00
Valk Richard Li
e797766950
bug fixed
2020-12-25 13:22:57 +08:00
Valk Richard Li
ed0d3e862d
update
2020-12-24 23:53:31 +08:00
Valk Richard Li
324a423751
update
2020-12-20 20:18:02 +08:00
Valk Richard Li
0e0db782f3
update
2020-12-20 13:39:24 +08:00
Valk Richard Li
cfc9a97144
update
2020-12-19 23:47:04 +08:00