Node:Invoking Q, Next:, Previous:Acknowledgements and licensing, Up:Top



Invoking Q

The way you run Q is very similar to how you run a typical shell.

Q [options] [file args]

First Q processes the options (these begin with a hyphen).

If there are no more arguments after processing the options, Q enters interactive mode: If prompts for an expression, evaluates it, and print it, before prompting for the next expression, and so on.

If there are arguments remaining after the options, the first argument must name a Q source file. Q evaluates that source file non-interactively, setting the argv array to whater arguments are left over.

These options are currently supported by Q:

-e expression
Evaluate the expresion
-f filename
Evaluate the code in the named file.
-i
Set interactive mode, regardless.
-Lnumber
Set various debugging/logging options.
--Lisp
Make Common Lisp the default language: User input is parsed in Common Lisp syntax, and output is printed in Common Lisp format.
--lisp
Synonum for --Lisp
--Scheme
Make Scheme the default language: User input is parsed in Scheme syntax, and output is printed in Scheme format.
--scheme
Synonum for --Scheme
--
Enter an interactive dialogue.