Gambit: Software Tools for Game Theory | ||
---|---|---|
<<< Previous | The Gambit Command Language | Next >>> |
A GCL program consists of a series of expressions. An expression is typically a GCL command built up out of function calls. Expressions can be entered interactively, at the command prompt, or can be entered from files, via the Include["filename"] directive (see the section on including files).
Expressions are terminated by an end-of-line character (the carriage return) at a point where all brackets, braces, and quotes are matched (cloed). Expressions can be explicitly continued on additional lines by using the continuation character, \.
Comments can be included in GCL statements by preceeding the comments with the characters //. Anything after the // and before a linefeed is ignored by the GCL interpreter.
Some statements can lead to computations which may take a long time to complete. A control-C, typed at the console, is used to halt execution of the GCL and return to the command prompt. Note that the effect of a control-C may not always be immediate, as the control-C is only polled for at convenient stages during computation.
<<< Previous | Home | Next >>> |
Data types | Up | Functions |