Language of your choice: library documentation
|static TokenType||Type (this Token t)|
|static string||ToString (Token t)|
|Expresses an LES token as a string. More...|
Expresses an LES token as a string.
Note that some Tokens do not contain enough information to reconstruct a useful token string, e.g. comment tokens do not store the comment but merely contain the location of the comment in the source code. For performance reasons, a Token does not have a reference to its source file, so this method cannot return the original string.
The results are undefined if the token was not produced by Les2Lexer.