ListButProdclass

parser.t[1828]

Superclass
Tree

Subclass
Tree

Global
Objects

Property
Summary

Method
Summary

Property
Details

Method
Details

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  

addedFlags

Inherited from NounPhraseProd :
filterForCollectives

Inherited from BasicProd :
firstTokenIndex isSpecialResponseMatch lastTokenIndex

Summary of Methods  

flagAllExcepted getMainList

Inherited from ButProd :
filterFinalList resolveNouns

Inherited from NounPhraseProd :
filterTruncations getVerifyKeepers

Inherited from BasicProd :
canResolveTo getOrigText getOrigTokenList setOrigTokenList

Properties  

addedFlagsOVERRIDDEN

parser.t[1845]

set the “unclear disambig” flag in our results, so we provide an indication of which object we chose

Methods  

flagAllExcepted (resolver, results)OVERRIDDEN

parser.t[1836]

flag an error - everything has been excluded

getMainList (resolver, results)OVERRIDDEN

parser.t[1830]

our main list is given by the ‘np_’ subproduction

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