Inherits from NSObject
Declared in CPToken.h
CPToken.m

Overview

The CPToken class reperesents a token in the token stream.

All tokens respond to the name message which is used to identify the token while parsing.

CPToken is an abstract class. CPTokenRegnisers should add instances of CPTokens concrete subclasses to their token stream.

Tasks

Properties

characterNumber

The index in the input string of the first character in this token.

@property (readwrite, assign) NSUInteger characterNumber

Discussion

The index in the input string of the first character in this token.

Declared In

CPToken.h

columnNumber

The column on which the token can be found.

@property (readwrite, assign) NSUInteger columnNumber

Discussion

The column on which the token can be found.

Declared In

CPToken.h

length

The character length of the token.

@property (readwrite, assign) NSUInteger length

Discussion

The character length of the token.

Declared In

CPToken.h

lineNumber

The line on which the token can be found.

@property (readwrite, assign) NSUInteger lineNumber

Discussion

The line on which the token can be found.

Declared In

CPToken.h

name

The token name.

@property (readonly) NSString *name

Discussion

The token name.

Declared In

CPToken.h