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.

Field Summary

static String
version
JFlex version

Method Summary

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()

Field Details

version

public static final String version
JFlex version

Method Details

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(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.
Parameters:

parseOptions

public static Vector parseOptions(argv[] )
            throws SilentExit

printUsage

public static void printUsage()