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

Configuring a WhiteSpace Token

  •   whiteSpace

    The white space string found in the input stream.

    property

Other Methods

Properties

whiteSpace

The white space string found in the input stream.

@property (readwrite, copy) NSString *whiteSpace

Discussion

The white space string found in the input stream.

Declared In

CPWhiteSpaceToken.h

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.

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

name

The token name.

- (NSString *)name

Discussion

The token name.

Declared In

CPToken.h