Interactive interpreter in embedded application
alu <[email protected]>
| Newsgroups | gmane.comp.ai.prolog.swi |
|---|---|
| Message-ID | <[email protected]> |
I have a C++ program that uses SWI-Prolog as a logic server via PlEngine. Now I'm wondering if it is possible to write a function, which behaves like the interactive interpreter command line. This function would receive a string (command line input) and return a string (command line output as a response to input). *int PlCall(const char *goal)* seems to do the trick (input-wise), but I need something for the output. This way it would be possible to have the interpreter in a GUI program (e.g. as a dock widget). Would be great for debugging and manipulation of an otherwise integrated Prolog system. -- View this message in context: http://swi-prolog.996271.n3.nabble.com/Interactive-interpreter-in-embedded-application-tp14045.html Sent from the SWI Prolog mailing list archive at Nabble.com.