Documentation

LKToken class documentation

LKToken : NSString

AuthorsGenerated by builder
Declared inLKToken.h

Overview

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.


Default

+ (LKToken *) tokenWithRange: (NSRange)aRange inSource: (NSString *)aString

Create a token from a range in the specified source string.

    - (NSRange) sourceLocation

    Returns the location in the original program of this token.

      - (NSString *) sourceDocument

      Returns the source code string from which this token was generated.