Token, a part of an input text recognized by tokenizer
More...
Token, a part of an input text recognized by tokenizer
Definition at line 29 of file Token.cs.
| Mercury.Scanning.Token.Token |
( |
string |
value, |
|
|
TokenType |
type, |
|
|
int |
position, |
|
|
bool |
quoted = false |
|
) |
| |
Creates a new Token.
- Parameters
-
| value | Token value. |
| type | Token type. |
| position | Position in the input text. |
| quoted | Indicates whether the token value was quoted in the input. |
Definition at line 38 of file Token.cs.
| override bool Mercury.Scanning.Token.Equals |
( |
object |
obj | ) |
|
| bool Mercury.Scanning.Token.Equals |
( |
Token |
other | ) |
|
| override int Mercury.Scanning.Token.GetHashCode |
( |
| ) |
|
| override string Mercury.Scanning.Token.ToString |
( |
| ) |
|
| int Mercury.Scanning.Token.Position |
|
getset |
Position in the input text.
Definition at line 57 of file Token.cs.
| bool Mercury.Scanning.Token.Quoted |
|
getset |
Indicates whether the token was quoted in the input.
Definition at line 60 of file Token.cs.
| string Mercury.Scanning.Token.Value |
|
getset |
The token value.
Definition at line 51 of file Token.cs.
The documentation for this class was generated from the following file: