Docjar: A Java Source and Docuemnt Enginecom.*    java.*    javax.*    org.*    all    new    plug-in

Quick Search    Search Deep

org.sablecc.sablecc
Class SableCC  view SableCC download SableCC.java

java.lang.Object
  extended byorg.sablecc.sablecc.Executable
      extended byorg.sablecc.sablecc.SableCC

public class SableCC
extends Executable


Nested Class Summary
 
Nested classes inherited from class org.sablecc.sablecc.Executable
Executable.Option
 
Field Summary
(package private)  java.lang.String destinationPath
           
(package private)  java.util.Vector files
           
(package private)  boolean withTools
           
 
Fields inherited from class org.sablecc.sablecc.Executable
APP_BANNER, APP_NAME, APP_VERSION, NEED_OPTIONS
 
Constructor Summary
SableCC()
           
 
Method Summary
protected  void constantsSetup()
          Application banner, name and version.
protected  void displayUsage()
          Usage.
static void main(java.lang.String[] arguments)
           
protected  Executable.Option[] optionsSetup()
          Application command line options.
static void processGrammar(java.io.File in, java.io.File dir, boolean withTools)
          The main method for processing grammar file and generating the parser/lexer.
static void processGrammar(java.lang.String grammar, java.lang.String destDir, boolean withTools)
          The main method for processing grammar file and generating the parser/lexer.
protected  void processLeftOvers(java.util.Iterator iter)
          Lets treat all the remaining command line arguments as grammar files.
protected  void start()
          Main working horse.
 
Methods inherited from class org.sablecc.sablecc.Executable
Main, optionsInfo
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

files

java.util.Vector files

destinationPath

java.lang.String destinationPath

withTools

boolean withTools
Constructor Detail

SableCC

public SableCC()
Method Detail

constantsSetup

protected void constantsSetup()
Application banner, name and version.

Overrides:
constantsSetup in class Executable

displayUsage

protected void displayUsage()
Description copied from class: Executable
Usage. Should be overwritten by the application.

Overrides:
displayUsage in class Executable

optionsSetup

protected Executable.Option[] optionsSetup()
Application command line options.

Overrides:
optionsSetup in class Executable

processLeftOvers

protected void processLeftOvers(java.util.Iterator iter)
Lets treat all the remaining command line arguments as grammar files.

Overrides:
processLeftOvers in class Executable

start

protected void start()
Main working horse. All is ready to be processed. files contain all the grammar files destinationPath is set to . or to the path withTools is either true or false

Overrides:
start in class Executable

processGrammar

public static void processGrammar(java.lang.String grammar,
                                  java.lang.String destDir,
                                  boolean withTools)
                           throws java.lang.Exception,
                                  java.lang.Throwable
The main method for processing grammar file and generating the parser/lexer.


processGrammar

public static void processGrammar(java.io.File in,
                                  java.io.File dir,
                                  boolean withTools)
                           throws java.lang.Exception,
                                  java.lang.Throwable
The main method for processing grammar file and generating the parser/lexer.


main

public static void main(java.lang.String[] arguments)