90 Commits

Author SHA1 Message Date
lyon
f3c6fd7475 parse for in range is tested ok in parser 2022-01-09 23:37:24 +08:00
lyon
08ad5fcf82 support str '==' opeartion 2022-01-09 22:17:17 +08:00
lyon
aebfbc848d use pikaVM_runAsm instead of obj_run in next() and iter() 2022-01-04 15:55:46 +08:00
lyon
42aadd6971 fix del _lx 2022-01-04 11:24:34 +08:00
lyon
fc2e4f2287 parse for continue is ok 2021-12-29 21:10:04 +08:00
lyon
45ee8621cc parse for brk is ok 2021-12-29 21:06:56 +08:00
lyon
a70cfd82d1 fix for_for del bug 2021-12-29 10:06:48 +08:00
lyon
2bd2e2f4eb fix parse test 2021-12-29 01:27:42 +08:00
lyon
f7c0f81b56 add test from rtt, do not catch bug 2021-12-29 01:12:56 +08:00
lyon
5a983ad577 use _r[x] to replase __range[x] to save asm flash 2021-12-29 00:57:08 +08:00
lyon
feb0e9d8f7 use _l[x] instead of __list[x] to save asm flash 2021-12-29 00:55:49 +08:00
lyon
632b857a3c use multiline in parse_test 2021-12-29 00:10:25 +08:00
lyon
a1cdd62a31 for_for_range parse error in DEL __list[x] 2021-12-28 09:20:04 +08:00
lyon
89ff3a075d transfer __range_a[x] by ASM 2021-12-28 00:49:13 +08:00
lyon
0e51c7ffef run __list[x].__next__ directly to init __list[x] obj 2021-12-28 00:27:43 +08:00
lyon
879116dd5f add DEL __listx 2021-12-27 21:29:35 +08:00
lyon
280ca09539 update parse-test 2021-12-27 21:27:07 +08:00
lyon
14a5064744 test for 'for_range' not pass 2021-12-25 18:48:23 +08:00
lyon
94ff412dc9 check range when parse 'for loop' 2021-12-25 14:19:20 +08:00
lyon
10662a9a90 not GC in 'for' loop 2021-12-24 13:00:39 +08:00
lyon
aca395ac3b debug iter(__list0) for parser 2021-12-23 10:39:47 +08:00
lyon
e5ff0de3be add PGC instrument after "for loop" 2021-12-23 10:26:51 +08:00
lyon
9e345fd0c1 support get __list by stmt 2021-12-23 10:09:00 +08:00
lyon
f7eb334de5 add for parser support 2021-12-22 22:01:31 +08:00
lyon
961f0ce300 remove __parseExtern, parse for as while 2021-12-22 21:02:59 +08:00
lyon
029dad721d supportting desuger 'for' to 'while' 2021-12-21 00:04:39 +08:00
lyon
38244dfe0b debug test for else in else 2021-12-14 22:31:28 +08:00
lyon
484b6a1860 support elif and else 2021-12-14 22:17:37 +08:00
lyon
08f227ffbb support annotation for obj_run 2021-12-10 20:09:11 +08:00
lyon
2f51367a59 check syntax error about branckes 2021-12-10 11:41:33 +08:00
lyon
7c9fafafc4 suppport or and not 2021-11-28 17:26:17 +08:00
lyon
aa0512bd13 test parse or is ok 2021-11-28 17:06:55 +08:00
lyon
d3889fdb25 use lexer to get clean cmd 2021-11-28 17:02:27 +08:00
lyon
9304bd0153 test <+ and ~ parse 2021-11-28 11:51:41 +08:00
lyon
1371aa98c1 merge float | float together 2021-11-27 21:49:38 +08:00
lyon
31e45abe64 debug += for parser 2021-11-27 21:22:19 +08:00
lyon
5bf39388c0 more operator in parser is ok 2021-11-27 21:11:09 +08:00
lyon
1b6994e2fb devide stmt by str is ok 2021-11-27 20:49:08 +08:00
lyon
b8c33335bd rename api of Parser 2021-11-27 20:21:04 +08:00
lyon
825344910f use lexer to get operator 2021-11-27 20:11:35 +08:00
lyon
88009a8713 use lexer in stmt_type_match 2021-11-27 18:05:32 +08:00
lyon
b24dbc50a6 string is ok 2021-11-27 17:26:06 +08:00
lyon
e33cc48295 add assert 2021-11-27 12:03:56 +08:00
lyon
9232ca84dc add and and symbel tokens 2021-11-27 12:02:26 +08:00
lyon
7c5b460816 , is ok 2021-11-27 11:58:15 +08:00
lyon
dd2f4fe27f use tokens_arg instead of buffs to save memory 2021-11-27 10:29:47 +08:00
lyon
7f9ea0f6ae num lit and sym is ok 2021-11-27 01:13:24 +08:00
lyon
1dedae7101 add symbel not ok 2021-11-27 00:30:21 +08:00
lyon
e50782cbd0 all operator is tested ok for lexer 2021-11-26 22:20:49 +08:00
lyon
1d64eb3df8 operator is tested ok 2021-11-26 22:18:01 +08:00