Start sketching in support for reading from stdin.

This commit is contained in:
Bob Nystrom
2015-10-16 21:05:24 -07:00
parent c714c53c83
commit d431c2eaa8
12 changed files with 263 additions and 16 deletions
+11
View File
@@ -0,0 +1,11 @@
import "io" for Stdin
System.write("> ")
System.print("1 " + Stdin.readLine())
System.write("> ")
System.print("2 " + Stdin.readLine())
// stdin: first
// stdin: second
// expect: > 1 first
// expect: > 2 second