CommandProdWithActor class | parser.t[782]

A command with an actor specification. This should be instantiated with grammar rules in a language-specific module.

Instantiating grammar rules should set property actor_ to the actor match tree, and cmd_ to the underlying 'commandPhrase' production match tree.

`class CommandProdWithActor : CommandProd`

Superclass Tree (in declaration order)

`CommandProdWithActor`
`CommandProd`
`BasicProd`
`object`

Subclass Tree

`CommandProdWithActor`
`FirstCommandProdWithActor`
`actorBadCommandPhrase(main)`
`firstCommandPhrase(askTellActorTo)`
`firstCommandPhrase(withActor)`

Global Objects

(none)

Summary of Properties

`resolvedActor_ resolver_`

Inherited from `CommandProd` :
`getActorPhrase`

Inherited from `BasicProd` :
`isSpecialResponseMatch`

Summary of Methods

`execActorPhrase getActorPhrase getResolver getTargetActor hasTargetActor resolveNouns`

``

Inherited from `BasicProd` :
`canResolveTo getOrigText getOrigTokenList setOrigTokenList`

Properties

`resolvedActor_` | `parser.t[861]`

my resolved actor object

`resolver_` | `parser.t[864]`

my actor resolver object

Methods

`execActorPhrase (issuingActor)`OVERRIDDEN | `parser.t[804]`

Execute the target actor phrase. This is a notification, for use by subclasses; we don't have anything we need to do in this base class implementation.

`getActorPhrase ( )` | `parser.t[793]`

return my resolved actor object

`getResolver (issuingActor)` | `parser.t[850]`

get or create my actor resolver

`getTargetActor ( )` | `parser.t[788]`

this command explicitly specifies an actor

`hasTargetActor ( )`OVERRIDDEN | `parser.t[783]`

no description available

`resolveNouns (issuingActor, targetActor, results)` | `parser.t[813]`

Resolve nouns. We'll resolve only the nouns in the target actor phrase; we do not resolve nouns in the command phrase, because we must re-parse the command phrase after we've finished resolving the actor phrase, and thus we can't resolve nouns in the command phrase until after the re-parse is completed.

TADS 3 Library Manual
Generated on 8/21/2012 from TADS version 3.1.2