antlr.preprocessor
Class GrammarFile
Stores header action, grammar preamble, file options, and
list of grammars in the file
expanded
protected boolean expanded
fileName
protected String fileName
headerAction
protected String headerAction
GrammarFile
public GrammarFile(Tool tool,
String f)
addGrammar
public void addGrammar(Grammar g)
addHeaderAction
public void addHeaderAction(String a)
generateExpandedFile
public void generateExpandedFile()
throws IOException
getName
public String getName()
nameForExpandedGrammarFile
public String nameForExpandedGrammarFile(String f)
setExpanded
public void setExpanded(boolean exp)
toString
public String toString()