summaryrefslogtreecommitdiff
path: root/lisp.y
diff options
context:
space:
mode:
authorFelix Perktold <Felix.Perktold@student.uibk.ac.at>2025-12-21 22:03:34 +0100
committerFelix Perktold <Felix.Perktold@student.uibk.ac.at>2025-12-21 22:03:34 +0100
commitc7878cd824360c6bf8a8e987acfa6a31140e9d69 (patch)
treeb1b882d77df4a5571c38cf6aada7666890a6423b /lisp.y
parent47debf8cc2197187a347b43a795120638b017d5f (diff)
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
Diffstat (limited to 'lisp.y')
-rw-r--r--lisp.y5
1 files changed, 0 insertions, 5 deletions
diff --git a/lisp.y b/lisp.y
index 8ed479d..e8dd961 100644
--- a/lisp.y
+++ b/lisp.y
@@ -1,15 +1,10 @@
%{
#include <stdio.h>
#include <stdlib.h>
-#include <math.h>
#include "lisp.h"
int yylex(void);
int yyerror(const char *s);
-
-static int is_integer(double x) {
- return floor(x) == x && isfinite(x);
-}
%}
%union {