Canon/Canon.Core/Enums/GrammarEnums.cs

42 lines
719 B
C#
Raw Normal View History

2024-03-09 23:57:43 +08:00
namespace Canon.Core.Enums;
public enum NonTerminatorType
{
2024-03-10 15:37:18 +08:00
/// <summary>
/// 拓广文法
/// </summary>
StartNonTerminator,
2024-03-09 23:57:43 +08:00
ProgramStruct,
ProgramHead,
ProgramBody,
IdentifierList,
ConstDeclarations,
VarDeclarations,
SubprogramDeclarations,
CompoundStatement,
ConstDeclaration,
ConstValue,
VarDeclaration,
Type,
BasicType,
Range,
Subprogram,
SubprogramHead,
SubprogramBody,
FormalParameter,
ParameterList,
Parameter,
VarParameter,
ValueParameter,
StatementList,
Statement,
Variable,
Expression,
ProcedureCall,
ElsePart,
ExpressionList,
SimpleExpression,
Term,
Factor
}