Arborist::ExprCallTreeController
Inherits Reference / Object
Constructors
new
SourceInstance methods
add(pos : Int32, rule : Rule, memoized_parse_tree : MemoizedParseTree) : MemoizedParseTree
Sourceapply_calls_in_call_stack
Sourceapply_calls_that_resulted_in_left_recursion
Sourcecurrent_apply_node
Sourcecurrent_apply_node=(current_apply_node : ApplyCallTree | Nil)
Sourcecurrent_expr_call_failed
Sourcecurrent_node
Sourcecurrent_node=(current_node : ExprCallTree | Nil)
Sourceexist?(pos : Int32, rule : Rule) : Bool
Sourcelookup(pos : Int32, rule : Rule) : MemoizedParseTree | Nil
Sourcelookup_most_recent_rule_application_in_call_stack(rule : Rule) : ApplyCall | Nil
returns the deepest/most-recent application of rule in the rule application stack
lookup_oldest_rule_application_that_resulted_in_left_recursion(rule) : ApplyCall | Nil
returns the leftmost/earliest/oldest/shallowest application of rule in the rule application stack that resulted in left recursion
lookup_rule_application_in_call_stack(rule : Rule, pos : Int32) : ApplyCall | Nil
Sourcemost_recent_rule_application
Sourcepush_onto_call_stack(expr_call : ExprCall)
Sourcereset
Sourceroot
Sourceroot=(root : ExprCallTree | Nil)
Sourcerule_in_recursion_call_stack_state
returns an array of {pos, rule} pairs representing the ApplyCalls from the call stack that all resulted in left recursion
top_apply_call_that_resulted_in_left_recursion
Source