CPWhiteSpaceToken Class Reference
Inherits from | CPToken : NSObject |
Declared in | CPWhiteSpaceToken.h CPWhiteSpaceToken.m |
Overview
The CPWhiteSpaceToken class reperesents some white space appearing in the input.
These tokens return @"Whitespace"
as their name.
Tasks
Creating and Initialising a WhiteSpace Token
-
+ whiteSpace:
Creates a white space token with the white space found in the input.
-
– initWithWhiteSpace:
Initialises a white space token with the white space found in the input.
Configuring a WhiteSpace Token
-
whiteSpace
The white space string found in the input stream.
property
Other Methods
-
– name
The token name.
Class Methods
whiteSpace:
Creates a white space token with the white space found in the input.
+ (id)whiteSpace:(NSString *)whiteSpace
Parameters
- whiteSpace
The white space found in the input stream.
Return Value
Returns a CPWhiteSpaceToken representing the specified white space.
Discussion
Creates a white space token with the white space found in the input.
See Also
Declared In
CPWhiteSpaceToken.h
Instance Methods
initWithWhiteSpace:
Initialises a white space token with the white space found in the input.
- (id)initWithWhiteSpace:(NSString *)whiteSpace
Parameters
- whiteSpace
The white space found in the input stream.
Return Value
Returns a CPWhiteSpaceToken representing the specified white space.
Discussion
Initialises a white space token with the white space found in the input.
See Also
Declared In
CPWhiteSpaceToken.h