Description Usage Arguments Value Examples
This is used to see what a comprises a given rule.
1 | inspect_rule(peg, rule.id)
|
parser, |
a peg parser |
rule_id, |
a rule idenitifier, a.k.a. rule name |
ruleStruct, a container which when printed will produce a a summary of that rule
1 2 3 4 5 | peg<-new.parser()
peg<-add_rule(peg, "DOG<-'fido' / 'spot' / 'rover'/ 'buddy'")
peg<-set_action(peg, "DOG", "list('bark')")
peg<-set_description(peg, "DOG", "sound of dog")
inspect_rule(peg, "DOG")
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.