21 Commits

Author SHA1 Message Date
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
0921ee69c4 simplify the byteCodeGen main.c 2022-07-11 23:17:25 +08: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
f30dd75da1 fix mem_lack for StdData_List 2022-06-16 01:18:11 +08:00
pikastech
c02ffb51ab fix double __init__ when 'import as' 2022-06-15 14:49:17 +08:00
李昂
5349a56656 !26 run the __init__ when init the meta obj
* run __init__ when init the meta_obj
* clean dead code
2022-06-15 06:20:34 +00: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
lyon
54ad82d5a8 format 2022-05-25 14:05:18 +08:00
lyon
aa676d380b format 2022-04-28 00:49:40 +08:00
lyon
15aef30a5f use obj_getObj/getSuperObj 2022-04-27 22:14:56 +08:00
lyon
cd82162e6e all tests passed 2022-04-26 12:15:07 +08:00
lyon
9b1e6a323a list_iter not ok 2022-04-26 10:06:15 +08:00
lyon
89d23c2d3e ref error in list.iter 2022-04-26 10:01:40 +08:00
lyon
88c0fd481e add _refcnt when get refArg from object 2022-04-25 19:19:44 +08:00
lyon
e03af6c5a7 rename __POINTER_ to REF_OBJECT 2022-04-25 14:43:44 +08:00
lyon1998
d5c4359a2a update PikaStdData_list, add new line 2022-03-25 21:32:01 +08:00
lyon1998
dae8f38d23 add ByteArray to StdData 2022-03-25 21:18:54 +08:00
lyon
a966d43ad0 update PikaStdLib 2022-03-02 15:27:19 +08:00
lyon
97688e16d7 collect Stds to StdLib 2022-01-30 17:37:21 +08:00
lyon
0b849c48bc collect Std compoment all to PikaStdLib 2022-01-30 16:46:33 +08:00