288 Commits

Author SHA1 Message Date
lyon1998
7bac0becc9 use arg_foreach in poptoken 2022-04-02 23:28:02 +08:00
lyon1998
9e9567dd42 fix '-3+3' error 2022-04-02 22:37:41 +08:00
lyon1998
86316bf5d3 add spped for VMState_getInputArgNum 2022-04-02 16:35:19 +08:00
lyon1998
f05931d320 check inpput arg num when call function 2022-04-02 16:30:36 +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
1a14c82441 fix bug of parser 2022-03-31 14:33:56 +08:00
lyon1998
26942923bf use static stack instead of link stack 2022-03-30 00:27:04 +08:00
lyon1998
8116f4f48b use '_' to replace 'top' in stack 2022-03-29 22:15:14 +08:00
lyon1998
6e7ffdade1 still faild in pikaMain class_def test 2022-03-29 18:02:55 +08:00
lyon1998
a10e0f9dec support pop push arg stack 2022-03-29 16:59:39 +08:00
lyon1998
53c5535c12 try to use one queue, but faild 2022-03-29 16:41:45 +08:00
lyon1998
f6da565249 print ins of all line 2022-03-28 22:32:34 +08:00
lyon1998
39022bc0aa fix void line in the middle of python script 2022-03-27 16:39:20 +08:00
lyon1998
1f37d0872c fix parser end 2022-03-25 20:21:29 +08:00
lyon1998
12ed23ddd7 use exist const, fix RET parse format 2022-03-16 14:40:51 +08:00
lyon1998
a868117fbc save bytecode to heap in the first obj_run is ok 2022-03-16 13:42:43 +08:00
lyon1998
5a97c8cb96 use byteCode_frame in VMState 2022-03-15 12:31:05 +08:00
lyon1998
5d1b83a417 solve bug when jum to the end 2022-03-14 18:46:57 +08:00
lyon1998
ec4b196195 fix warning 2022-03-13 17:37:50 +08:00
lyon1998
842fc67f23 run byteCodeFrame without jmp is ok 2022-03-13 16:59:01 +08:00
lyon1998
87c30b2cb3 test ins_unit_print ok 2022-03-13 10:24:18 +08:00
lyon
716abf833c not use buffs in getNextLine 2022-03-10 18:18:44 +08:00
lyon
0c67a8dafe use memmov ins poptoken 2022-03-09 21:48:58 +08:00
lyon
ac4247e5fd use sys_malloc and fix a mem bug 2022-03-09 14:01:35 +08:00
lyon
db8094d9a5 class_def is not passed 2022-03-09 13:22:55 +08:00
lyon
60dd236d9b use readdocs instead of yuque 2022-03-06 01:40:49 +08:00
lyon
03f5b2cff3 support class def and self 2022-03-02 15:03:11 +08:00
lyon
195bf97fac call global fun tested ok inner class fun 2022-03-02 01:55:11 +08:00
lyon
849b8002b6 class def is nearly ok, pure fun is ok, connot call main fun 2022-03-01 22:45:59 +08:00
lyon
5ef923f3e3 class with attribute tested ok 2022-03-01 20:52:50 +08:00
lyon
78050c35b3 no mem error in NEW obj 2022-03-01 19:13:39 +08:00
lyon
34a0fbbe41 test NEW instruct is ok 2022-03-01 16:13:35 +08:00
lyon
d10c5dbc97 RAS tested ok 2022-03-01 15:01:22 +08:00
lyon
faed85d22e print('test,test') is ok 2022-02-21 17:49:54 +08:00
lyon
12279fa8bc parser.add_a_b is ok 2022-02-21 17:40:26 +08:00
lyon
b66aaf20a9 use parse_state to solve parse process 2022-02-21 15:13:47 +08:00
lyon1998
f35b47dfa0 arrange the parse_proprocess 2022-02-14 18:50:08 +08:00
lyon
154ccd8e90 fix bug in remove_annontaion when occor "#" 2022-02-14 03:18:21 +08:00
lyon
797607bccf fix queue overpop 2022-01-26 08:38:02 +08:00
lyon
76075564a2 use simu queue again, can not call 2 fun in one line 2022-01-26 00:31:59 +08:00
lyon
8a66d49bd3 use vsnprintf in __plt_sprintf, and add buff cfg 2022-01-25 13:20:12 +08:00
lyon
325a11d3e7 remove argType at the end of content 2022-01-25 08:39:10 +08:00
lyon
b182e4af31 __get__ string is ok 2022-01-18 21:55:08 +08:00
lyon
455ba7a565 parse a[b] = c ok 2022-01-17 23:36:36 +08:00
lyon
3bdf63379e parse '[' mem check pased 2022-01-16 00:41:59 +08:00
lyon
4d32223746 add some method for token 2022-01-15 22:58:36 +08:00
lyon
3d556d6b06 support \n \r \t in print() 2022-01-10 21:49:52 +08:00
lyon
c32322a05a support '+' for string 2022-01-08 23:40:10 +08:00
lyon
939ae72bef supprot for_int_dict 2022-01-06 11:13:43 +08:00