Back Previous Next


Linguist basic package - run

Syntax:

   run {name} [with {variable} [and {variable} ...]] [as {module}]
   run class {name}

Keyword handler:

   net.eclecity.linguist.basic.keyword.BasicKRun.class

Runtime handler(s):

   net.eclecity.linguist.handler.LHRun.class

Function:

The first form runs the named compiled script module, exporting the list of variables which must those declared in the target's import statement. You can optionally save a reference to the new script in a module variable. See set ready (this is most important). The command also allows you to run a compiled script from an HTTP server, as in the example below.

The second form runs any specified Java class file. Give the root name, without the .class extension.

Example(s):

   run "Monitor5" as Monitor
   run "Flasher" with MyWindow and Count
   run "Module2" with Code as Module2
   run "http://myserver:8080/scripts/Module2.lrun" with Code as Module2
   run class "Splash"


Back Previous Next