diff options
| author | 2024-09-08 08:46:15 -0400 | |
|---|---|---|
| committer | 2024-09-08 08:46:15 -0400 | |
| commit | 775eb863ef2b00251b9bb3d75baafa67011a5c0c (patch) | |
| tree | 2ff051fb936e1398098ec392059fb4729c5e170f | |
| parent | readtable: comments (diff) | |
readtable: handle EOF by returning EOF symbol
| -rw-r--r-- | read.scm | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -242,6 +242,7 @@ (readtable:process (readtable:empty/default readtable:read-ident) (list readtable:add-all-as-skip readtable:ASCII-whitespace) + (list readtable:update #f (readtable:return 'eof)) (list readtable:update #\; (readtable:jump-discard readtable:read-to-newline)))) @@ -275,6 +276,6 @@ (loop)))))) (loop))))) -(read-all "x yy zz ; this is a comment\nx") +(read-all "x yy zz ; this is a comment\nx call/cc ") |
