public Term parseFunction() { Token t = lookAhead(1); String functionName = t.getText(); List<Term> terms = processTerms(); return new Function(functionName, terms); }