[Date Prev] [Date Next] [Thread Prev] [Thread Next] Date Index Thread Index Search archive:
Date:Mon Jan 25 15:08:54 2001 
Subject:Re: Mixed programming with SIM AGENT 
From:Aaron Sloman See text for reply address 
Volume-ID:1010125.03 

[To reply replace "Aaron.Sloman.XX" with "A.Sloman"]

David Reece writes:
> Date: Thu, 25 Jan 2001 14:29:44 +0000
>
> Hello again,
>
> I was wondering if there was any way to mix programming languages (I'm
> thinking of prolog & pop-11) while working with the SIM_AGENT toolkit.

See
    HELP prolog
    HELP ploginpop
        gives some information on how to invoke prolog from Pop11
    HELP define_prolog
        syntax form for defining prolog predicates in Pop11!

If you do HELP index, in Ved/Xved, you will get a list of help files
in
    $usepop/pop/help/

You can browse the index and select files using "ESC h".

Some of the names use 'plog' as an abbreviation for prolog (a relic
of bygone days when VMS allowed only 9 character file names, and
unix only 14 characters including suffix).

> One of the teach files gave a reference to another file,
> HELP?*?MIXED_LANGUAGES, which would be great but I can't seem to find it

It is (unfortunately?) in the prolog help directory. I.e.
    $usepop/pop/plog/help

So if you had been running poplog prolog the help command would have
worked. However if you are not running prolog you can still do
    HELP prolog mixed_languages
which can be abbreviated to

    ENTER ploghelp mixed_languages

There are several other help files that can be accessed the same
way, including
    poptoplog
        On invoking prolog from pop-11

    plogtopop
        On invoking pop-11 from prolog

    plogindex
        List of prolog-related help files

    simplepop
        Prolog library that enables you to do simple things in
        Pop-11 as if it were an "external" language, e.g.
            ?- dopop('99*9=>').

When first developed the Ved/poplog help and library system was
quite an advanced and unusual extendable hypertext system. It now
creaks somewhat, as shown by your difficulty in finding things.

We should use something like one of the index-building tools
used by internet search engines (e.g. www.google.com)
to produce rapid ways to search the online documentation and code
libraries.

Combined with the new extendable file-browser in rclib that could be
very useful.

Any offers???

you can start up poplog prolog with XVed running if you do

    pop11 +prolog %x

which for many people can be abbreviated to

    prolog %x

At Birmingham if you want to start up xved with prolog precompiled
and running do this if you don't want the poplog control panel.

    pop11 +xvedpro

Incidentally I tried the query
    poplog pop11 prolog
on www.google.com and got some interesting results, including
pointers to Natural language teaching stuff at Leeds.

Aaron
Aaron
====
Aaron Sloman, ( http://www.cs.bham.ac.uk/~axs/ )
School of Computer Science, The University of Birmingham, B15 2TT, UK
EMAIL A.Sloman AT cs.bham.ac.uk   (ReadATas@please !)
PAPERS: http://www.cs.bham.ac.uk/research/cogaff/
FREE TOOLS: http://www.cs.bham.ac.uk/research/poplog/freepoplog.html