BadListProductionclass | parser.t[4081]

A BadListProduction is a Production subclass for a noun list written in a slot intended for a single noun only. This isn't really a grammatical error, so the language grammar will probably want to include a rule for this. However, it *is* a semantic error; rules that are written for single objects are written that way because we can't make sense of a list there. For example, PUT BOOK IN BOX AND BAG would be nonsensical to us, because we can't put something in two places at once. This class can be used for a grammar rule that parses a list where a single noun is required; we'll flag it with an explanatory error message for the user.

`class BadListProduction : Production`

Superclass Tree (in declaration order)

`BadListProduction`
`Production`
`object`

Subclass Tree

`BadListProduction`
`singleNoun(multiple)`

Global Objects

(none)

Summary of Properties

``

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

Summary of Methods

`build`

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

Properties

(none)

Methods

`build (cmd, np)`OVERRIDDEN | `parser.t[4082]`

no description available

Adv3Lite Library Reference Manual
Generated on 12/12/2022 from adv3Lite version 1.6