Fido Alpha 3.2

fido.db
Class GrammarExpressions

java.lang.Object
  |
  +--fido.db.GrammarExpressions

public class GrammarExpressions
extends java.lang.Object


Constructor Summary
GrammarExpressions()
           
 
Method Summary
static java.lang.String createGrammarString(BooleanTree tree)
          Compiles the grammar string from sybmbolic code to a String.
static BooleanTree parseExpression(java.lang.String str)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

GrammarExpressions

public GrammarExpressions()
Method Detail

parseExpression

public static BooleanTree parseExpression(java.lang.String str)
                                   throws FidoDatabaseException,
                                          GrammarParseException,
                                          GrammarLinkNotFoundException
Parameters:
str - String containing an expression to be parsed
Returns:
BooleanTree representing the expression in the parameter str
Throws:
GrammarParseException - thrown if the string passed has a syntax error or otherwise cannot be parsed
FidoDatabaseException
GrammarLinkNotFoundException

createGrammarString

public static java.lang.String createGrammarString(BooleanTree tree)
                                            throws GrammarParseException
Compiles the grammar string from sybmbolic code to a String. This does the opposite of parseExpression()

GrammarParseException
See Also:
parseExpression(java.lang.String)

Fido Alpha 3.2