103 Commits

Author SHA1 Message Date
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
lyon1998
53ba6273a9 ++ is ok 2021-10-20 21:53:10 +08:00
lyon1998
86f9d08d71 1+1 is parsed ok 2021-10-20 21:42:32 +08:00
lyon1998
1d5460ee75 use stmt type, tested ok 2021-10-20 20:34:23 +08:00
lyon1998
8544e91075 parse pikapi script succeed in linux 2021-10-19 08:27:09 +08:00
lyon1998
2006d7fd45 add JMP and JEZ to VM 2021-10-17 20:05:47 +08:00
lyon1998
bf59fe1667 save ram for multiLine parse 2021-10-17 19:35:50 +08:00
lyon1998
46515f6811 parse multiline is ok 2021-10-17 19:07:33 +08:00
lyon1998
907a92d692 if and while is ok 2021-10-17 18:16:23 +08:00
lyon1998
825aa9d171 if and while is ok 2021-10-17 18:08:14 +08:00
lyon1998
e726066156 save ram on test 2021-10-17 17:57:02 +08:00
lyon1998
dcc944fb57 double while is ok 2021-10-17 16:14:01 +08:00
lyon1998
b4cd946454 parser for while is ok 2021-10-16 19:52:19 +08:00
lyon1998
e64656f9ca add blockStack for parse 2021-10-16 19:09:19 +08:00
lyon1998
dfe3cecc0d add blockStack 2021-10-16 18:39:09 +08:00
lyon1998
aa5c6cebdc add Bx blockDeepth for each py line 2021-10-16 17:32:02 +08:00
lyon1998
c5540fb5f4 debug NUM and OUT for parser 2021-10-14 15:50:42 +08:00
lyon1998
2c39dd3265 add test for deep call 2021-10-14 15:13:12 +08:00
lyon1998
141243b956 support NUM in parser 2021-10-14 15:08:45 +08:00
lyon1998
d46112705f parse to asm direct 2021-10-14 10:44:59 +08:00
lyon1998
db928b1ec1 free ram after parse 2021-10-14 10:05:55 +08:00
lyon1998
6c674fdcf5 test b=a+1 2021-10-14 09:53:37 +08:00
lyon1998
d21c1efc20 add str to INVOCK parser 2021-10-14 09:51:50 +08:00
lyon1998
9edaad9fa8 change shell to pika asm 2021-10-13 22:17:40 +08:00