September 23, 2017

[Amber Programming Language] How to support data stream

I consider about how to support data stream and it's notation by Amber Programming Language. Especially, consider how to connect shell engine model and console view.

Shell model

The shell model has standard input (stdin), standard output (stdout), standard error (stderr).

In the following example, The data stream is presented as '->'. The stdin property is stream of String.

  shell0: Shell {
     stdin:  String <- ... output module ...
     stdout: String -> ... input module ...
     error:  String -> ... input module ...

Console view

The console view has one or more input to put string into console (uneducable text) view.

  console: Console {
     input:  String <- ... output module ...

No comments: