Hey guys. I’m looking for some good PostScript templates and routines. I am writing something called ‘EBNF Tools’ in Scheme. I wrote the tokenizer and I am now writing the parser. From there, I wish to implement tools like:

  • EBNF2PEG
  • EBNF2Yacc
  • EBNF2Lex
  • EBNF2ANTLR
  • EBNF2Happy (fuck Haskell btw, ML for the win)

But I also wish to implement some EBNF typesetting stuff, such as EBNF2PS or EBNF2Latex.

I know libps exists, and I could potentially bind it. But I wanna use super portable Scheme. And FFIs are not portable. Plus it’s not really needed. I have made a ChatGPT model that teaches me PostScript. I have learned a lot of operators. The syntax, well you gotta be brainlet to have issues learning its syntax but i digress.

What I need is this: A bunch of functions or code snippets in PS that would draw stuff like arrows, etc. Basically anything that is pre-made. Like macros.

Or something like a drawpad with which I can draw and it will give me a PS file. Does such thing exist?

If you know where I can get them please tell me.