Vocabularypeg.ebnfSyntax<EBNF ...ebnf... EBNF>
Inputs and outputsWord descriptionCreates a
peg object that parses a string using the syntax defined with the EBNF DSL. The peg object can be run using the
parse word and can be used with the
search and
replace words.
ExamplesUSING: kernel prettyprint peg.ebnf peg.search ;
"abcdab" <EBNF rule="a" "b" => [[ drop "foo" ]] EBNF> replace .
"foocdfoo"
Definition