Inherits from NSObject
Declared in ExMap.h

Overview

A collection of ex command definitions.

Tasks

Class Methods

defaultMap

The default ex map.

+ (ExMap *)defaultMap

Declared In

ExMap.h

Instance Methods

define:syntax:as:

Add an ex command definition.

- (ExMapping *)define:(id)aName syntax:(NSString *)aSyntax as:(id)implementation

Parameters

aName

The name, and optionally, aliases of the command. This is either an NSString or an NSArray instance. If an array is passed, all entries should be instances of NSString. The first string is taken as the primary name and used in error messages.

aSyntax

A syntax string describing the format of arguments.

implementation

Either an NSString instance naming a selector, or a NuBlock instance specifying a Nu function. The Nu function takes on optional parameter; an instance of ExCommand that describes the arguments.

Return Value

the command definition, or nil on error.

Declared In

ExMap.h

lookup:

Look up an ex command definition given the name.

- (ExMapping *)lookup:(NSString *)aString

Parameters

aString

the name of the command. May be abbreviated as long as it is not ambiguous.

Return Value

the defined ex command, or nil if not found.

Declared In

ExMap.h