249 Commits

Author SHA1 Message Date
pikastech
7f193cec04 support dict.items() 2022-09-11 00:51:17 +08:00
pikastech
779f94c529 fix DEL $tmp 2022-09-09 16:30:23 +08:00
pikastech
8143c1376e support multy return in function 2022-09-09 16:14:27 +08:00
pikastech
c0148c2bd3 skip void line 2022-09-09 10:18:55 +08:00
pikastech
7ae95663f6 support multy assign, use $l[x] instead of _l[x] 2022-09-09 10:16:15 +08:00
pikastech
854bd2a6a4 skip when default is given 2022-09-02 20:21:58 +08:00
李昂
55801b28f5 !109 default
* add callback test
* def test(a=1, b='test') for default is ok
* getNodeAttr
2022-09-02 11:25:32 +00:00
pikastech
b928950106 fix declare typo, parsing defalut 2022-09-02 14:34:47 +08:00
pikastech
c8137e8204 fix ci 2022-08-30 16:05:44 +08:00
pikastech
718b11d482 support try except in cmodule
not use try_top or try_inner

try dict nofound and try len is tested ok
2022-08-30 15:37:09 +08:00
pikastech
2dd8b6979d add get/set arg_serialized
add setIsKeyword

support keyword input
2022-08-30 12:25:57 +08:00
pikastech
e98c6b4e13 restore befor OUT 2022-08-30 12:05:28 +08:00
pikastech
abe576d9e5 OUT for keyword pars is ok 2022-08-30 11:58:13 +08:00
pikastech
d890d51f94 fix s = '\\' 2022-08-29 18:34:20 +08:00
pikastech
1c0f6b50b1 support science_num 2022-08-18 22:44:03 +08:00
pikastech
7e15e5e202 support __add__() for list 2022-08-16 17:40:11 +08:00
pikastech
d01ca77a51 support *var in py function 2022-08-16 12:21:11 +08:00
pikastech
7d01af7b90 support auto connect lines begin with fun(...
fix valgrind
2022-08-12 23:59:32 +08:00
pikastech
331710ace6 support void line and no new line 2022-08-12 13:52:51 +08:00
pikastech
f180a15343 support %s and %r for any type arg 2022-08-11 18:32:53 +08:00
pikastech
19b7651913 fix valgrind errs 2022-08-09 23:11:23 +08:00
pikastech
7daa4b93c5 support assert keyword 2022-08-09 18:27:46 +08:00
pikastech
be07caab14 format
format parser

format parser and support 'in' for string
2022-08-09 12:57:00 +08:00
pikastech
a4dcc337bc support is keyword 2022-08-08 20:09:10 +08:00
pikastech
69b3fddc24 add unittest module
add _unittest.pyi

support _xxxx.pyi
2022-08-06 21:02:29 +08:00
pikastech
92dad784ce fix parse err like d['x'].foo() 2022-08-05 22:39:43 +08:00
pikastech
7f77407550 support del keyword, use v1.10 version name 2022-08-04 00:25:32 +08:00
pikastech
1d7bcf2a39 use __getitem__ __setitem__ instead of __get__ __set__ 2022-07-29 23:40:16 +08:00
pikastech
d3a9f6e226 rename pika_configparser to configparser 2022-07-20 22:06:23 +08:00
pikastech
de10086338 add arg_new<T> api
update version
2022-07-20 10:34:50 +08:00
李昂
e7e501ab73 !56 Support tuple literal
* Merge branch 'master' into tuple
* sue SyntaxItemList
* cut the parser
* update preCompiler
* not use tiny_obj in stdlib
* use BUILTIN_STRUCT_ENABLE for list, dict, tuple
* add PikaStdData.Tuple()
* !51 Support bind .pyi from other *.py expect main.py
* fix overflow issue
* fix overflow issue and simplification code
* update PikaCV_Image.c.
2022-07-14 08:36:02 +00:00
pikastech
932fd56d14 fix test 2022-07-11 23:33:41 +08:00
pikastech
5e1f0afc5d create LST when input tuple 2022-07-11 23:32:30 +08:00
pikastech
06a77caca9 add a[b[x]] test 2022-07-11 17:20:23 +08:00
李昂
9256a87258 !48 support a[x][y] and fun()[x]
* update version
* fun()[x] is ok
* a = b[x][y] parse ok
2022-07-11 08:38:10 +00:00
李昂
660a97110f !47 not use suger to parse slice
* use __vm_[get/slice] for sysobj
* not use suger in slice
* parser for new slice is ok
* add SLC ins
2022-07-11 06:42:12 +00:00
李昂
76db2494a5 !46 try to support [][], not ok yeat
* fix typo in test
* Merge branch 'master' into slice
* adding slice to parser from suger
2022-07-11 03:14:14 +00:00
lyon
2b2745f25c fix test range 2022-07-06 15:17:59 +08:00
lyon
1bd3b367f4 fix str(None) return other string 2022-07-06 15:13:23 +08:00
lyon
0793fafece Support invokedeepth < 9 -> 15 > 2022-07-05 15:59:11 +08:00
李昂
4a943b479c !41 Support chain invoke like < String('test').split() >
* support chain invoke ok
* add test for S(S.replace()).replace()
* parse to RUN .split
* try to support chain invoke, not ok
* can devide a chain
2022-07-05 06:23:49 +00:00
lyon
571ceb837b rename configparser 2022-07-04 18:00:56 +08:00
李昂
81a5f0b965 !40 support configparser_read_string
* configparser read_string is ok
* support replace() and strip() for StdData.String()
* add file and test of configparser
2022-07-04 07:16:44 +00:00
pikastech
77c579ef18 add test for def ... 2022-07-01 11:11:53 +08:00
pikastech
5d21f7190e [bug] fix parse faild when meet some comments 2022-07-01 11:04:33 +08:00
李昂
b669710c2c !39 Support d = {'a':x, 'b':y, 'c':z}
* Support d = {'a':x, 'b':y, 'c':z}
* add parse and ins for dict literal
2022-06-30 04:10:03 +00:00
pikastech
2eb911cd1a fix parse issue when met xx_import 2022-06-28 16:35:00 +08:00
pikastech
20b63cfa15 resotre strGetLastLine, support cut for IMPORT_EX and EXCEPTION 2022-06-27 11:29:48 +08:00
pikastech
f5f5c3aa3e add test for parseissue2 2022-06-26 22:54:04 +08:00
pikastech
1630664996 fix ~-1 != 0 2022-06-26 22:26:38 +08:00