Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 8 additions & 0 deletions analysis/tokenizer.sls
Original file line number Diff line number Diff line change
Expand Up @@ -68,6 +68,14 @@
[head (string-take source position)]
[rest (string-take-right source (- (string-length source) position 1))])
(private:tolerant-parse->patch (string-append head " " rest)))]
["invalid number syntax ~a"
(let* ([position (caddr (condition-irritants e))]
[head (string-take source position)]
[end-position (string-find-delimiter source (+ 1 position))]
[l (- end-position position -1)]
[rest (string-take-right source (- (string-length source) position l))]
[blank (make-string l #\space)])
(private:tolerant-parse->patch (string-append head blank rest)))]
[else
(display-condition e)
(newline)
Expand Down
4 changes: 2 additions & 2 deletions run.ss
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ Example Usage:
(cond
((string-ci=? str "r6rs") 'r6rs)
((string-ci=? str "r7rs") 'r7rs)
;; ((string-ci=? str "s7") 's7)
((string-ci=? str "s7") 's7)
;; ((string-ci=? str "goldfish") 'goldfish)
(else #f)))

Expand All @@ -74,7 +74,7 @@ Example Usage:
(hashtable-set! seeds "top-environment" val)
seeds)
(begin
(display "Invalid value for --top-environment. Valid values: r6rs, r7rs\n")
(display "Invalid value for --top-environment. Valid values: r6rs, r7rs, s7\n")
(exit 1)))))

(define options
Expand Down