Description Usage Arguments Examples
Prints the rules contained in the PEG
1 2 | ## S3 method for class 'pegR'
print(parser)
|
peg |
parser produced by new.parser() |
1 2 3 4 5 6 7 | peg<-new.parser()
add_rule(peg, "NUM<-[0-9]+ (. [0-9] )?" )
peg<-set_description(peg, "NUM", "A Number")
peg<-add_rule(peg, "FT<-NUM ' '* ft")
peg<-set_description(peg, "FT"," measurement in feet")
# Now print the print the rules
print(peg)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.