this post was submitted on 28 Apr 2024
4 points (83.3% liked)

Programming

17406 readers
71 users here now

Welcome to the main community in programming.dev! Feel free to post anything relating to programming here!

Cross posting is strongly encouraged in the instance. If you feel your post or another person's post makes sense in another community cross post into it.

Hope you enjoy the instance!

Rules

Rules

  • Follow the programming.dev instance rules
  • Keep content related to programming in some way
  • If you're posting long videos try to add in some form of tldr for those who don't want to watch videos

Wormhole

Follow the wormhole through a path of communities !webdev@programming.dev



founded 1 year ago
MODERATORS
 

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.

top 3 comments
sorted by: hot top controversial new old
[–] paulie@programming.dev 2 points 6 months ago (1 children)

Take a look at Don Lancaster's PostScript Resources. Don passed away a few months ago, so I'm not sure how much longer his site will remain up.

[–] ChubakPDP11@programming.dev 2 points 6 months ago (1 children)

I will download it all and mirror it on my server and Github pages. Hate to see it go. What happened to this dude? Was he old or young?

[–] paulie@programming.dev 1 points 6 months ago

Take a look at his wikipedia entry. Though I only learned about him from posts mourning his death, I still found reading about his many niche interests at his website very enjoyable.