Description Usage Arguments Value Examples
Returns the call stack when the stop level was exceeded
1 | get_rule_stack(pegR)
|
parser, |
a peg parser produced by new.parser |
call stack, a data frame show the sequence of calls encounterd prior to the exceeding the stop level
1 2 3 4 5 6 7 8 9 10 | ## Not run:
peg<-new.parser()
set_rule_stack_limit(peg, 20)
peg<-add_rule(peg, "A<-B" )
peg<-add_rule(peg, "B<-C")
peg<-add_rule(peg, "C<-A") # A vicious circle of calls resulting in infinite recursion
apply_rule(peg, "A", "x") # will stop at 20
get_rule_stack(peg)
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.