12 Commits

Author SHA1 Message Date
pikastech
944503cd23 support return val from type() 2022-06-30 16:10:38 +08:00
pikastech
3e371e9e57 fix a[1] = 1 not work inner function() 2022-06-24 16:08:27 +08:00
pikastech
77f1879180 add id() built-in 2022-06-14 12:06:56 +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
a87da14c7d move print() and print_no_end from BaseObj to SysObj 2022-06-10 12:04:06 +08:00
lyon
ffe8e85db9 use __slice__ to call __get__ indirectly 2022-05-26 17:03:58 +08:00
lyon
6b63c13bef support bytes() built-in 2022-05-26 15:46:34 +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
652962c4c3 use ... insetad of pass in PikaStdLib.pyi 2022-04-28 15:53:09 +08:00
lyon
8df290da3f use pyi instaed of py for C moudle 2022-04-28 11:47:37 +08:00