islisp-dev / iris Goto Github PK
View Code? Open in Web Editor NEWThe interpreter of ISLisp
Home Page: https://islisp.js.org
License: Mozilla Public License 2.0
The interpreter of ISLisp
Home Page: https://islisp.js.org
License: Mozilla Public License 2.0
If I run iris
and hit C-d
, it quits the REPL immediately.
If I run iris
, evaluate something, then hit C-d
, it doesn't quit the REPL. Hitting C-d
again quits the REPL.
I'm using the latest Iris installed with go get github.com/asciian/iris on Arch Linux.
If I run the REPL and enter ; test
, it hangs and doesn't proceed to the next prompt. I'd expect the input to be ignored (as the tokenizer yields zero tokens in this case and there's nothing useful you can do) and the next prompt to be displayed. Worse, if I run iris test.lsp
containing comments, nothing is evaluated at all and the interpreter exits with 0, as if everything is fine.
Installed via go get github.com/asciian/iris
on Arch Linux.
Shouldn't be too hard to implement these. Even if Go doesn't have equivalent functions, you could create a timestamp at initialization time, then subtract it from the current timestamp.
;; test.lisp
(format (standard-output) "~A" (read))
$ iris test.lisp # or $iris test.lisp
#<END-OF-STREAM >
$ iris test.lisp # or $iris < test.lisp
10
10
(div -14 3) ;; => -5
(div -14 3) ;; => -4
(block x (return-from x 2) 1) ;=> 2
Not sure whether it's a systematic issue, but I found that neither of these simple examples work correctly:
>>> (with-open-input-file (in "/etc/hostname") (read-line in))
#<DOMAIN-ERROR {IRIS.OBJECT: IN, EXPECTED-CLASS: <STRING>, IRIS.CONTINUABLE: NIL}>
>>> (block foo (return-from foo 42))
#<UNDEFINED-VARIABLE {NAME: FOO, NAMESPACE: VARIABLE, IRIS.CONTINUABLE: NIL}>
Both examples work fine with OpenLisp and return the hostname and 42 respectively. I'm using the latest Iris installed with go get github.com/asciian/iris
on Arch Linux.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.