From fedab6bac08333ca31e69f21add7b66c575ec87c Mon Sep 17 00:00:00 2001 From: Bad Diode Date: Tue, 2 Nov 2021 14:07:46 +0100 Subject: Add compilation of `display` primitive --- src/parser.c | 3 +++ 1 file changed, 3 insertions(+) (limited to 'src/parser.c') diff --git a/src/parser.c b/src/parser.c index 86cf713..9191aa2 100644 --- a/src/parser.c +++ b/src/parser.c @@ -10,6 +10,7 @@ static char *builtins [] = { "=", "<", ">", "<=", ">=", "not", "and", "or", "nil?", "zero?", "fixnum?", "bool?", + "display", }; uint64_t @@ -597,6 +598,8 @@ parse(Token *tokens, Errors *errors) { array_free(roots); roots = final_roots; + // TODO: Check if primitive procedures have been given the right number of + // arguments. // TODO: Type check basic expressions (e.g. arithmetic/numeric comparisons). // We can't be sure when we have functions unless the return type is known. -- cgit v1.2.1