summaryrefslogtreecommitdiff
path: root/lisp.l
diff options
context:
space:
mode:
authorFelix Perktold <Felix.Perktold@student.uibk.ac.at>2025-12-23 14:29:00 +0100
committerFelix Perktold <Felix.Perktold@student.uibk.ac.at>2025-12-23 14:29:00 +0100
commitc63cbd8db40fbdeccabd218229010cbfb8a93977 (patch)
tree34a9725eb1207a624cb8486420d780bbfb983482 /lisp.l
parentb99be4933bcb850cbaf96f89750e925ecf2e8386 (diff)
fix tests, fix empty input behavior
Diffstat (limited to 'lisp.l')
-rw-r--r--lisp.l3
1 files changed, 1 insertions, 2 deletions
diff --git a/lisp.l b/lisp.l
index cb0453a..d5d2c69 100644
--- a/lisp.l
+++ b/lisp.l
@@ -7,9 +7,8 @@ int tcnt = 0;
%}
%%
-[[:space:]&&[^\n]]+ { /* ignore whitespace */ }
+[[:space:]]+ { /* ignore whitespace */ }
";"[^\n]* { /* ignore comment */ }
-\n { return NLINE; }
"(" { return LPAREN; }
")" { return RPAREN; }
"\." { return DOT; }