diff options
author | Peter Mikkelsen <peter@pmikkelsen.com> | 2021-07-05 16:59:06 +0000 |
---|---|---|
committer | Peter Mikkelsen <peter@pmikkelsen.com> | 2021-07-05 16:59:06 +0000 |
commit | bdcc02a5ea2d165c638d667978e8e2cf7462558a (patch) | |
tree | d2fffbe7ee5f0c09c070f93204587d055d088b61 /parser.c | |
parent | 44ab8a339c78bcc3460d44b2f435116f21faa60a (diff) |
Turn integers and floats into seperate term types
Diffstat (limited to 'parser.c')
-rw-r--r-- | parser.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -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: |