@Test public void should_not_parse_invalid_file() { thrown.expect(RecognitionException.class); File file = new File("notfound"); parser.parse(file); }
@Override public AstNode parse(String source) { LocatedText text = new LocatedText(null, source.toCharArray()); return parse(text); }
ParserAdapter extends Parser<G> { @Override public AstNode parse(String source) { LocatedText text = new LocatedText(null, source.toCharArray()); return parse(text); } }
ParserAdapter extends Parser<G> { @Override public AstNode parse(String source) { LocatedText text = new LocatedText(null, source.toCharArray()); return parse(text); } ParserAdapter(Charset charset, G grammar); }
ParserAdapter extends Parser<G> { @Override public AstNode parse(String source) { LocatedText text = new LocatedText(null, source.toCharArray()); return parse(text); } ParserAdapter(Charset charset, G grammar); @Override AstNode parse(String source); @Override AstNode parse(File file); @Override AstNode parse(List<Token> tokens); @Override RuleDefinition getRootRule(); }
ParserAdapter extends Parser<G> { @Override public AstNode parse(String source) { LocatedText text = new LocatedText(null, source.toCharArray()); return parse(text); } ParserAdapter(Charset charset, G grammar); @Override AstNode parse(String source); @Override AstNode parse(File file); @Override AstNode parse(List<Token> tokens); @Override RuleDefinition getRootRule();  }