JFlex
Class Main
public class Main
extends java.lang.Object
This is the main class of JFlex controlling the scanner generation process.
It is responsible for parsing the commandline, getting input files,
starting up the GUI if necessary, etc.
static void | generate(File inputFile) - Generates a scanner for the specified input file.
|
static void | generate(argv[] )
|
static void | main(argv[] ) - Starts the generation process with the files in
argv or
pops up a window to choose a file, when argv doesn't have
any file entries.
|
static Vector | parseOptions(argv[] )
|
static void | printUsage()
|
version
public static final String version
JFlex version
generate
public static void generate(File inputFile)
Generates a scanner for the specified input file.
inputFile
- a file containing a lexical specification
to generate a scanner for.
generate
public static void generate(argv[] )
throws SilentExit
main
public static void main(argv[] )
Starts the generation process with the files in argv
or
pops up a window to choose a file, when argv
doesn't have
any file entries.
parseOptions
public static Vector parseOptions(argv[] )
throws SilentExit
printUsage
public static void printUsage()