Beispiel #1
0
 public override IPStmt VisitCompoundStmt(PParser.CompoundStmtContext context)
 {
     return(new CompoundStmt(context, context.statement().Select(Visit).Where(stmt => !(stmt is NoStmt)).ToList()));
 }
        public override IPStmt VisitCompoundStmt(PParser.CompoundStmtContext context)
        {
            List <IPStmt> statements = context.statement().Select(Visit).ToList();

            return(new CompoundStmt(context, statements));
        }