parse static method
Implementation
static Node parse(String line) {
if (line == '') {
return BlockEnd();
}
if (line[0] == '#') {
return Comment(line.substring(1).trim());
}
if (line.startsWith('msg')) {
return Token(line);
}
if (line.startsWith('"')) {
return StrLine(line);
}
throw const FormatException();
}