Newsgroups: comp.lang.prolog
Path: cantaloupe.srv.cs.cmu.edu!das-news2.harvard.edu!news2.near.net!howland.reston.ans.net!xlink.net!news.ppp.de!news.Hanse.DE!wavehh.hanse.de!cracauer
From: cracauer@wavehh.hanse.de (Martin Cracauer)
Subject: Re: Prolog in structured languages?
Message-ID: <1995May23.080552.20165@wavehh.hanse.de>
Organization: The poor LISPers' hacking kitchen
References: <roji.799498182@mangal>
Date: Tue, 23 May 95 08:05:52 GMT
Lines: 30

roji@cs.huji.ac.il (Shay Rojansky) writes:

>Hi, everyone.
>Is there a way for me to use logical programming
>(Prolog) in a structured programming language such
>as C? I've looked for one, but haven't found one.

>In any case, I have started to write a C++ Prolog
>object, and I'd like to hear your comments - is
>there a need for such a project? If so, according
>to what standards should I write it?

I don't know of an embeddable Prolog, but there are some scheme
interpreters of that kind, elk and SCM for example. There are a number
of packages for scheme that emulate prolog (using Lisp syntax).

Maybe this is an option for you, depending on if you need a "real"
Prolog or only prolog-like features in you program. Using these
interpreters is pretty straightforward and will save lots of time
compared to any effort to do it yourself. If you decide to try to
write an embeddable Prolog, you are probably good of by looking at
these interpreters anyway.

See the Lisp- and Scheme-FAQ for more details on implementations.

Martin
-- 
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
Martin Cracauer <cracauer@wavehh.hanse.de>. No NeXTMail, please.
 Norderstedt/Hamburg, Germany. Fax +49 40 522 85 36. This is a 
 private address. At (netless) work programming in data analysis.
