summaryrefslogtreecommitdiff
path: root/parser.c
diff options
context:
space:
mode:
authorPeter Mikkelsen <peter@pmikkelsen.com>2021-07-05 16:59:06 +0000
committerPeter Mikkelsen <peter@pmikkelsen.com>2021-07-05 16:59:06 +0000
commitbdcc02a5ea2d165c638d667978e8e2cf7462558a (patch)
treed2fffbe7ee5f0c09c070f93204587d055d088b61 /parser.c
parent44ab8a339c78bcc3460d44b2f435116f21faa60a (diff)
Turn integers and floats into seperate term types
Diffstat (limited to 'parser.c')
-rw-r--r--parser.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/parser.c b/parser.c
index 0e4a175..0acf3b6 100644
--- a/parser.c
+++ b/parser.c
@@ -169,11 +169,11 @@ term(void)
match(VarTok);
break;
case IntTok:
- result = mknumber(NumberInt, lookahead.ival, 0);
+ result = mkinteger(lookahead.ival);
match(IntTok);
break;
case FloatTok:
- result = mknumber(NumberFloat, 0, lookahead.dval);
+ result = mkfloat(lookahead.dval);
match(FloatTok);
break;
case CommaTok: