... | ... | @@ -41,8 +41,8 @@ Arguments are passed to the AmbientTalk program. They can be accessed as a table |
|
|
## Environment variables
|
|
|
|
|
|
The following environment variables are used by iat:
|
|
|
|| **AT_HOME** || path to the AmbientTalk distribution directory, used to derive init file and at libraries ||
|
|
|
|| **AT_OBJECTPATH** || the default objectpath to use, if none is specified using `-o` ||
|
|
|
| **AT_HOME** | path to the AmbientTalk distribution directory, used to derive init file and at libraries |
|
|
|
| **AT_OBJECTPATH** | the default objectpath to use, if none is specified using `-o` |
|
|
|
|
|
|
## Read-eval-print Loop
|
|
|
|
... | ... | @@ -50,11 +50,9 @@ If `-p` was not specified on the command line, after evaluating the main argumen |
|
|
|
|
|
Additionally, the REPL recognizes the following "commands":
|
|
|
|
|
|
<table>
|
|
|
<tr><td>**:q** or **:quit**</td><td>Quit the interpreter, a quicker alternative than evaluating `system.exit`</td></tr>
|
|
|
<tr><td>**:l** or **:load** filename</td><td>Load `filename.at` as if it was passed as the main argument file to `iat`. In other words: evaluate the contents of the file in the scope of the global module object (the top-level `self`).</td></tr>
|
|
|
</table>
|
|
|
| **:q** or **:quit** | Quit the interpreter, a quicker alternative than evaluating `system.exit` |
|
|
|
| **:l** or **:load** filename | Load `filename.at` as if it was passed as the main argument file to `iat`. In other words: evaluate the contents of the file in the scope of the global module object (the top-level `self`). |
|
|
|
|
|
|
## Misc
|
|
|
|
|
|
During execution of the iat program, the AmbientTalk Lexical root contains an object called 'system'. Command-line arguments are available as a table of text values via 'system.argv'. The system object can be used to perform basic output (system.println) and input (system.readNextLine:catch:) |
|
|
During execution of the `iat` program, the AmbientTalk Lexical root contains an object called `system`. Command-line arguments are available as a table of text values via `system.argv`. The system object can be used to perform basic output (`system.println`) and input (`system.readNextLine:catch:`) |