Class Token
Inheritance
System.Object
Token
Assembly: Perlang.Common.dll
Syntax
public class Token : object
Constructors
|
Improve this Doc
View Source
Token(TokenType, String, Nullable<Object>, Int32)
Declaration
public Token(TokenType type, string lexeme, object? literal, int line)
Parameters
Type |
Name |
Description |
TokenType |
type |
|
System.String |
lexeme |
|
System.Nullable<System.Object> |
literal |
|
System.Int32 |
line |
|
Properties
|
Improve this Doc
View Source
Lexeme
Declaration
public string Lexeme { get; }
Property Value
Type |
Description |
System.String |
|
|
Improve this Doc
View Source
Line
Declaration
Property Value
Type |
Description |
System.Int32 |
|
|
Improve this Doc
View Source
Literal
Declaration
public object? Literal { get; }
Property Value
Type |
Description |
System.Nullable<System.Object> |
|
|
Improve this Doc
View Source
Type
Declaration
public TokenType Type { get; }
Property Value
Methods
|
Improve this Doc
View Source
ToString()
Declaration
public override string ToString()
Returns
Type |
Description |
System.String |
|