Description Usage Arguments Value Examples
View source: R/get_description.R
Descriptions are like comments for rules, it is a good
practice to comment your rules after you add them. See
set_description
1 | get_description(pegR, rule.id)
|
rule.id, |
a character string naming the rule |
parser, |
a peg parser produced by new.parser |
description, a character string describing the parser
1 2 3 4 | pegR<-new.parser()
peg<-add_rule(pegR, "A<-'a'")
pegR<-set_description(pegR, "A", "recognizes 'a'")
get_description(pegR, "A")
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.