Extracted from Pike v7.4 release 341 at 2005-11-30.
pike.ida.liu.se
[Top]
predef::
Languages
Languages.PLIS

Method Languages.PLIS.main()


Method main

void Languages.PLIS.main()

Description

Instantiates a copy of the default environment and starts an interactive main loop that connects to standard I/O. The main loop is as follows:


 (begin
    (define (loop)
      (let ((line (read-line \"PLIS: \")))
          (if line
              (let ((res (catch (eval (read-string line)
                                     (global-environment)))))
                 (display res)
                (loop)))))
    (loop))