return new DRLParser( new CommonTokenStream( new DRLLexer( new ANTLRStringStream( text ) ) ) );
}
private DRLParser getParser(final Reader reader) {
try {
return new DRLParser( new CommonTokenStream( new DRLLexer( new ANTLRReaderStream( reader ) ) ) );
} catch ( final Exception e ) {
throw new RuntimeException( "Unable to parser Reader",
e );
}
}