Added support for constant floating point expressions

This commit is contained in:
ceriel
1989-12-19 09:40:25 +00:00
parent 4b42dcf97f
commit c3b3faf7a4
13 changed files with 243 additions and 29 deletions

View File

@@ -55,7 +55,9 @@ LLmessage(tk)
dotp->TOK_INT = 1;
break;
case REAL:
dotp->TOK_REL = Salloc("0.0", 4);
dotp->tk_data.tk_real = new_real();
dotp->TOK_REAL = Salloc("0.0", 4);
flt_str2flt(dotp->TOK_REAL, &dotp->TOK_RVAL);
break;
}
}