Skip to content

Make stdin readable after expression evaluation #2

@vaexey

Description

@vaexey

Currently, the stdin is a constant string that is set before expression is evaluated.
This behavior satisfies all finite synchronous expressions, but does not allow dynamic stream reading (eg. writing a prompt to user and waiting for action)

Make stdin a string and stream hybrid, exposing a simple interface to read data after expression evaluation while keeping support for current stdin usage as a string constant.

Example expression syntax that should be supported:

alc "log('What is your name?');stdin.readLine().toFile(output.txt);EMPTY"

Metadata

Metadata

Assignees

Labels

enhancementNew feature or request

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions