Changeset 11220

Show
Ignore:
Timestamp:
05/07/08 00:43:02 (5 years ago)
Author:
mokehehe
Message:

begin追加

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • lang/c/misc/mlisp/compiler/compiler.cpp

    r11218 r11220  
    286286                                compile_defmacro(name, vars, body); 
    287287                                return next; 
     288                        } else if (eq(op, intern("begin"))) { 
     289                                SExp body = cdr(x); 
     290                                if (nilp(body)) { 
     291                                        return next; 
     292                                } else { 
     293                                        return compile_block(body, e, next); 
     294                                } 
    288295                        } else { 
    289296                                return compile_pair_loop(cdr(x), compile(car(x), e, cons(APPLY, nil)), e, next);