psil

control

This is the documentation for the control module.


cond

cond (any) returns the evaluated expression associated with the true condition, or #void if none are true. See cond.lisp or fizzbuzz.lisp in the samples folder for examples.

Note cond is a special form.

Parameters:


define

define (#void) creates a binding with the name given in the current scope.

Note define is a special form.

Parameters:


do

do (#void) executes each invocation/expression given.

Note do is a special form.

Parameters:


doc

doc (#void) adds a new entry to the built-in documentation.

Parameters:


exit

exit (N/A) exits the program with a status code.

Parameters:


fail

fail (#void) generates an error, with an optional error message. In REPL mode, Psil will just output the error message to standard error, and continue to accept input, while in load mode, Psil will terminate execution of the given script after the error message is printed.

Parameters:


help

help (#void) shares the documentation for a given procedure or constant.

Parameters:


if

if (any) returns and evaluates one expression if the given condition is true, and the other if false. The other expression within will not be evaluated.

Note if is a special form.

Parameters:


load

load (#void) loads and runs a given Psil script.

Parameters:


type

type (symbol) give the type of the given rand as a symbol.

Parameters: