← All work
Grammar engine

BNFDX

Write grammars in JavaScript. Parse structured input.

A BNF-like parser that expresses grammar rules as JavaScript objects and includes transformation features for higher-level structured output.

BNFDX grammar engine visual
The system

What it is.

BNFDX keeps grammar close to the JavaScript code that consumes it instead of requiring separate parser-generator files.

The problem

The constraint worth solving.

Small DSLs and configuration formats often need more rigor than ad hoc string handling but less ceremony than a full external parser-generator workflow.

What Resist Design delivered
  • BNF-like grammar expressed as plain object structures.
  • Transformation features for application-specific output.
  • An extensible error model for syntax, semantic, recursion, resource, and custom validation failures.
What this demonstrates
  • A reusable parsing layer for custom DSL and configuration experiments.
  • A grammar approach that remains native to the JavaScript codebase using it.
Capabilities
ParsersGrammar designDSLsJavaScriptTransformation

Need a system like this?

Resist Design works on product architecture, prototypes, production applications, design systems, and the infrastructure that holds them together.

Start a conversation