CPToken Class Reference
Inherits from | NSObject |
Declared in | CPToken.h CPToken.m |
Overview
The CPToken class reperesents a token in the token stream.
All tokens respond to the name message which is used to identify the token while parsing.
CPToken is an abstract class. CPTokenRegnisers should add instances of CPTokens concrete subclasses to their token stream.
Tasks
-
name
The token name.
property -
lineNumber
The line on which the token can be found.
property -
columnNumber
The column on which the token can be found.
property -
characterNumber
The index in the input string of the first character in this token.
property -
length
The character length of the token.
property
Properties
characterNumber
The index in the input string of the first character in this token.
@property (readwrite, assign) NSUInteger characterNumber
Discussion
The index in the input string of the first character in this token.
Declared In
CPToken.h
columnNumber
The column on which the token can be found.
@property (readwrite, assign) NSUInteger columnNumber
Discussion
The column on which the token can be found.
Declared In
CPToken.h
length
The character length of the token.
@property (readwrite, assign) NSUInteger length
Discussion
The character length of the token.
Declared In
CPToken.h