![]() |
The ezr² Project 0.1.1
The codebase for the ezr² programming language.
|
The smallest component in the script identified by the TokenType, grouped together into Runtime.Nodes.Node objects to from source code constructs. More...
Public Member Functions | |
| Token (TokenType type, TokenTypeGroup typeGroup, string value, Position startPosition, Position? endPosition=null) | |
| Creates a new Token object. | |
| override string | ToString () |
| Converts the Token into a string, for debugging purposes. | |
Public Attributes | |
| readonly TokenType | Type |
| The identifying TokenType of the Token. | |
| readonly TokenTypeGroup | TypeGroup |
| The TokenTypeGroup of the Token. | |
| readonly string | Value |
| The value of the Token; may be empty. | |
| readonly Position | StartPosition |
| The starting Position of the Token in the script. | |
| readonly Position | EndPosition |
| The ending Position of the Token in the script. | |
Static Public Attributes | |
| static readonly Token | Empty = new(TokenType.Invalid, TokenTypeGroup.Special, string.Empty, Position.None) |
| An empty token value. | |
The smallest component in the script identified by the TokenType, grouped together into Runtime.Nodes.Node objects to from source code constructs.
| EzrSquared.Token.Token | ( | TokenType | type, |
| TokenTypeGroup | typeGroup, | ||
| string | value, | ||
| Position | startPosition, | ||
| Position? | endPosition = null ) |
Creates a new Token object.
| type | The identifying TokenType of the Token. |
| typeGroup | The TokenTypeGroup of the Token. |
| value | The value of the Token; may be empty. |
| startPosition | The starting Position of the Token in the script. |
| endPosition | The ending Position of the Token in the script. If not given, copies startPosition and advances it. |
| override string EzrSquared.Token.ToString | ( | ) |