From c7878cd824360c6bf8a8e987acfa6a31140e9d69 Mon Sep 17 00:00:00 2001 From: Felix Perktold Date: Sun, 21 Dec 2025 22:03:34 +0100 Subject: add builtins, add pretty printing for lists, fix erroneous symbol x not found for forms (define, lambda ...) add check for head->type == VT_SYMBOL on forms (so a string cannot be misinterpreted as a form symbol), move is_integer from lisp.y to lisp.h/lisp.c --- lisp.y | 5 ----- 1 file changed, 5 deletions(-) (limited to 'lisp.y') diff --git a/lisp.y b/lisp.y index 8ed479d..e8dd961 100644 --- a/lisp.y +++ b/lisp.y @@ -1,15 +1,10 @@ %{ #include #include -#include #include "lisp.h" int yylex(void); int yyerror(const char *s); - -static int is_integer(double x) { - return floor(x) == x && isfinite(x); -} %} %union { -- cgit v1.2.3