Article View: comp.lang.prolog
Article #4313Java Interface to Prolog
From: Alan Ogilvie
Date: Thu, 09 Oct 1997 00:00
Date: Thu, 09 Oct 1997 00:00
36 lines
2310 bytes
2310 bytes
I'm going to write a kind of Meta Interpreter in Sicstus Prolog with a GUI Display in Java. So I need to be able to get them speaking to each other. Stage 1 ======= Rather than direct calls I thought I'd make it so that the Meta Interpreter spat out one line commands to a file which was watched by a Java Application (and processed). Stage 2 ======= ...and Vice Versa! The Java Application could accept user input that would be sent back to the Prolog program using the same technique. Background ========== I think that my Meta Interpreter needs to be the Sicstus trace function with the additional interfacing done. So clicking the 'Step' button in the Java GUI would get the 'tracer' in Prolog to step to the next line of execution. Problem ======= HOW? (ie. How do I accomplish this - anybody got any good ideas?). -- -- ------------------------------------------------------------------------ :Alan Ogilvie : A.T.Ogilvie@ed.ac.uk (Personal): :WWW Page/s : http://www.tardis.ed.ac.uk/~alan/ (Personal): ------------------------------------------------------------------------ "Some men see things as they are and say 'why?' I dream things that never were and say 'why not?'" [Robert F.Kennedy (attr)] ========================================================================
Technical Details
Message-ID:
<EHsB1s.7KH.0.staffin.dcs.ed.ac.uk@dcs.ed.ac.uk>Path:
arc1-ca.pugleaf.net!unknown!not-for-mailShow Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 10a146,2c8f3be47f580bed,start X-Google-Attributes: gid10a146,public X-Google-Thread: f8272,2c8f3be47f580bed,start X-Google-Attributes: gidf8272,public X-Google-Thread: f907c,2c8f3be47f580bed,start X-Google-Attributes: gidf907c,public X-Google-Thread: 111d6b,2c8f3be47f580bed,start X-Google-Attributes: gid111d6b,public X-Google-Thread: 113ae9,2c8f3be47f580bed,start X-Google-Attributes: gid113ae9,public From: alano@dai.ed.ac.uk (Alan Ogilvie) Subject: Java Interface to Prolog Date: 1997/10/09 Message-ID: <EHsB1s.7KH.0.staffin.dcs.ed.ac.uk@dcs.ed.ac.uk> X-Deja-AN: 278972728 Sender: ato@dcs.ed.ac.uk (Alan Ogilvie) X-Nntp-Posting-Host: canna.dcs.ed.ac.uk To: alan@tardis.ed.ac.uk Organization: Department of Computer Science, Edinburgh University Newsgroups: comp.lang.prolog,ed.prolog,comp.lang.java.programmer,comp.lang.java.misc,comp.lang.java.help