guile-commits
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Guile-commits] 12/13: read-syntax uses vector source representation


From: Andy Wingo
Subject: [Guile-commits] 12/13: read-syntax uses vector source representation
Date: Thu, 25 Feb 2021 15:39:11 -0500 (EST)

wingo pushed a commit to branch master
in repository guile.

commit 6c57b2af79dbb36e0faaab6b79a6f80a1df20979
Author: Andy Wingo <wingo@pobox.com>
AuthorDate: Thu Feb 25 16:05:52 2021 +0100

    read-syntax uses vector source representation
    
    * module/ice-9/read.scm (read-syntax): Switch to sourcev format.
---
 module/ice-9/read.scm | 4 +---
 1 file changed, 1 insertion(+), 3 deletions(-)

diff --git a/module/ice-9/read.scm b/module/ice-9/read.scm
index 0724c66..72811fd 100644
--- a/module/ice-9/read.scm
+++ b/module/ice-9/read.scm
@@ -882,7 +882,5 @@
   (define (annotate line column datum)
     (datum->syntax #f ; No lexical context.
                    datum
-                   #:source `((filename . ,filename)
-                              (line . ,line)
-                              (column . ,(1- column)))))
+                   #:source (vector filename line (1- column))))
   (%read port annotate syntax->datum))



reply via email to

[Prev in Thread] Current Thread [Next in Thread]