@Test public void skipped_text() throws Exception { assertThat(parse(MyGrammarKeys.NUMERIC, " 42", Numeric.class).toString()).isEqualTo("42"); }
public N parse(File file) { try { char[] chars = new String(Files.readAllBytes(Paths.get(file.getPath())), charset).toCharArray(); return parse(new Input(chars, file.toURI())); } catch (IOException e) { throw new RuntimeException(e); } }
ActionParser { public N parse(File file) { try { char[] chars = new String(Files.readAllBytes(Paths.get(file.getPath())), charset).toCharArray(); return parse(new Input(chars, file.toURI())); } catch (IOException e) { throw new RuntimeException(e); } } }
ActionParser { public N parse(File file) { try { char[] chars = new String(Files.readAllBytes(Paths.get(file.getPath())), charset).toCharArray(); return parse(new Input(chars, file.toURI())); } catch (IOException e) { throw new RuntimeException(e); } } ActionParser(Charset charset, LexerlessGrammarBuilder b, Class grammarClass, Object treeFactory, NodeBuilder nodeBuilder, GrammarRuleKey rootRule); }
ActionParser { public N parse(File file) { try { char[] chars = new String(Files.readAllBytes(Paths.get(file.getPath())), charset).toCharArray(); return parse(new Input(chars, file.toURI())); } catch (IOException e) { throw new RuntimeException(e); } } ActionParser(Charset charset, LexerlessGrammarBuilder b, Class grammarClass, Object treeFactory, NodeBuilder nodeBuilder, GrammarRuleKey rootRule); N parse(File file); N parse(String source); GrammarRuleKey rootRule(); }
ActionParser { public N parse(File file) { try { char[] chars = new String(Files.readAllBytes(Paths.get(file.getPath())), charset).toCharArray(); return parse(new Input(chars, file.toURI())); } catch (IOException e) { throw new RuntimeException(e); } } ActionParser(Charset charset, LexerlessGrammarBuilder b, Class grammarClass, Object treeFactory, NodeBuilder nodeBuilder, GrammarRuleKey rootRule); N parse(File file); N parse(String source); GrammarRuleKey rootRule();  }