Description Usage Arguments See Also Examples
Unsets the retriction that was set by
set_rule_stack_limit
1 | unset_rule_stack_limit(pegR)
|
parser, |
a peg parser produced by new.parser |
get_rule_stack
,
set_rule_stack_limit
1 2 3 4 5 6 7 8 9 10 | ## Not run:
peg<-new.parser()
set_rule_stack_limit(peg, 10)
peg<-add_rule(peg, "A<-'a' A / ''" ) #consumes all a's at the beginning of a string
apply_rule(peg, "A", "aaaaaaaaaaaax") #there are 12 a's but will stop at 10
#error, rule stack depth limit exceeded
unset_rule_stack_limit(peg)
apply_rule(peg, "A", "aaaaaaaaaaaax") #now succeeds
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.