214 Commits

Author SHA1 Message Date
lyon1998
eae58359f1 set enable builtin list as default 2022-04-14 15:58:24 +08:00
lyon1998
52e69f45a7 support built-in list and dict 2022-04-13 12:03:10 +08:00
lyon1998
757f00893a support len() for string, support int() for string 2022-04-09 01:15:21 +08:00
lyon1998
2c29722f69 PikaStdData.String('test') is ok 2022-04-04 13:52:00 +08:00
lyon1998
6e7ffdade1 still faild in pikaMain class_def test 2022-03-29 18:02:55 +08:00
lyon1998
aecfe9bb09 add newline in _List.c 2022-03-25 21:20:15 +08:00
lyon1998
dae8f38d23 add ByteArray to StdData 2022-03-25 21:18:54 +08:00
lyon1998
8195d1f0f2 use PIKA_PYTHON_BEGIN before PIKA_PYTHON 2022-03-24 12:09:34 +08:00
lyon1998
156c842381 use more PIKA_PYTHON macro 2022-03-24 11:48:17 +08:00
lyon1998
d384352c2c use PIKA_PYTHON macro instead of comment 2022-03-24 11:46:27 +08:00
lyon1998
b254dd02f9 use bytecode in stdlib 2022-03-18 23:00:51 +08:00
lyon1998
ac511d6f34 use bytecode in stdtask for all 2022-03-17 17:28:32 +08:00
lyon1998
ff1c71322b update PikaStdTask to bytecode based 2022-03-17 16:47:03 +08:00
lyon1998
0face9d39d use arg_type to select method type 2022-03-14 13:53:52 +08:00
lyon
8a6deb7513 use buffs = {0} instead of buffs = New_strBuff() 2022-03-09 12:39:06 +08:00
lyon
fd26a79fc8 rename TYPE_X to ARG_TYPE_X 2022-03-02 10:34:33 +08:00
lyon
9cf1ae46ad restore Dict.c 2022-02-25 18:07:03 +08:00
lyon
c5b0fb8027 fix include error in PikaStdTask 2022-01-31 01:49:34 +08:00
lyon
60bc061789 add quit for pdb 2022-01-30 19:59:29 +08:00
lyon
c6e5deb131 rm .py in port linux 2022-01-30 17:40:06 +08:00
lyon
97688e16d7 collect Stds to StdLib 2022-01-30 17:37:21 +08:00
lyon
bd9f873b3c use printf in mem.max() 2022-01-23 22:53:27 +08:00
lyon
8894e270f3 support s[2] = 'q' 2022-01-18 23:37:48 +08:00
lyon
b182e4af31 __get__ string is ok 2022-01-18 21:55:08 +08:00
lyon
56bf2fb32f fix warning in strsReplace 2022-01-15 22:16:57 +08:00
lyon
957863a382 should use hash in the PikaObj instead of name 2022-01-13 23:31:06 +08:00
lyon
4ed66eb3f4 __set()__ and __get()__ for list, dict ,string ok 2022-01-13 21:56:44 +08:00
lyon
a312e2ad81 fix ac5 warning for stdlib, clean the RangeObj 2022-01-13 16:31:30 +08:00
lyon
ec8d06cdf3 add file 2022-01-10 00:01:46 +08:00
lyon
f3c6fd7475 parse for in range is tested ok in parser 2022-01-09 23:37:24 +08:00
lyon
2f8ce3768c support str() in sysobj 2022-01-09 00:12:38 +08:00
lyon
aebfbc848d use pikaVM_runAsm instead of obj_run in next() and iter() 2022-01-04 15:55:46 +08:00
lyon
e73fb2106d fix typo 2021-12-29 22:40:38 +08:00
lyon
5a983ad577 use _r[x] to replase __range[x] to save asm flash 2021-12-29 00:57:08 +08:00
lyon
dbc9b8e01c for i in range(0,10) is ok 2021-12-28 01:04:10 +08:00
lyon
89ff3a075d transfer __range_a[x] by ASM 2021-12-28 00:49:13 +08:00
lyon
567205447d rangeObj don't need run __iter__() 2021-12-27 23:54:31 +08:00
lyon
1405afe218 transfer a1, a2, a3 to RangeObj.__iter__() 2021-12-27 23:27:19 +08:00
lyon
9952c8d485 splite object 2021-12-27 23:19:32 +08:00
lyon
45fec663e0 range() create a splite MATE_OBJCECT 2021-12-27 23:17:21 +08:00
lyon
435c0f8f2d __range_a1,a2,a3 is check ok 2021-12-27 22:00:42 +08:00
lyon
a343940e69 add range() 2021-12-27 21:57:08 +08:00
lyon
38ac76b3dc add RangeObj.c to support range 2021-12-27 21:41:17 +08:00
lyon
9c7bc26818 fix warnings 2021-12-24 23:41:22 +08:00
lyon
281e3fa72d list_for_loop not pass 2021-12-24 23:27:46 +08:00
lyon
955087b3be change "deepth" to "block_deepth" 2021-12-24 23:10:50 +08:00
lyon
b4b3f345fe add __iter__ and __next__ for List 2021-12-24 22:44:56 +08:00
lyon
854517ffe4 rm .py in -lib 2021-12-13 21:41:44 +08:00
lyon
d08b124785 add pikaStdData 2021-12-13 21:24:48 +08:00
lyon
f477418657 add List for STDLib, add int() float() method 2021-11-24 11:15:50 +08:00