2024-03-09 21:16:44 +08:00
|
|
|
|
namespace Canon.Core.Enums;
|
|
|
|
|
|
|
|
|
|
public enum SemanticTokenType
|
|
|
|
|
{
|
|
|
|
|
Keyword,
|
|
|
|
|
Number,
|
|
|
|
|
Operator,
|
|
|
|
|
Delimiter,
|
|
|
|
|
Identifier,
|
|
|
|
|
Character,
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public enum DelimiterType
|
|
|
|
|
{
|
|
|
|
|
Comma,
|
|
|
|
|
Period,
|
|
|
|
|
Colon,
|
|
|
|
|
Semicolon,
|
|
|
|
|
LeftParenthesis,
|
|
|
|
|
RightParenthesis,
|
|
|
|
|
LeftSquareBracket,
|
2024-03-09 21:44:37 +08:00
|
|
|
|
RightSquareBracket
|
2024-03-09 21:16:44 +08:00
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public enum KeywordType
|
|
|
|
|
{
|
|
|
|
|
Program,
|
|
|
|
|
Const,
|
|
|
|
|
Var,
|
|
|
|
|
Procedure,
|
|
|
|
|
Function,
|
|
|
|
|
Begin,
|
|
|
|
|
End,
|
|
|
|
|
Array,
|
|
|
|
|
Of,
|
|
|
|
|
If,
|
|
|
|
|
Then,
|
|
|
|
|
Else,
|
|
|
|
|
For,
|
|
|
|
|
To,
|
|
|
|
|
Do,
|
|
|
|
|
}
|