The GrammarProd intrinsic class is a specialized type that's used to create parsers. An object of this type is created automatically by the TADS 3 compiler for each 'grammar' statement. This class encapsulates the prototype token list and mapping information defined in a 'grammar' statement, and provides a method to match its prototype to an actual input token string.
intrinsic class
GrammarProd : Object
Superclass Tree (in declaration order)
GrammarProd
Object
Subclass Tree
(none)
Global Objects
(none)
Summary of Properties
(none)
Summary of Methods
getGrammarInfo
parseTokens
Inherited from Object
:
getPropList
getPropParams
getSuperclassList
isClass
isTransient
ofKind
propDefined
propInherited
propType
valToSymbol
Properties
(none)
Methods
Retrieve a detailed description of the production. This returns a list of GrammarAltInfo objects that describe the rule alternatives that make up this production.
Parse the token list, starting at this production, using the given dictionary to look up tokens. Returns a list of match objects. If there are no matches to the grammar, simply returns an empty list.
TADS 3 Library Manual
Generated on 7/19/2007 from TADS version 3.0.15.1