CommandProdclass

parser.t[658]

Superclass
Tree

Subclass
Tree

Global
Objects

Property
Summary

Method
Summary

Property
Details

Method
Details

The base class for commands. A command is the root of the grammar match tree for a single action. A command line can consist of a number of commands joined with command separators; in English, command separators are things like periods, semicolons, commas, and the words “and” and “then”.

class CommandProd :   BasicProd

Superclass Tree   (in declaration order)

CommandProd
BasicProd
`                 object`

Subclass Tree  

CommandProd
CommandProdWithActor
FirstCommandProdWithActor
actorBadCommandPhrase(main)
firstCommandPhrase(askTellActorTo)
firstCommandPhrase(withActor)
CommandProdWithAmbiguousConj
commandPhrase(ambiguousConj)
CommandProdWithDefiniteConj
commandPhrase(definiteConj)
FirstCommandProd
firstCommandPhrase(commandOnly)
FirstCommandProdWithActor
actorBadCommandPhrase(main)
firstCommandPhrase(askTellActorTo)
firstCommandPhrase(withActor)

Global Objects  

(none)

Summary of Properties  

getActorPhrase

Inherited from BasicProd :
firstTokenIndex isSpecialResponseMatch lastTokenIndex

Summary of Methods  

execActorPhrase hasTargetActor

Inherited from BasicProd :
canResolveTo getOrigText getOrigTokenList setOrigTokenList

Properties  

getActorPhrase

parser.t[674]

Get the match tree for the target actor phrase, if any. By default, we have no target actor phrase, so just return nil.

Methods  

execActorPhrase (issuingActor)

parser.t[683]

“Execute” the actor phrase. This lets us know that the parser has decided to use our phrasing to specify the target actor. We’re not required to do anything here; it’s just a notification for subclass use. Since we don’t have a target actor phrase at all, we obviously don’t need to do anything here.

hasTargetActor ( )

parser.t[659]

no description available

TADS 3 Library Manual
Generated on 5/16/2013 from TADS version 3.1.3