182 Commits

Author SHA1 Message Date
pikastech
f888b32e92 fix invalid access when method_arg is void 2022-06-06 14:45:37 +08:00
pikastech
d78d8fa5a9 fix error info of factory in cmodule 2022-06-06 10:09:12 +08:00
pikastech
9ad033123d fix string literal 2022-06-06 09:44:05 +08:00
pikastech
30209aff77 support return Object in CModule 2022-06-06 09:13:27 +08:00
pikastech
604711f708 parse(), print() for cJSON is ok 2022-06-02 16:51:12 +08:00
lyon
2d98f1c63e fix bug: can not run the function defind from module 2022-06-02 15:13:56 +08:00
lyon
c0a925d42d support [:i] and [i:] for str and bytes 2022-05-31 20:17:26 +08:00
lyon
51540da289 fix parse error when '[' inner the string 2022-05-31 13:57:13 +08:00
lyon
9ab1c55564 parse for slice is ok 2022-05-30 13:40:50 +08:00
lyon
137b625db8 supporting slice, test pase, function not ok 2022-05-29 14:37:59 +08:00
lyon
43caaac810 add Class utils for stdData, add int_to_bytes() 2022-05-27 17:09:16 +08:00
lyon
74908fa94c fix lexer token index error 2022-05-27 15:42:58 +08:00
lyon
2fa39bb973 check overflow for VM stack 2022-05-27 12:53:27 +08:00
lyon
61dc2930be const_pool and dynamic_pool tested ok 2022-05-02 19:49:47 +08:00
lyon
44e7f0c738 fix all valgrind mem error 2022-05-02 17:56:38 +08:00
lyon
3fd45abe68 not use 'index' in LibObj 2022-05-01 21:07:41 +08:00
lyon
6d5a7b3aaf compile_link_import ok 2022-05-01 17:08:24 +08:00
lyon
4cad22ebde parse 'import' as operator 2022-05-01 09:41:50 +08:00
lyon
a6384c45c8 move main.py to test/python/main.py 2022-04-29 01:17:39 +08:00
lyon
d0aff0c6b3 test compilefile in github server 2022-04-29 00:18:49 +08:00
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