org.millscript.millscript
Class Interactive

java.lang.Object
  extended by org.millscript.millscript.Session
      extended by org.millscript.millscript.Interactive

public class Interactive
extends Session

This class is used to start an interactive MillScript session.


Field Summary
 
Fields inherited from class org.millscript.millscript.Session
config, engine, state
 
Constructor Summary
Interactive()
          Constructs a new interactive session object.
 
Method Summary
 void compile(java.lang.String origin, java.io.Reader r)
          Compiles code read from the specified reader, with the specified origin message.
static void main(java.lang.String[] args)
          Runs an interactive session first compiling and executing the specified MillScript files.
 
Methods inherited from class org.millscript.millscript.Session
compile, compile, compile, printStatistics, summarizeResults
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Interactive

public Interactive()
Constructs a new interactive session object.

Method Detail

compile

public void compile(java.lang.String origin,
                    java.io.Reader r)
Description copied from class: Session
Compiles code read from the specified reader, with the specified origin message.

Specified by:
compile in class Session
Parameters:
origin - the origin message for any problems.
r - the reader to read code from.
See Also:
Session.compile(java.lang.String, java.io.Reader)

main

public static void main(java.lang.String[] args)
Runs an interactive session first compiling and executing the specified MillScript files.

Parameters:
args - array of String arguments, treated as files to compile and execute before starting an interactive session


Copyright © 2001-2007 Open World Ltd. All Rights Reserved.