What actively maintained languages are built around term rewriting?

September 24, 2026 2 answers
Asked by MistyCedar42
Can you recommend full-fledged programming languages, other than Prolog, that provide first-class support for term rewriting or are primarily designed around it? I'm looking for a standalone language rather than a library, DSL, compiler extension, or macro system. It should also be actively developed and maintained as a long-term project. Pure looked like a good fit, but it hasn't been updated in several years.

Answers

VelvetOrbit9
Macros can sometimes be used to implement transformations, but they arenโ€™t quite the same thing. Macro systems generally rewrite program syntax during compilation, while term rewriting applies formal rules to structured values or terms. Based on that distinction, a language centered on rewriting logicโ€”such as Maudeโ€”is likely a better fit.
Reply to this answer
CopperLynx7
Maude is probably worth investigating. Itโ€™s a standalone language and formal system specifically designed for rewriting logic, where you define terms, equations, and rewrite rules that transform values. That makes it a much closer match than ordinary macro systems or compiler rewrite extensions.

MistyCedar42: Thanks, Iโ€™ll take a look at Maude.

Reply to this answer

Add your answer

Answers are reviewed before publication.

Related Discussions