Struct Token
Represents a Token structure.
Inherited Members
Namespace: Swan.Parsers
Syntax
public struct Token
Constructors
Token(TokenType, String)
Initializes a new instance of the Token struct.
Declaration
public Token(TokenType type, string value)
Parameters
Type | Name | Description |
---|---|---|
TokenType | type | The type. |
String | value | The value. |
Properties
Type
Gets or sets the type.
Declaration
public TokenType Type { get; set; }
Property Value
Type | Description |
---|---|
TokenType | The type. |
Value
Gets the value.
Declaration
public string Value { get; }
Property Value
Type | Description |
---|---|
String | The value. |