Overview
Package
Class
Tree
Deprecated
Index
Help
PREV NEXT
FRAMES
NO FRAMES
All Classes
A
B
C
D
E
I
L
M
N
O
P
Q
R
S
T
U
V
Y
_
A
accept(Visitor)
- Method in class re.ast.
REEmpty
accept(PropagatingVisitor<DownType, UpType>, DownType)
- Method in class re.ast.
REEmpty
accept(Visitor)
- Method in class re.ast.
RENode
Accepts a visitor object as part of the visitor pattern.
accept(PropagatingVisitor<DownType, UpType>, DownType)
- Method in class re.ast.
RENode
Accepts a propagating visitor parameterized by two types.
action_obj
- Variable in class re.parser.
parser
Instance of action encapsulation class.
action_table()
- Method in class re.parser.
parser
Access to parse-action table.
addTransition(int, int, char)
- Method in class re.
NFA
Add a transition to the NFA.
assertTrue(boolean, String)
- Static method in class re.
Util
Test whether a condition is true, and fail with a message if it is not.
assertTrue(boolean, String, Object...)
- Static method in class re.
Util
Test whether a condition is true, and fail with a message if it is not.
B
BAR
- Static variable in class re.parser.
sym
C
CBRACKET
- Static variable in class re.parser.
sym
CPAREN
- Static variable in class re.parser.
sym
D
debug
- Static variable in class re.
Util
Set this to true to print out messages with the debug() methods.
debug(String)
- Static method in class re.
Util
Print a message to the terminal, if debugging messages has been enabled by setting
debug
.
debug(String, Object...)
- Static method in class re.
Util
Print a message to the terminal using printf-style arguments, if debugging messages has been enabled by setting
debug
.
do_action(int, lr_parser, Stack, int)
- Method in class re.parser.
parser
Invoke a user supplied parse action.
DOT
- Static variable in class re.parser.
sym
E
EOF
- Static variable in class re.parser.
sym
EOF_sym()
- Method in class re.parser.
parser
EOF
Symbol index.
EPSILON
- Static variable in class re.parser.
sym
EQ
- Static variable in class re.parser.
sym
error
- Static variable in class re.parser.
sym
error_sym()
- Method in class re.parser.
parser
error
Symbol index.
I
ID
- Static variable in class re.parser.
sym
IN
- Static variable in class re.parser.
sym
init_actions()
- Method in class re.parser.
parser
Action encapsulation object initializer.
L
LET
- Static variable in class re.parser.
sym
LETTER
- Static variable in class re.parser.
sym
Lexer
- Class in
re.lex
This class is a scanner generated by
JFlex
1.4.1 on 9/13/11 8:46 AM from the specification file
re/lex/regexp.flex
Lexer(Reader)
- Constructor for class re.lex.
Lexer
Creates a new scanner There is also a java.io.InputStream version of this constructor.
Lexer(InputStream)
- Constructor for class re.lex.
Lexer
Creates a new scanner.
LexicalError
- Error in
re.error
A class to represent any kind of lexical error.
LexicalError(String)
- Constructor for error re.error.
LexicalError
M
Main
- Class in
re
Main()
- Constructor for class re.
Main
main(String[])
- Static method in class re.
Main
N
newState()
- Method in class re.
NFA
Add a new state to the NFA and return its id number.
next_token()
- Method in class re.lex.
Lexer
Resumes scanning until the next regular expression is matched, the end of input is encountered or an I/O-Error occurs.
NFA
- Class in
re
A class to represent an NFA.
NFA()
- Constructor for class re.
NFA
Create a new NFA with state 0.
O
OBRACKET
- Static variable in class re.parser.
sym
OPAREN
- Static variable in class re.parser.
sym
P
parser
- Class in
re.parser
CUP v0.11a beta 20060608 generated parser.
parser()
- Constructor for class re.parser.
parser
Default constructor.
parser(Scanner)
- Constructor for class re.parser.
parser
Constructor which sets the default scanner.
parser(Scanner, SymbolFactory)
- Constructor for class re.parser.
parser
Constructor which sets the default scanner.
PLUS
- Static variable in class re.parser.
sym
PrettyPrint
- Class in
re
TODO: Finish me.
PrettyPrint()
- Constructor for class re.
PrettyPrint
printDot()
- Method in class re.
NFA
Creates a file
nfa.dot
containing a graphical description of the NFA.
production_table()
- Method in class re.parser.
parser
Access to production table.
PropagatingVisitor
<
DownType
,
UpType
> - Interface in
re.ast
An interface for a propagating AST visitor.
Q
QUESTION
- Static variable in class re.parser.
sym
R
re
- package re
re.ast
- package re.ast
re.error
- package re.error
re.lex
- package re.lex
re.parser
- package re.parser
reduce_table()
- Method in class re.parser.
parser
Access to
reduce_goto
table.
REEmpty
- Class in
re.ast
A class to represent "\epsilon", an empty regular expression.
REEmpty()
- Constructor for class re.ast.
REEmpty
REError
- Error in
re.error
An exception class to indicate an error while processing regular expressions.
REError(String)
- Constructor for error re.error.
REError
RENode
- Class in
re.ast
The base class of all AST nodes in this package.
RENode()
- Constructor for class re.ast.
RENode
S
setAcceptState(int)
- Method in class re.
NFA
Set the accepting state for the NFA.
STAR
- Static variable in class re.parser.
sym
start_production()
- Method in class re.parser.
parser
Indicates start production.
start_state()
- Method in class re.parser.
parser
Indicates start state.
sym
- Class in
re.parser
CUP generated class containing symbol constants.
sym()
- Constructor for class re.parser.
sym
T
Token
- Class in
re.lex
Just a simple extension to the Symbol class from CUP.
Token(int, Object, int)
- Constructor for class re.lex.
Token
toString()
- Method in class re.lex.
Token
toString()
- Method in class re.
NFA
Return a String representing the NFA in a way that can be read in by
nfa.NFASimulator
.
U
Util
- Class in
re
A few useful utility messages for doing the following: assert that conditions are true.
Util()
- Constructor for class re.
Util
V
visit(REEmpty, DownType)
- Method in interface re.ast.
PropagatingVisitor
visit(REEmpty)
- Method in interface re.ast.
Visitor
visit(REEmpty)
- Method in class re.
PrettyPrint
Visitor
- Interface in
re.ast
An interface for AST visitors.
Y
yybegin(int)
- Method in class re.lex.
Lexer
Enters a new lexical state
yycharat(int)
- Method in class re.lex.
Lexer
Returns the character at position
pos
from the matched text.
yyclose()
- Method in class re.lex.
Lexer
Closes the input stream.
YYEOF
- Static variable in class re.lex.
Lexer
This character denotes the end of file
YYINITIAL
- Static variable in class re.lex.
Lexer
lexical states
yylength()
- Method in class re.lex.
Lexer
Returns the length of the matched text region.
yypushback(int)
- Method in class re.lex.
Lexer
Pushes the specified amount of characters back into the input stream.
yyreset(Reader)
- Method in class re.lex.
Lexer
Resets the scanner to read from a new input stream.
yystate()
- Method in class re.lex.
Lexer
Returns the current lexical state.
yytext()
- Method in class re.lex.
Lexer
Returns the text matched by the current regular expression.
_
_action_table
- Static variable in class re.parser.
parser
Parse-action table.
_production_table
- Static variable in class re.parser.
parser
Production table.
_reduce_table
- Static variable in class re.parser.
parser
reduce_goto
table.
A
B
C
D
E
I
L
M
N
O
P
Q
R
S
T
U
V
Y
_
Overview
Package
Class
Tree
Deprecated
Index
Help
PREV NEXT
FRAMES
NO FRAMES
All Classes