Class Token
Represents a single token from the source code, with type, raw text, and line number.
Assembly: VM.dll
Syntax
public record Token : IEquatable<Token>
Constructors
Token(TokenType, string, int)
Represents a single token from the source code, with type, raw text, and line number.
Declaration
public Token(TokenType Type, string Text, int Line)
Parameters
Properties
Line
Declaration
public int Line { get; init; }
Property Value
Text
Declaration
public string Text { get; init; }
Property Value
Type
Declaration
public TokenType Type { get; init; }
Property Value
Implements