添加对while-do语句的支持 (#77)

Co-authored-by: jackfiled <xcrenchangjun@outlook.com>
Reviewed-on: PostGuard/Canon#77
Co-authored-by: ichirinko <1621543655@qq.com>
Co-committed-by: ichirinko <1621543655@qq.com>
This commit is contained in:
ichirinko
2024-05-10 13:52:11 +08:00
committed by jackfiled
parent 4a712fc462
commit f993d49856
11 changed files with 867 additions and 704 deletions

View File

@@ -33,7 +33,8 @@ public static class LexRules
{ "and", KeywordType.And },
{ "or", KeywordType.Or },
{ "true", KeywordType.True },
{ "false", KeywordType.False }
{ "false", KeywordType.False },
{ "while", KeywordType.While }
};
public static bool GetKeywordTypeByKeywprd(string keyword, out KeywordType type)