Syntax Definition Formalisms 3 (SDF3) is an academic syntax definition, used for compiling languages. It is part of the Spoofax workbench.
Syntax and language basics
Formal language definitions are very much related to (context-free) grammars, as we know them from automata.
Sorts are a