222 Commits

Author SHA1 Message Date
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
lyon1998
494f61a562 bytecodeFrame print as array is ok 2022-03-17 15:43:26 +08:00
lyon1998
c9ec4ba588 print const_pool as array is ok 2022-03-17 14:11:24 +08:00
lyon1998
1df5292130 use printwithconst in bytecode_print 2022-03-16 23:21:55 +08:00
lyon1998
0ebd08e245 add asm to bytecode print 2022-03-16 14:46:23 +08:00
lyon1998
12ed23ddd7 use exist const, fix RET parse format 2022-03-16 14:40:51 +08:00
lyon1998
842fc67f23 run byteCodeFrame without jmp is ok 2022-03-13 16:59:01 +08:00
lyon1998
d83265d345 byteCodePrint is ok 2022-03-13 13:04:07 +08:00
lyon1998
eb35a8c536 byteCodeFrame_print is ok 2022-03-13 13:00:45 +08:00
lyon1998
e73a8d2950 append bytecodeUnit when append byteCodeFrame tested ok 2022-03-13 12:54:44 +08:00
lyon1998
87c30b2cb3 test ins_unit_print ok 2022-03-13 10:24:18 +08:00
lyon1998
7e832dc037 ByteCodeFrame_appendFromAsm for ConstPool is ok 2022-03-12 22:42:25 +08:00
lyon1998
b3d6206c45 get byteCodeUnit and ConstPoolBuff from Asm is ok 2022-03-11 22:50:36 +08:00
lyon
a0cad21ed9 fix -a != 0-a 2022-03-08 12:29:30 +08:00