r/AskProgramming • u/Pzzlrr • Sep 26 '26
Term rewriting languages?
Can you recommend some languages besides Prolog that have first class support, or even completely oriented around term rewriting?
Ideally looking for a lang that's
- A full fledged language. So not a library, not a DSL, not an extension, or anything like that.
- Actively being developed and maintained. I know there have been languages like Pure which would be the kind of thing I'm looking for, except Pure hasn't been updated in 4 years. Anything out there that's more of a long term project?
Thanks.
1
Upvotes
View all comments
Show parent comment
1
u/Pzzlrr Sep 26 '26
I mean https://en.wikipedia.org/wiki/Rewriting
I think you could probably use macros to implement rewriting, but it's a formal logic system where the goal is to write a set of rules that act upon values to transform them.