Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Edit mode for SNOBOL4?

13 views
Skip to first unread message

Nomen Nescio

unread,
Apr 27, 2011, 5:02:48 PM4/27/11
to
Try as I might I haven't found an edit mode for SNOBOL4 for Emacs. Does
anyone know if one has been written? If not would writing one with syntax
highlighting be too ambitious of a learning project for Emacs Lisp? I
haven't done any Lisp programming but I thought perhaps to try. Thanks.

Pascal J. Bourguignon

unread,
Apr 27, 2011, 5:35:20 PM4/27/11
to
Nomen Nescio <nob...@dizum.com> writes:

It depends on the level of support you want to implement.

The most basic font-locking, just keywords, can be archieved quite
easily. You may also easily set the syntax of characters defining
comments and various classes of parentheses.

Now, depending on the language, you may want to implement a parser to be
able to provide more sophisticated support, such as sexp movement,
syntax based font-locking, structured editing commands, etc.

So it's probably not too ambitious because:

1- you can approach it progressively,

2- there are a lot of examples (all the programming language modes),

3- there's all the documentation you want.

--
__Pascal Bourguignon__ http://www.informatimago.com/
A bad day in () is better than a good day in {}.

djc

unread,
Apr 29, 2011, 5:33:20 AM4/29/11
to Nomen Nescio
Nomen Nescio wrote:
> Try as I might I haven't found an edit mode for SNOBOL4 for Emacs.

My lord, I *taught* SNOBOL4 at an American university more than 40 years
ago, and got Griswold's book then. It's astonishing to see that someone is
still using it. What compiler and platform?

djc

Fritz Wuehler

unread,
Apr 29, 2011, 8:00:48 AM4/29/11
to

Pascal J. Bourguignon

unread,
Apr 29, 2011, 8:25:04 AM4/29/11
to
Fritz Wuehler <fr...@spamexpire-201104.rodent.frell.theremailer.net>
writes:

It wouldn't be too abitious.

Have a look at the function font-lock-add-keywords to begin with,
and then you can look at all the existing modes as examples of what you
can do.

Nomen Nescio

unread,
Apr 29, 2011, 10:25:06 AM4/29/11
to
djc <ne...@resiak.org> wrote:

Hello! My question on Emacs was for use on Linux with Phil Budne's csnobol4
port. It is an interpreter. You can find it at snobol4.com or snobol4.org, I
can't remember which. I also have the original Bell Labs SNOBOL4 and
SPITBOL-360 running on IBM's MVS, found both on the web!

Nomen Nescio

unread,
Apr 30, 2011, 6:59:20 PM4/30/11
to
> It wouldn't be too abitious.
>
> Have a look at the function font-lock-add-keywords to begin with,
> and then you can look at all the existing modes as examples of what you
> can do.

Thanks and sorry. You answered this before but it got posted again
accidentally but of course my thank you note didn't.

Thanks for your advice :-)

0 new messages