李昂
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
lyon1998
842fc67f23
run byteCodeFrame without jmp is ok
2022-03-13 16:59:01 +08:00
lyon1998
e73a8d2950
append bytecodeUnit when append byteCodeFrame tested ok
2022-03-13 12:54:44 +08:00
lyon1998
8d5ba40b14
instructArray print is ok
2022-03-13 12:01:25 +08:00
lyon1998
87c30b2cb3
test ins_unit_print ok
2022-03-13 10:24:18 +08:00
lyon1998
7c989a16ca
constPool_print is ok
2022-03-12 22:06:38 +08:00
lyon1998
8d234de6ba
constPool append tools is ok
2022-03-12 21:55:11 +08:00
lyon1998
b3d6206c45
get byteCodeUnit and ConstPoolBuff from Asm is ok
2022-03-11 22:50:36 +08:00
lyon1998
a4cd654b45
tested ok byteCode_getTotleSize
2022-03-11 17:08:12 +08:00
lyon
716abf833c
not use buffs in getNextLine
2022-03-10 18:18:44 +08:00
lyon
624ee16b59
setData and getData in byteCodeUnit is ok
2022-03-10 17:28:29 +08:00
lyon
b6e323e8fa
add byteCodeUnit and tested set/get
2022-03-10 17:08:15 +08:00
lyon
a0cad21ed9
fix -a != 0-a
2022-03-08 12:29:30 +08:00
lyon
fd26a79fc8
rename TYPE_X to ARG_TYPE_X
2022-03-02 10:34:33 +08:00
lyon
7692d38928
improve test
2022-03-01 20:55:06 +08:00