76 Commits

Author SHA1 Message Date
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
lyon
a5f2f4565a asser printTokens is ok 2021-11-26 20:34:58 +08:00
lyon
a270a01229 print tokens is ok 2021-11-26 20:33:35 +08:00
lyon
92af6cd31f lex not is ok 2021-11-26 20:19:41 +08:00
lyon
f195d6076f debug signed num 2021-11-22 17:21:20 +08:00
lyon1998
537bf1aff8 def is tested ok for add 2021-10-31 21:05:42 +08:00
lyon1998
45c095d71b return void is ok 2021-10-31 20:59:14 +08:00
lyon1998
25ed539d1c while return is ok 2021-10-31 20:54:26 +08:00
lyon1998
0e469dcc99 return a + b is ok 2021-10-31 20:48:34 +08:00
lyon1998
ffa9f04708 debug unit test 2021-10-31 20:13:40 +08:00
lyon1998
469bf9064d RET is ok 2021-10-31 20:11:55 +08:00
pikasTech
aaed9eb538 parse def to DEF and JMP is ok 2021-10-31 16:48:53 +08:00
lyon1998
b57a21c645 debug == and = mistack 2021-10-25 21:53:35 +08:00
lyon1998
070f9720bf use popTokenWithSkip to solve operation 2021-10-21 16:18:14 +08:00
lyon1998
347dd331bb OPT for < and while is ok 2021-10-20 22:00:53 +08:00