From 3d34c22b97fecb831e6e93b3e3f6a53325a3e518 Mon Sep 17 00:00:00 2001 From: Danny Yoo Date: Mon, 20 Feb 2012 16:49:37 -0500 Subject: [PATCH] trying to fix all the silly c...r functions --- compiler/kernel-primitives.rkt | 34 +- generate-c-star-d.rkt | 23 +- .../runtime-src/baselib-primitives.js | 441 +++++++++++------- lang/kernel.rkt | 26 +- 4 files changed, 329 insertions(+), 195 deletions(-) diff --git a/compiler/kernel-primitives.rkt b/compiler/kernel-primitives.rkt index 490cc25..0eedcaa 100644 --- a/compiler/kernel-primitives.rkt +++ b/compiler/kernel-primitives.rkt @@ -30,25 +30,39 @@ 'cons 'car 'cdr - 'caar - 'cadr + + + 'caar 'cdar + 'cadr 'cddr 'caaar - 'caadr - 'cadar - 'caddr 'cdaar - 'cdadr + 'cadar 'cddar + 'caadr + 'cdadr + 'caddr 'cdddr 'caaaar - 'caaadr + 'cdaaar + 'cadaar + 'cddaar 'caadar - 'caaddr - 'cadddr + 'cdadar 'caddar - 'list + 'cdddar + 'caaadr + 'cdaadr + 'cadadr + 'cddadr + 'caaddr + 'cdaddr + 'cadddr + 'cddddr + + + 'list 'list? 'list* 'list->vector diff --git a/generate-c-star-d.rkt b/generate-c-star-d.rkt index 4a39731..d5e3bb8 100644 --- a/generate-c-star-d.rkt +++ b/generate-c-star-d.rkt @@ -7,7 +7,7 @@ (define (make-c*r (n 4)) (define template #<