CPParseResult Protocol Reference
Conforms to | NSObject |
Declared in | CPParser.h |
Overview
The CPParseResult protocol declares a method that a class must implement so that instances can be created as the result of parsing a token stream.
Tasks
-
– initWithSyntaxTree:
Returns an object initialised with the contents of a syntax tree.
required method
Instance Methods
initWithSyntaxTree:
Returns an object initialised with the contents of a syntax tree.
- (id)initWithSyntaxTree:(CPSyntaxTree *)syntaxTree
Parameters
- syntaxTree
The syntax tree to initialise the object with.
Return Value
An object created using the contents of the syntax tree.
Discussion
Returns an object initialised with the contents of a syntax tree.
Declared In
CPParser.h