26 Commits

Author SHA1 Message Date
Lyon
1f92b8135c using clang-tidy and add format.py to auto-format 2023-07-09 23:12:21 +08:00
Lyon
b4f7b4275c move test to pikaCompiler 2023-07-06 23:09:49 +08:00
pikastech
75d6f97823 move test to top 2022-09-26 21:47:52 +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
2884d51c72 support for k, v in d.items() 2022-09-11 12:12:22 +08:00
pikastech
7f193cec04 support dict.items() 2022-09-11 00:51:17 +08:00
pikastech
b48d04df3b support return dict in cmodule, release v1.10.8 2022-09-09 13:10:20 +08:00
pikastech
c59c8953b7 support method for str
support method for str
2022-09-05 20:29:13 +08:00
pikastech
4486de76e9 support list slice 2022-09-05 16:31: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
e0eee73209 support dir() builtin, fix str disp in list... 2022-08-10 11:49:54 +08:00
pikastech
525f08e088 fix for in dict 2022-08-02 13:52:20 +08:00
李昂
45a07c5773 !58 Support read() builtin
* support read(-1)
* add example
2022-07-15 02:06:23 +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
ec3b86fee8 fix CI 2022-07-14 11:05:21 +08:00
pikastech
8889671586 push binascii to package 2022-07-14 10:59:51 +08: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
41b6409be3 support b2a_hex() for PikaStdData.Utils 2022-07-06 16:20:12 +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
pikastech
1fb06d621a add test for list inner dict 2022-06-30 13:18:59 +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
56621882f9 fix STNTEX LEVEL in test 2022-06-23 18:01:18 +08:00
pikastech
ff16099da5 test iter() for keys is ok 2022-06-23 17:46:50 +08:00