maintenance

This commit is contained in:
nub31
2025-10-16 20:24:39 +02:00
parent 00d0b73487
commit 13a9b4f89b
6 changed files with 32 additions and 19 deletions

View File

@@ -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);

View File

@@ -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,
}

View File

@@ -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,