throws IOException, ParseException {
return parse(CharProducer.Factory.create(in, new InputSource(source)));
}
public static JsonML parse(CharProducer cp) throws ParseException {
JsLexer lexer = new JsLexer(cp, false);
JsTokenQueue tq = new JsTokenQueue(
lexer, cp.getCurrentPosition().source());
tq.setInputRange(cp.filePositionForOffsets(cp.getOffset(), cp.getLimit()));
MessageQueue mq = new EchoingMessageQueue(
new PrintWriter(System.err), new MessageContext());