EBNF[[
EBNF

Prev:EBNF:
Next:EBNF[=[


Vocabulary
peg.ebnf

Syntax
EBNF[[ ...ebnf... ]]


Inputs
None

Outputs
None

Word description
Creates and calls a quotation that parses a string using the syntax defined with the EBNF DSL. The quotation has stack effect ( string -- ast ) where 'string' is the text to be parsed and 'ast' is the resulting abstract syntax tree. If the parsing fails the quotation throws an exception.

Examples
USING: multiline prettyprint peg.ebnf ; "ab" EBNF[[ rule="a" "b" ]] .
V{ "a" "b" }


Definition