debug.pegR: Turn on the pegR rule debugger

Description Usage Details See Also Examples

View source: R/debugOnOff.R

Description

The pegR rule debugger allows one to step through as the rules as they are invoked.

Usage

1

Details

When applying a given rule to to a text input string, that rule may call other rules which in turn may call other rules, ad nausem. The peg rule debugger allows one to step through that calling sequence, examining the state of the parsing both upon entering a rule and and exiting a rule.

See Also

undebug.pegR

Examples

1
2
3
4
5
6
7
8
## Not run: 
 pegR<-new.parser()
 debug.pegR(pegR)
 pegR + "A<-B" + "B<-C" + "C<-'abc'"
 pegR[['A']]('abc')
 undebug.pegR(pegR)
 
## End(Not run)

mslegrand/pegr documentation built on May 23, 2019, 7:53 a.m.