class Arborist::Apply
- Arborist::Apply
- Reference
- Object
Overview
Apply represents the application of a named rule
Defined in:
arborist.crConstructors
Instance Method Summary
-
#eval(matcher) : ParseTree | Nil
this started out as an implementation of Tratt's Algorithm 2 in section 6.4 of https://tratt.net/laurie/research/pubs/html/tratt__direct_left_recursive_parsing_expression_grammars/
- #label(label : String) : Apply
- #label : String | Nil
- #label=(label : String | Nil)
- #parse_tree_is_larger_than_seed_parse_tree?(parse_tree : ParseTree | Nil, seed_parse_tree : ParseTree | Nil) : Bool
- #pop_rule_application(matcher, successfully_parsed) : ApplyCall
- #preorder_traverse(matcher, visit : Expr -> _, visited_nodes : Set(Expr))
- #push_rule_application(matcher, rule, pos, is_this_application_left_recursive_at_pos)
- #rule_name : String
- #syntactic_rule?
-
#to_s
Returns a nicely readable and concise string representation of this object, typically intended for users.
Constructor Detail
Instance Method Detail
this started out as an implementation of Tratt's Algorithm 2 in section 6.4 of https://tratt.net/laurie/research/pubs/html/tratt__direct_left_recursive_parsing_expression_grammars/
Returns a nicely readable and concise string representation of this object, typically intended for users.
This method should usually not be overridden. It delegates to
#to_s(IO)
which can be overridden for custom implementations.
Also see #inspect
.