@Test public void testKeyword() throws Exception { { Parser<Object> p = new Parser("hello%xyz"); Node t = p.parse(); Node witness = new Node(Node.LITERAL, "hello"); witness.next = new SimpleKeywordNode("xyz"); assertEquals(witness, t); } { Parser<Object> p = new Parser("hello%xyz{x}"); Node t = p.parse(); Node witness = new Node(Node.LITERAL, "hello"); SimpleKeywordNode n = new SimpleKeywordNode("xyz"); List<String> optionList = new ArrayList<String>(); optionList.add("x"); n.setOptions(optionList); witness.next = n; 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; }