I think Florian Fischer wrote:
[Charset iso-8859-1 unsupported, filtering to ASCII...]
> Hello, a quick question:
> 
> It seems that rete.executeCommand(String), when reporting errors, 
> returns an error line number corresponding to the total number of lines 
> it has interpreted in this call and before.  Is there a way to reset the 
> line counter so that it reports a line number within the string?

No, but if you need that level of control, you can create your own
parser object and use that directly. All that executeCommand() does is
feed Strings to an instance of jess.Jesp. It uses jess.awt.TextReader
so that it can avoid the overhead of creating a new instance of
Jesp and StringReader with every command, but that would really not be
huge. So all you'd need to do is write your own "executeCommand()"
that looks like

Rete engine = ...
String theCommand = ...
Jesp jesp = new Jesp(engine, new StringReader(theCommand));
jesp.parse(false, engine.getGlobalContext());



---------------------------------------------------------
Ernest Friedman-Hill  
Advanced Software Research          Phone: (925) 294-2154
Sandia National Labs                FAX:   (925) 294-2234
PO Box 969, MS 9012                 [EMAIL PROTECTED]
Livermore, CA 94550         http://herzberg.ca.sandia.gov

--------------------------------------------------------------------
To unsubscribe, send the words 'unsubscribe jess-users [EMAIL PROTECTED]'
in the BODY of a message to [EMAIL PROTECTED], NOT to the list
(use your own address!) List problems? Notify [EMAIL PROTECTED]
--------------------------------------------------------------------

Reply via email to