91 Commits

Author SHA1 Message Date
Lyon
98f052e5b5 support load module_list.txt to voerride default one 2023-10-03 12:48:55 +08:00
Lyon
8f059ae05e support pack modules inner requestment.txt 2023-10-03 03:00:06 +08:00
xie-jc
6c84b4d3a4 预编译器支持--break-point选型计算字节码pc 2023-09-29 22:32:24 +08:00
Lyon
9178ba9789 release comprehension and optimize zlib stack usage 2023-07-27 18:01:18 +08:00
pikastech
be95f6bf61 clean project 2023-05-23 16:17:41 +08:00
pikastech
6d8a7b9e7e _ 2023-05-22 19:54:26 +08:00
pikastech
8be63fdd94 fix CI 2023-05-22 19:07:01 +08:00
pikastech
e536665ff6 add builtin exception for builtins.pyi 2023-05-22 15:19:59 +08:00
pikastech
794392244e fix bytecodegen 2023-05-22 10:02:16 +08:00
lyon
0fb65efa43 fix msc, add builtins to msc default 2023-05-21 23:09:36 +08:00
lyon
2de9c76609 fix CI 2023-05-14 23:31:34 +08:00
pikastech
f53f6571bd support 1M precompiler file buff 2023-04-19 18:42:07 +08:00
pikastech
fe3dff9b3d support obj_newTuple/List helper function 2023-03-30 16:28:42 +08:00
pikastech
d8405c4f1a add doc backend
support file2doc, can draw function

use HELPER_MACRO in parser_test

fixing dostring parse

fix docstring

generate md with class and function ok

succeed to generate docstring to markdown

generate API doc ok

support --docgen and --docgen -o arg for compiler

update msc
2023-03-19 21:10:38 +08:00
lyon
8ad1427f51 fix parse err, open assert on rust-msc-
add test about while data[:]

add test for list_list slice

release cross build
2023-03-08 20:54:42 +08:00
lyon
c2d6c7d8ed fix bytecode gen 2023-02-23 18:37:11 +08:00
lyon
dacf1584e4 fix cross build 2023-02-14 11:37:28 +08:00
lyon
8813da426c add pika_studio 2022-12-01 18:38:50 +08:00
lyon
82b6f2ab39 add multi file when pre-compile test ok 2022-12-01 18:11:58 +08:00
lyon
677472b260 fix --add-file loss some bytes 2022-12-01 17:50:27 +08:00
lyon
546d5c526a load file from py.a, loss some bytes at head 2022-12-01 16:11:25 +08:00
lyon
16f3e8f4eb support --add-file for precompiler 2022-12-01 13:07:24 +08:00
lyon
df65e2def9 support RES on pikaCompiler 2022-10-24 10:14:12 +08:00
lyon
f507182d3f fix ./msc xxx -o yyy 2022-10-24 00:27:11 +08:00
lyon
838ae65968 support pars for pikaCompiler 2022-10-24 00:10:28 +08:00
pikastech
f0828794bc fix codegen 2022-09-30 15:26:18 +08:00
pikastech
c59c8953b7 support method for str
support method for str
2022-09-05 20:29:13 +08:00
李昂
60c2b95a0e
update tools/pikaByteCodeGen/pika_config.h.
Signed-off-by: 李昂 <liang6516@outlook.com>
2022-08-18 08:12:34 +00: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
0921ee69c4 simplify the byteCodeGen main.c 2022-07-11 23:17:25 +08:00
pikastech
a31128f934 fix bytecodegen 2022-06-30 13:11:01 +08:00
pikastech
b65680672e keep the keep 2022-06-26 22:33:21 +08:00
pikastech
1630664996 fix ~-1 != 0 2022-06-26 22:26:38 +08:00
pikastech
64573955d1 add keep 2022-06-26 15:58:43 +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
1473da29ec keep folder 2022-06-24 19:51:34 +08:00
pikastech
865290df74 support len() for object and __len__().
* list, dict, dict_keys is ok
2022-06-24 18:18:06 +08:00
pikastech
410071a200 keep folder 2022-06-24 16:34:27 +08:00
pikastech
f43e0227a1 remove lib and api of bytecodegen 2022-06-24 16:23:44 +08:00
pikastech
3e371e9e57 fix a[1] = 1 not work inner function() 2022-06-24 16:08:27 +08:00
李昂
e6a33c058e !34 Support __str__() for PikaStdData.List(),PikaStdData.Dict(),PikaStdData.dict_keys(),
* print list as '[x,x,x]'
* support __str__ for Dict
* support __str__ for dict_keys()
2022-06-24 03:30:56 +00:00
pikastech
a3e318efd5 update fix tools/pikascript/pikascript-api 2022-06-23 17:53:53 +08:00
pikastech
ff16099da5 test iter() for keys is ok 2022-06-23 17:46:50 +08:00
pikastech
fca634f3cc use -> List 2022-06-21 17:49:18 +08:00
pikastech
1087ed0674 support split() for String Class 2022-06-21 17:42:03 +08: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
pikastech
f30dd75da1 fix mem_lack for StdData_List 2022-06-16 01:18:11 +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
pikastech
77f1879180 add id() built-in 2022-06-14 12:06:56 +08:00