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
-
nameThe token name.
property -
lineNumberThe line on which the token can be found.
property -
columnNumberThe column on which the token can be found.
property -
characterNumberThe index in the input string of the first character in this token.
property -
lengthThe 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 characterNumberDiscussion
The index in the input string of the first character in this token.
Declared In
CPToken.hcolumnNumber
The column on which the token can be found.
@property (readwrite, assign) NSUInteger columnNumberDiscussion
The column on which the token can be found.
Declared In
CPToken.hlength
The character length of the token.
@property (readwrite, assign) NSUInteger lengthDiscussion
The character length of the token.
Declared In
CPToken.h