ListButProdclass
Base class for “list but” rules, which select everything in an explicitly provided list minus a set of exceptions; for example, in English, “take all of the books except the red ones”.
Subclasses defining grammar rules must set the ‘np_’ property to the main noun list; we’ll resolve this list to find the objects to be included before exclusions are applied.
class
ListButProd
:
ButProd
Superclass Tree (in declaration order)
ListButProd
ButProd
NounPhraseProd
BasicProd
` object`
Subclass Tree
ListButProd
terminalNounPhrase(pluralExcept)
Global Objects
(none)
Summary of Properties
Inherited from NounPhraseProd
:
filterForCollectives
Inherited from BasicProd
:
firstTokenIndex
isSpecialResponseMatch
lastTokenIndex
Summary of Methods
Inherited from ButProd
:
filterFinalList
resolveNouns
Inherited from NounPhraseProd
:
filterTruncations
getVerifyKeepers
Inherited from BasicProd
:
canResolveTo
getOrigText
getOrigTokenList
setOrigTokenList
Properties
addedFlags
OVERRIDDEN
set the “unclear disambig” flag in our results, so we provide an indication of which object we chose
Methods
flagAllExcepted (resolver, results)
OVERRIDDEN
flag an error - everything has been excluded
getMainList (resolver, results)
OVERRIDDEN
our main list is given by the ‘np_’ subproduction
TADS 3 Library Manual
Generated on 5/16/2013 from TADS version 3.1.3