PrologExpr::PrologExpr

void PrologExpr(char *functor)

Construct a new clause with this form, supplying the functor name.

void PrologExpr(PrologType type, char *word_or_string, Boolallocate = TRUE)

Construct a new empty list, word (will be output with no quotes) or a string, depending on the value of type (PrologList, PrologWord, PrologString).

If a word or string, the allocate parameter determines whether a new copy of the value is allocated, the default being TRUE.

void PrologExpr(long the_int)

Construct an integer expression.

void PrologExpr(float the_float)

Construct a floating point expression.

void PrologExpr(wxList *the_list)

Construct a list expression. The list's nodes' data should themselves be PrologExprs.

The current version of this library no longer uses the wxList internally, so this constructor turns the list into its internal format (assuming a non-nested list) and then deletes the supplied list.