Saturday, September 29, 2012

Snobol4 Major Mode for Emacs

I've been reading up on this older text processing language called Snobol--and specifically Snobol4--tonight and decided to take it for a spin.

(I'll have more to say on programming in Snobol later. For now, let me just say that I think its refreshingly original.)

However, there is a total lack of support for programming in this language. So, I decided to whip up a quick editing mode for my favorite text editor: emacs.

As usual, emacs-fu came through with flying colors...

I took that script, edited it somewhat and plugged in my own--extremely limited--knowledge of Snobol4 to produce a mode that appears to properly highlight comments, labels, gotos, and keywords. It's still pretty rough, but I figured I'd post it anyway.

Without further ado...

3 comments:

  1. I've been looking for a SNOBOL4 mode that's more recent than this teco-emacs mode! ( http://www.bitsavers.org/bits/DEC/pdp10/hacks/budd-init.emacs.1 ) Thanks!

    ReplyDelete
  2. I extended your mode: http://hub.darcs.net/shapr/snobolcs410w/browse/snobol-mode.el

    ReplyDelete
  3. Awesome! That probably makes us the most active snobol developers in the world.

    Now there's something for your resume...

    ReplyDelete