maintenance
This commit is contained in:
@@ -277,8 +277,6 @@ public class Diagnostic
|
||||
case Symbol.Continue:
|
||||
case Symbol.Struct:
|
||||
case Symbol.Let:
|
||||
case Symbol.Calls:
|
||||
case Symbol.For:
|
||||
case Symbol.Extern:
|
||||
{
|
||||
return ConsoleColors.Colorize(tokenText, ConsoleColors.Bold + ConsoleColors.Blue);
|
||||
|
||||
@@ -4,13 +4,24 @@ namespace NubLang.Syntax;
|
||||
|
||||
public enum Symbol
|
||||
{
|
||||
Func,
|
||||
Return,
|
||||
// Control
|
||||
If,
|
||||
Else,
|
||||
While,
|
||||
Break,
|
||||
Continue,
|
||||
Return,
|
||||
Let,
|
||||
Defer,
|
||||
|
||||
// Declaration
|
||||
Func,
|
||||
Struct,
|
||||
|
||||
// Modifier
|
||||
Extern,
|
||||
Export,
|
||||
|
||||
Colon,
|
||||
DoubleColon,
|
||||
OpenParen,
|
||||
@@ -33,14 +44,8 @@ public enum Symbol
|
||||
Minus,
|
||||
Star,
|
||||
ForwardSlash,
|
||||
Struct,
|
||||
Caret,
|
||||
Ampersand,
|
||||
Let,
|
||||
Calls,
|
||||
For,
|
||||
In,
|
||||
Extern,
|
||||
Semi,
|
||||
Percent,
|
||||
LeftShift,
|
||||
@@ -50,8 +55,6 @@ public enum Symbol
|
||||
Or,
|
||||
Module,
|
||||
Import,
|
||||
Export,
|
||||
Defer,
|
||||
At,
|
||||
}
|
||||
|
||||
|
||||
@@ -15,9 +15,6 @@ public sealed class Tokenizer
|
||||
["return"] = Symbol.Return,
|
||||
["struct"] = Symbol.Struct,
|
||||
["let"] = Symbol.Let,
|
||||
["calls"] = Symbol.Calls,
|
||||
["for"] = Symbol.For,
|
||||
["in"] = Symbol.In,
|
||||
["extern"] = Symbol.Extern,
|
||||
["module"] = Symbol.Module,
|
||||
["export"] = Symbol.Export,
|
||||
|
||||
Reference in New Issue
Block a user