CommandProd class | parser.t[647]

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` :
`isSpecialResponseMatch`

Summary of Methods

`execActorPhrase hasTargetActor`

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

Properties

`getActorPhrase` | `parser.t[663]`

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[672]`

"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[648]`

no description available

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