212 Commits

Author SHA1 Message Date
李昂
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
8889671586 push binascii to package 2022-07-14 10:59:51 +08:00
李昂
b354948c40 !51 Support bind .pyi from other *.py expect main.py
* Support bind .pyi from other *.py expect main.py
* update rust
* fix suffix format
* fix name case
* supporting import pyi from other py
* supporting import pyi from other py
2022-07-13 08:29:42 +00: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
pikastech
6d4ac36199 support class method 2022-07-08 18:00:46 +08:00
李昂
b463e812bf !42 Support PikaCV, can read data from Jpeg and convert to rgb888/rgb565
* add pikaCV-test.cpp
* read(Image) and convert to RGB565 is tested ok
* transfer can return res, but not assert
* format tjpgd
* add test for PikaCV
* add assert for newContent
* restore assets
* restore PikaCV.pyi
* restore PikaCV
* restore uint16_t
* add jpeg_test.py
* move ADC, GPIO, RGB ... to Device
* add jd_decomp
* convert_JPEGtoREG888 is not ok
* connecting tjpegdec
* Converter.toRGB565() .toRGB888() .toGRay() eachother is ok
* support Gray
* add PikaCV_Image, PikaCV_ImageFormat
* add classes for PikaCV
* add PikaCV
2022-07-08 09:33:53 +00:00
lyon
1bd3b367f4 fix str(None) return other string 2022-07-06 15:13:23 +08:00
lyon
ed7eef878d add return Null str test 2022-07-06 10:54:04 +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
李昂
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
pikastech
38e31ae049 support classpar for python class 2022-07-01 09:12:47 +08:00
pikastech
8aaf317689 fix print normal object 2022-06-30 17:33:06 +08:00
pikastech
944503cd23 support return val from type() 2022-06-30 16:10:38 +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
36e8348c18 add version.h, ready to release v1.8.8 2022-06-27 09:48:43 +08:00
pikastech
1630664996 fix ~-1 != 0 2022-06-26 22:26:38 +08:00
李昂
b20b5f1bb5 !37 support <try> <except> <raise> keywords, not support parameter yet
* restore __pika_ooc.h
* raise in cmodule and py function is ok
* add trydef1.py
* add PIKA_ASSERT_ENABLE config, add try_info
2022-06-26 07:30:52 +00: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
pikastech
1087ed0674 support split() for String Class 2022-06-21 17:42:03 +08:00
李昂
7936348820 !33 support class parameters
* update package
* class_par is tested ok
2022-06-21 09:16:38 +00:00
李昂
e31135ba90 !31 fix run context problem when call the callback function
* remove __pikaMain from StdTask
* support run arg from other context(file name space)
* format
* use def_context in callback
* supporting def_context, not ok
2022-06-21 03:29:29 +00:00
李昂
b0840b9869 !30 add pks_eventLister and support event signal
* format
* use inner_bytecode instead of obj_run
* add asserts for event-test
* test event for PikaStdDevice is ok
* adding event fealure
* fetch PikaStdDevice_Time to port linux
2022-06-17 05:22:47 +00:00
李昂
b5da16e285 !29 add pika_lua package
* fix Dockerfile
* add liblua5.3 to package
* support pika_lua.evalLine()
* create pika_lua package
* install and include lua5.3
* add lua5.4 lib
2022-06-16 02:52:07 +00:00
pikastech
d72bd7cacc add mem_lack check for task_test 2022-06-16 00:49:48 +08:00
pikastech
2c4bbfafad fix format syntax error when ''%method() 2022-06-15 15:45:44 +08:00
pikastech
c02ffb51ab fix double __init__ when 'import as' 2022-06-15 14:49:17 +08:00
李昂
5349a56656 !26 run the __init__ when init the meta obj
* run __init__ when init the meta_obj
* clean dead code
2022-06-15 06:20:34 +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
李昂
b02672b130 !21 Support variable pars for print()
* update pre-compiler
* test passed for variable pars of print()
* variable pars is tested ok for print()
* skip arg_num check for variable
* support *val in the preCompiler
* add file
* Merge branch 'dev' of https://gitee.com/lyon1998/pikascript into dev
* fix warning
* both update ByteCodeGen
* use super instead of parent
* create PikaList C list struct
* use args inner the PikaStdData.List()
* use PikaDict in PikaStdData.Dict()
* support dict in c
* support dict in c
* clean Tinyobj
2022-06-11 14:56:51 +00:00
pikastech
65e6899cc2 support '\n', '\r', '\t' for <STR> instruction 2022-06-09 17:01:55 +08:00
pikastech
5d11b14b09 support builtin function for imported module 2022-06-08 11:29:20 +08:00
pikastech
0daf46c269 fix for_loop runError in module 2022-06-08 10:00:54 +08:00
pikastech
bce7f495c6 use analize_top_package() 2022-06-07 09:27:15 +08:00
pikastech
93f7113139 restore launch.json 2022-06-06 17:00:36 +08:00
pikastech
f888b32e92 fix invalid access when method_arg is void 2022-06-06 14:45:37 +08:00
pikastech
d78d8fa5a9 fix error info of factory in cmodule 2022-06-06 10:09:12 +08:00
pikastech
9ad033123d fix string literal 2022-06-06 09:44:05 +08:00
pikastech
30209aff77 support return Object in CModule 2022-06-06 09:13:27 +08:00
pikastech
604711f708 parse(), print() for cJSON is ok 2022-06-02 16:51:12 +08:00
lyon
2d98f1c63e fix bug: can not run the function defind from module 2022-06-02 15:13:56 +08:00
lyon
c0a925d42d support [:i] and [i:] for str and bytes 2022-05-31 20:17:26 +08:00
lyon
51540da289 fix parse error when '[' inner the string 2022-05-31 13:57:13 +08:00
lyon
9ab1c55564 parse for slice is ok 2022-05-30 13:40:50 +08:00