BasicProdclass
The basic production node base class. We’ll use this as the base class for all of our grammar rule match objects.
class
BasicProd
: object
Superclass Tree (in declaration order)
BasicProd
` object`
Subclass Tree
BasicProd
Action
CommandActorAction
EventAction
IAction
AgainAction
predicate(Again)
ConvIAction
GoodbyeAction
predicate(Goodbye)
HelloAction
predicate(Hello)
NoAction
predicate(No)
YesAction
predicate(Yes)
DebugAction
ExitsAction
predicate(Exits)
GetOutAction
predicate(GetOut)
GoBackAction
predicate(GoBack)
InventoryAction
predicate(Inventory)
InventoryTallAction
predicate(InventoryTall)
InventoryWideAction
predicate(InventoryWide)
JumpAction
predicate(Jump)
JumpOffIAction
predicate(JumpOffI)
LieAction
predicate(Lie)
LiteralAction
OopsAction
predicate(Oops)
SpecialTopicAction
predicate(SpecialTopic)
LookAction
predicate(Look)
NoteDarknessAction
OopsIAction
predicate(OopsOnly)
predicate(EmptySpecialTopic)
SenseImplicitAction
ListenImplicitAction
predicate(ListenImplicit)
SmellImplicitAction
predicate(SmellImplicit)
SitAction
predicate(Sit)
SleepAction
predicate(Sleep)
StandAction
predicate(Stand)
SystemAction
AboutAction
predicate(About)
CreditsAction
predicate(Credits)
ExitsModeAction
predicate(ExitsMode)
FileOpAction
RecordAction
predicate(Record)
RecordEventsAction
predicate(RecordEvents)
RecordStringAction
predicate(RecordString)
RecordEventsStringAction
predicate(RecordEventsString)
ReplayAction
ReplayStringAction
predicate(ReplayQuiet)
predicate(ReplayString)
SaveAction
predicate(Save)
SaveStringAction
predicate(SaveString)
ScriptAction
predicate(Script)
ScriptStringAction
predicate(ScriptString)
FootnoteAction
predicate(Footnote)
FootnotesAction
FootnotesFullAction
predicate(FootnotesFull)
FootnotesMediumAction
predicate(FootnotesMedium)
FootnotesOffAction
predicate(FootnotesOff)
FootnotesStatusAction
predicate(FootnotesStatus)
FullScoreAction
predicate(FullScore)
HintAction
predicate(Hint)
HintsOffAction
predicate(HintsOff)
InstructionsAction
predicate(instructions)
NotifyAction
predicate(Notify)
NotifyOffAction
predicate(NotifyOff)
NotifyOnAction
predicate(NotifyOn)
PauseAction
predicate(Pause)
QuitAction
predicate(Quit)
RecordOffAction
predicate(RecordOff)
RestartAction
predicate(Restart)
RestoreAction
predicate(Restore)
RestoreStringAction
predicate(RestoreString)
RestoreDefaultsAction
predicate(RestoreDefaults)
SaveDefaultsAction
predicate(SaveDefaults)
ScoreAction
predicate(Score)
ScriptOffAction
predicate(ScriptOff)
TerseAction
predicate(Terse)
TipModeAction
predicate(TipsOff)
predicate(TipsOn)
TopicsAction
predicate(Topics)
UndoAction
predicate(Undo)
VerboseAction
predicate(Verbose)
VersionAction
predicate(Version)
TopicAction
TravelAction
AftAction
DownAction
EastAction
ForeAction
InAction
predicate(In)
NorthAction
NortheastAction
NorthwestAction
OutAction
predicate(Out)
PortAction
predicate(Port)
predicate(Travel)
SouthAction
SoutheastAction
SouthwestAction
StarboardAction
predicate(Starboard)
TravelDirAction
UpAction
WestAction
VagueTravelAction
predicate(VagueTravel)
WaitAction
predicate(Wait)
YellAction
predicate(Yell)
TAction
AttackAction
predicate(Attack)
BoardAction
predicate(Board)
BreakAction
predicate(Break)
BurnAction
predicate(Burn)
CleanAction
predicate(Clean)
ClimbAction
predicate(Climb)
ClimbDownAction
predicate(ClimbDown)
predicate(ClimbDownWhat)
ClimbUpAction
predicate(ClimbUp)
predicate(ClimbUpWhat)
CloseAction
predicate(Close)
ConsultAction
predicate(Consult)
CutAction
DetachAction
predicate(Detach)
DigAction
predicate(Dig)
DoffAction
predicate(Doff)
DrinkAction
predicate(Drink)
DropAction
predicate(Drop)
EatAction
predicate(Eat)
EnterAction
predicate(Enter)
ExamineAction
predicate(Examine)
ExtinguishAction
predicate(Extinguish)
FastenAction
predicate(Fasten)
FeelAction
predicate(Feel)
FlipAction
predicate(Flip)
FollowAction
predicate(Follow)
GetOffOfAction
predicate(GetOffOf)
GetOutOfAction
predicate(GetOutOf)
GoThroughAction
predicate(GoThrough)
JumpOffAction
predicate(JumpOff)
JumpOverAction
predicate(JumpOver)
KissAction
predicate(Kiss)
LieOnAction
predicate(LieOn)
LightAction
predicate(Light)
ListenToAction
predicate(ListenTo)
LiteralTAction
EnterOnAction
predicate(EnterOn)
predicate(EnterOnWhat)
SetToAction
predicate(SetTo)
TurnToAction
predicate(TurnTo)
TypeLiteralOnAction
predicate(TypeLiteralOn)
predicate(TypeLiteralOnWhat)
LockAction
predicate(Lock)
LookBehindAction
predicate(LookBehind)
LookInAction
predicate(LookIn)
LookThroughAction
predicate(LookThrough)
LookUnderAction
predicate(LookUnder)
MoveAction
predicate(Move)
OpenAction
predicate(Open)
PlugInAction
predicate(PlugIn)
PourAction
predicate(Pour)
PullAction
predicate(Pull)
PushAction
predicate(Push)
PushTravelAction
PushTravelDirAction
predicate(PushTravelDir)
PushAftAction
PushDownAction
PushEastAction
PushForeAction
PushInAction
PushNorthAction
PushNortheastAction
PushNorthwestAction
PushOutAction
PushPortAction
PushSouthAction
PushSoutheastAction
PushSouthwestAction
PushStarboardAction
PushUpAction
PushWestAction
PushTravelViaIobjAction
PushTravelClimbDownAction
predicate(PushTravelClimbDown)
PushTravelClimbUpAction
predicate(PushTravelClimbUp)
PushTravelEnterAction
predicate(PushTravelEnter)
PushTravelGetOutOfAction
predicate(PushTravelGetOutOf)
PushTravelThroughAction
predicate(PushTravelThrough)
ReadAction
predicate(Read)
RemoveAction
predicate(Remove)
ScrewAction
predicate(Screw)
SearchAction
predicate(Search)
SetAction
predicate(Set)
SitOnAction
predicate(SitOn)
SmellAction
predicate(Smell)
StandOnAction
predicate(StandOn)
StrikeAction
predicate(Strike)
SwitchAction
predicate(Switch)
TakeAction
predicate(Take)
TalkToAction
predicate(TalkTo)
predicate(TalkToWhat)
TasteAction
predicate(Taste)
ThrowAction
predicate(Throw)
ThrowDirAction
predicate(ThrowDir)
predicate(ThrowDirDown)
TIAction
AttachToAction
predicate(AttachTo)
predicate(AttachToWhat)
AttackWithAction
predicate(AttackWith)
BurnWithAction
predicate(BurnWith)
CleanWithAction
predicate(CleanWith)
CutWithAction
predicate(CutWith)
predicate(CutWithWhat)
DetachFromAction
predicate(DetachFrom)
DigWithAction
predicate(DigWith)
FastenToAction
predicate(FastenTo)
GiveToAction
predicate(GiveTo)
predicate(GiveToType2)
predicate(GiveToWhom)
LockWithAction
predicate(LockWith)
MoveToAction
predicate(MoveTo)
MoveWithAction
predicate(MoveWith)
PlugIntoAction
predicate(PlugInto)
predicate(PlugIntoWhat)
PourIntoAction
predicate(PourInto)
PourOntoAction
predicate(PourOnto)
PushTravelViaIobjAction
PushTravelClimbDownAction
predicate(PushTravelClimbDown)
PushTravelClimbUpAction
predicate(PushTravelClimbUp)
PushTravelEnterAction
predicate(PushTravelEnter)
PushTravelGetOutOfAction
predicate(PushTravelGetOutOf)
PushTravelThroughAction
predicate(PushTravelThrough)
PutBehindAction
predicate(PutBehind)
PutInAction
predicate(PutIn)
predicate(PutInWhat)
PutOnAction
predicate(PutOn)
PutUnderAction
predicate(PutUnder)
ScrewWithAction
predicate(ScrewWith)
ShowToAction
predicate(ShowTo)
predicate(ShowToType2)
predicate(ShowToWhom)
TakeFromAction
predicate(TakeFrom)
ThrowAtAction
predicate(ThrowAt)
ThrowToAction
predicate(ThrowTo)
predicate(ThrowToType2)
TurnWithAction
predicate(TurnWith)
UnfastenFromAction
predicate(UnfastenFrom)
UnlockWithAction
predicate(UnlockWith)
UnplugFromAction
predicate(UnplugFrom)
UnscrewWithAction
predicate(UnscrewWith)
TopicTAction
AskVagueAction
predicate(AskVague)
predicate(TellVague)
ConsultAboutAction
predicate(ConsultAbout)
predicate(ConsultWhatAbout)
ConvTopicTAction
AskAboutAction
predicate(AskAbout)
predicate(AskAboutImplicit)
predicate(AskAboutWhat)
AskForAction
predicate(AskFor)
predicate(AskWhomFor)
TellAboutAction
predicate(TellAbout)
predicate(TellAboutImplicit)
predicate(TellAboutWhat)
TellVagueAction
TravelViaAction
EnTravelVia
TurnAction
predicate(Turn)
TurnOffAction
predicate(TurnOff)
TurnOnAction
predicate(TurnOn)
TypeOnAction
predicate(TypeOn)
UnfastenAction
predicate(Unfasten)
UnlockAction
predicate(Unlock)
UnplugAction
predicate(Unplug)
UnscrewAction
predicate(Unscrew)
WearAction
predicate(Wear)
commandOnlyConjunction(nonSentenceEnding)
commandOnlyConjunction(sentenceEnding)
commandOrNounConjunction(main)
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)
DirectionProd
directionName(aft)
directionName(down)
directionName(east)
directionName(fore)
directionName(in)
directionName(north)
directionName(northeast)
directionName(northwest)
directionName(out)
directionName(port)
directionName(south)
directionName(southeast)
directionName(southwest)
directionName(starboard)
directionName(up)
directionName(west)
DisambigProd
disambigList(list)
disambigList(single)
DisambigOrdProd
disambigListItem(ordinal)
disambigOrdinalList(head)
disambigOrdinalList(tail)
disambigPhrase(all)
disambigPhrase(any)
disambigPhrase(both)
disambigPhrase(list)
disambigPhrase(ordinalList)
DisambigPossessiveProd
disambigListItem(possessive)
DisambigVocabProd
disambigListItem(noun)
disambigListItem(plural)
EverythingProd
completeNounPhraseWithAll(main)
ExceptListProd
exceptList(list)
exceptList(single)
exceptNounPhrase(singleComplete)
LiteralProd
EmptyLiteralPhraseProd
literalPhrase(empty)
literalPhrase(miscList)
literalPhrase(string)
quotedStringPhrase(main)
mainDisambigPhrase(main)
nounConjunction(main)
NounListProd
nonTerminalNounMultiList(multi)
nonTerminalNounMultiList(pair)
nounList(list)
nounList(nonTerminal)
nounList(terminal)
nounMultiList(multi)
nounMultiList(nonterminal)
NounPhraseProd
ButProd
EverythingButProd
terminalNounPhrase(allBut)
IndefiniteNounButProd
terminalNounPhrase(anyBut)
ListButProd
terminalNounPhrase(pluralExcept)
completeNounPhrase(miscPrep)
DefiniteNounProd
BasicPossessiveProd
ButPossessiveProd
exceptNounPhrase(singlePossessive)
DisambigPossessiveProd
disambigListItem(possessive)
PossessiveNounProd
qualifiedSingularNounPhrase(possessive)
PossessivePluralProd
explicitDetPluralNounPhrase(possessive)
explicitDetPluralOnlyNounPhrase(possessive)
ContainerNounPhraseProd
indetPluralNounPhrase(locational)
indetPluralOnlyNounPhrase(locational)
indetSingularNounPhrase(locational)
PreResolvedAmbigProd
qualifiedSingularNounPhrase(definite)
VagueContainerNounPhraseProd
AllInContainerNounPhraseProd
qualifiedPluralNounPhrase(theOnesIn)
VagueContainerDefiniteNounPhraseProd
qualifiedSingularNounPhrase(theOneIn)
VagueContainerIndefiniteNounPhraseProd
qualifiedSingularNounPhrase(anyOneIn)
EmptyNounPhraseProd
ImpliedActorNounPhraseProd
nounList(empty)
singleNoun(empty)
IndefiniteNounProd
ArbitraryNounProd
qualifiedSingularNounPhrase(anyPlural)
qualifiedSingularNounPhrase(arbitrary)
qualifiedSingularNounPhrase(indefinite)
LayeredNounPhraseProd
completeNounPhrase(main)
completeNounPhraseWithoutAll(qualified)
detPluralNounPhrase(main)
detPluralOnlyNounPhrase(main)
indetPluralNounPhrase(basic)
indetPluralOnlyNounPhrase(basic)
indetSingularNounPhrase(basic)
nounPhrase(main)
pluralPhrase(main)
possessiveAdjPhrase(npApostropheS)
possessiveAdjPhrase(ppApostropheS)
possessiveNounPhrase(npApostropheS)
qualifiedNounPhrase(main)
qualifiedPluralNounPhrase(determiner)
singleNoun(normal)
NounPhraseWithVocab
adjPhrase(adjAdj)
AdjPhraseWithVocab
adjPhrase(adj)
adjWord(adj)
adjWord(adjAbbr)
adjWord(adjApostS)
literalAdjPhrase(literalAdj)
literalAdjPhrase(number)
literalAdjPhrase(string)
compoundNounPhrase(of)
compoundNounPhrase(simple)
compoundPluralPhrase(of)
compoundPluralPhrase(simple)
miscWordList(list)
miscWordList(wordOrNumber)
NounWordProd
nounWord(noun)
nounWord(nounAbbr)
simpleNounPhrase(adj)
simpleNounPhrase(adjAndOne)
simpleNounPhrase(adjNP)
simpleNounPhrase(empty)
simpleNounPhrase(misc)
simpleNounPhrase(noun)
simpleNounPhrase(nounAndNumber)
simpleNounPhrase(number)
simpleNounPhrase(numberAndNoun)
simplePluralPhrase(adjAndOnes)
simplePluralPhrase(empty)
simplePluralPhrase(misc)
simplePluralPhrase(plural)
simplePluralPhrase(poundNum)
PluralProd
AllPluralProd
explicitDetPluralOnlyNounPhrase(definite)
qualifiedPluralNounPhrase(all)
DefinitePluralProd
explicitDetPluralNounPhrase(definite)
implicitDetPluralOnlyNounPhrase(main)
QuantifiedPluralProd
ExactQuantifiedPluralProd
BothPluralProd
qualifiedPluralNounPhrase(both)
explicitDetPluralNounPhrase(definiteNumber)
explicitDetPluralOnlyNounPhrase(definiteNumber)
qualifiedPluralNounPhrase(allNum)
qualifiedPluralNounPhrase(anyNum)
PronounProd
HerProd
completeNounPhraseWithoutAll(her)
HimProd
completeNounPhraseWithoutAll(him)
ItProd
completeNounPhraseWithoutAll(it)
MeProd
completeNounPhraseWithoutAll(me)
PossessivePronounAdjProd
HerAdjProd
possessiveAdjPhrase(her)
HisAdjProd
possessiveAdjPhrase(his)
ItsAdjProd
possessiveAdjPhrase(its)
MyAdjProd
possessiveAdjPhrase(my)
TheirAdjProd
possessiveAdjPhrase(their)
YourAdjProd
possessiveAdjPhrase(your)
PossessivePronounNounProd
HersNounProd
possessiveNounPhrase(hers)
HisNounProd
possessiveNounPhrase(his)
ItsNounProd
possessiveNounPhrase(its)
MineNounProd
possessiveNounPhrase(mine)
TheirsNounProd
possessiveNounPhrase(theirs)
YoursNounProd
possessiveNounPhrase(yours)
ReflexivePronounProd
HerselfProd
completeNounPhraseWithoutAll(herself)
HimselfProd
completeNounPhraseWithoutAll(himself)
ItselfProd
completeNounPhraseWithoutAll(itself)
ThemselvesProd
completeNounPhraseWithoutAll(themselves)
ThemProd
completeNounPhraseWithoutAll(them)
YouProd
completeNounPhraseWithoutAll(yourself)
SingleNounProd
PrepSingleNounProd
atSingleNoun(main)
forSingleNoun(main)
fromSingleNoun(main)
inSingleNoun(main)
onSingleNoun(main)
outOfSingleNoun(main)
throughSingleNoun(main)
toSingleNoun(main)
withSingleNoun(main)
singleNounOnly(main)
TopicProd
EmptyTopicPhraseProd
PrepSingleTopicProd
aboutTopicPhrase(main)
topicPhrase(main)
topicPhrase(misc)
SingleNounWithListProd
singleNoun(multiple)
NumberProd
numberPhrase(digits)
numberPhrase(spelled)
poundNumberPhrase(main)
spelledHundred(aHundred)
spelledHundred(aHundredPlus)
spelledHundred(hundreds)
spelledHundred(hundredsPlus)
spelledHundred(small)
spelledMillion(aMillion)
spelledMillion(aMillionAndSmall)
spelledMillion(millions)
spelledMillion(millionsAndSmall)
spelledMillion(millionsPlus)
spelledNumber(main)
spelledSmallNumber(digit)
spelledSmallNumber(teen)
spelledSmallNumber(tens)
spelledSmallNumber(tensAndUnits)
spelledSmallNumber(zero)
spelledThousand(aThousand)
spelledThousand(aThousandAndSmall)
spelledThousand(thousands)
spelledThousand(thousandsAndSmall)
spelledThousand(thousandsPlus)
oopsCommand(main)
oopsPhrase(main)
oopsPhrase(missing)
PreResolvedLiteralProd
PreResolvedProd
TokenListProd
Global Objects
(none)
Summary of Properties
firstTokenIndex
isSpecialResponseMatch
lastTokenIndex
Summary of Methods
canResolveTo
getOrigText
getOrigTokenList
setOrigTokenList
Properties
firstTokenIndex
Grammar match objects that come from a GrammarProd.parseTokens() call will always have a set of properties indicating which tokens from the input matched the grammar rule. However, we sometimes synthesize match trees internally rather than getting them from parser input; for synthesized trees, the parser obviously won’t supply those properties for us, so we need to define suitable defaults that synthesized match tree nodes can inherit.
isSpecialResponseMatch
Is this match a match to the special syntax for a custom missing object query? This returns true if the match has a wording that strongly distinguishes it from an ordinary new command. In the English parser, for example, this returns true for the PrepSingleTopicProd matches (e.g., inSingleNoun) if the phrase starts with the preposition for the match.
This property is used when we ask a missing object question:
>dig
What do you want to dig in? *.
>in the dirt
In English, the DIG command sets up to receive a response phrased as “in <noun phrase>” - that’s done by setting the response production to inSingleNoun. In this case, “in the dirt” would return true, since that’s pretty clearly a match to the expected inSingleNoun syntax. In contrast, “the dirt” would return false, since that’s just a noun phrase without the special wording for this particular verb.
lastTokenIndex
no description available
Methods
canResolveTo (obj, action, issuingActor, targetActor, which)
Can this object match tree resolve to the given object? We’ll resolve the phrase as though it were a topic phrase, then look for the object among the matches.
getOrigText ( )
get the original text of the command for this match
getOrigTokenList ( )
get my original token list, in canonical tokenizer format
setOrigTokenList (toks)
Set my original token list. This replaces the actual token list we matched from the parser with a new token list provided by the caller.
TADS 3 Library Manual
Generated on 5/16/2013 from TADS version 3.1.3