Show / Hide Table of Contents

Class Token

Represents a single token from the source code, with type, raw text, and line number.

Inheritance
object
Token
Implements
IEquatable<Token>
Inherited Members
object.Equals(object)
object.Equals(object, object)
object.GetHashCode()
object.GetType()
object.MemberwiseClone()
object.ReferenceEquals(object, object)
object.ToString()
Namespace: VM.Parser
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
Type Name Description
TokenType Type
string Text
int Line

Properties

Line

Declaration
public int Line { get; init; }
Property Value
Type Description
int

Text

Declaration
public string Text { get; init; }
Property Value
Type Description
string

Type

Declaration
public TokenType Type { get; init; }
Property Value
Type Description
TokenType

Implements

IEquatable<T>
In this article
Back to top Generated by DocFX