You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Jun 3, 2021. It is now read-only.
Currently the 'repl' is reading from stdin if a filename isn't given. I've had a couple different people tell me this is confusing on their first use. It would be nice to have a proper repl with line-by-line feedback as well as line editing. @repnop suggested https://docs.rs/rustyline/
I handle multiline input by checking to see if the parser runs into EOF and building up the code in the REPL until it successfully parses, then do a couple more checks. I'm not sure how elegant this is in the long run and it makes for a bit of a couple weird edge cases -- for instance, expressions need to return successfully on EOF so the REPL can properly evaluate them. I'm not sure if this is a problem for you (allowing arbitrary expression evaluation without making it a statement) but I figured it might be worth noting 👍
Currently the 'repl' is reading from stdin if a filename isn't given. I've had a couple different people tell me this is confusing on their first use. It would be nice to have a proper repl with line-by-line feedback as well as line editing. @repnop suggested https://docs.rs/rustyline/
https://github.com/repnop/bismite/blob/c8354f8534a7488ac25c92f3d8497149cce46004/repl/src/repl.rs#L190
The text was updated successfully, but these errors were encountered: