This commit is contained in:
nub31
2025-05-26 19:16:56 +02:00
parent 973d14ef29
commit 955869a3cf
18 changed files with 124 additions and 156 deletions

View File

@@ -2,7 +2,7 @@
namespace Nub.Lang.Frontend.Lexing;
public class SymbolToken(SourceFile sourceFile, int startIndex, int endIndex, Symbol symbol) : Token(sourceFile, startIndex, endIndex)
public class SymbolToken(SourceText sourceText, int startIndex, int endIndex, Symbol symbol) : Token(sourceText, startIndex, endIndex)
{
public Symbol Symbol { get; } = symbol;
}
@@ -10,6 +10,7 @@ public class SymbolToken(SourceFile sourceFile, int startIndex, int endIndex, Sy
public enum Symbol
{
Import,
Module,
Func,
Return,
If,
@@ -42,5 +43,5 @@ public enum Symbol
New,
Struct,
Caret,
Ampersand
Ampersand,
}