|
mjc | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectorg.multijava.util.lexgen.Main
This class is the entry point for the keyword lookup generation facility.
| Field Summary | |
private String[] |
args
|
private DefinitionFile[] |
definitions
|
private static int |
MIN_TOKEN_ID
|
private LexgenOptions |
options
|
| Constructor Summary | |
Main(String[] args)
|
|
| Method Summary | |
private boolean |
buildDefinitionFile()
Builds the ANTLR TokenTypes.txt file and returns true iff successful. |
private boolean |
buildInterfaceFile()
Builds the TokenTypes.java file and returns true iff successful. |
private boolean |
buildKeywordFile()
Generates the keyword file that instantiates tokens for each literal and keyword and that provides the hashtable lookup of IDENTs. |
private boolean |
checkIdentifiers()
Checks the identifiers in the definitions and returns true iff they are OK. |
static void |
main(String[] args)
Entry point to the assembler |
private static String[] |
makeStringArray(ArrayList vec)
Transforms a list of strings into a string array. |
private boolean |
parseArguments(String[] args)
|
private boolean |
parseSourceFiles(String[] infiles)
Parses the named *.t files and returns true iff successful. |
boolean |
run()
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
private LexgenOptions options
private DefinitionFile[] definitions
private static final int MIN_TOKEN_ID
private final String[] args
| Constructor Detail |
public Main(String[] args)
| Method Detail |
public boolean run()
private boolean parseSourceFiles(String[] infiles)
private boolean checkIdentifiers()
private boolean buildDefinitionFile()
private boolean buildInterfaceFile()
private boolean buildKeywordFile()
private static String[] makeStringArray(ArrayList vec)
public static void main(String[] args)
private boolean parseArguments(String[] args)
|
mjc | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||