Changeset 8440


Ignore:
Timestamp:
Feb 7, 2008, 1:42:04 PM (17 years ago)
Author:
marco baringer
Message:

Fix bug in %parse-exrpession's handling of dotted nested-source-forms lists

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/working-0711/ccl/level-1/l1-reader.lisp

    r8439 r8440  
    25072507                                 (record-source-location-on-stream-p stream))
    25082508                        ;; mb 2008-02-07: sometime the nested-source-notes end with t, don't know
    2509                         ;; why. don't really care here.
    2510                        
    2511                         (let ((last (last nested-source-notes)))
    2512                           (when (atom (cdr last))
    2513                             ;; dotted list.
    2514                             (setf (cdr last) (list (cdr last)))))
     2509                        ;; why. don't really care here.                       
    25152510                        (make-source-note :stream stream
    25162511                                          :start (1- start)
    25172512                                          :end end
    25182513                                          :form (car vals)
    2519                                           :children nested-source-notes)))))))))
     2514                                          :children (if nested-source-notes
     2515                                                      (let ((last (last nested-source-notes)))
     2516                                                        (when (atom (cdr last))
     2517                                                          ;; dotted list.
     2518                                                          (setf (cdr last) (list (cdr last)))))
     2519                                                      '()))))))))))
    25202520
    25212521#|
Note: See TracChangeset for help on using the changeset viewer.