Skip to content

Add support for multiline commands in the REPL #4004

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Nov 20, 2012
Merged

Add support for multiline commands in the REPL #4004

merged 1 commit into from
Nov 20, 2012

Conversation

bleibig
Copy link
Contributor

@bleibig bleibig commented Nov 19, 2012

Adds support for multiline commands in the REPL similarly to GHCi by delimiting with :{ .. :}, e.g.

rusti> :{
rusti| x  
rusti| +
rusti| y
rusti| :}

evaluates x + y.

I also refactored how the repl reads and processes lines a bit to support this.

@graydon
Copy link
Contributor

graydon commented Nov 20, 2012

LGTM, thanks!

@graydon graydon merged this pull request into rust-lang:master Nov 20, 2012
RalfJung added a commit to RalfJung/rust that referenced this pull request Nov 10, 2024
Get/set thread name shims return errors for invalid handles
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants