One of my art projects is about visual aspects of Prolog terms. My current focus is on alignment / padding—not on syntactic variations1.
Let's assume I have something like write_tokens
....
Between which tokens may I insert additional whitespace characters?
My (semi-educated) guess is this:
Everywhere except before
open_ct
tokens.
Is this it? Seems almost too easy:)
Thank you in advance!
Footnote 1: Syntactic variations (like [1]
vs [1|[]]
), semantic variations, variable name choices, redundancy elimination, highlighting using markup, font size / style / color are important issues in that project too, they're just not the focus of this question.