nomsu/lib/core/io.nom
Bruce Hill a1849da175 Autoformat (mostly just to do with the new
blank-line-after-end-of-multi-indent-block rule
2019-03-27 15:22:46 -07:00

21 lines
606 B
Plaintext

#!/usr/bin/env nomsu -V7.0.0
###
This file contains basic input/output code
use "core/metaprogramming"
use "core/operators"
use "core/control_flow"
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
external:
(say (*extra arguments*)) means:
for $ in (1 to (select "#" (*extra arguments*))):
$arg = (select $ (*extra arguments*))
$io.write ($arg as text)
$io.write "\n"
$io.flush()
(say $message inline) means ($io.write $message)
(ask $prompt) means:
$io.write $prompt
return ($io.read())