add OP_EQ/OP_LT/OP_LE

This commit is contained in:
Yuichi Nishiwaki
2013-10-24 21:10:13 +09:00
parent 2732a5a4ec
commit 9cb28f3156
7 changed files with 81 additions and 17 deletions
+1
View File
@@ -30,6 +30,7 @@ typedef struct {
pic_value sQUASIQUOTE, sUNQUOTE, sUNQUOTE_SPLICING;
pic_value sCONS, sCAR, sCDR, sNILP;
pic_value sADD, sSUB, sMUL, sDIV;
pic_value sEQ, sLT, sLE, sGT, sGE;
struct sym_tbl *sym_tbl;
+3
View File
@@ -27,6 +27,9 @@ enum pic_opcode {
OP_SUB,
OP_MUL,
OP_DIV,
OP_EQ,
OP_LT,
OP_LE,
OP_STOP
};