antlr.preprocessor
Class Tool

java.lang.Object
  |
  +--antlr.preprocessor.Tool

public class Tool
extends java.lang.Object


Field Summary
protected  Tool antlrTool
           
protected  java.lang.String[] args
           
protected  java.lang.String grammarFileName
           
protected  Vector grammars
           
protected  int nargs
           
protected  Hierarchy theHierarchy
           
 
Constructor Summary
Tool(Tool t, java.lang.String[] args)
           
 
Method Summary
static void main(java.lang.String[] args)
           
 boolean preprocess()
           
 java.lang.String[] preprocessedArgList()
          create new arg list with correct length to pass to ANTLR
private  void processArguments(java.lang.String[] incomingArgs)
          Process -glib options and grammar file.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

theHierarchy

protected Hierarchy theHierarchy

grammarFileName

protected java.lang.String grammarFileName

args

protected java.lang.String[] args

nargs

protected int nargs

grammars

protected Vector grammars

antlrTool

protected Tool antlrTool
Constructor Detail

Tool

public Tool(Tool t,
            java.lang.String[] args)
Method Detail

main

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

preprocess

public boolean preprocess()

preprocessedArgList

public java.lang.String[] preprocessedArgList()
create new arg list with correct length to pass to ANTLR


processArguments

private void processArguments(java.lang.String[] incomingArgs)
Process -glib options and grammar file. Create a new args list that does not contain the -glib option. The grammar file name might be modified and, hence, is not added yet to args list.