李昂
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
e8ffa73d2a
support multiline connection
2022-06-10 09:53:54 +08:00
pikastech
0daf46c269
fix for_loop runError in module
2022-06-08 10:00:54 +08:00
pikastech
efea50d4cd
move cJSON test to example/cJSON
2022-06-07 14:14:03 +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
2f71cc25f5
add test for possible parse issue
2022-06-06 11:35:07 +08:00
pikastech
9ad033123d
fix string literal
2022-06-06 09:44:05 +08:00
lyon
19a0b52ea3
use argType_isObject in not importent place
2022-06-01 14:39:59 +08:00
lyon
c0a925d42d
support [:i] and [i:] for str and bytes
2022-05-31 20:17:26 +08:00
lyon
a971b6da37
add test to parse mpy demo
2022-05-31 16:04:46 +08:00
lyon
51540da289
fix parse error when '[' inner the string
2022-05-31 13:57:13 +08:00
lyon
b42798c6c6
set syntex maximal as default
2022-05-30 15:23:20 +08:00
lyon
a3096e9266
parse for slice is ok
2022-05-30 13:48:49 +08:00
lyon
9ab1c55564
parse for slice is ok
2022-05-30 13:40:50 +08:00
lyon
74908fa94c
fix lexer token index error
2022-05-27 15:42:58 +08:00
lyon
ffe8e85db9
use __slice__ to call __get__ indirectly
2022-05-26 17:03:58 +08:00
lyon
dad0a82b3a
support Tab
2022-05-26 16:14:11 +08:00
lyon
380c8c295e
add parse-test for 0b[][]
2022-05-25 17:26:07 +08:00
lyon
65e69674ba
add test case of ASM for bytes[]
2022-05-22 08:49:14 +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
2ed1750469
add IMP ins
2022-05-01 12:15:39 +08:00
lyon
4cad22ebde
parse 'import' as operator
2022-05-01 09:41:50 +08:00
lyon
b422318168
cancel (char*) in test
2022-04-30 21:17:19 +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
652962c4c3
use ... insetad of pass in PikaStdLib.pyi
2022-04-28 15:53:09 +08:00
lyon
a2d18c2d42
add compile-test.cpp
2022-04-27 19:19:14 +08:00
lyon
5ff34bc7d8
fix parse error about [ a = 'num=' ]
2022-04-22 23:43:06 +08:00
lyon1998
f167445b1f
add test for from _ import _ as _
2022-04-21 11:38:12 +08:00
lyon1998
f03208c530
support from import
2022-04-21 11:33:58 +08:00
lyon1998
0c130716bd
add BTY ins to support bytes iteral
2022-04-20 13:21:59 +08:00
lyon1998
f6f38bdb73
fix typo of list_enable and dict_enable
2022-04-14 16:37:34 +08:00
lyon1998
eae58359f1
set enable builtin list as default
2022-04-14 15:58:24 +08:00
lyon1998
920bd7a16a
fix parser
2022-04-14 15:12:57 +08:00
lyon1998
fc149a476d
get args in LST is ok
2022-04-13 20:19:52 +08:00
lyon1998
b42c8c1e6a
parse for a = [1, 2, 3] is ok
2022-04-13 19:36:08 +08:00
lyon1998
f438446313
support navite constructor method
2022-04-04 15:16:27 +08:00
lyon1998
ab8c177e00
fixed the '-3-3' bug
2022-04-02 23:32:59 +08:00
lyon1998
c232e8d3fc
enhance parser_test
2022-04-02 22:39:43 +08:00
lyon1998
9e9567dd42
fix '-3+3' error
2022-04-02 22:37:41 +08:00
lyon1998
6152c96edf
update parse-test
2022-04-02 21:43:32 +08:00
lyon1998
9dea4765fd
reconnize '-' as operator always
2022-04-02 15:48:44 +08:00
lyon1998
85f5265f98
need method for token as unit
2022-04-02 01:54:29 +08:00
lyon1998
dc42b5bc4d
solving unused stack args
2022-03-31 20:32:33 +08:00
lyon1998
632b50ad52
support self_operation
2022-03-31 15:33:43 +08:00
lyon1998
0fa4a6a804
self operation ok
2022-03-31 15:29:23 +08:00
lyon1998
1a14c82441
fix bug of parser
2022-03-31 14:33:56 +08:00
lyon1998
6e7961d6bb
support multiline comment
2022-03-31 13:36:44 +08:00
lyon1998
26942923bf
use static stack instead of link stack
2022-03-30 00:27:04 +08:00
lyon1998
6e7ffdade1
still faild in pikaMain class_def test
2022-03-29 18:02:55 +08:00