130 Commits

Author SHA1 Message Date
pikastech
d890d51f94 fix s = '\\' 2022-08-29 18:34:20 +08:00
pikastech
1c0f6b50b1 support science_num 2022-08-18 22:44:03 +08:00
pikastech
5354708450 use hash instead of itoa in list and queue 2022-08-17 10:29:54 +08:00
pikastech
7e15e5e202 support __add__() for list 2022-08-16 17:40:11 +08:00
pikastech
d01ca77a51 support *var in py function 2022-08-16 12:21:11 +08:00
pikastech
7d01af7b90 support auto connect lines begin with fun(...
fix valgrind
2022-08-12 23:59:32 +08:00
pikastech
c07c0454bd fix core dump in [<undefined>, 2, 3] 2022-08-09 22:14:15 +08:00
pikastech
7daa4b93c5 support assert keyword 2022-08-09 18:27:46 +08:00
pikastech
be07caab14 format
format parser

format parser and support 'in' for string
2022-08-09 12:57:00 +08:00
pikastech
a4dcc337bc support is keyword 2022-08-08 20:09:10 +08:00
pikastech
7f77407550 support del keyword, use v1.10 version name 2022-08-04 00:25:32 +08:00
pikastech
6be2bc41b6 use pure_stack_arg 2022-07-31 17:18:29 +08:00
pikastech
6c6304a896 add type check for operand
support int**float (need PikaMath enabled)
2022-07-30 11:59:44 +08:00
李昂
e7e501ab73 !56 Support tuple literal
* Merge branch 'master' into tuple
* sue SyntaxItemList
* cut the parser
* update preCompiler
* not use tiny_obj in stdlib
* use BUILTIN_STRUCT_ENABLE for list, dict, tuple
* add PikaStdData.Tuple()
* !51 Support bind .pyi from other *.py expect main.py
* fix overflow issue
* fix overflow issue and simplification code
* update PikaCV_Image.c.
2022-07-14 08:36:02 +00: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
lyon
49589ed009 add equ test for bytes 2022-05-24 15:08:46 +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
b422318168 cancel (char*) in test 2022-04-30 21:17:19 +08:00
lyon
882421ae5b add PikaLib class to gen '*.a' 2022-04-29 23:56:54 +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
15aef30a5f use obj_getObj/getSuperObj 2022-04-27 22:14:56 +08:00
lyon
d463eee7ef format 2022-04-26 14:04:19 +08:00
lyon
cd82162e6e all tests passed 2022-04-26 12:15:07 +08:00
lyon
df0db6a390 combine object and ref object 2022-04-26 10:43:50 +08:00
lyon
e03af6c5a7 rename __POINTER_ to REF_OBJECT 2022-04-25 14:43:44 +08:00
lyon1998
69730efea4 printBytes is ok 2022-04-20 14:00:05 +08:00
lyon1998
9bbb9e43cd support '\x33' for str 2022-04-19 19:16:53 +08:00
lyon1998
2fae86de32 fix error info 2022-04-03 12:55:06 +08:00
lyon1998
ab8c177e00 fixed the '-3-3' bug 2022-04-02 23:32:59 +08:00
lyon1998
7bac0becc9 use arg_foreach in poptoken 2022-04-02 23:28:02 +08:00
lyon1998
9e9567dd42 fix '-3+3' error 2022-04-02 22:37:41 +08:00
lyon1998
0e2da7bd28 type a then print a is ok 2022-04-02 17:07:35 +08:00
lyon1998
723f456f53 test ok for a = (3-4) -4 2022-04-02 15:50:31 +08:00
lyon1998
85f5265f98 need method for token as unit 2022-04-02 01:54:29 +08:00
lyon1998
abb290595f test a+=1 2022-03-31 15:36:35 +08:00
lyon1998
6e7ffdade1 still faild in pikaMain class_def test 2022-03-29 18:02:55 +08:00
lyon1998
53c5535c12 try to use one queue, but faild 2022-03-29 16:41:45 +08:00
lyon1998
28ce70c770 write to byteocode.bin is ok 2022-03-18 15:32:01 +08:00
lyon1998
4881d3f19c add output_redirect_fun for insarray and constpool 2022-03-18 13:44:40 +08:00
lyon1998
ff1c71322b update PikaStdTask to bytecode based 2022-03-17 16:47:03 +08:00
lyon1998
494f61a562 bytecodeFrame print as array is ok 2022-03-17 15:43:26 +08:00
lyon1998
12ed23ddd7 use exist const, fix RET parse format 2022-03-16 14:40:51 +08:00
lyon1998
03ad83a7d9 clear pikaVM_run_config 2022-03-14 21:24:35 +08:00
lyon1998
371ccd1c08 clear ran asm directly 2022-03-14 21:18:35 +08:00
lyon1998
66884deb78 clear run as asm 2022-03-14 21:12:32 +08:00
lyon1998
5d1b83a417 solve bug when jum to the end 2022-03-14 18:46:57 +08:00
lyon1998
48ffadf060 print error info with constPool 2022-03-14 17:48:08 +08:00
lyon1998
dddcc30b44 test for continue and break is ok 2022-03-14 12:12:04 +08:00
lyon1998
86253e9eaf use VMState_method istead of __fun 2022-03-13 19:01:34 +08:00