|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectbyucc.edif.javacc.EdifParserCore
byucc.edif.javacc.EdifParser
byucc.edif.javacc.EdifMergeParser
Provides all the funtionality needed to generate a parser and manipulate the parser, with extended merge and directory search capabilities. Extends the EdifParser.
| Nested Class Summary | |
static class |
EdifMergeParser.SubFiles
Used for parsing the files out of an argument list. |
| Nested classes inherited from class byucc.edif.javacc.EdifParserCore |
EdifParserCore.JJCalls |
| Field Summary | |
static java.lang.String[] |
EDIF_EXTENSIONS
The types of acceptable extensions for EDIF files. |
static int |
MIN_ARGS
The value of the minimum # of args for this class. |
static java.lang.String |
usageString
The value of the string printed out when there is a problem with the argument string. |
| Fields inherited from class byucc.edif.javacc.EdifParserCore |
jj_input_stream, jj_nt, lookingAhead, token, token_source |
| Constructor Summary | |
EdifMergeParser()
|
|
| Method Summary | |
static void |
main(java.lang.String[] args)
|
static EdifEnvironment |
merge(EdifEnvironment topFile,
java.util.Collection dirs,
java.util.Collection subFiles,
EdifLibrary prims)
This function will take the passed-in EdifEnvironment, collect all its black boxes, search for corresponding sub files in all given directories, translate any found subFile, and merge it with the topFile. |
static EdifEnvironment |
merge(EdifEnvironment topFile,
EdifLibrary prims)
This function will take the passed-in EdifEnvironment, collect all its black boxes, search for corresponding sub files in all given directories, translate any found subFile, and merge it with the topFile. |
static java.util.Collection |
parseDirectories(java.lang.String[] args)
Parses all directories out of the argument list, and returns them as a Collection of Strings. |
static EdifMergeParser.SubFiles |
parseFiles(java.lang.String[] args)
Parses all sub files out of the argument list, and returns them as a Collection of Strings. |
static EdifEnvironment |
translate(java.lang.String filename,
java.util.Collection dirs,
java.util.Collection files)
This function will take the passed-in filename, parse it into an EdifEnvironment, collect all its black boxes, search for corresponding sub files in all given directories, translate any found sub file, and merge it with topFile. |
static EdifEnvironment |
translate(java.lang.String filename,
java.util.Collection dirs,
java.util.Collection files,
EdifLibrary prims)
This function will take the passed-in filename, parse it into an EdifEnvironment, collect all its black boxes, search for corresponding sub files in all given directories, translate any found sub file, and merge it with topFile. |
static EdifEnvironment |
translate(java.lang.String filename,
EdifLibrary prims)
This function will take the passed-in filename, parse it into an EdifEnvironment, collect all its black boxes, search for corresponding sub files in all given directories, translate any found sub file, and merge it with topFile. |
| Methods inherited from class byucc.edif.javacc.EdifParser |
translate, translate, translate |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
public static final int MIN_ARGS
public static final java.lang.String usageString
public static final java.lang.String[] EDIF_EXTENSIONS
| Constructor Detail |
public EdifMergeParser()
| Method Detail |
public static EdifEnvironment merge(EdifEnvironment topFile,
EdifLibrary prims)
throws ParseException,
java.io.FileNotFoundException
topFile - Any found sub files will be merged into this
EdifEnvironment.prims - An EdifLibrary of primitives
ParseException
java.io.FileNotFoundExceptionmerge(EdifEnvironment,Collection,Collection,
EdifLibrary)
public static EdifEnvironment merge(EdifEnvironment topFile,
java.util.Collection dirs,
java.util.Collection subFiles,
EdifLibrary prims)
throws ParseException,
java.io.FileNotFoundException
topFile - Any found sub files will be merged into this
EdifEnvironmentdirs - This is a String collection of directories that the
function will search through for any black box filessubFiles - A Collectin of String Objects representing the
names of sub files to parse inprims - An EdifLibrary of primitives
ParseException
java.io.FileNotFoundExceptionmerge(EdifEnvironment,EdifLibrary)
public static EdifEnvironment translate(java.lang.String filename,
EdifLibrary prims)
throws ParseException,
java.io.FileNotFoundException
filename - The filename of the EDIF file to translateprims - The library of prims to compare to the EDIF data
structure so that any primitives can be marked as primitives
ParseException
java.io.FileNotFoundExceptionmerge(EdifEnvironment,EdifLibrary)
public static EdifEnvironment translate(java.lang.String filename,
java.util.Collection dirs,
java.util.Collection files,
EdifLibrary prims)
throws ParseException,
java.io.FileNotFoundException
filename - Any found sub files will be merged into this
EdifEnvironmentdirs - This is a String collection of directories that the
function will search through for any black box filesfiles - Collection of files to merge into the main
environmentprims - The library of prims to compare to the EDIF data
structure so that any primitives can be marked as primitives
ParseException
java.io.FileNotFoundExceptionmerge(EdifEnvironment,EdifLibrary)
public static EdifEnvironment translate(java.lang.String filename,
java.util.Collection dirs,
java.util.Collection files)
throws ParseException,
java.io.FileNotFoundException
filename - Any found sub files will be merged into this
EdifEnvironmentdirs - This is a String collection of directories that the
function will search through for any black box filesfiles - Collection of files to merge into the main
environment
ParseException
java.io.FileNotFoundExceptionmerge(EdifEnvironment,EdifLibrary)public static java.util.Collection parseDirectories(java.lang.String[] args)
args - The argument list
public static EdifMergeParser.SubFiles parseFiles(java.lang.String[] args)
args - The argument list
public static void main(java.lang.String[] args)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||