diff options
| author | Felix Perktold <Felix.Perktold@student.uibk.ac.at> | 2025-12-21 22:03:34 +0100 |
|---|---|---|
| committer | Felix Perktold <Felix.Perktold@student.uibk.ac.at> | 2025-12-21 22:03:34 +0100 |
| commit | c7878cd824360c6bf8a8e987acfa6a31140e9d69 (patch) | |
| tree | b1b882d77df4a5571c38cf6aada7666890a6423b /lisp.y | |
| parent | 47debf8cc2197187a347b43a795120638b017d5f (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.y | 5 |
1 files changed, 0 insertions, 5 deletions
@@ -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 { |
