|
Language Processing v2.0 |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
ObjectUtils
Boot
public class Boot
command line for the parser generator bootstrapped with oops3
(only first letter of each option is significant).
The options are to facilitate experiments with the algorithms; they must be used
in proper order and they do not interlock on errors.
| -build new name file [builder-class [scanner-class]] | use a parser to build a new tree |
| -Build new name file [builder-class [scanner-class]] | ... and show trace |
| -dump name | dump a tree |
| -Dump name | ... and include lookahead if any |
| -epilog name | output epilog from a parser |
| -generate [path]name.style [options] | generate frontend, shorthand for -Input boot pj2/style.ser -build name boot [path]name.style pj2.StyleBuilder -prolog name -jay name -main [options] -scanner name -tree name -epilog name |
| -Generate [path]name.style [options] | generate frontend, do not store null for an empty alternative |
| -input name file | input a serialized tree |
| -Input name resource | ... from a resource, not a file |
| -jay name [flags] | output input for jay to create a parser;
flags toggle error handling, see Gen
|
| -Jay name [flags] | output input for jay to create a parser
and do not store null for an empty alternative;
flags toggle error handling, see Gen
|
| -main [animate [0|1|2|3]|tree [builder]] | output main program [animate or build tree [with builder]] |
| -prolog name | output prolog from a parser |
| -scanner name[.lex] | generate scanner from parser or file with JLex |
| -Scanner name | show input for JLex from a parser |
| -tree name | generate tree factory source from a parser |
| Field Summary | |
|---|---|
protected HashMap<String,Object> |
map
maps names to trees. |
protected PrintWriter |
out
output stream, wraps System.out. |
| Fields inherited from class Utils |
|---|
error |
| Fields inherited from interface Symbols |
|---|
badInput, endOfFile, firstSymbol, noInput |
| Constructor Summary | |
|---|---|
Boot()
|
|
| Method Summary | |
|---|---|
void |
commands(String... args)
run commands as described above. |
static void |
main(String... args)
run a command line, exit code 1 if there was an error or exception. |
protected Object |
notNull(String who,
Object pointer)
mark unexpected null pointer as an error. |
| Methods inherited from class Utils |
|---|
className, error, error, fromString, getError, message, testScanner, toChars, toString, toString, warning, warning |
| Methods inherited from class Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected HashMap<String,Object> map
protected PrintWriter out
System.out.
| Constructor Detail |
|---|
public Boot()
| Method Detail |
|---|
public void commands(String... args)
throws Exception
Exception
protected Object notNull(String who,
Object pointer)
error.
public static void main(String... args)
|
(c) 2008 Axel T. Schreiner |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||