Update information about BPEGN

pull/53/head
rwxrob 2 years ago
parent e453035fdc
commit 77014afbd6
No known key found for this signature in database
GPG Key ID: 2B9111F33082AE77

@ -39,20 +39,21 @@ But wait, there's more! What about all those other tasks you need to do
to make a command line application honorable in anyone's eyes? Tools are
needed.
## Create Powerful Parsers Easily with Pseudocode
How about the world's most approachable text scanner API with automatic
verbose, specific error messages that will make your users bow to your
attentiveness. Build complex parsers that are easily read and generated
from any number of meta-languages including PEGN, PEG, EBNF, and ABNF.
Spend your time working with the beautiful and standardized abstract
syntax trees instead of grinding out parser code. Domain language
specifications are a breeze, which is good, because you can customize
any completer for any nested command node or your application enabling
powerful, intelligent, and intuitive grammars you enable for your users
directly from the command line, hell, why not directly from your
favorite chat integration. After all, Bonzai commands are perfectly
doable directly from a chat client.
## BPEGN: Generate Powerful Parsers Easily
BPEGN is a PEGN syntax implementation in pure Go using mostly slices and
structs. The Bonzai scan.Expect function produces verbose, specific
error messages that will make your users bow to your attentiveness.
Build complex parsers that are easily read and generated from any number
of meta-languages including PEGN, PEG, EBNF, and ABNF. Spend your time
working with the beautiful and standardized abstract syntax trees
instead of grinding out parser code. Domain language specifications are
a breeze, which is good, because you can customize any completer for any
nested command node or your application enabling powerful, intelligent,
and intuitive grammars you enable for your users directly from the
command line, hell, why not directly from your favorite chat
integration. After all, Bonzai commands are perfectly doable directly
from a chat client.
## A JSON Package Without Unnecessary Limitations

@ -2,12 +2,16 @@
// SPDX-License-Identifier: Apache-2.0
/*
Package is contains the scannable structs recognized as a pseudo-grammar
accepted by the scan.Expect and scan.Check methods. These structs are
guaranteed never to have their structure order change in any way
allowing them to be used in key-less, in-line composable syntax notation
(which, despite the many editor warnings, is entirely supported by Go
and always will be).
Package is defines the Bonzai Parsing Expression Grammar Notation
(BPEGN) implemented entirely using Go types (mostly slices and structs).
BPEGN can be 100% transpiled to and from the Parsing Expression Grammer
Notation (PEGN). Code in one and use "bonzai pegn" command to easily
generate the other. BPEGN is sometimes referred to informally as "Bonzai
Scanner Expect" language as well since it is passed directly to
scan.Expect or scan.Check. These structs are guaranteed never to have
their structure order change in any way allowing them to be used in
key-less, in-line composable syntax notation (which, despite the many
editor warnings, is entirely supported by Go and always will be).
*/
package is

Loading…
Cancel
Save