the compiler now allows + to be used as a floating point addition in the abstract syntax

This commit is contained in:
kr.angelov
2014-10-14 11:15:18 +00:00
parent d42ffaa546
commit 6aa0fd2590
6 changed files with 20 additions and 1 deletions

View File

@@ -136,7 +136,8 @@ typedef enum {
PGF_INSTR_PUSH = 9,
PGF_INSTR_EVAL = 10,
PGF_INSTR_DROP = 13,
PGF_INSTR_FAIL = 14
PGF_INSTR_FAIL = 14,
PGF_INSTR_ADD = 15
} PgfInstruction;
typedef GuSeq PgfConcrs;

View File

@@ -1160,6 +1160,11 @@ pgf_jit_function(PgfReader* rdr, PgfAbstr* abstr,
#endif
jit_jmpi(abstr->eval_gates->mk_const);
break;
case PGF_INSTR_ADD:
#ifdef PGF_JIT_DEBUG
gu_printf(out, err, "ADD\n");
#endif
break;
default:
gu_impossible();
}