195 Commits

Author SHA1 Message Date
lyon
0793fafece Support invokedeepth < 9 -> 15 > 2022-07-05 15:59:11 +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
lyon
0b77191683 support 0bxx 2022-07-04 15:52:48 +08:00
pikastech
8aaf317689 fix print normal object 2022-06-30 17:33:06 +08:00
pikastech
3e371e9e57 fix a[1] = 1 not work inner function() 2022-06-24 16:08:27 +08:00
pikastech
ab795de30c pikaVM_runFile change to interpreter mode 2022-06-23 15:37:04 +08:00
pikastech
f30dd75da1 fix mem_lack for StdData_List 2022-06-16 01:18:11 +08:00
pikastech
d72bd7cacc add mem_lack check for task_test 2022-06-16 00:49:48 +08:00
李昂
6acc0f9ecd !25 support format output for print()
* test for format with tuple is ok
* 'format'%var is ok (tuple var is not ok)
* rename _cformat to cformat()
* optimize the memory usage of format_list
* add string-test.cpp
* cformat() is ok
* fix variable par load issue
* use test_common.h
* use test_common to simplify the gtest case
* Merge branch 'master' into dev
* fix float->double for bytecodegen
* update to /package
* Use double in C for float in python
2022-06-14 03:20:17 +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
pikastech
bd3a4d1067 run example/UnitTest/main.py in gtest 2022-06-07 14:22:02 +08:00
OnceDay
09d77c0b7c Merge branch 'master' of gitee.com:onceday/pikascript 2022-06-04 22:13:20 +08:00
OnceDay
2fb387c7f3 Merge branch 'master' of gitee.com:onceday/pikascript 2022-06-04 22:10:45 +08:00
pikastech
905c33e131 support platformGetTick for Time() 2022-06-04 16:28:36 +08:00
pikastech
a27f974fb9 Merge branch 'dev' 2022-06-04 15:20:14 +08:00
onceday
130deafa01 support unix-time and utc-time with gmtime,localtime,mktime,asctime,ctime,time and so on. 2022-06-04 14:30:15 +08:00
purewind7
f1209ead44 add some methods for string 2022-06-02 20:26:35 +08:00
pikastech
b20d4f6e99 getObjectItem() tested ok 2022-06-02 17:22:14 +08:00
lyon
7482f84da2 Merge branch 'dev' 2022-06-02 15:46:55 +08:00
lyon
2d98f1c63e fix bug: can not run the function defind from module 2022-06-02 15:13:56 +08:00
lyon
879cc7b2e7 support startwith() and endwith() for String 2022-06-02 15:12:28 +08:00
lyon
da24a68566 support __del__() for C Module 2022-06-02 14:23:55 +08:00
lyon
64391b3333 fix memory leak when str(String('test')) 2022-06-01 15:12:35 +08:00
lyon
19a0b52ea3 use argType_isObject in not importent place 2022-06-01 14:39:59 +08:00
lyon
6f1a96ed37 test create list() by for_append 2022-06-01 11:59:12 +08:00
lyon
a97d6f3f76 support __str__ for String(), find mem leak when print(String('test')) 2022-06-01 11:46:59 +08:00
lyon
c0a925d42d support [:i] and [i:] for str and bytes 2022-05-31 20:17:26 +08:00
lyon
51540da289 fix parse error when '[' inner the string 2022-05-31 13:57:13 +08:00
lyon
e35d815bdd add test for c_buff 2022-05-30 19:27:35 +08:00
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