shithub: pprolog

ref: afbd56887b77e28f67373e1a3acae36e242fcf50
dir: /fns.h/

View raw version
/* parser.c */
Term *parse(int, int);

/* prettyprint.c */
Rune *prettyprint(Term *);

/* misc.c */
Term *copyterm(Term *, uvlong *);
Term *appendterm(Term *, Term *);
int termslength(Term *);
Term *mkatom(Rune *);
Term *mkvariable(Rune *);
Term *mkcompound(Rune *, int, Term *);
Term *mknumber(int, vlong, double);
Term *mkstring(Rune *);

/* eval.c */
int evalquery(Term *, Term *, Binding **);
int unify(Term *, Term *, Binding **);

/* repl.c */
void repl(Term *);

/* builtins.c */
Builtin findbuiltin(Term *);