2019-03-20 15:55:57 -07:00
|
|
|
#!/usr/bin/env nomsu -V7.0.0
|
|
|
|
|
|
|
|
###
|
2018-06-14 22:17:26 -07:00
|
|
|
This file contains basic input/output code
|
2018-11-11 15:50:46 -08:00
|
|
|
|
2019-01-10 16:33:37 -08:00
|
|
|
use "core/metaprogramming"
|
2019-01-23 15:43:19 -08:00
|
|
|
use "core/operators"
|
|
|
|
use "core/control_flow"
|
2018-07-20 20:27:15 -07:00
|
|
|
|
2018-11-08 15:23:22 -08:00
|
|
|
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
|
|
|
|
2019-01-15 15:53:31 -08:00
|
|
|
external:
|
2019-01-23 15:43:19 -08:00
|
|
|
(say (*extra arguments*)) means:
|
2019-03-20 15:55:57 -07:00
|
|
|
for $ in (1 to (select "#" (*extra arguments*))):
|
2019-01-23 15:43:19 -08:00
|
|
|
$arg = (select $ (*extra arguments*))
|
|
|
|
$io.write ($arg as text)
|
|
|
|
$io.write "\n"
|
|
|
|
$io.flush()
|
|
|
|
(say $message inline) means ($io.write $message)
|
2019-01-15 15:53:31 -08:00
|
|
|
(ask $prompt) means:
|
|
|
|
$io.write $prompt
|
2019-03-20 15:55:57 -07:00
|
|
|
return ($io.read())
|