よりLispっぽく見せる
昨日(d:id:earth2001y:20061001:p2)の続きというか、西尾さんの
マクロで見かけをLispそっくりにできないのかなぁ、と思った。
のコメントを踏まえて。時間があまり無いので、ろくに考えずに。
#include "purelisp.h" #define t T::eval #define nil NIL::eval #define cons(x,y) CONS::eval #define car(x) CAR ::eval #define cdr(x) CDR ::eval #define atom(x) ATOM ::eval #define eq(x,y) EQ ::eval
と、一番手っ取り早いやりかたをやった。
続きを読む