Package
Class
Use
Tree
Deprecated
Index
Help
Parser
v2.1
PREV NEXT
FRAMES
NO FRAMES
A
B
C
E
F
G
H
I
L
M
O
P
R
S
T
W
A
addEntry(String, Object, int)
- Method in class Parser.
SymbolTable
Adds an entry at the specified level.
ANDNOT
- Static variable in class Parser.
REProcessor
Denotes the and-not option.
B
beginningMatches(String)
- Method in class Parser.
REProcessor
Returns a tree if the beginning of the specified string is matched, otherwise returns null.
beginningMatches(String)
- Method in class Parser.
SubProductionProcessor
Returns a tree if the beginning of the specified string is matched, otherwise returns null.
beginningMatches(String)
- Method in class Parser.
ProductionProcessor
Returns a tree if the beginning of the specified string is matched, otherwise returns null.
branches
- Variable in class Parser.
RETree
The branching structure, linked list of Strings and RETrees.
C
CHARACTERLIST
- Static variable in class Parser.
ParserGenerator
CHARACTERLIST1
- Static variable in class Parser.
ParserGenerator
CHARACTERLIST2
- Static variable in class Parser.
ParserGenerator
codeGen
- Variable in class Parser.
RETree
A method that can be used to generate code.
collapse()
- Method in class Parser.
RETree
Returns a string including all sub-strings using in-order traversal.
E
EPSILON
- Static variable in class Parser.
ParserGenerator
EQ
- Static variable in class Parser.
ParserGenerator
ESCAPESEQUENCE
- Static variable in class Parser.
ParserGenerator
evaluate(Object, String)
- Method in class Parser.
REProcessor
Returns the result of beginningMatches for the appropriate type (RE or REProcessor).
evaluate(Object, String)
- Method in class Parser.
SubProductionProcessor
Returns the result of beginningMatches for the appropriate type (RE, REProcessor, or Integer).
EXPRESSION
- Static variable in class Parser.
ParserGenerator
F
FOLLOW
- Static variable in class Parser.
REProcessor
Denotes the follow option.
G
generateCode(Object, Object)
- Method in class Parser.
RETree
A function used to accommodate automatic code generation.
get(int)
- Method in class Parser.
RETree
Gets an item from the branches of the RETree.
get(int[])
- Method in class Parser.
RETree
Gets an item from the branches of the RETree.
getCurrentLevel()
- Method in class Parser.
SymbolTable
Gets the current level in the stack.
getEntries(int)
- Method in class Parser.
SymbolTable
Gets the hashtable for a specified scope.
getEntry(String, int)
- Method in class Parser.
SymbolTable
Gets the first entry with the same name (starting at the specified level).
GROUP
- Static variable in class Parser.
ParserGenerator
H
HEXCHARACTER
- Static variable in class Parser.
ParserGenerator
I
initializeProcessors()
- Method in class Parser.
ProductionProcessor
Initializes usable subproduction processor array by grouping production processors and subproduction processors.
L
LBRACKET
- Static variable in class Parser.
ParserGenerator
LPAREN
- Static variable in class Parser.
ParserGenerator
M
main(String[])
- Static method in class Parser.
ParserGenerator
Generates a parser java file from a specified EBNF grammar file.
MAYBE
- Static variable in class Parser.
REProcessor
Denotes the ? option.
MINUS
- Static variable in class Parser.
ParserGenerator
MODIFIER
- Static variable in class Parser.
ParserGenerator
O
OR
- Static variable in class Parser.
ParserGenerator
OR
- Static variable in class Parser.
REProcessor
Denotes the or option.
outputclass
- Static variable in class Parser.
ParserGenerator
P
Parser
- package Parser
ParserGenerator
- class Parser.
ParserGenerator
.
The ParserGenerator class is an application used to generate parsers based on EBNF grammar files.
As of version 2.0, the ParserGenerator class also builds functions for performing automatic code generation, much like with yacc.
ParserGenerator()
- Constructor for class Parser.
ParserGenerator
PLUS
- Static variable in class Parser.
REProcessor
Denotes the + option.
popScope()
- Method in class Parser.
SymbolTable
Removes a scoping block from the stack.
production
- Static variable in class Parser.
ParserGenerator
ProductionProcessor
- class Parser.
ProductionProcessor
.
The ProductionProcessor class processes entire production rules from a grammar.
ProductionProcessor(boolean, ProductionProcessor[], String, Object[])
- Constructor for class Parser.
ProductionProcessor
Constructs a new ProductionProcessor with the specified production list, type, and list of parameters.
ProductionProcessor(Method, boolean, ProductionProcessor[], String, Object[])
- Constructor for class Parser.
ProductionProcessor
Constructs a new ProductionProcessor with the specified production list, type, and list of parameters.
ProductionProcessor(ProductionProcessor[], String, Object[])
- Constructor for class Parser.
ProductionProcessor
Constructs a new ProductionProcessor with the specified production list, type, and list of parameters.
PRODUCTIONS
- Static variable in class Parser.
ParserGenerator
pushScope()
- Method in class Parser.
SymbolTable
Adds a new scoping block to the stack.
R
RBRACKET
- Static variable in class Parser.
ParserGenerator
RE
- Static variable in class Parser.
ParserGenerator
REProcessor
- class Parser.
REProcessor
.
The REProcessor class handles processing of regular expression groups.
REProcessor()
- Constructor for class Parser.
REProcessor
Empty constructor
REProcessor(Object, Object, byte)
- Constructor for class Parser.
REProcessor
Constructs a new REProcessor with the specified objects to be matched and a specified mode of operation.
RETree
- class Parser.
RETree
.
The RETree class represents a tree structure used to store strings as parsed useing a regular expression system.
RETree()
- Constructor for class Parser.
RETree
Empty constructor.
RETree(LinkedList, String)
- Constructor for class Parser.
RETree
Constructs a regular expression tree with specified branches and type.
RPAREN
- Static variable in class Parser.
ParserGenerator
RULE
- Static variable in class Parser.
ParserGenerator
S
SEQUENCE
- Static variable in class Parser.
ParserGenerator
SEQUENCELHS
- Static variable in class Parser.
ParserGenerator
SINGLEQUOTE
- Static variable in class Parser.
ParserGenerator
size()
- Method in class Parser.
RETree
Returns the string length of the collapsed tree.
STANDARDRE
- Static variable in class Parser.
ParserGenerator
STANDARDRE1
- Static variable in class Parser.
ParserGenerator
STANDARDRE2
- Static variable in class Parser.
ParserGenerator
STAR
- Static variable in class Parser.
REProcessor
Denotes the * option.
subproduction
- Variable in class Parser.
SubProductionProcessor
A set of subproductions associated with a production (this includes a list of all other available productions).
SubProductionProcessor
- class Parser.
SubProductionProcessor
.
The SubProductionProcessor class handles REProcessors as well as references to productions and subproductions.
SubProductionProcessor()
- Constructor for class Parser.
SubProductionProcessor
Empty constructor.
SubProductionProcessor(SubProductionProcessor[], Object, Object, byte, String)
- Constructor for class Parser.
SubProductionProcessor
Constructs a new SubProductionProcessor with a specified set of SubProductionProcessors, specified objects to be matched, a mode of operation, and a type specification.
SYMBOL
- Static variable in class Parser.
ParserGenerator
SymbolTable
- class Parser.
SymbolTable
.
Represents a generic symbol table object.
SymbolTable()
- Constructor for class Parser.
SymbolTable
T
toString()
- Method in class Parser.
RETree
Returns a formatted string including all sub-strings.
type
- Variable in class Parser.
SubProductionProcessor
A description of the production or subproduction (i.e.
type
- Variable in class Parser.
RETree
A string describing the tree in terms of a grammar.
W
WHITESPACE
- Static variable in class Parser.
ParserGenerator
A
B
C
E
F
G
H
I
L
M
O
P
R
S
T
W
Package
Class
Use
Tree
Deprecated
Index
Help
Parser
v2.1
PREV NEXT
FRAMES
NO FRAMES