Re: SPITBOL or SNOBOL4 in OS X unix layer?
- From: Captain Nerd <cptnerd@xxxxxxxxxxxxx>
- Date: Fri, 22 Jul 2005 19:28:45 -0400
In article <gfowler-33C6FB.16372522072005@xxxxxxxxxxxxxxxxxxxxxxxxx>,
George Nospam <gfowler@xxxxxxxxxx> wrote:
> Greetings!
>
> I am a long-time user of the old-fashioned programming language package
> MaxSPITBOL, an implementation of the text-oriented language SPITBOL,
> which in turn is based on SNOBOL4. Mark Emmer, who produced MaxSPITBOL,
> has told me that he is not going to port it to OS X. This program still
> works in Classic, though it has a number of stability problems. Ideally,
> I'd like to find another solution, especially one which doesn't obselete
> what I know of the language, existing programs, etc.
>
> But SPITBOL has had several unix implementations over the years. I
> wonder if anybody has compiled one of them to run in the unix layer
> underlying OS X. If not, what would be involved in doing so? I have very
> little knowledge of unix and doubt I'd be able to do this myself.
>
> Thanks for any information on this question!
Not sure how much help I'll be, since I don't know any of the
SNOBOL implementations, but this page seems to have lots of links
to more info:
http://www.snobol4.org
I downloaded the source code to something called CSNOBOL which is
straight C code, and built it on my iMac. It is pure command-line
oriented, no graphical user interface that I can see, although it
might work as a compiler.
You can build it very easily, provided you have installed the
XCode developer's package from Apple. It comes bundled with new
Macs, and can be downloaded for free from apple.com. XCode comes
with a version of gcc and other tools needed to build CSNOBOL.
Once installed, all you have to do is download the SNOBOL source
code from here:
http://www.snobol4.org/csnobol4/
When you download it, open a Terminal window and cd to the directory
you downloaded the file to. If you don't know where that is, but
you have a Finder window open to that directory, you can type "cd "
(remember the space, leave off the quotes, do not hit enter), and
drag the titlebar icon from the finder window to the terminal window,
and it will fill in the directory for you.
Once you cd to the directory, type "gunzip snobol4-1.0.tar.gz",
then type "tar xvf snobol4-1.0.tar. When it finishes, type
"cd snobol4-1.0", then "./configure". It will set up a "makefile"
which you can use to build the snobol4 application by typing
"make all" at the command line. When it finishes, type
"sudo make install", hit return, then it will prompt you for your
administrator password. Once it's installed, it will be available
from the command line by typing "/usr/local/bin/snobol4".
From there, you're on your own, but there are some documentation
files with the source code.
Good luck!
Cap.
--
Since 1989, recycling old jokes, cliches, and bad puns, one Usenet
post at a time!
Operation: Nerdwatch http://www.nerdwatch.com
Only email with "TO_CAP" somewhere in the subject has a chance of being read
.
- References:
- SPITBOL or SNOBOL4 in OS X unix layer?
- From: George Nospam
- SPITBOL or SNOBOL4 in OS X unix layer?
- Prev by Date: Re: TiBook hinge repair
- Next by Date: Re: Auto re-connect for dropped streaming video connection?
- Previous by thread: SPITBOL or SNOBOL4 in OS X unix layer?
- Next by thread: Re: SPITBOL or SNOBOL4 in OS X unix layer?
- Index(es):
Relevant Pages
|