parse method
Implementation
Term parse(String code) {
final Lexer lexer = Lexer(code);
final Term res = parseTerm(lexer, true);
if (!lexer.finished()) {
throw UcumException(
'Expression was not parsed completely. Syntax Error? - Code: $code');
}
return res;
}