orc
Class Orc

java.lang.Object
  extended by orc.Orc

public class Orc
extends java.lang.Object

Main class for Orc. Parses Orc file and executes it.

Run with the argument "-help" to get a list of command-line options.

Author:
wcook, dkitchin

Constructor Summary
Orc()
           
 
Method Summary
static Node compile(Config cfg)
           
static Expr compile(java.io.Reader source, Config cfg)
           
static void main(java.lang.String[] args)
          Orc toplevel main function.
static OrcInstance runEmbedded(java.io.File source)
          Deprecated.  
static OrcInstance runEmbedded(java.io.Reader source)
          Deprecated.  
static OrcInstance runEmbedded(java.io.Reader source, Config cfg)
          Deprecated.  
static OrcInstance runEmbedded(java.lang.String source)
          Deprecated.  
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Orc

public Orc()
Method Detail

main

public static void main(java.lang.String[] args)
Orc toplevel main function. Command line arguments are forwarded to Config for parsing.


compile

public static Expr compile(java.io.Reader source,
                           Config cfg)
                    throws java.io.IOException,
                           CompilationException
Throws:
java.io.IOException
CompilationException

compile

public static Node compile(Config cfg)
                    throws CompilationException,
                           java.io.IOException
Throws:
CompilationException
java.io.IOException

runEmbedded

public static OrcInstance runEmbedded(java.lang.String source)
                               throws CompilationException,
                                      java.io.FileNotFoundException,
                                      java.io.IOException
Deprecated. 

Throws:
java.io.IOException
java.io.FileNotFoundException
CompilationException

runEmbedded

public static OrcInstance runEmbedded(java.io.File source)
                               throws CompilationException,
                                      java.io.FileNotFoundException,
                                      java.io.IOException
Deprecated. 

Throws:
java.io.IOException
java.io.FileNotFoundException
CompilationException

runEmbedded

public static OrcInstance runEmbedded(java.io.Reader source)
                               throws CompilationException,
                                      java.io.IOException
Deprecated. 

Throws:
java.io.IOException
CompilationException

runEmbedded

public static OrcInstance runEmbedded(java.io.Reader source,
                                      Config cfg)
                               throws CompilationException,
                                      java.io.IOException
Deprecated. 

Compile an Orc source program from the given input stream. Start a new Orc engine running this program in a separate thread. Returns an OrcInstance object with information about the running instance.

Parameters:
source -
cfg -
Throws:
java.io.IOException
CompilationException