Package jflex
Class Main
java.lang.Object
jflex.Main
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.
- Version:
- JFlex 1.7.0
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic void
Generates a scanner for the specified input file.static void
generate.static void
Starts the generation process with the files inargv
or pops up a window to choose a file, whenargv
doesn't have any file entries.parseOptions
(String[] argv) parseOptions.private static void
printUnicodePropertyValuesAndAliases
(String unicodeVersion) Prints one Unicode property value per line, along with its aliases, if any, for the given unicodeVersion.static void
Prints the cli usage on stdout.
-
Field Details
-
version
JFlex version- See Also:
-
-
Constructor Details
-
Main
public Main()
-
-
Method Details
-
generate
Generates a scanner for the specified input file.- Parameters:
inputFile
- a file containing a lexical specification to generate a scanner for.
-
parseOptions
parseOptions.- Parameters:
argv
- an array ofString
objects.- Returns:
- a
List
object. - Throws:
SilentExit
- if any.
-
printUnicodePropertyValuesAndAliases
private static void printUnicodePropertyValuesAndAliases(String unicodeVersion) throws UnicodeProperties.UnsupportedUnicodeVersionException Prints one Unicode property value per line, along with its aliases, if any, for the given unicodeVersion.- Parameters:
unicodeVersion
- The Unicode version to print property values and aliases for- Throws:
UnicodeProperties.UnsupportedUnicodeVersionException
- if unicodeVersion is not supported
-
printUsage
public static void printUsage()Prints the cli usage on stdout. -
generate
generate.- Parameters:
argv
- an array ofString
objects.- Throws:
SilentExit
- if any.
-
main
Starts the generation process with the files inargv
or pops up a window to choose a file, whenargv
doesn't have any file entries.- Parameters:
argv
- the commandline.
-