|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorc.Orc
public class Orc
Main class for Orc. Parses Orc file and executes it.
Run with the argument "-help" to get a list of command-line options.
Constructor Summary | |
---|---|
Orc()
|
Method Summary | |
---|---|
static Node |
compile(Config cfg)
|
static Expression |
compile(java.io.Reader source,
Config cfg)
|
static Node |
compile(java.io.Reader source,
Node target,
Config cfg)
|
static java.io.File |
createTmpdir(java.lang.String prefix)
Create a new temporary directory and return the path to that directory. |
static boolean |
deleteDirectory(java.io.File directory)
Delete a directory recursively |
static void |
main(java.lang.String[] args)
Orc toplevel main function. |
static java.io.Reader |
openInclude(java.lang.String name)
Open an include file. |
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 |
---|
public Orc()
Method Detail |
---|
public static void main(java.lang.String[] args)
public static java.io.Reader openInclude(java.lang.String name) throws java.io.FileNotFoundException
TODO: support relative names correctly.
name
- of the include file relative to orc/inc (e.g. "prelude.inc")
java.io.FileNotFoundException
- if the resource is not found.public static Expression compile(java.io.Reader source, Config cfg) throws java.io.IOException, CompilationException
java.io.IOException
CompilationException
public static Node compile(Config cfg) throws CompilationException, java.io.IOException
CompilationException
java.io.IOException
public static Node compile(java.io.Reader source, Node target, Config cfg) throws CompilationException, java.io.IOException
CompilationException
java.io.IOException
public static OrcInstance runEmbedded(java.lang.String source) throws CompilationException, java.io.FileNotFoundException, java.io.IOException
java.io.IOException
java.io.FileNotFoundException
CompilationException
public static OrcInstance runEmbedded(java.io.File source) throws CompilationException, java.io.FileNotFoundException, java.io.IOException
java.io.IOException
java.io.FileNotFoundException
CompilationException
public static OrcInstance runEmbedded(java.io.Reader source) throws CompilationException, java.io.IOException
java.io.IOException
CompilationException
public static OrcInstance runEmbedded(java.io.Reader source, Config cfg) throws CompilationException, java.io.IOException
source
- cfg
-
java.io.IOException
CompilationException
public static java.io.File createTmpdir(java.lang.String prefix) throws java.io.IOException
java.io.IOException
public static boolean deleteDirectory(java.io.File directory)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |