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