https://github.com/a4-tacks/pegview
Tree visualization of rust-peg trace
https://github.com/a4-tacks/pegview
cli parsing-expression-grammar peg vizualisation
Last synced: 3 months ago
JSON representation
Tree visualization of rust-peg trace
- Host: GitHub
- URL: https://github.com/a4-tacks/pegview
- Owner: A4-Tacks
- License: mit
- Created: 2025-03-11T10:05:13.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2026-01-14T08:22:50.000Z (6 months ago)
- Last Synced: 2026-01-14T12:14:42.039Z (6 months ago)
- Topics: cli, parsing-expression-grammar, peg, vizualisation
- Language: Rust
- Homepage:
- Size: 164 KB
- Stars: 2
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
Tree visualization of [rust-peg] trace
Or use other tools to output the same trace format, such as [peg.jq]
# Example

[rust-peg]: https://github.com/kevinmehall/rust-peg/
[peg.jq]: https://github.com/A4-Tacks/peg.jq
# Features
- [x] Local trace
- [x] Matched and Failed
- [x] Exclude failed rules
- [x] Zero width matched view
- [x] Full-width tab characters
- [x] Cached trace
- [x] Char index location `1:4` -> `#3`
- [ ] Precedence levels, require kevinmehall/rust-peg/issues/400