[View]  [Edit]  [Lock]  [References]  [Attachments]  [History]  [Home]  [Changes]  [Search]  [Help] 

[console] How to use the StLoop utility?

The Console platform contribution includes a smalltalk file named "StLoop.st".
This file implements a smalltalk evaluation loop.
It read the standard input line per line and print to standard output the result of evaluating the line as smalltalk code.

The file can be installed via fileIn in the Shell, evaluating the (javaScript) expression:
     fileIn("StLoop.st")     

After evaluating the fileIn, the tool is installed and you are ready to start the loop evaluating the (javaScript) expression:
            st()            

While in the loop you can enter smalltalk code (in one line), following the "?" prompt and press Enter to evaluate the expression you entered.
After evaluation, the result will be shown (or the exception thrown in case of failure).