166 Commits

Author SHA1 Message Date
lyon
b42798c6c6 set syntex maximal as default 2022-05-30 15:23:20 +08:00
lyon
d96d01d8a9 support slice for str and bytes, tested 2022-05-30 14:35:44 +08:00
lyon
a41d206509 test slice for str 2022-05-30 14:22:19 +08:00
lyon
c0581b4408 support nagtive index for str and bytes 2022-05-30 14:01:59 +08:00
lyon
43caaac810 add Class utils for stdData, add int_to_bytes() 2022-05-27 17:09:16 +08:00
lyon
2fa39bb973 check overflow for VM stack 2022-05-27 12:53:27 +08:00
lyon
3c7b765a3f support int() for bytes 2022-05-27 10:29:57 +08:00
lyon
320ded11c7 support obj_runCharInit() and obj_runChar() 2022-05-27 09:44:42 +08:00
lyon
2b9452a5b5 support 0oxx 2022-05-25 17:32:44 +08:00
lyon
d3fd9512b4 support and tested char() and ord() builtin-fun 2022-05-25 15:53:39 +08:00
lyon
09bb50a98c support hex() and tested ok 2022-05-25 15:42:25 +08:00
lyon
db45bd9964 str(obj) from __str__ is test ok 2022-05-25 13:57:02 +08:00
lyon
e860275c99 support __str__ in for print 2022-05-25 13:46:48 +08:00
lyon
ee3a2c8f53 support [] index for bytes 2022-05-21 19:23:34 +08:00
Lyon
b359062172
Dev (#118)
* add PLOOC

* add PLOOC to kernal

* remove unrequired files

* remove pack

* fix plooc ci in test/*.cpp

* add test_common.h

Co-authored-by: Gabriel Wang <embedded_zhuoran@Hotmail.com>
2022-05-19 20:52:19 +08:00
lyon
bef82257ef use 'rb''wb+' to avoid auto transfer form '\n' to '\r\n' in win 2022-05-15 00:38:25 +08:00
lyon
29fe0a99c9 still link lib in pikascriptInit 2022-05-13 09:13:02 +08:00
lyon
e32c73d7b3 support import cmodule from pymodules 2022-05-13 09:04:54 +08:00
lyon
b1611b2d4c fix mem error of queue_getStr() 2022-05-02 15:34:32 +08:00
lyon
760484ecf0 find module in __lib when module is not built-in 2022-05-01 16:31:54 +08:00
lyon
e6c1468248 add test for '~' 2022-05-01 11:59:34 +08:00
lyon
8639c55334 fix arg bug in single opecator 2022-05-01 10:08:03 +08:00
lyon
b422318168 cancel (char*) in test 2022-04-30 21:17:19 +08:00
lyon
683a21b66a support TinyObj() 2022-04-28 17:35:11 +08:00
lyon
7f410b1316 not use PikaMain 2022-04-28 17:17:12 +08:00
lyon
ba11251d6d support deinit no ref object 2022-04-26 12:23:39 +08:00
lyon
cd82162e6e all tests passed 2022-04-26 12:15:07 +08:00
lyon
00987b8b23 solve MATE_OBJ GC error 2022-04-26 11:59:54 +08:00
lyon
df0db6a390 combine object and ref object 2022-04-26 10:43:50 +08:00
lyon
16886ec594 remove '__res' after run __iter__() 2022-04-26 10:12:34 +08:00
lyon
9b1e6a323a list_iter not ok 2022-04-26 10:06:15 +08:00
lyon1998
09d7e53fa4 print the test py 2022-04-20 14:55:26 +08:00
lyon1998
41f270e053 test for ctypes is ok 2022-04-20 14:51:38 +08:00
lyon1998
f6f38bdb73 fix typo of list_enable and dict_enable 2022-04-14 16:37:34 +08:00
lyon1998
eae58359f1 set enable builtin list as default 2022-04-14 15:58:24 +08:00
lyon1998
d979c2876d test for 'x = [1,2,3]' is ok 2022-04-14 13:10:34 +08:00
lyon1998
fc149a476d get args in LST is ok 2022-04-13 20:19:52 +08:00
lyon1998
52e69f45a7 support built-in list and dict 2022-04-13 12:03:10 +08:00
lyon1998
7e876c9799 support TinyObj for class runtime-define 2022-04-11 22:40:42 +08:00
lyon1998
6f02b3aa94 add test for class_in_shell 2022-04-11 22:31:36 +08:00
lyon1998
cd5c62c167 support defination for def and class 2022-04-11 22:27:18 +08:00
lyon1998
8bca6183b8 support def and class in shell 2022-04-11 21:52:39 +08:00
lyon1998
748fe43ada format the error info of not 4N spaces 2022-04-11 17:53:17 +08:00
lyon1998
1125cf3bfb add error info for 'not 4 spaces' 2022-04-09 09:04:38 +08:00
lyon1998
757f00893a support len() for string, support int() for string 2022-04-09 01:15:21 +08:00
lyon1998
9b15b16082 handle class(...) args num error 2022-04-05 13:12:04 +08:00
lyon1998
3fc067391b test arg num err in function 2022-04-04 23:59:33 +08:00
lyon1998
f438446313 support navite constructor method 2022-04-04 15:16:27 +08:00
lyon1998
2c29722f69 PikaStdData.String('test') is ok 2022-04-04 13:52:00 +08:00
lyon1998
548612e390 use runNativeMethod to run __init__ 2022-04-03 19:18:36 +08:00