pikastech
1d7bcf2a39
use __getitem__ __setitem__ instead of __get__ __set__
2022-07-29 23:40:16 +08:00
pikastech
d3a9f6e226
rename pika_configparser to configparser
2022-07-20 22:06:23 +08:00
pikastech
de10086338
add arg_new<T> api
...
update version
2022-07-20 10:34:50 +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
pikastech
932fd56d14
fix test
2022-07-11 23:33:41 +08:00
pikastech
5e1f0afc5d
create LST when input tuple
2022-07-11 23:32:30 +08:00
pikastech
06a77caca9
add a[b[x]] test
2022-07-11 17:20:23 +08:00
李昂
9256a87258
!48 support a[x][y] and fun()[x]
...
* update version
* fun()[x] is ok
* a = b[x][y] parse ok
2022-07-11 08:38:10 +00:00
李昂
660a97110f
!47 not use suger to parse slice
...
* use __vm_[get/slice] for sysobj
* not use suger in slice
* parser for new slice is ok
* add SLC ins
2022-07-11 06:42:12 +00:00
李昂
76db2494a5
!46 try to support [][], not ok yeat
...
* fix typo in test
* Merge branch 'master' into slice
* adding slice to parser from suger
2022-07-11 03:14:14 +00:00
lyon
2b2745f25c
fix test range
2022-07-06 15:17:59 +08:00
lyon
1bd3b367f4
fix str(None) return other string
2022-07-06 15:13:23 +08:00
lyon
0793fafece
Support invokedeepth < 9 -> 15 >
2022-07-05 15:59:11 +08:00
李昂
4a943b479c
!41 Support chain invoke like < String('test').split() >
...
* support chain invoke ok
* add test for S(S.replace()).replace()
* parse to RUN .split
* try to support chain invoke, not ok
* can devide a chain
2022-07-05 06:23:49 +00:00
lyon
571ceb837b
rename configparser
2022-07-04 18:00:56 +08:00
李昂
81a5f0b965
!40 support configparser_read_string
...
* configparser read_string is ok
* support replace() and strip() for StdData.String()
* add file and test of configparser
2022-07-04 07:16:44 +00:00
pikastech
77c579ef18
add test for def ...
2022-07-01 11:11:53 +08:00
pikastech
5d21f7190e
[bug] fix parse faild when meet some comments
2022-07-01 11:04:33 +08:00
李昂
b669710c2c
!39 Support d = {'a':x, 'b':y, 'c':z}
...
* Support d = {'a':x, 'b':y, 'c':z}
* add parse and ins for dict literal
2022-06-30 04:10:03 +00:00
pikastech
2eb911cd1a
fix parse issue when met xx_import
2022-06-28 16:35:00 +08:00
pikastech
20b63cfa15
resotre strGetLastLine, support cut for IMPORT_EX and EXCEPTION
2022-06-27 11:29:48 +08:00
pikastech
f5f5c3aa3e
add test for parseissue2
2022-06-26 22:54:04 +08:00
pikastech
1630664996
fix ~-1 != 0
2022-06-26 22:26:38 +08:00
pikastech
3e371e9e57
fix a[1] = 1 not work inner function()
2022-06-24 16:08:27 +08:00
李昂
442e51e314
!35 support try raise the first step
...
* Merge branch 'master' into trydev
* Merge branch 'master' into trydev
* Merge branch 'master' into trydev
* Merge branch 'master' into trydev
* Merge branch 'master' into trydev
* raise in function not ok
* support except
* add GER ins
* try raise is test ok
* support default raise RuntimeError
* add except test
* jmp to skip except block after try
* add <try:> parse
2022-06-24 05:44:50 +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
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