Commit Graph

22 Commits

Author SHA1 Message Date
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 6651fccbe8 parser reports syntax error accurately
still need improvement
2021-05-04 01:13:53 +08:00
Valk Richard Li 2405bada81 change scope from unordered_map to vector 2021-04-19 19:12:41 +08:00
Valk Richard Li 3c89942654 update 2021-04-12 13:21:13 +08:00
Valk Richard Li 0af48f7f3f add test file & update README 2021-04-04 23:35:13 +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 2021-03-07 16:33:43 +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 dff899061a preparation for v5.0 2020-12-19 01:26:15 +08:00
Valk Richard Li 36c75af822 update 2020-11-19 23:42:51 +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