@Test public void literalWithAccolade0() throws ScanException { Tokenizer tokenizer = new Tokenizer("{}"); Parser parser = new Parser(tokenizer.tokenize()); Node node = parser.parse(); Node witness = new Node(Node.Type.LITERAL, "{"); witness.next = new Node(Node.Type.LITERAL, "}"); assertEquals(witness, node); }
public Node parse() throws ScanException { if (tokenList == null || tokenList.isEmpty()) return null; return E(); }
Parser { public Node parse() throws ScanException { if (tokenList == null || tokenList.isEmpty()) return null; return E(); } }
Parser { public Node parse() throws ScanException { if (tokenList == null || tokenList.isEmpty()) return null; return E(); } Parser(List<Token> tokenList); }
Parser { public Node parse() throws ScanException { if (tokenList == null || tokenList.isEmpty()) return null; return E(); } Parser(List<Token> tokenList); Node parse(); }
Parser { public Node parse() throws ScanException { if (tokenList == null || tokenList.isEmpty()) return null; return E(); } Parser(List<Token> tokenList); Node parse();  }