...
This commit is contained in:
@@ -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,
|
||||
}
|
||||
Reference in New Issue
Block a user