Inherits from CPToken : NSObject
Declared in CPQuotedToken.h
CPQuotedToken.m

Overview

The CPQuotedToken class reperesents a quoted literal appearing in the input.

These tokens return the name specified on their creation as their name.

Tasks

Creating and Initialising a Quoted Literal Token

Configuring a Quoted Literal Token

  •   content

    The content found inside the quoted literal.

    property
  •   quoteType

    The quote used to begin the quoted literal.

    property

Other Methods

Properties

content

The content found inside the quoted literal.

@property (readwrite, copy) NSString *content

Discussion

The content found inside the quoted literal.

Declared In

CPQuotedToken.h

quoteType

The quote used to begin the quoted literal.

@property (readwrite, copy) NSString *quoteType

Discussion

The quote used to begin the quoted literal.

Declared In

CPQuotedToken.h

Class Methods

content:quotedWith:name:

Creates a quoted literal token with the quoted literal found in the input.

+ (id)content:(NSString *)content quotedWith:(NSString *)startQuote name:(NSString *)name

Parameters

content

The string found inside the quotes.

startQuote

The symbol used to quote the content.

name

The name to use for this token.

Return Value

Returns a CPQuotedToken representing the specified quoted literal.

Discussion

Creates a quoted literal token with the quoted literal found in the input.

Declared In

CPQuotedToken.h

Instance Methods

initWithContent:quoteType:name:

Initialises a quoted literal token with the quoted literal found in the input.

- (id)initWithContent:(NSString *)content quoteType:(NSString *)startQuote name:(NSString *)name

Parameters

content

The string found inside the quotes.

startQuote

The symbol used to quote the content.

name

The name to use for this token.

Return Value

Returns a CPQuotedToken representing the specified quoted literal.

Discussion

Initialises a quoted literal token with the quoted literal found in the input.

Declared In

CPQuotedToken.h

name

The token name.

- (NSString *)name

Discussion

The token name.

Declared In

CPToken.h