251 Commits

Author SHA1 Message Date
pikastech
6bb5adde37 support run obj_runChar inner pikaScriptShell 2022-10-20 22:51:51 +08:00
pikastech
83afef1906 fix err when #define __platform_printf to printf 2022-10-19 13:16:50 +08:00
pikastech
713a755459 test ok, rm @p not ok 2022-10-15 19:02:36 +08:00
pikastech
018a3d579f optimize speed for range 2022-10-13 01:24:58 +08:00
pikastech
7582a37a73 support input() builtin 2022-10-09 19:46:05 +08:00
pikastech
45c3edcfa1 add test for UnitTest.py
add volatile for precompiler

update prec
2022-10-08 19:23:32 +08:00
pikastech
f5efb11a75 optimize speed for string funs
optimize str sppeed

add prof.sh

not -pg in default
2022-10-06 12:44:40 +08:00
pikastech
603d09febd optimize speed for strEqu 2022-10-05 22:29:22 +08:00
pikastech
9eb469e521 support eval() 2022-10-01 14:03:57 +08:00
pikastech
c5ccb1bf4f support multiline define for pre-compiler 2022-09-30 15:44:36 +08:00
pikastech
b21fd029ed optimize str slice, time speed recuse 95% 2022-09-29 20:41:57 +08:00
pikastech
71d7298057 support string.strip(ch) 2022-09-29 18:47:03 +08:00
pikastech
f3101c94ee fix typo in cfg 2022-09-28 13:55:28 +08:00
pikastech
d63d50a322 use pika_float to support switch for float/double
update pre-comp

update pre-win
2022-09-28 11:54:10 +08:00
pikastech
fd4fb54dc7 fix ref err in function local context
update date
2022-09-28 10:57:19 +08:00
pikastech
efd9abbf17 add mem check
add big_dict_update test
2022-09-27 21:30:30 +08:00
pikastech
76d03f3581 fix @PIKA_C_MACRO_IF
support 'hasattr' 'getattr' for c module
2022-09-26 11:39:33 +08:00
pikastech
74a51cd053 support hasattr(), proxy test ok 2022-09-26 10:14:01 +08:00
pikastech
52995e6ab2 support list.pop()
support list.remove()

support list.insert()
2022-09-23 12:38:04 +08:00
pikastech
4e447d89af support bytes(list) 2022-09-19 10:01:16 +08:00
pikastech
f2e184aa81 support list(str) 2022-09-19 09:53:27 +08:00
pikastech
d3026c7c99 support slice utf8 for str
add test for slice utf-8
2022-09-15 16:27:02 +08:00
pikastech
8acef2efde support pks_vm_exit() 2022-09-14 13:46:19 +08:00
pikastech
3a7796251f support range(a), range(a, b, step) 2022-09-12 20:01:30 +08:00
pikastech
7f193cec04 support dict.items() 2022-09-11 00:51:17 +08:00
pikastech
c70947aa6e cut VM for nano mode 2022-09-10 23:16:59 +08:00
pikastech
10c7f1a261 add __callback inline bytecode
impl strlwr for linux, merge codede.c to _String.c
2022-09-08 08:17:01 +08:00
eglwang
f7a60bb775 remove comments in codede.c 2022-09-07 22:31:34 +08:00
eglwang
9d4c9689a9 support UTF-16,UTF-32 in pikaStdData_String.encode 2022-09-07 22:29:52 +08:00
eglwang
ba42a3924c fix a bug in PikaStdData_String___setitem__ 2022-09-07 22:19:11 +08:00
pikastech
9cb3f586d5 fix PIKA_STRING_UTF8_EANBLE = 0 2022-09-06 08:19:05 +08:00
pikastech
91461e3f17 fix warnings 2022-09-05 22:37:31 +08:00
pikastech
d5ab75af41 fix some wars, fix mem leak, add unit test 2022-09-05 22:30:28 +08:00
李昂
c6fa747150
!112 support for UTF-8 in PikaStdData_String
Merge pull request !112 from eglwang/master
2022-09-05 14:03:08 +00:00
eglwang
da84347d3d move UTF-8Support define 2022-09-05 21:45:54 +08:00
eglwang
7a5a020af9 add UTF-8 support for pikaStdData_String 2022-09-05 21:29:30 +08:00
pikastech
45c70ffe79 support __contains__ for dict 2022-09-05 15:39:15 +08:00
pikastech
b298e152e5 support __contain__
support __contains__ for list
2022-09-05 15:21:49 +08:00
pikastech
6257ab7f06 fix print sort 2022-09-04 21:19:41 +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
ab32fd37ae fix stdlib.pyi macro 2022-08-24 13:26:06 +08:00
pikastech
04da2b93b6 supporting decorator to macro in pyi
update PikaObj.pyi

use @PIKA_C_MACRO_IF to cut sysobj
2022-08-24 13:01:11 +08:00
pikastech
7e15e5e202 support __add__() for list 2022-08-16 17:40:11 +08:00
pikastech
1152ed91de format stddata 2022-08-16 12:24:26 +08:00
pikastech
d01ca77a51 support *var in py function 2022-08-16 12:21:11 +08:00
pikastech
77e291101f improve ABSTRACT_METHOD error info. 2022-08-16 11:05:19 +08:00
pikastech
bb54c2e719 support setattr and getattr
run tests() in cases is ok
2022-08-11 17:39:38 +08:00
pikastech
ac97532a7a support exec() builtin 2022-08-10 12:07:32 +08:00