Encapsulates an action in the specification.
Creates a new Action object of the specified kind.
Creates a new Action object with specified content and line number.
Instance of action encapsulation class.
Access to parse-action table.
Add a regexp to this NFA.
Add a standalone rule that has minimum priority, fires a transition
on all single input characters and has a "print yytext" action.
Unit tests for the jflex ant task.
Constructor for AntTaskTests.
Returns a regexp that matches any character: [^]
CHAR - static field in class JFlex.
sym Constructs a new CharClass object that provides space for
classes of characters from 0 to maxCharCode.
Constructor for CharClassesTest.
This Exception is used in class CharClasses.
Creates a new CharClassException without message
Creates a new CharClassException with the specified message
Stores an interval of characters together with the character class
A character belongs to an interval, if its Unicode value is greater than or equal
to the Unicode value of start
and smaller than or euqal to the Unicode
value of end
.
Creates a new CharClassInterval from start
to end
that belongs to character class charClass
.
Enumerator for the elements of a CharSet.
Check consistency of the stored classes [debug].
Performs semantic analysis for all expressions.
Check that all actions can actually be matched in this DFA.
throws a GeneratorException if there are any errors recorded
number of existing string chunks
Returns the set of elements that contained are in the specified set
but are not contained in this set.
Convert array name into all uppercase internal scanner
constant name.
Return true
iff point
is contained in this intervall.
Return true
iff this intervall completely contains the
other one.
Return a (deep) copy of this char set
Make a copy of this interval.
Copy specified StateSet into this.
An emitter for an array encoded as count/value pairs in a string.
Create a count/value emitter for a specific field.
DASH - static field in class JFlex.
sym If true, additional verbose debug information is produced
This is a compile time option
Dump debug information to System.out
Use like this
if (Out.DEBUG) Out.debug(message)
to save performance during normal operation (when DEBUG
is turned off).
Same as next_token but also prints the token to standard out
for debugging.
DFA representation in JFlex.
Return the number of milliseconds the timer has been running.
Invoke a user supplied parse action.
If true, jflex will write graphviz .dot files for generated automata
If true, you will be flooded with information (e.g.
Dump charclasses to the dump output stream
All parts of JFlex, that want to provide dump information
should use this method for their output.
Emit one value using two characters.
Emit one count/value pair.
Emit declaration of decoded member and open first chunk.
Emits the next part of the skeleton
This class manages the actual code generation, putting
the scanner together, filling in skeleton sections etc.
Some unit tests for the jflex Emitter class
Constructor for EmitterTest.
Emit single unicode character.
Emits count/value unpacking code for the generated array.
Emits hi/low pair unpacking code for the generated array.
Try to find out if user code ends with a javadoc comment
EOF - static field in class JFlex.
sym A simple table to store EOF actions for each lexical state.
Test for equality to another object.
Return true
if o
is an intervall
with the same borders.
print error message with location information
print error message (code)
IO error message for a file (displays file
name in parentheses).
print error message with data
print error message (string)
Central class for all kinds of JFlex messages.
Expands all stored macros, so that getDefinition always returns
a defintion that doesn't contain any macro usages.
default code generation method
Action of a general lookahead expression
Generates a scanner for the specified input file.
Thrown when code generation has to be aborted.
Low priority thread for code generation (low priority
that gui has time for screen updates)
Create a new GeneratorThread, but do not run it yet.
Returns one element of the set and removes it.
Computes base name of the class name.
Create a caseless version of this charset.
Returns the code of the character class the specified character belongs to.
Returns an array that contains the character class codes of all characters
in the specified set of input characters.
Fetches the definition of the macro with the specified name,
The definition will either be the same as stored (expand() not
called), or an equivalent one, that doesn't contain any macro
usages (expand() called before).
Returns an DFA that accepts the same language as this NFA.
Return the corresponding entry state for the forward DFA (if this
is a general lookahead expression)
Compares the priority value of this Action with the specified action.
returns the code of all inclusive states
Returns an array of all CharClassIntervalls in this
char class collection.
The length of the lookahead or base if this is a fixed length
lookahead action.
Returns the greatest Unicode value of the current input character set.
Returns an array that contains the character class codes of all characters
that are not in the specified set of input characters.
returns the number (code) of a declared state,
null
if no such state has been declared.
Returns the current number of character classes.
Grid layout manager like GridLayout but with predefinable
grid size.
Constraints for layout elements of GridLayout
Action encapsulation object initializer.
insert a new state declaration
Stores a new macro and its definition.
Constructs an NFA for regExp such that the NFA has
exactly one start state,
exactly one end state,
no transitions leading out of the end state
no transitions leading into the start state
CharSet implemented with intervalls
[fixme: optimizations possible]
An intervall of characters with basic operations.
Constuct a new intervall from start
to end
.
Find out if this regexp is a char class or equivalent to one.
Return true if code for this is action should be emitted, false
if it is a BACK/FORWARD lookahead action.
Returns true
iff the parameter is an
Action with the same content as this one.
Returns true iff the expression is a finite choice of fixed length
expressions.
Return true iff this is action belongs to a general lookahead rule.
Tests if a macro has been used.
Returns length if expression has fixed length, -1 otherwise.
Simple symbol table, mapping lexical state names to integers.
constructs a new lexical state symbol table
CUP v0.11a beta 20060608 generated parser.
Constructor which sets the default scanner.
Constructor which sets the default scanner.
Creates a new scanner
There is also a java.io.InputStream version of this constructor.
Return kind of lookahead.
String representation of the lookahead kind of this action.
This Exception is used in the macro expander to report cycles or
undefined macro usages.
Creates a new MacroException without message
Creates a new MacroException with the specified message
Symbol table and expander for macros.
Creates a new macro expander.
This is the main class of JFlex controlling the scanner generation process.
Runs the scanner on input files.
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.
JFlex main application frame (GUI mode only)
Creates a new character class for the single character singleChar
.
Updates the current partition, so that the specified set of characters
gets a new character class.
Creates a new character class for each character of the specified String.
Updates the current partition, so that the specified set of characters
gets a new character class.
Updates the current partition, so that the set of all characters not contained in the specified
set of characters gets a new character class.
Make the skeleton private.
the largest character that can be used in char classes
Checks if the expression potentially matches the empty string.
Implementation of Hopcroft's O(n log n) minimization algorithm, follows
description by D.
name of the generated array (mixed case, no yy prefix)
returns the names of all states
Resumes scanning until the next regular expression is matched,
the end of input is encountered or an I/O-Error occurs.
NFA representation in JFlex.
NL - static field in class JFlex.
Out platform dependent newline sequence
don't write backup files if this is true
don't run minimization algorithm if this is true
The code for "no target state" in the transition table.
Constructs a file in Options.getDir() or in the same directory as
another file.
Sets the actual output directory if not already set.
returns the number of declared states
code generation method: maximum packing
Encodes int
arrays as strings.
Create new emitter for an array.
Constructor for PackEmitterTest.
PLUS - static field in class JFlex.
sym Report generation progress.
Returns a String-representation of this regular expression
with the specified indentation.
Returns a String-representation of this regular expression
with the specified indentation.
Returns a String-representation of this regular expression
with the specified indentation.
Report generation progress.
Report generation progress.
Report generation progress.
Print system information (e.g.
Access to production table.
If true, progress dots will be printed
(Re)load the default skeleton.
Reads an external skeleton file from a BufferedReader.
Reads an external skeleton file for later use with this class.
Access to reduce_goto
table.
Stores a regular expression of rules section in a JFlex-specification.
Create a new regular expression of the specified type.
Stores a regular expression from the rules section of a JFlex specification.
Constructs a new regular expression with one child object.
Regular expression with two children (e.g.
Stores all rules of the specification for later access in RegExp -> NFA
Unit tests for JFlex.RegExp
Constructor for RegExpTests.
Request a bug report for an unexpected Exception/Error.
reset error and warning counters
Recursively convert tilde (upto) expressions into negation and star.
Create a new regexp that matches the reverse text of this one.
Run the generator thread.
This Exception could be thrown while scanning the specification
(e.g.
Creates a new ScannerException for a file with a message only.
Creates a new ScannerException for a file with a message and line number.
Creates a new ScannerException with a message, line number and column.
Creates a new ScannerException with a message only.
Creates a new ScannerException with a message and line number.
Performs simple semantic analysis on regular expressions.
Sets all options back to default values.
Set the corresponding entry state for the forward DFA of this action
(if this is a general lookahead expression)
Switches to GUI mode if text
is not null
Set the TextArea to write text to.
Sets the lookahead kind and data for this action
Sets the largest Unicode value of the current input character set.
Sets a new output stream and switches to non-gui mode.
Set a new first character
Translate all values by given amount.
prints a line of a file with marked position.
Signals a silent exit (no statistics printout).
The approximate number of NFA states this expression will need (only
works correctly after macro expansion and without negation)
This class stores the skeleton of generated scanners.
Creates a new skeleton (iterator) instance.
Constructor for SkeletonTest.
STAR - static field in class JFlex.
sym Indicates start production.
A list of pairs of states.
A set of NFA states (= integers).
Enumerates the states of a StateSet.
creates a new StateSetEnumerator that is not yet associated
with a StateSet.
print error and warning statistics
Convenience class for JFlex stdout, redirects output to a TextArea
if in GUI mode.
A StdOutWriter, attached to System.out, no gui mode
A StdOutWrite, attached to the specified output stream, no gui mode
code generation method: switch statement
CUP generated interface containing symbol constants.
code generation method: traditional
If true, jflex will print time statistics about the generation process
Report time statistic data.
Report time statistic data.
Very simple timer for code generation time statistics.
Construct a new timer that starts immediatly.
Returns the String representation of this object.
Return a string representation of the char classes
stored in this class.
returns string representation of this class interval
Make a string representation of this char set.
Get a String representation of this intervall.
Return current output buffer.
Returns a String-representation of this regular expression
Returns a String-representation of this regular expression
Returns a String-representation of this regular expression
Return a string representation of the timer.
Return a string representation of one char class
Enters a new lexical state
Returns the character at position pos from the
matched text.
This character denotes the end of file
Returns the length of the matched text region.
Returns true iff there are still streams left
to read from on the stream stack.
Closes the current input stream and continues to
read from the one on top of the stream stack.
Pushes the specified amount of characters back into the input stream.
Stores the current input stream on a stack, and
reads from a new stream.
Resets the scanner to read from a new input stream.
Returns the current lexical state.
Returns the text matched by the current regular expression.