jess
Class Jesp

java.lang.Object
  |
  +--jess.Jesp

public class Jesp
extends java.lang.Object
implements java.io.Serializable

Parser functionality for Jess.

(C) 1997 Ernest J. Friedman-Hill and Sandia National Laboratories

Author:
Ernest J. Friedman-Hill
See Also:
Serialized Form

Constructor Summary
Jesp(java.io.Reader is, Rete e)
          Construct a Jesp object.
 
Method Summary
 void clear()
          Flush any partially-parsed information, probably to the next ')'.
 Value parse(boolean prompt)
          Parses an input file.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Jesp

public Jesp(java.io.Reader is,
            Rete e)
Construct a Jesp object. The reader will be looked up in the Rete object's router tables, and any wrapper found there will be used.
Parameters:
is - The Reader from which this Jesp should get its input
e - The engine that the parsed commands go to
Method Detail

parse

public Value parse(boolean prompt)
            throws JessException
Parses an input file. Argument is true if a prompt should be printed (to the ReteObject's standard output), false for no prompt.
Parameters:
prompt - True if a prompt should be printed.
Returns:
The result of the last parsed entity (often TRUE or FALSE).
Throws:
JessException - If anything goes wrong.

clear

public void clear()
Flush any partially-parsed information, probably to the next ')'. Useful in error recovery.

© 1997 E.J. Friedman-Hill and Sandia Corporation