finsteps

MPD Grammar Summary

This document provides implementation details for the MPD parser. For a complete grammar reference with examples, see the main grammar documentation. The formal EBNF grammar is available in ../ebnf/mpd.ebnf.

This package implements the MPD DSL described in docs/ebnf/mpd.ebnf with a focus on the core constructs that drive diagrams, runtime settings, scenes, and bindings. The parser recognizes:

Expressions

Expressions support logical, equality, relational, additive, and multiplicative operators plus literals, arrays, objects, variable references, function calls, and target expressions.

Target Expressions

Target expressions map logical selectors to diagram elements:

Diagnostics

Diagnostics cover: