rule_ids: Lists all Rules contained in the parser

Description Usage Arguments Examples

View source: R/rule_ids.R

Description

Returns a charactor vector giving all the defined rules contained in the parser.

Usage

1

Arguments

parser,

a peg parser produced by new.parser

Examples

1
2
3
4
5
peg<-new.parser()
peg<-add_rule(peg, "I<-'Ice'")
peg<-add_rule(peg, "A<-'Age'")
peg<-add_rule(peg, "S<-'Scrat'")
rule_ids(peg) #c("I", "A", "S")

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