NounListProductionclass | parser.t[4056]

NounListProduction is a special Production subclass for lists including more than one noun.

Each instance should have two '->' properties: np1_ and np2_. These should be set to the match sub-tree for the first and second elements of the noun list (respectively). Note that we assume there are only two elements in each list grammar item - this isn't because we want to limit noun lists to two elements, but rather because we assume that the grammars for longer lists will be constructed recursively out of two-element nodes: A, B, C, D becomes something along the lines of List(a, List(b, List(c, List(d)))).

`class NounListProduction : Production`

Superclass Tree (in declaration order)

`NounListProduction`
`Production`
`object`

Subclass Tree

`NounListProduction`
`disambigList(list)`
`disambigOrdinalList(head)`
`disambigOrdinalList(tail)`
`exceptListBody(list)`
`nonTerminalNounMultiList(multi)`
`nonTerminalNounMultiList(pair)`
`nounMultiList(multi)`

Global Objects

(none)

Summary of Properties

``

Inherited from `Production` :
`determiner nounPhraseRole npClass parent`

Summary of Methods

`visitProd`

Inherited from `Production` :
`addNounListItem build findAction findChild findParent getNounPhraseRole getText getTokens grammarInfoForBuild isChildOf noteEndOfSentence visitLiteral`

Properties

(none)

Methods

`visitProd (cmd, np, prod)`OVERRIDDEN | `parser.t[4062]`

Visit a production during the build process. When parsing the second element, we'll add a new NounPhrase to the current slot's list.

Adv3Lite Library Reference Manual
Generated on 15/03/2023 from adv3Lite version 1.6.1