/**
* Creates a properly-configured parser object for the E4X grammar.
*/
public static E4XParser parserOn(Reader in) throws IOException {
ANTLRReaderStream cs = new ANTLRReaderStream(in);
E4XLexer lexer = new E4XLexer(cs);
LinkedListTokenSource source = new LinkedListTokenSource(lexer);
LinkedListTokenStream stream = new LinkedListTokenStream(source);
E4XParser parser = new E4XParser(stream);
parser.setTreeAdaptor(TREE_ADAPTOR);
parser.setInput(lexer, cs);