@Test public void testNested() throws Exception { { Parser<Object> p = new Parser("%top %(%child%(%h))"); Node t = p.parse(); Node witness = new SimpleKeywordNode("top"); Node w = witness.next = new Node(Node.LITERAL, " "); CompositeNode composite = new CompositeNode(BARE); w = w.next = composite; Node child = new SimpleKeywordNode("child"); composite.setChildNode(child); composite = new CompositeNode(BARE); child.next = composite; composite.setChildNode(new SimpleKeywordNode("h")); assertEquals(witness, t); } }
public Node parse() throws ScanException { return E(); }
Parser extends ContextAwareBase { public Node parse() throws ScanException { return E(); } }
Parser extends ContextAwareBase { public Node parse() throws ScanException { return E(); } Parser(TokenStream ts);  Parser(String pattern);  Parser(String pattern, IEscapeUtil escapeUtil); }
Parser extends ContextAwareBase { public Node parse() throws ScanException { return E(); } Parser(TokenStream ts);  Parser(String pattern);  Parser(String pattern, IEscapeUtil escapeUtil); Converter<E> compile(final Node top, Map<String, String> converterMap); Node parse(); }
Parser extends ContextAwareBase { public Node parse() throws ScanException { return E(); } Parser(TokenStream ts);  Parser(String pattern);  Parser(String pattern, IEscapeUtil escapeUtil); Converter<E> compile(final Node top, Map<String, String> converterMap); Node parse(); final static String MISSING_RIGHT_PARENTHESIS; final static Map<String, String> DEFAULT_COMPOSITE_CONVERTER_MAP; final static String REPLACE_CONVERTER_WORD; }