use of kalang.ast.Statement in project kalang by kasonyang.
the class AstBuilder method visitExpressions.
@Override
public List<Statement> visitExpressions(ExpressionsContext ctx) {
List<Statement> list = new LinkedList();
for (ExpressionContext e : ctx.expression()) {
ExprNode expr = visitExpression(e);
list.add(new ExprStmt(expr));
}
return list;
}
Aggregations