145 Commits

Author SHA1 Message Date
pikastech
87a084b4d8 support super(), test ok
support `super()`
2022-09-08 19:07:21 +08:00
pikastech
27ebfb049f support input None to object 2022-09-07 14:25:25 +08:00
pikastech
6257ab7f06 fix print sort 2022-09-04 21:19:41 +08:00
pikastech
d85fed9260 add default arg in example 2022-09-03 10:15:31 +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
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
4827c6d031 add example function.py 2022-09-02 09:22:39 +08:00
pikastech
fd15dc96af support vars_keys and pos_vars_keys 2022-09-02 01:17:00 +08:00
pikastech
a2bbc06a39 fix ci 2022-08-31 00:44:45 +08:00
pikastech
1c9a4c8b5c def foo(**keys) in py is ok 2022-08-31 00:38:51 +08:00
pikastech
3b9f0112ed __kwargs is ok 2022-08-31 00:15:23 +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
e19d44cc92 befor pull 2022-08-30 11:59:17 +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
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
7d01af7b90 support auto connect lines begin with fun(...
fix valgrind
2022-08-12 23:59:32 +08:00
pikastech
c07c0454bd fix core dump in [<undefined>, 2, 3] 2022-08-09 22:14:15 +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
7f77407550 support del keyword, use v1.10 version name 2022-08-04 00:25:32 +08:00
pikastech
6be2bc41b6 use pure_stack_arg 2022-07-31 17:18:29 +08:00
pikastech
6c6304a896 add type check for operand
support int**float (need PikaMath enabled)
2022-07-30 11:59:44 +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
李昂
6acc0f9ecd !25 support format output for print()
* test for format with tuple is ok
* 'format'%var is ok (tuple var is not ok)
* rename _cformat to cformat()
* optimize the memory usage of format_list
* add string-test.cpp
* cformat() is ok
* fix variable par load issue
* use test_common.h
* use test_common to simplify the gtest case
* Merge branch 'master' into dev
* fix float->double for bytecodegen
* update to /package
* Use double in C for float in python
2022-06-14 03:20:17 +00:00
lyon
49589ed009 add equ test for bytes 2022-05-24 15:08:46 +08:00
Lyon
b359062172
Dev (#118)
* add PLOOC

* add PLOOC to kernal

* remove unrequired files

* remove pack

* fix plooc ci in test/*.cpp

* add test_common.h

Co-authored-by: Gabriel Wang <embedded_zhuoran@Hotmail.com>
2022-05-19 20:52:19 +08:00
lyon
b422318168 cancel (char*) in test 2022-04-30 21:17:19 +08:00
lyon
882421ae5b add PikaLib class to gen '*.a' 2022-04-29 23:56:54 +08:00
lyon
683a21b66a support TinyObj() 2022-04-28 17:35:11 +08:00
lyon
7f410b1316 not use PikaMain 2022-04-28 17:17:12 +08:00
lyon
15aef30a5f use obj_getObj/getSuperObj 2022-04-27 22:14:56 +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
df0db6a390 combine object and ref object 2022-04-26 10:43:50 +08:00
lyon
e03af6c5a7 rename __POINTER_ to REF_OBJECT 2022-04-25 14:43:44 +08:00
lyon1998
69730efea4 printBytes is ok 2022-04-20 14:00:05 +08:00
lyon1998
9bbb9e43cd support '\x33' for str 2022-04-19 19:16:53 +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
0e2da7bd28 type a then print a is ok 2022-04-02 17:07:35 +08:00
lyon1998
723f456f53 test ok for a = (3-4) -4 2022-04-02 15:50:31 +08:00
lyon1998
85f5265f98 need method for token as unit 2022-04-02 01:54:29 +08:00