💾 Archived View for siiky.srht.site › scheme › gv-dsl.gmi captured on 2023-03-20 at 17:43:33. Gemini links have been rewritten to link to archived content
⬅️ Previous capture (2023-01-29)
-=-=-=-=-=-=-
siiky
2019/10/01
2022/07/14
en
I've (loosely) defined a DSL to represent GraphViz DOT in Scheme, and created a converter library & program that takes the DSL as input and outputs .gv text. It almost certainly doesn't support all of the features of DOT, but I intentionally left out "validation" of input, because I don't know all of DOT and I don't pretend to. The DSL is not only a Scheme representation but also saves some work.
I use it on this site, for example:
Category Theory and Performance
The code can be found online, but try not to read it, it's much too ugly. :/