shithub: pprolog

ref: 2bfb79be604c68b7684b515f3be3388fecfcf1f4
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 *);
Term *mklist(Term *);

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

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

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

/* flags.c */
void initflags(void);