pikastech
eb92e69fd8
fix memroy leak and arg num check err
2022-09-04 18:37:47 +08:00
李昂
0e1a2d3249
!110 support default pars for py function
...
* var_default_vars test ok
* default with input is ok
* use self.val in CallBack/test2.py
* vm ...
2022-09-02 16:16:31 +00: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
fd15dc96af
support vars_keys and pos_vars_keys
2022-09-02 01:17:00 +08:00
pikastech
d4a0b37958
support **keys in cmodule
...
support print('test', end='')
2022-09-02 00:33:50 +08:00
李昂
7d191fc2ea
!108 keys
...
* def foo(**keys) in py is ok
* __kwargs is ok
* gening dict
* fix arg->flag init faild
* supporting **keys
2022-08-30 16:40:04 +00: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
d890d51f94
fix s = '\\'
2022-08-29 18:34:20 +08:00
pikastech
cfbc2d98f9
fix cre.c:310:3: error: a label can only be part of a statement and a declaration is not a statement
2022-08-29 16:58:01 +08:00
pikastech
f76e456ea0
add test, examples for re, fix some mem leak
2022-08-29 16:29:03 +08:00
pikastech
6726169ad9
serilized to api
...
use mask in arg for serilized
support isKeyword flag for arg
2022-08-28 19:25:03 +08:00
pikastech
3d97469e25
add platform_h for socket.c
2022-08-26 17:55:17 +08:00
pikastech
7244267b68
test socket ok
2022-08-26 17:25:45 +08:00
pikastech
ecaf7ed0e9
add __platform for socket, add override
2022-08-26 16:40:12 +08:00
pikastech
2a4115722e
create socket.py
...
support socket on linux
2022-08-25 00:54:27 +08:00
pikastech
5354708450
use hash instead of itoa in list and queue
2022-08-17 10:29:54 +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
a1b3347e5b
support [\n ...] and {\n ...}
2022-08-13 00:08:21 +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
cd6dfbbb71
unittest can run
2022-08-11 19:21:53 +08:00
pikastech
f180a15343
support %s and %r for any type arg
2022-08-11 18:32:53 +08:00
pikastech
bb54c2e719
support setattr
and getattr
...
run tests() in cases is ok
2022-08-11 17:39:38 +08:00
pikastech
bfebd7500e
add clang_format settings for vsc
2022-08-11 16:26:14 +08:00
pikastech
e0eee73209
support dir()
builtin, fix str disp in list...
2022-08-10 11:49:54 +08:00
pikastech
19b7651913
fix valgrind errs
2022-08-09 23:11:23 +08:00
pikastech
a4dcc337bc
support is
keyword
2022-08-08 20:09:10 +08:00
pikastech
e61e4716ac
add examples for unittest
2022-08-06 23:26:04 +08:00
pikastech
57d89e256f
support try_expect for open
2022-08-06 17:59:32 +08:00
pikastech
4f13d3a4b1
support callback from formal parameter
2022-08-06 16:57:35 +08:00
pikastech
92dad784ce
fix parse err like d['x'].foo()
2022-08-05 22:39:43 +08:00
pikastech
0c0d89231c
avoid core dump when not ':' found
2022-08-05 11:18:54 +08:00
pikastech
178353e259
use statkc buff[] when load args
...
skip tuple to accelerate
add speed for return arg in <RUN> inst
2022-08-04 11:12:32 +08:00
pikastech
446bc562cd
accelerate for OUT ins
2022-08-01 10:06:49 +08:00
pikastech
e393d33db7
fix Quaternion_test.py
2022-08-01 00:16:23 +08:00
pikastech
56ec7c2410
more stack arg in VM
2022-07-31 19:48:35 +08:00
pikastech
6be2bc41b6
use pure_stack_arg
2022-07-31 17:18:29 +08:00
pikastech
76f7c68c83
move flag __size[x] to vm ireg
2022-07-31 14:55:03 +08:00
pikastech
1d7bcf2a39
use __getitem__ __setitem__ instead of __get__ __set__
2022-07-29 23:40:16 +08:00
pikastech
1e956cfcff
fix CI
2022-07-26 10:41:29 +08:00
pikastech
73123cdd9f
support <int32_t size> for stack
2022-07-26 10:24:31 +08:00
pikastech
18e15559b7
fix rgb565 chanel err
2022-07-14 17:33:30 +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
8889671586
push binascii to package
2022-07-14 10:59:51 +08:00
李昂
b354948c40
!51 Support bind .pyi from other *.py expect main.py
...
* Support bind .pyi from other *.py expect main.py
* update rust
* fix suffix format
* fix name case
* supporting import pyi from other py
* supporting import pyi from other py
2022-07-13 08:29:42 +00: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