feat: 按照open_set中的示例调整语法 (#71)

添加了构建LR分析表冲突的报错

Reviewed-on: PostGuard/Canon#71
This commit is contained in:
2024-05-01 21:06:27 +08:00
parent feddbff205
commit 6130adfa7c
32 changed files with 1382 additions and 985 deletions

View File

@@ -31,7 +31,9 @@ public static class LexRules
{ "not", KeywordType.Not },
{ "mod", KeywordType.Mod },
{ "and", KeywordType.And },
{ "or", KeywordType.Or }
{ "or", KeywordType.Or },
{ "true", KeywordType.True },
{ "false", KeywordType.False }
};
public static bool GetKeywordTypeByKeywprd(string keyword, out KeywordType type)