Method code for $read_parser.parse_line()

[Turn on line numbering]
arg dict, line;
var cmd;

if (!line) {
    // we have to do this as such, because of logic (shrug)
    dict = dict.add('status, 'not_done);
    return dict.add_elem('lines, line);
} else if (line[1] == ".") {
    if (line.length() > 1 && line[2] == ".")
        line = line.subrange(2);
    else if (line.length() == 1)
        return dict.add('status, 'done);

    //// No, bad Brandon, Bad, no scooby snack
    //// Decomment this if you want '>' to escape commands when reading
    //   } else if (line[1] == ">") {
    //       if (line.length() > 1 && line[2] == ">") {
    //           line = line.subrange(2);
    //       } else {
    //           dict = dict.add('command, line.subrange(2));
    //           return dict.add('status, 'pass_command);
    //       }
} else if (line == "@abort") {
    return dict.add('status, 'abort);
}
dict = dict.add('status, 'not_done);
return dict.add_elem('lines, line);

// Created 27-Mar-1995 as a part of ColdCore, see: @help Credit

Tlon