next up previous contents index
Next: The !py Command: Execute Up: Scripts Previous: The !exec Command: Execute   Contents   Index


The !lisp Command: Execute Lisp Script

Syntax: !lisp filename [args ...]
This is an interface to the Lisp/Skill parser that is under development. The filename is searched for in the script path and the current directory, and is expected to contain a script in Lisp format. The file will be parsed and the code executed.

Any text following the filename will be parsed as Lisp and included in the argument list. The argument list can be accessed from within the script through the global variables argc and argv.

argc
An integer giving the length of argv.
argv
A list. The first element is the file name, followed by the arguments if any.

See 5.7.1 for a description of the language implementation in Xic.



Stephen R. Whiteley 2022-05-28