Xref: utzoo comp.ai:8982 comp.lang.c++:12743 comp.lang.c:38076 Path: utzoo!utgpu!news-server.csri.toronto.edu!bonnie.concordia.ca!uunet!cme!libes From: libes@cme.nist.gov (Don Libes) Newsgroups: comp.ai,comp.lang.c++,comp.lang.c Subject: Re: Lisp Eval in C or C++ Message-ID: <1327@muffin.cme.nist.gov> Date: 9 Apr 91 06:32:50 GMT References: <1991Apr4.182329.5513@searchtech.com> Followup-To: comp.ai Organization: National Institute of Standards and Technology Lines: 16 In article <1991Apr4.182329.5513@searchtech.com> belinda@searchtech.com (Belinda Hoshstrasser) writes: >Basically, what we need is something >that can evaluate constraints -- something similar to eval in Lisp. Has >anyone out there ever implemented eval in C or C++? Is there public domain >code to do this? If not, we would appreciate any advice or experiences from >anyone who has had face a similar problem. We've used Tcl in a number of projects as a quick way of getting dynamic expression evaluation in C programs. It's public-domain, portable to SV and BSD, well-documented, and easy to use and extend. In only 45k, it doesn't do everything (scoping and data structures are fairly unsophisticated) but since I began using it, I've dramatically cut down on my yacc/lex usage. Don Libes libes@cme.nist.gov ...!uunet!cme-durer!libes