abstract class Pegasus::Generated::Tree
- Pegasus::Generated::Tree
- Reference
- Object
Direct Known Subclasses
Defined in:
pegasus/generated/grammar_parser.crpegasus/language_def.cr
Instance Method Summary
-
#flatten(*, value_index : Int32, recursive_name : String, recursive_index : Int32)
Since currently, * and + operators aren't supported in Pegasus grammars, they tend to be recursively written.
- #table_index
Instance Method Detail
def flatten(*, value_index : Int32, recursive_name : String, recursive_index : Int32)
#
Since currently, * and + operators aren't supported in Pegasus grammars, they tend to be recursively written. This is a utility function to "flatten" a parse tree produced by a recursively written grammar.