get-production [Function]


Purpose

The get-production function returns the production having a specified name.

Syntax

get-production production &key no-error-p

Arguments

The production argument is a production rule, or the name of a production rule.

If the no-error-p argument is t, then no error is generated if Loom cannot find a production having the specified name.

Value

The get-production function returns the production with the specified name. If there is none, nil is returned if no-error-p is set, and otherwise an error is generated.

Remarks

The get- functions are faster and do less error-checking than the find- functions (such as find-production). Applications should use the get- functions for best performance.

Examples

(get-production 'P2) ==> |PRODUCTION|P2 
(get-production 'almost-full-container :no-error-p t) ==> 
    |PRODUCTION|ALMOST-FULL-CONTAINER

See Also

Last modified: Jun 1 1995