editor.c--
./world-0.6/src/editor.c-- · 424 B
From the archive Glacier-0.6.tar.gz
Download the archive « Back to the archive contents
Editor class
parent frob_class
object editor_class
var root name 'editor_class
eval
.initialize();
.
method new
arg text;
if (type(text) != 'list)
throw(~type, "Text is not a list.");
return <this(), text>;
.
method handle_editor_command
arg text, str;
if (str == "done")
return ['done, text];
else if (str == "abort")
return ['abort];
else
return ['not_done, <this(), text>];
.