26 lines
340 B
Fortran
26 lines
340 B
Fortran
/**
|
|
* Constants
|
|
*/
|
|
const str nl = "\n";
|
|
|
|
plex Terminal {
|
|
nat handle;
|
|
}
|
|
|
|
/**
|
|
* Main function
|
|
*/
|
|
function main() {
|
|
pln((1.0 + 1.0) as str);
|
|
exit(0);
|
|
}
|
|
|
|
/**
|
|
* Print with a newline
|
|
*/
|
|
function pln(str message) {
|
|
Terminal term = open("/dev/term/0", 0);
|
|
write(term, message, message.length);
|
|
write(term, nl, nl.length);
|
|
}
|