Overview | Package | Class | Tree | Deprecated | Index | Help
PREV | NEXT FRAMES  | NO FRAMES
A C D G H I M P R S T U

A

addRule(String, String) - Method in class chomps.Chompy
Adds a rule to the Chompy world.
arrayToString(Object[]) - Static method in class tools.Tool
Helper function to turn an Object array into a String.

C

Chomp - class Chomp.
Chomp is the command line interface end for Chompy.
chomps - package chomps
The main Chompy classes.
Chompy - class chomps.Chompy.
Chompy is a general purpose recursive language parser.
clearAdded() - Method in class chomps.Chompy
Resets the number of rules added since the last call to getAdded() or clearAdded() to zero.
clearParsed() - Method in class chomps.Parser
Clears the parsed rule counter and set it to zero.

D

delete() - Method in class chomps.Chompy
Deletes all the rules in the Chompy world.
delete(int) - Method in class chomps.Chompy
Deletes the rule with the given index.

G

getAdded() - Method in class chomps.Chompy
Gets the number of rules added since the last call to getAdded() or clearAdded().
getChompy() - Method in class chomps.Parser
 
getHead(String) - Static method in class tools.Tool
Helper function to return the head of a String.
getParsed() - Method in class chomps.Parser
Gets the number of rules successfully parsed.
getQuote(String, int) - Static method in class tools.Tool
Helper function to get quotes from the source String.
getRule(int) - Method in class chomps.Chompy
Gets the rule with the given index.
getRuleCount() - Method in class chomps.Chompy
Gets the number of rules in the Chompy world.
getRuleList() - Method in class chomps.Chompy
Gets a formatted list of all the rules in the Chompy world.
getStdInput(boolean) - Static method in class tools.Tool
Helper function to get a line from the standard input stream and return it as a String.
getTail(String) - Static method in class tools.Tool
Helper function to return the tail of a String.

H

heads - Variable in class chomps.Chompy
After a call to update() heads holds an array of rule heads for quick reference.

I

InvalidRuleException() - Constructor for class chomps.InvalidRuleException
Constructs an InvalidRuleException with no detail message.
InvalidRuleException(String) - Constructor for class chomps.InvalidRuleException
Constructs an InvalidRuleException with the specified detail message.
InvalidRuleException - exception chomps.InvalidRuleException.
Thrown to show an invalid rule has been passed.
isa(String, String) - Method in class chomps.Chompy
Parses the source String to see if it is of the form of the target String.

M

main(String[]) - Static method in class Chomp
Program entry point for command line execution.

P

Parser(Chompy) - Constructor for class chomps.Parser
Constructor takes a reference to the Chompy world used to reference for rules.
ParserException() - Constructor for class chomps.ParserException
Constructs a ParserException with no detail message.
ParserException(String) - Constructor for class chomps.ParserException
Constructs a ParserException with the specified detail message.
parse(Reader, String) - Method in class chomps.Parser
Parses the given input Reader.
Parser - class chomps.Parser.
Parser is the rule parser class for Chompy.
ParserException - exception chomps.ParserException.
Thrown to show a general parser error has occurred.
pausedOutput(PrintWriter, String[], int, boolean) - Static method in class tools.Tool
Helper function to output a String array to a PrintWriter.

R

ruleCount - Variable in class chomps.Chompy
ruleCount holds the number of rules at the last call to update().
run() - Method in class Chomp
Starts running Chomp.

S

save(String) - Method in class chomps.Chompy
Saves all the rules in the Chompy world to the given filename.
setAdd(boolean) - Method in class chomps.Parser
Sets whether the parser adds rules to the Chompy world as it parses them or not.
stringToArray(String) - Static method in class tools.Tool
Helper function to turns a string into an array of tokens (String[]).

T

tails - Variable in class chomps.Chompy
After a call to update() tails holds an array of string arrays representing the atoms of the rule tails for quick reference.
tools - package tools
General utility tools.
Tool - class tools.Tool.
The Tool class holds a selection of general purpose tools.
toString() - Method in class chomps.Chompy
Returns a string describing the current Chompy object.

U

update() - Method in class chomps.Chompy
Updates the list of rule heads and tails.

A C D G H I M P R S T U
Overview | Package | Class | Tree | Deprecated | Index | Help
PREV | NEXT FRAMES  | NO FRAMES