Parsing Engine

danbikel.parser
Class Constants

java.lang.Object
  extended by danbikel.parser.Constants

public class Constants
extends Object

Contains static constants for use by this package.


Field Summary
static int defaultFileBufsize
          The default file buffer size, which may be passed as an argument to BufferedReader and BufferedWriter constructors.
static Symbol falseSym
          A symbol constant to represent falsity.
static Symbol firstSym
          The symbol constant indicating to match the first child node in the natural walk of a parent's children in a syntax tree (left-to-right, in English).
static Symbol kleeneStarSym
          A symbol constant to represent Kleene star.
static Symbol lastSym
          The symbol constant indicating to match the last child node in the reverse of the natural walk of a parent's children in a syntax tree (right-to-left, in English).
static boolean LEFT
          The constant representing the left side or the left-to-right direction.
static Symbol leftSym
          The symbol constant representing the left side or the left-to-right direction.
static double logOfZero
          A constant to represent the logarithm of zero, equal to Double#NEGATIVE_INFINITY.
static double logProbCertain
          A constant to represent the logarithm of a probability of 1.0 (equal to 0.0).
static double logProbSmall
          The constant to represent the logarithm of 10E-19, which is a very small probability.
static Symbol notSym
          A symbol constant to represent negation.
static double probCertain
          A constant to represent the probability of 1.0 (equal to 1.0).
static double probImpossible
          A constant to represent the probability of an impossible event (equal to 0.0).
static boolean RIGHT
          The constant representing the right side or the right-to-left direction.
static Symbol rightSym
          The symbol constant representing the right side or the right-to-left direction.
static Symbol trueSym
          A symbol constant to represent truth.
 
Method Summary
static Symbol booleanToSym(boolean value)
          Converts a boolean value into a symbol representation.
static Symbol sideToSym(boolean side)
          Converts the boolean value of LEFT into leftSym and converts the boolean value of RIGHT into rightSym.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

LEFT

public static final boolean LEFT
The constant representing the left side or the left-to-right direction.

See Also:
Constant Field Values

RIGHT

public static final boolean RIGHT
The constant representing the right side or the right-to-left direction.

See Also:
Constant Field Values

leftSym

public static final Symbol leftSym
The symbol constant representing the left side or the left-to-right direction.


rightSym

public static final Symbol rightSym
The symbol constant representing the right side or the right-to-left direction.


firstSym

public static final Symbol firstSym
The symbol constant indicating to match the first child node in the natural walk of a parent's children in a syntax tree (left-to-right, in English).


lastSym

public static final Symbol lastSym
The symbol constant indicating to match the last child node in the reverse of the natural walk of a parent's children in a syntax tree (right-to-left, in English).


trueSym

public static final Symbol trueSym
A symbol constant to represent truth.


falseSym

public static final Symbol falseSym
A symbol constant to represent falsity.


notSym

public static final Symbol notSym
A symbol constant to represent negation.


kleeneStarSym

public static final Symbol kleeneStarSym
A symbol constant to represent Kleene star.


logOfZero

public static final double logOfZero
A constant to represent the logarithm of zero, equal to Double#NEGATIVE_INFINITY.

See Also:
Constant Field Values

logProbSmall

public static final double logProbSmall
The constant to represent the logarithm of 10E-19, which is a very small probability.


logProbCertain

public static final double logProbCertain
A constant to represent the logarithm of a probability of 1.0 (equal to 0.0).

See Also:
Constant Field Values

probImpossible

public static final double probImpossible
A constant to represent the probability of an impossible event (equal to 0.0).

See Also:
Constant Field Values

probCertain

public static final double probCertain
A constant to represent the probability of 1.0 (equal to 1.0).

See Also:
Constant Field Values

defaultFileBufsize

public static final int defaultFileBufsize
The default file buffer size, which may be passed as an argument to BufferedReader and BufferedWriter constructors.

See Also:
Constant Field Values
Method Detail

booleanToSym

public static final Symbol booleanToSym(boolean value)
Converts a boolean value into a symbol representation.


sideToSym

public static final Symbol sideToSym(boolean side)
Converts the boolean value of LEFT into leftSym and converts the boolean value of RIGHT into rightSym.


Parsing Engine

Author: Dan Bikel.