112 Commits

Author SHA1 Message Date
lyon
bac4c4c90a clear baseobj 2022-04-28 00:17:05 +08:00
lyon
15aef30a5f use obj_getObj/getSuperObj 2022-04-27 22:14:56 +08:00
lyon
7aafd3cada deinit free_obj when clear stack 2022-04-26 17:20:08 +08:00
lyon
d463eee7ef format 2022-04-26 14:04:19 +08:00
lyon
cd82162e6e all tests passed 2022-04-26 12:15:07 +08:00
lyon
00987b8b23 solve MATE_OBJ GC error 2022-04-26 11:59:54 +08:00
lyon
df0db6a390 combine object and ref object 2022-04-26 10:43:50 +08:00
lyon
16886ec594 remove '__res' after run __iter__() 2022-04-26 10:12:34 +08:00
lyon
9b1e6a323a list_iter not ok 2022-04-26 10:06:15 +08:00
lyon
fa8e640829 clean launch.json 2022-04-26 09:24:04 +08:00
lyon
9803b1cf9f gc not pass 2022-04-25 23:38:10 +08:00
lyon1998
0c130716bd add BTY ins to support bytes iteral 2022-04-20 13:21:59 +08:00
lyon1998
933fad80c5 test for args_mem ok 2022-04-18 11:45:59 +08:00
lyon1998
920bd7a16a fix parser 2022-04-14 15:12:57 +08:00
lyon1998
fc149a476d get args in LST is ok 2022-04-13 20:19:52 +08:00
lyon1998
b42c8c1e6a parse for a = [1, 2, 3] is ok 2022-04-13 19:36:08 +08:00
lyon1998
52e69f45a7 support built-in list and dict 2022-04-13 12:03:10 +08:00
lyon1998
6f02b3aa94 add test for class_in_shell 2022-04-11 22:31:36 +08:00
lyon1998
cd5c62c167 support defination for def and class 2022-04-11 22:27:18 +08:00
lyon1998
8bca6183b8 support def and class in shell 2022-04-11 21:52:39 +08:00
lyon1998
3c7ef1a198 deinit method_arg when RUN_exit 2022-04-04 13:32:22 +08:00
lyon1998
1bf4b687ca init freeObj in the constructor 2022-04-03 19:02:19 +08:00
lyon1998
2fae86de32 fix error info 2022-04-03 12:55:06 +08:00
lyon1998
ab8c177e00 fixed the '-3-3' bug 2022-04-02 23:32:59 +08:00
lyon1998
7bac0becc9 use arg_foreach in poptoken 2022-04-02 23:28:02 +08:00
lyon1998
9e9567dd42 fix '-3+3' error 2022-04-02 22:37:41 +08:00
lyon1998
86316bf5d3 add spped for VMState_getInputArgNum 2022-04-02 16:35:19 +08:00
lyon1998
f05931d320 check inpput arg num when call function 2022-04-02 16:30:36 +08:00
lyon1998
9dea4765fd reconnize '-' as operator always 2022-04-02 15:48:44 +08:00
lyon1998
85f5265f98 need method for token as unit 2022-04-02 01:54:29 +08:00
lyon1998
1a14c82441 fix bug of parser 2022-03-31 14:33:56 +08:00
lyon1998
26942923bf use static stack instead of link stack 2022-03-30 00:27:04 +08:00
lyon1998
8116f4f48b use '_' to replace 'top' in stack 2022-03-29 22:15:14 +08:00
lyon1998
6e7ffdade1 still faild in pikaMain class_def test 2022-03-29 18:02:55 +08:00
lyon1998
a10e0f9dec support pop push arg stack 2022-03-29 16:59:39 +08:00
lyon1998
53c5535c12 try to use one queue, but faild 2022-03-29 16:41:45 +08:00
lyon1998
f6da565249 print ins of all line 2022-03-28 22:32:34 +08:00
lyon1998
39022bc0aa fix void line in the middle of python script 2022-03-27 16:39:20 +08:00
lyon1998
1f37d0872c fix parser end 2022-03-25 20:21:29 +08:00
lyon1998
12ed23ddd7 use exist const, fix RET parse format 2022-03-16 14:40:51 +08:00
lyon1998
a868117fbc save bytecode to heap in the first obj_run is ok 2022-03-16 13:42:43 +08:00
lyon1998
5a97c8cb96 use byteCode_frame in VMState 2022-03-15 12:31:05 +08:00
lyon1998
5d1b83a417 solve bug when jum to the end 2022-03-14 18:46:57 +08:00
lyon1998
ec4b196195 fix warning 2022-03-13 17:37:50 +08:00
lyon1998
842fc67f23 run byteCodeFrame without jmp is ok 2022-03-13 16:59:01 +08:00
lyon1998
87c30b2cb3 test ins_unit_print ok 2022-03-13 10:24:18 +08:00
lyon
716abf833c not use buffs in getNextLine 2022-03-10 18:18:44 +08:00
lyon
0c67a8dafe use memmov ins poptoken 2022-03-09 21:48:58 +08:00
lyon
ac4247e5fd use sys_malloc and fix a mem bug 2022-03-09 14:01:35 +08:00
lyon
db8094d9a5 class_def is not passed 2022-03-09 13:22:55 +08:00