14 lines
212 B
Ceylon
14 lines
212 B
Ceylon
|
|
shared void run() {
|
||
|
|
|
||
|
|
while(true) {
|
||
|
|
process.write("> ");
|
||
|
|
String? text = process.readLine();
|
||
|
|
if (is String text) {
|
||
|
|
print(text.reversed);
|
||
|
|
}
|
||
|
|
else {
|
||
|
|
break;
|
||
|
|
}
|
||
|
|
}
|
||
|
|
}
|