next up previous
Next: Conclusion Up: The PLAN Tutorial for Previous: The two examples

The Go tool

In addition to PLANStart, the distribution also provides a tool for running your programs in a read-eval-print loop. Type :

java interpreter.Go <code file>

to load definitions from the specified PLAN source code file. You will be then prompted with a --> and you can respond with a valid PLAN expression to compute, followed by a semi-colon. For example:

java interpreter.Go Helloworld.plan
--> 1 + 1;
2
--> doit();
IPv4 : MyActiveHost.domain.name/some.ip.address says : Hello world!
--> "hello "^"world";
"hello world"
-->

The network primitives are not available in this tool; if an expression evaluation tries to use OnRemote or OnNeighbor the evaluation is aborted. Also, the Router Services (as described in the PLAN Programmer's Guide [3]) are not available on the read-eval-print loop.

Press Ctrl-C to exit the loop.



Michael Hicks
Mon Nov 24 10:50:43 EST 1997