All Packages Class Hierarchy This Package Previous Next Index
Class javaParse.GrammarChecker
java.lang.Object
|
+----javaParse.GrammarChecker
- public class GrammarChecker
- extends Object
-
getErrorMessage()
-
-
isGoodGrammar(String[])
-
isGoodGrammar
public boolean isGoodGrammar(String gram[])
- Parameters:
- gram - is a String array of possible productions
- Returns:
- true if all Strings in gram could be added
and if gram's productions make a valid Grammar
post: sets an error message that may be useful for a GrammarWindow
sends GrammarInfo to the Grammar( by which it was constructed)
if everything in gram was valid by calling initialize
getErrorMessage
public String getErrorMessage()
- Returns:
- a bried description of possible problems with
the Grammar the array of Strings that were sent to
GrammarChecker
All Packages Class Hierarchy This Package Previous Next Index