JFlex

Class Main

public class Main extends 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.
Field Summary
static Stringversion
JFlex version
Method Summary
static voidgenerate(File inputFile)
Generates a scanner for the specified input file.
static voidgenerate(String[] argv)
static voidmain(String[] 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 VectorparseOptions(String[] argv)
static voidprintUsage()

Field Detail

version

public static final String version
JFlex version

Method Detail

generate

public static void generate(File inputFile)
Generates a scanner for the specified input file.

Parameters: inputFile a file containing a lexical specification to generate a scanner for.

generate

public static void generate(String[] argv)

main

public static void main(String[] 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.

Parameters: argv the commandline.

parseOptions

public static Vector parseOptions(String[] argv)

printUsage

public static void printUsage()