CommandProdWithActorclass

parser.t[793]

Superclass
Tree

Subclass
Tree

Global
Objects

Property
Summary

Method
Summary

Property
Details

Method
Details

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 :
firstTokenIndex isSpecialResponseMatch lastTokenIndex

Summary of Methods  

execActorPhrase getActorPhrase getResolver getTargetActor hasTargetActor resolveNouns

Inherited from BasicProd :
canResolveTo getOrigText getOrigTokenList setOrigTokenList

Properties  

resolvedActor_

parser.t[872]

my resolved actor object

resolver_

parser.t[875]

my actor resolver object

Methods  

execActorPhrase (issuingActor)OVERRIDDEN

parser.t[815]

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[804]

return my resolved actor object

getResolver (issuingActor)

parser.t[861]

get or create my actor resolver

getTargetActor ( )

parser.t[799]

this command explicitly specifies an actor

hasTargetActor ( )OVERRIDDEN

parser.t[794]

no description available

resolveNouns (issuingActor, targetActor, results)

parser.t[824]

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 5/16/2013 from TADS version 3.1.3