eXept Software AG Logo

Smalltalk/X Webserver

Documentation of class 'ReadEvalPrintLoop':

Home

everywhere
www.exept.de
for:
[back]

Class: ReadEvalPrintLoop


Inheritance:

   Object
   |
   +--ReadEvalPrintLoop

Package:
stx:libbasic
Category:
System-Support
Version:
rev: 1.26 date: 2007/07/04 16:00:58
user: cg
file: ReadEvalPrintLoop.st directory: libbasic
module: stx stc-classLibrary: libbasic

Description:


A simple read-eval-print loop for non-GUI or stscript operation.
A line starting with '?' shows the usage message.
Lines starting with '#' are directives:
    #exit   - exit the rep-loop


Instance protocol:

accessing
o  compiler: something

o  doChunkFormat

o  doChunkFormat: something

o  error: something

o  errorStream

o  input: something

o  inputStream

o  output: something

o  outputStream

o  prompt: something

compiler interface-error handling
o  correctableError: message position: pos1 to: pos2 from: aCompiler
compiler notifies us of an error - ignore it

o  correctableSelectorWarning: aString position: relPos to: relEndPos from: aCompiler
compiler notifies us of a warning - ignore it

o  error: aString position: relPos to: relEndPos from: aCompiler
compiler notifies us of a warning - ignore it

o  unusedVariableWarning: aString position: relPos to: relEndPos from: aCompiler
compiler notifies us of a warning - ignore it

o  warning: aString position: relPos to: relEndPos from: aCompiler
compiler notifies us of a warning - ignore it

directives
o  cmd_clear: lineStream

o  cmd_exit: lineStream

o  cmd_help: lineStream

o  cmd_set: lineStream

o  cmd_setOrClear: lineStream to: aBoolean

o  cmd_show: lineStream

o  cmd_use: lineStream

o  directive: line

evaluation
o  readEvalPrintLoop
simple read-eval-print loop for non-graphical Minitalk.
If the chunkFormat-argument is true, chunks are read.
Otherwise, lines up to an empty line (or EOF) are read.



ST/X 6.1.1; WebServer 1.620 at exept:8081; Tue, 22 May 2012 21:54:53 GMT