ListButProd class | parser.t[1817]

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

Summary of Methods

`flagAllExcepted getMainList`

Inherited from `ButProd` :
`filterFinalList resolveNouns`

Inherited from `NounPhraseProd` :
`filterTruncations getVerifyKeepers`

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

Properties

`addedFlags` OVERRIDDEN | `parser.t[1834]`

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

flag an error - everything has been excluded

`getMainList (resolver, results)`OVERRIDDEN | `parser.t[1819]`

our main list is given by the 'np_' subproduction

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