185 Commits

Author SHA1 Message Date
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
lyon
652962c4c3 use ... insetad of pass in PikaStdLib.pyi 2022-04-28 15:53:09 +08:00
lyon
a2d18c2d42 add compile-test.cpp 2022-04-27 19:19:14 +08:00
lyon
5ff34bc7d8 fix parse error about [ a = 'num=' ] 2022-04-22 23:43:06 +08:00
lyon1998
f167445b1f add test for from _ import _ as _ 2022-04-21 11:38:12 +08:00
lyon1998
f03208c530 support from import 2022-04-21 11:33:58 +08:00
lyon1998
0c130716bd add BTY ins to support bytes iteral 2022-04-20 13:21:59 +08:00
lyon1998
f6f38bdb73 fix typo of list_enable and dict_enable 2022-04-14 16:37:34 +08:00
lyon1998
eae58359f1 set enable builtin list as default 2022-04-14 15:58:24 +08:00
lyon1998
920bd7a16a fix parser 2022-04-14 15:12:57 +08:00
lyon1998
fc149a476d get args in LST is ok 2022-04-13 20:19:52 +08:00
lyon1998
b42c8c1e6a parse for a = [1, 2, 3] is ok 2022-04-13 19:36:08 +08:00
lyon1998
f438446313 support navite constructor method 2022-04-04 15:16:27 +08:00
lyon1998
ab8c177e00 fixed the '-3-3' bug 2022-04-02 23:32:59 +08:00
lyon1998
c232e8d3fc enhance parser_test 2022-04-02 22:39:43 +08:00
lyon1998
9e9567dd42 fix '-3+3' error 2022-04-02 22:37:41 +08:00
lyon1998
6152c96edf update parse-test 2022-04-02 21:43:32 +08:00
lyon1998
9dea4765fd reconnize '-' as operator always 2022-04-02 15:48:44 +08:00
lyon1998
85f5265f98 need method for token as unit 2022-04-02 01:54:29 +08:00
lyon1998
dc42b5bc4d solving unused stack args 2022-03-31 20:32:33 +08:00
lyon1998
632b50ad52 support self_operation 2022-03-31 15:33:43 +08:00
lyon1998
0fa4a6a804 self operation ok 2022-03-31 15:29:23 +08:00
lyon1998
1a14c82441 fix bug of parser 2022-03-31 14:33:56 +08:00
lyon1998
6e7961d6bb support multiline comment 2022-03-31 13:36:44 +08:00
lyon1998
26942923bf use static stack instead of link stack 2022-03-30 00:27:04 +08:00
lyon1998
6e7ffdade1 still faild in pikaMain class_def test 2022-03-29 18:02:55 +08:00
lyon1998
1b46cd868c ignore import and from 2022-03-29 15:04:53 +08:00
lyon1998
39022bc0aa fix void line in the middle of python script 2022-03-27 16:39:20 +08:00
lyon1998
dae8f38d23 add ByteArray to StdData 2022-03-25 21:18:54 +08:00
lyon1998
1f37d0872c fix parser end 2022-03-25 20:21:29 +08:00
lyon1998
ed489e2070 fix '\r' err in pikaRunAsm 2022-03-24 13:55:02 +08:00
lyon1998
b254dd02f9 use bytecode in stdlib 2022-03-18 23:00:51 +08:00
lyon1998
91cbd117c6 release pikaCompile API 2022-03-18 18:25:44 +08:00
lyon1998
16a1f3c4b8 change multiline to file arg sort 2022-03-18 16:12:04 +08:00
lyon1998
6b4e857b76 write to file with user path 2022-03-18 16:09:31 +08:00
lyon1998
b86f3f46cd parse test for snake_demo is ok 2022-03-18 15:46:13 +08:00
lyon1998
28ce70c770 write to byteocode.bin is ok 2022-03-18 15:32:01 +08:00
lyon1998
ac511d6f34 use bytecode in stdtask for all 2022-03-17 17:28:32 +08:00