← All projects
Project record1 mention
Originally shared on Hacker News

PEG grammar playground

A WebAssembly-based playground hosting a collection of PEG grammars for testing, developing, and debugging grammars. Users select a grammar from the examples, click Parse to view a parse tree or AST for the input source, and edit the grammar or input to test new ideas. Part of an effort to improve grammar tooling, with features like railroad diagrams, source, stats, state machines, and traces.

Last shared
01 / Source history

Shared over time

Each entry reflects what was shared on that date. Details may have changed since then.

  1. PEG grammar playground

    A WebAssembly-based playground hosting a collection of PEG grammars for testing, developing, and debugging grammars. Users select a grammar from the examples, click Parse to view a parse tree or AST for the input source, and edit the grammar or input to test new ideas. Part of an effort to improve grammar tooling, with features like railroad diagrams, source, stats, state machines, and traces.

    Posted by @mingodad · Original source ↗

    Source text · @mingodad · · Source ↗

    I'm collecting a collection of PEG grammars here https://mingodad.github.io/cpp-peglib and Yacc/Lex grammars here https://mingodad.github.io/parsertl-playground/playground both are wasm based playgrounds to test/develop/debug grammars.