- Declared in:
- LKToken.h
LKToken implements a token for use in parsers. A token is a symbol or word in a source program. The LKToken class stores this as a range and a pointer to the source program, allowing it to be easily mapped back to the original.
Create a token from a range in the specified source string.
Returns the source code string from which this token was generated.
Returns the location in the original program of this token.
IMP used for looking up the character at the specified index in the source string.
Range within the source string
Source string.