22 Commits

Author SHA1 Message Date
pikastech
ab795de30c pikaVM_runFile change to interpreter mode 2022-06-23 15:37:04 +08:00
pikastech
868b028a66 support <None> and <if res == None> 2022-06-22 15:39: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
pikastech
da00653707 test cjson in module ok 2022-06-08 10:04:57 +08:00
pikastech
21cf379456 solve '\r\n' in PikaVM_runFile() 2022-06-07 17:39:55 +08:00
pikastech
70f40df524 add test file, for loop in module not ok 2022-06-07 17:34:19 +08:00
pikastech
4cf7ec8c64 fix core dump when method_returnObj faild 2022-06-07 14:47:25 +08:00
pikastech
1c75bd0c19 add test6 for cJSON 2022-06-07 14:31:37 +08:00
pikastech
efea50d4cd move cJSON test to example/cJSON 2022-06-07 14:14:03 +08:00
pikastech
220126e39c test utf8-chinese cjson 2022-06-07 14:02:09 +08:00
pikastech
d4026f882b add overflow check for bytecode gen
use heap to avoid some overflow in parser
2022-06-07 13:15:33 +08:00
pikastech
6b053c7a8c add test3.py 2022-06-07 11:52:16 +08:00
pikastech
05fb31c9f2 chek overflow of LINE BUFF, support \" and \' 2022-06-07 11:16:02 +08:00
pikastech
349422afe3 move Parse as the constructor 2022-06-06 14:51:23 +08:00
pikastech
607591d78c construct cjson is test ok 2022-06-06 14:20:04 +08:00
pikastech
e5cfca57cc create item test ok 2022-06-06 13:46:25 +08:00
pikastech
d04b07b517 get val is ok 2022-06-06 10:34:34 +08:00
pikastech
fc5b89eb7e get Next is ok 2022-06-06 10:25:57 +08:00
pikastech
60389c541d rename cJSON to pika_cjson 2022-06-02 17:47:53 +08:00
pikastech
b20d4f6e99 getObjectItem() tested ok 2022-06-02 17:22:14 +08:00
pikastech
604711f708 parse(), print() for cJSON is ok 2022-06-02 16:51:12 +08:00
pikastech
b016924634 add cJSON-test.cpp 2022-06-02 16:51:12 +08:00