StatementParser { static Parser<Statement> expression(Parser<Expression> expr) { return expr.followedBy(term(";")).map(ExpressionStatement::new); }    }
@Test public void testExpression() { TerminalParserTest.assertResult(SIMPLE_STATEMENT, "foo;", ExpressionStatement.class, "foo;"); }