actionDictionaryobject
Action Dictionary. This is a lookup table that we generate during preinit from the vocabulary words associated with ‘predicate’ grammar rules. We map each vocabulary word to the Action objects it’s associated with.
The standard dictionary contains all of these words as well, but it maps them all to the generic ‘predicate’ GrammarProd object. That doesn’t help us identify which words are associated with which actions. That information is sometimes needed, such as during spelling correction.
Note that the system library file gramprod.t must be included in the build, so that GrammarAltInfo is defined.
actionDictionary
:
PreinitObject
Superclass Tree (in declaration order)
actionDictionary
PreinitObject
ModuleExecObject
` object`
Summary of Properties
Inherited from PreinitObject
:
execBeforeMe
reverseGlobalSymbols
Inherited from ModuleExecObject
:
execAfterMe
hasInitialized_
isDoingExec_
isExecuted_
Summary of Methods
Inherited from ModuleExecObject
:
_execute
classExec
Properties
wordToAction
word-to-action table: this maps each vocabulary word to a list of the Action objects associated with the grammar rules in which it appears
xwords
Associated word table: this maps each vocabulary word to a list of all of the other words that appear in predicate grammar rules in which the given word appears. For example, ‘up’ will have a list like [pick, go, look], since it’s used in rules for ‘pick up’, ‘go up’, ‘look up’.
Methods
execute ( )
OVERRIDDEN
initialize
Adv3Lite Library Reference Manual
Generated on 15/03/2023 from adv3Lite version 1.6.1