summaryrefslogtreecommitdiff
path: root/lisp.l
diff options
context:
space:
mode:
authorFelix Perktold <Felix.Perktold@student.uibk.ac.at>2025-12-21 23:05:40 +0100
committerFelix Perktold <Felix.Perktold@student.uibk.ac.at>2025-12-21 23:05:40 +0100
commit85e9fef4aa8855b6660ce8c8cc8d6f5fb0d507b6 (patch)
tree4155495cac8198ed00539103009275028320fb4f /lisp.l
parentc3273084cc4b1fa4657a5e52590825fd114841e4 (diff)
more pretty printing
Diffstat (limited to 'lisp.l')
-rw-r--r--lisp.l3
1 files changed, 2 insertions, 1 deletions
diff --git a/lisp.l b/lisp.l
index 5ad5c57..20b64af 100644
--- a/lisp.l
+++ b/lisp.l
@@ -7,7 +7,8 @@ int tcnt = 0;
%}
%%
-[[:space:]]+ { /*ignore whitespace*/}
+[[:space:]]+ { /* ignore whitespace */ }
+";"[^\n]* { /* ignore comment */ }
"(" { return LPAREN; }
")" { return RPAREN; }
"\." { return DOT; }