Registry / utility / rwxrob-pegn

rwxrob-pegn

JSON →
library0.2.1gogounverified

Package pegn implements the PEGN 2023-01 specification for creating grammars using the PEGN language, with helper packages and tooling.

go get github.com/rwxrob/pegn
INSTALL
IMPORT
SIG · RWXROB-PEGN
R
rwxrob-pegn
utilitygov0.2.1
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

pegn
✓ github.com/rwxrob/pegn

Minimal example showing how to create a PEGN grammar and parse a simple input.

package main import ( "fmt" "github.com/rwxrob/pegn" ) func main() { grammar := pegn.NewGrammar("digit = '0'..'9'") result, err := grammar.Parse("5") if err != nil { panic(err) } fmt.Println(result) }
Debug
Known issues

No known issues recorded.

Upgrade
Version history
0.2.1latest on pkg.go.dev
Audit
Dependencies

No dependency data recorded yet.

Agent activity
11 hits · last 30 days
node
10
Resources
rwxrob-pegn — go get rwxrob-pegn · libregistry