GrammarAltInfoclass | gramprod.t[43] |
Superclass Tree | Subclass Tree | Global Objects | Property Summary | Method Summary | Property Details | Method Details |
In a 'grammar' statement, alternatives are delimited by '|' symbols at the top level. Each group of tokens set off by '|' symbols is one alternative.
When '|' symbols are grouped with parentheses in a 'grammar' statement, the compiler "flattens" the grouping by expanding out the parenthesized groups until it has entirely top-level alternatives. So, at the level of a GrammarProd object, there's no such thing as parentheses or nested '|' symbols.
class
GrammarAltInfo : object
gramBadness
gramMatchObj
gramTokens
gramBadness | gramprod.t[66] |
gramMatchObj | gramprod.t[73] |
gramTokens | gramprod.t[80] |
construct (score, badness, matchObj, toks, ...) | gramprod.t[54] |