200 Commits

Author SHA1 Message Date
李昂
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
lyon
137b625db8 supporting slice, test pase, function not ok 2022-05-29 14:37:59 +08:00
lyon
43caaac810 add Class utils for stdData, add int_to_bytes() 2022-05-27 17:09:16 +08:00
lyon
74908fa94c fix lexer token index error 2022-05-27 15:42:58 +08:00
lyon
2fa39bb973 check overflow for VM stack 2022-05-27 12:53:27 +08:00
lyon
9d871387dc use Maker to build modules 2022-05-06 18:50:11 +08:00
lyon
61dc2930be const_pool and dynamic_pool tested ok 2022-05-02 19:49:47 +08:00
lyon
44e7f0c738 fix all valgrind mem error 2022-05-02 17:56:38 +08:00
lyon
3fd45abe68 not use 'index' in LibObj 2022-05-01 21:07:41 +08:00
lyon
6d5a7b3aaf compile_link_import ok 2022-05-01 17:08:24 +08:00
lyon
4cad22ebde parse 'import' as operator 2022-05-01 09:41:50 +08:00
lyon
19f0643921 fix clang warning 2022-04-29 12:58:46 +08:00
lyon
a6384c45c8 move main.py to test/python/main.py 2022-04-29 01:17:39 +08:00