// XXX will we need this?
public String toString()
{
    int i=0;
    String s; TermList tl;
    s = new String("[" + term.toString());
    tl = next;
    while (tl != null && ++i < 3) {
        s = s + ", " + tl.term.toString();
        tl = tl.next;
    }
    if(tl!=null) s += ",....";
    s += "]";

    return s ;
}
public void resolve(KnowledgeBase db)
 {
     nextClause = (Clause) db.get( term.getfunctor()
                                   + "/" + term.getarity() );
 }
 public void lookupIn(KnowledgeBase db)
 {
     nextClause = (Clause) db.get( term.getfunctor()
                                   + "/" + term.getarity() );
 }

NAME

AI::Prolog::TermList - Create lists of Prolog Terms.

SYNOPSIS

No user serviceable parts inside. You should never be seeing this.

DESCRIPTION

See AI::Prolog for more information. If you must know more, there are plenty of comments sprinkled through the code.

SEE ALSO

W-Prolog: http://goanna.cs.rmit.edu.au/~winikoff/wp/

Michael Barták's online guide to programming Prolog: http://kti.ms.mff.cuni.cz/~bartak/prolog/index.html

AUTHOR

Curtis "Ovid" Poe, <moc tod oohay ta eop_divo_sitruc>

Reverse the name to email me.

This work is based on W-Prolog, http://goanna.cs.rmit.edu.au/~winikoff/wp/, by Dr. Michael Winikoff. Many thanks to Dr. Winikoff for granting me permission to port this.

COPYRIGHT AND LICENSE

Copyright 2005 by Curtis "Ovid" Poe

This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself.