|
||||||||||
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 Expression |
compile(java.io.Reader source,
Config cfg)
|
static Expression |
compile(java.io.Reader source,
Config cfg,
boolean includeStdlib)
|
protected 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)
args
- public static Expression compile(java.io.Reader source, Config cfg) throws ParseError
ParseError
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, boolean includeStdlib) throws ParseError
ParseError
protected static Node compile(java.io.Reader source, Node target, Config cfg)
public static OrcInstance runEmbedded(java.lang.String source)
public static OrcInstance runEmbedded(java.io.File source)
public static OrcInstance runEmbedded(java.io.Reader source)
public static OrcInstance runEmbedded(java.io.Reader source, Config cfg)
source
- cfg
- 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 |