|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Object | +--stepc.Compiler
| Field Summary | |
static int |
ERROR_EXIT
|
static int |
NORMAL_EXIT
|
static int |
USAGE_EXIT
|
static String |
VERSION
|
| Constructor Summary | |
Compiler()
Create a new STEP-DL compiler. |
|
| Method Summary | |
void |
emit(Emitter emitter)
Apply an emitter to the current set of parsed definitions. |
int |
errCount()
Get the total parse error count so far. |
(package private) static int |
ioBufferSize()
|
(package private) static boolean |
isDebug()
|
(package private) static boolean |
isVerbose()
|
static void |
main(String[] args)
The default compiler application. |
boolean |
parse(Reader input)
Read a text stream of STEP-DL definitions; parse, resolve and verify the definitions. |
void |
setErrOutput(PrintWriter output)
Direct error/warning messages to a given output stream. |
void |
setMsgOutput(PrintWriter output)
Direct normal messages to a given output stream. |
int |
warnCount()
Get the total parse warning count so far. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
public static final String VERSION
public static final int NORMAL_EXIT
public static final int ERROR_EXIT
public static final int USAGE_EXIT
| Constructor Detail |
public Compiler()
NOTE: By default, no messages are printed.
setMsgOutput(PrintWriter),
setErrOutput(PrintWriter)| Method Detail |
public static void main(String[] args)
args - the command line arguments.
stepc.Compiler --help for details.
public boolean parse(Reader input)
throws IOException
true if the parse was successful,
false if there were errors.
IOException - if an I/O failure occurred while reading the input.errCount(),
warnCount()
public void emit(Emitter emitter)
throws IOException
IOException - if the emitter encountered an I/O failure.public int errCount()
public int warnCount()
public void setMsgOutput(PrintWriter output)
public void setErrOutput(PrintWriter output)
static int ioBufferSize()
static boolean isVerbose()
static boolean isDebug()
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||