home *** CD-ROM | disk | FTP | other *** search
- Path: sparky!uunet!usc!sol.ctr.columbia.edu!destroyer!ncar!noao!amethyst!organpipe.uug.arizona.edu!news
- From: dave@cs.arizona.edu (Dave Schaumann)
- Newsgroups: comp.lang.c
- Subject: Re: generic interpreter
- Message-ID: <1992Aug17.164005.15554@organpipe.uug.arizona.edu>
- Date: 17 Aug 92 16:40:05 GMT
- References: <DAVIS.92Aug17105356@pacific.mps.ohio-state.edu>
- Sender: news@organpipe.uug.arizona.edu
- Reply-To: dave@cs.arizona.edu (Dave Schaumann)
- Organization: University of Arizona
- Lines: 21
- In-Reply-To: davis@pacific.mps.ohio-state.edu ("John E. Davis")
-
- In article <DAVIS.92Aug17105356@pacific.mps.ohio-state.edu>, davis@pacific ("John E. Davis") writes:
- > I am looking for an extensible interpreter (preferably in C). I want an
- >interpreter which has all the code in it for while loops, if then statements,
- >etc. All I need to do is to add the `intrinsic' (in C) functions which the
- >interpreter will eventually call. This seems like such a useful generic thing
- >that someone must have done it already. If such a thing exists, I would
- >appreciate about hearing about it.
-
- Check out `hoc', which is an interpreter for a C-like language. It is
- described in great detail in one of the chapters of _The UNIX Programming
- Environment_ by Kernighan & Pike.
-
- It's probably not exactly what you want, but the text develops the program
- through about 6 steps (starting with just a simple 4-function calculator).
- Modifying it to your needs should not be too hard.
-
- I also remember hearing a while ago that the source was available for ftp
- (though the legality of this may be questionable...).
-
- --
- What signature?
-