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

Configuring an Identifier Token

Other Methods

Properties

identifier

The identifier found in the input stream

@property (readwrite, copy) NSString *identifier

Discussion

The identifier found in the input stream

Declared In

CPIdentifierToken.h

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.

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.

Declared In

CPIdentifierToken.h

name

The token name.

- (NSString *)name

Discussion

The token name.

Declared In

CPToken.h