Language Processing
v2.0

pj2
Class Boot

Object
  extended by Utils
      extended by Boot
All Implemented Interfaces:
Symbols

public class Boot
extends Utils

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

Version:
2.0.0

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

map

protected HashMap<String,Object> map
maps names to trees.


out

protected PrintWriter out
output stream, wraps System.out.

Constructor Detail

Boot

public Boot()
Method Detail

commands

public void commands(String... args)
              throws Exception
run commands as described above.

Throws:
Exception

notNull

protected Object notNull(String who,
                         Object pointer)
mark unexpected null pointer as an error.


main

public static void main(String... args)
run a command line, exit code 1 if there was an error or exception.



(c) 2008 Axel T. Schreiner