Skip to content
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

Allocate an "stdin", "stderr" and "stdout" for languages that read from/print to these streams. #36

Open
Balletie opened this issue Jun 8, 2016 · 0 comments

Comments

@Balletie
Copy link

Balletie commented Jun 8, 2016

E.g. the SimpleLanguage has a println function. The stream that this function prints to should be different from the stream that is used for REPL output, so that the user can distinguish the two. Currently it just prints to System.out.

The streams can be injected using the PolyglotEngine.Builder.

Example:

[In    ]: println("Hello World")
[stdout]: "Hello World"
[Out   ]: UnitV()
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

No branches or pull requests

1 participant