add: 这就是完全的Pascal (#11)
5!8!4!个状态堂堂登场! Co-authored-by: Ichirinko <1621543655@qq.com> Reviewed-on: PostGuard/Canon#11
This commit is contained in:
@@ -19,7 +19,7 @@ public enum NonTerminatorType
|
||||
VarDeclaration,
|
||||
Type,
|
||||
BasicType,
|
||||
Range,
|
||||
Period,
|
||||
Subprogram,
|
||||
SubprogramHead,
|
||||
SubprogramBody,
|
||||
@@ -37,5 +37,9 @@ public enum NonTerminatorType
|
||||
ExpressionList,
|
||||
SimpleExpression,
|
||||
Term,
|
||||
Factor
|
||||
Factor,
|
||||
AddOperator,
|
||||
MultiplyOperator,
|
||||
RelationOperator,
|
||||
IdVarPart
|
||||
}
|
||||
|
@@ -29,7 +29,15 @@ public enum DelimiterType
|
||||
LeftSquareBracket,
|
||||
RightSquareBracket,
|
||||
SingleQuotation,
|
||||
DoubleQuotation
|
||||
DoubleQuotation,
|
||||
/// <summary>
|
||||
/// 访问记录字段用的点 x.a
|
||||
/// </summary>
|
||||
Dot,
|
||||
/// <summary>
|
||||
/// 数组声明上下界之间的分隔符 1..50
|
||||
/// </summary>
|
||||
DoubleDots
|
||||
}
|
||||
|
||||
public enum KeywordType
|
||||
@@ -49,6 +57,15 @@ public enum KeywordType
|
||||
For,
|
||||
To,
|
||||
Do,
|
||||
Integer,
|
||||
Real,
|
||||
Boolean,
|
||||
Character,
|
||||
Divide,
|
||||
Not,
|
||||
Mod,
|
||||
And,
|
||||
Or
|
||||
}
|
||||
|
||||
public enum OperatorType
|
||||
@@ -63,9 +80,6 @@ public enum OperatorType
|
||||
Minus,
|
||||
Multiply,
|
||||
Divide,
|
||||
Mod,
|
||||
And,
|
||||
Or,
|
||||
Assign
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user