44 Commits

Author SHA1 Message Date
lyon
41cb54ecb0 support bytearray() builtin 2023-05-29 12:09:23 +08:00
lyon
892ae61a20 support bytearray builtin 2023-05-29 10:18:52 +08:00
pikastech
bf129bb398 fix parse err for 'test'.split()[0]
add test
2023-05-05 21:47:52 +08:00
pikastech
f6d8001f37 support string.find() 2023-04-27 19:44:51 +08:00
pikastech
11080aa513 add circlequeue.py 2023-04-23 20:55:20 +08:00
lyon
ec8405d304 support str.join()
fix VM for nano mode
2023-03-11 22:36:12 +08:00
lyon
c8ab4ce3cb adding format
fix star with pos
2022-11-29 20:05:13 +08:00
pikastech
bd9bd8b864 support f.read() 2022-11-25 17:32:10 +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
efd9abbf17 add mem check
add big_dict_update test
2022-09-27 21:30:30 +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
7f193cec04 support dict.items() 2022-09-11 00:51:17 +08:00
eglwang
9d4c9689a9 support UTF-16,UTF-32 in pikaStdData_String.encode 2022-09-07 22:29:52 +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
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
bb54c2e719 support setattr and getattr
run tests() in cases is ok
2022-08-11 17:39:38 +08:00
pikastech
57d89e256f support try_expect for open 2022-08-06 17:59:32 +08:00
pikastech
1d7bcf2a39 use __getitem__ __setitem__ instead of __get__ __set__ 2022-07-29 23:40:16 +08:00
pikastech
15c0985d2e add lseek() function
support readline(), readlines(), writelines() for FILEIO
2022-07-18 15:23:35 +08:00
李昂
d9349b7812 !61 Support seek() and tell() for FILEIO
* fix FILEIO.seek()
* return ftell in FILEIO.seek()
* fix test
* support seek() and tell() for FILEIO
2022-07-18 05:29:43 +00:00
李昂
45a07c5773 !58 Support read() builtin
* support read(-1)
* add example
2022-07-15 02:06:23 +00: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
8f9950d4ae support decode() and encode()
for PikaStdData.String() and PikaStdData.ByteArray()

use example/BuiltIn/encode_decode.py

fix CI
2022-07-14 12:02:38 +08:00
pikastech
8889671586 push binascii to package 2022-07-14 10:59:51 +08:00
lyon
41b6409be3 support b2a_hex() for PikaStdData.Utils 2022-07-06 16:20:12 +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
865290df74 support len() for object and __len__().
* list, dict, dict_keys is ok
2022-06-24 18:18:06 +08:00
李昂
e6a33c058e !34 Support __str__() for PikaStdData.List(),PikaStdData.Dict(),PikaStdData.dict_keys(),
* print list as '[x,x,x]'
* support __str__ for Dict
* support __str__ for dict_keys()
2022-06-24 03:30:56 +00:00
pikastech
ff16099da5 test iter() for keys is ok 2022-06-23 17:46:50 +08:00
pikastech
fca634f3cc use -> List 2022-06-21 17:49:18 +08:00
pikastech
1087ed0674 support split() for String Class 2022-06-21 17:42:03 +08:00
李昂
b02672b130 !21 Support variable pars for print()
* update pre-compiler
* test passed for variable pars of print()
* variable pars is tested ok for print()
* skip arg_num check for variable
* support *val in the preCompiler
* add file
* Merge branch 'dev' of https://gitee.com/lyon1998/pikascript into dev
* fix warning
* both update ByteCodeGen
* use super instead of parent
* create PikaList C list struct
* use args inner the PikaStdData.List()
* use PikaDict in PikaStdData.Dict()
* support dict in c
* support dict in c
* clean Tinyobj
2022-06-11 14:56:51 +00:00
purewind7
f1209ead44 add some methods for string 2022-06-02 20:26:35 +08:00
lyon
879cc7b2e7 support startwith() and endwith() for String 2022-06-02 15:12:28 +08:00
lyon
a97d6f3f76 support __str__ for String(), find mem leak when print(String('test')) 2022-06-01 11:46:59 +08:00
lyon
e0f4b346fc suppot void line in *.py inner function define 2022-05-28 10:43:21 +08:00
lyon
43caaac810 add Class utils for stdData, add int_to_bytes() 2022-05-27 17:09:16 +08:00
lyon
8df290da3f use pyi instaed of py for C moudle 2022-04-28 11:47:37 +08:00