376 Commits

Author SHA1 Message Date
pikastech
fc9562ccd6 add modbus module
add aglie_mmodbus

add agile_modbus and LICENSE

fix warning

add serialize deserialize API
2022-09-18 23:42:10 +08:00
pikastech
295ff87e5d support 0xffffffff literal and print 2022-09-17 14:56:39 +08:00
pikastech
b4321d3a5c fix err when arg.type or arg.flag both u8 2022-09-16 14:27:10 +08:00
pikastech
d3026c7c99 support slice utf8 for str
add test for slice utf-8
2022-09-15 16:27:02 +08:00
pikastech
1019f3095f exit when error occord 2022-09-14 13:05:10 +08:00
pikastech
25bd3a9294 support def test(a:int64)-> int64: 2022-09-14 12:30:23 +08:00
pikastech
2884d51c72 support for k, v in d.items() 2022-09-11 12:12:22 +08:00
pikastech
7f193cec04 support dict.items() 2022-09-11 00:51:17 +08:00
pikastech
c70947aa6e cut VM for nano mode 2022-09-10 23:16:59 +08:00
pikastech
b48d04df3b support return dict in cmodule, release v1.10.8 2022-09-09 13:10:20 +08:00
pikastech
7ae95663f6 support multy assign, use $l[x] instead of _l[x] 2022-09-09 10:16:15 +08:00
pikastech
e85639a1e9 fix valgrind in check CLS
add pikann
2022-09-08 22:33:23 +08:00
pikastech
87a084b4d8 support super(), test ok
support `super()`
2022-09-08 19:07:21 +08:00
pikastech
27ebfb049f support input None to object 2022-09-07 14:25:25 +08:00
pikastech
af26aace9d use method from str and bytes directly 2022-09-05 20:40:19 +08:00
pikastech
c59c8953b7 support method for str
support method for str
2022-09-05 20:29:13 +08:00
pikastech
a563f7947c add arg_newObj api 2022-09-05 17:43:17 +08:00
pikastech
4486de76e9 support list slice 2022-09-05 16:31:30 +08:00
pikastech
45c70ffe79 support __contains__ for dict 2022-09-05 15:39:15 +08:00
pikastech
9623c2f8f1 skip arg num check for factory method 2022-09-04 18:54:51 +08:00
pikastech
eb92e69fd8 fix memroy leak and arg num check err 2022-09-04 18:37:47 +08:00
李昂
0e1a2d3249 !110 support default pars for py function
* var_default_vars test ok
* default with input is ok
* use self.val in CallBack/test2.py
* vm ...
2022-09-02 16:16:31 +00:00
李昂
55801b28f5 !109 default
* add callback test
* def test(a=1, b='test') for default is ok
* getNodeAttr
2022-09-02 11:25:32 +00:00
pikastech
b928950106 fix declare typo, parsing defalut 2022-09-02 14:34:47 +08:00
pikastech
fd15dc96af support vars_keys and pos_vars_keys 2022-09-02 01:17:00 +08:00
pikastech
d4a0b37958 support **keys in cmodule
support print('test', end='')
2022-09-02 00:33:50 +08:00
李昂
7d191fc2ea !108 keys
* def foo(**keys) in py is ok
* __kwargs is ok
* gening dict
* fix arg->flag init faild
* supporting **keys
2022-08-30 16:40:04 +00:00
pikastech
718b11d482 support try except in cmodule
not use try_top or try_inner

try dict nofound and try len is tested ok
2022-08-30 15:37:09 +08:00
pikastech
d890d51f94 fix s = '\\' 2022-08-29 18:34:20 +08:00
pikastech
cfbc2d98f9 fix cre.c:310:3: error: a label can only be part of a statement and a declaration is not a statement 2022-08-29 16:58:01 +08:00
pikastech
f76e456ea0 add test, examples for re, fix some mem leak 2022-08-29 16:29:03 +08:00
pikastech
6726169ad9 serilized to api
use mask in arg for serilized

support isKeyword flag for arg
2022-08-28 19:25:03 +08:00
pikastech
3d97469e25 add platform_h for socket.c 2022-08-26 17:55:17 +08:00
pikastech
7244267b68 test socket ok 2022-08-26 17:25:45 +08:00
pikastech
ecaf7ed0e9 add __platform for socket, add override 2022-08-26 16:40:12 +08:00
pikastech
2a4115722e create socket.py
support socket on linux
2022-08-25 00:54:27 +08:00
pikastech
5354708450 use hash instead of itoa in list and queue 2022-08-17 10:29:54 +08:00
pikastech
7e15e5e202 support __add__() for list 2022-08-16 17:40:11 +08:00
pikastech
d01ca77a51 support *var in py function 2022-08-16 12:21:11 +08:00
pikastech
a1b3347e5b support [\n ...] and {\n ...} 2022-08-13 00:08:21 +08:00
pikastech
7d01af7b90 support auto connect lines begin with fun(...
fix valgrind
2022-08-12 23:59:32 +08:00
pikastech
331710ace6 support void line and no new line 2022-08-12 13:52:51 +08:00
pikastech
cd6dfbbb71 unittest can run 2022-08-11 19:21:53 +08:00
pikastech
f180a15343 support %s and %r for any type arg 2022-08-11 18:32:53 +08:00
pikastech
bb54c2e719 support setattr and getattr
run tests() in cases is ok
2022-08-11 17:39:38 +08:00
pikastech
bfebd7500e add clang_format settings for vsc 2022-08-11 16:26:14 +08:00
pikastech
e0eee73209 support dir() builtin, fix str disp in list... 2022-08-10 11:49:54 +08:00
pikastech
19b7651913 fix valgrind errs 2022-08-09 23:11:23 +08:00
pikastech
a4dcc337bc support is keyword 2022-08-08 20:09:10 +08:00
pikastech
e61e4716ac add examples for unittest 2022-08-06 23:26:04 +08:00