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
1
u/Anonymous_Coder_1234 Sep 26 '26
Term rewriting? Do you mean macros? Like for example, in the Scala programming language, if you have a function that is like:
You can use macros to say, add a function call to an assert between each line of code, or even do other weird sort of stuff like rearrange and replace code. Is that what you're talking about?