Canon/Canon.Core/Enums/GrammarEnums.cs

46 lines
796 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,
Period,
2024-03-09 23:57:43 +08:00
Subprogram,
SubprogramHead,
SubprogramBody,
FormalParameter,
ParameterList,
Parameter,
VarParameter,
ValueParameter,
StatementList,
Statement,
Variable,
Expression,
ProcedureCall,
ElsePart,
ExpressionList,
SimpleExpression,
Term,
Factor,
AddOperator,
MultiplyOperator,
RelationOperator,
IdVarPart
2024-03-09 23:57:43 +08:00
}