Re: sisc -e "(+ 1 2)" doesn't seem to work

"Scott G. Miller" <[email protected]>
Newsgroups gmane.comp.java.sisc.user
Message-ID <[email protected]>
On Sun, Aug 20, 2006 at 01:54:43PM -0700, Dan wrote:
> Hello,
> 
> how is the -e (--eval) command line argument supposed
> to be used? sisc -e 1 works as expected (prints result
> 1 and continues to REPL). sisc -e "(+ 2 1)" gives the
> following stack trace in 1.15.2:
> 
> Exception in thread "main" java.io.IOException:
> unexpected end-of-file.
>         at sisc.reader.Parser.potentialError(Unknown
> Source)
>         at sisc.reader.Parser.readList(Unknown Source)
>         at sisc.reader.Parser._nextExpression(Unknown
> Source)
>         at sisc.reader.Parser.nextExpression(Unknown
> Source)
>         at sisc.reader.Parser.nextExpression(Unknown
> Source)
>         at sisc.reader.Parser.nextExpression(Unknown
> Source)
>         at
> sisc.interpreter.Interpreter.evalInput(Unknown Source)
>         at sisc.interpreter.Interpreter.eval(Unknown
> Source)
>         at sisc.REPL.main(Unknown Source)

That may still be a bug though.  Do you mind filing it on SourceForge?  
The expected behavior would be to eval that expression with no error and 
drop you at the REPL prompt.

	Scott

-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.