<EBNF
EBNF
Next:[EBNF


Vocabulary
peg.ebnf

Syntax
<EBNF ...ebnf... EBNF>


Inputs and outputs
...ebnf...EBNF DSL text


Word description
Creates 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.

Examples
USING: kernel prettyprint peg.ebnf peg.search ; "abcdab" <EBNF rule="a" "b" => [[ drop "foo" ]] EBNF> replace .
"foocdfoo"


Definition
USING: assocs kernel multiline peg.ebnf.private sequences ;

IN: peg.ebnf

SYNTAX: <EBNF
"EBNF>" reset-tokenizer parse-multiline-string parse-ebnf
main swap at suffix! reset-tokenizer ;