rename
This commit is contained in:
17
src/syntax/Tokenization/LiteralToken.cs
Normal file
17
src/syntax/Tokenization/LiteralToken.cs
Normal file
@@ -0,0 +1,17 @@
|
||||
using Nub.Lang.Common;
|
||||
|
||||
namespace Nub.Lang.Syntax.Tokenization;
|
||||
|
||||
public class LiteralToken(SourceSpan span, LiteralKind kind, string value) : Token(span)
|
||||
{
|
||||
public LiteralKind Kind { get; } = kind;
|
||||
public string Value { get; } = value;
|
||||
}
|
||||
|
||||
public enum LiteralKind
|
||||
{
|
||||
Integer,
|
||||
Float,
|
||||
String,
|
||||
Bool
|
||||
}
|
||||
Reference in New Issue
Block a user