I am writing a literate program (with NoWEB), a toolset for Lua that happens to include a Partial evaluator, a Meta-tracer, a pretty-printer etc.
In the appendix, I provide extra information like Lua's BNF grammar (using SimpleBNF) and the Term-rewriting rules for Partial evaluation.
I did not find a LaTex package intended for typesetting TRS, so (with some help from GPT), I created simpletrs.sty
(below), which povides the simpletrs
package. It's a package for typesetting Term-rewriting rules.
It's a quite simple package. Providse 4 commands:
1- \trule
for typesetting normal TRS rules;