public OtpErlangObject parseConsoleInput(final String string) throws ParserException {
OtpErlangObject r1 = null;
try {
r1 = target.call("erlide_backend", "parse_string", "s", string);
} catch (final Exception e) {
throw new ParserException("Could not parse string \"" + string + "\": "
+ e.getMessage());
}
final OtpErlangTuple t1 = (OtpErlangTuple) r1;
if (Util.isOk(t1)) {
return t1.elementAt(1);
}
throw new ParserException("Could not parse string \"" + string + "\": "
+ t1.elementAt(1).toString());
}