Changeset trunk,12 for trunk/csv.lisp


Ignore:
Timestamp:
06/21/2007 05:15:55 AM (19 years ago)
Author:
dsowen
revision id:
svn-v3-trunk0:2948df59-2b31-0410-8e06-c40c0b09d5b6:trunk:12
Message:

Added some documentation to parse3.
Modified csv example for better tree output.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/csv.lisp

    r11 r12  
    22(require '#:parse)
    33(require '#:cl-ppcre)
     4(require '#:local-time)
    45(use-package '#:dso-lex)
    56(import 'parse::substring)
     
    3536        (destructuring-bind (class image) (first token-list)
    3637          (when (eq class ',class)
    37             (values t (rest token-list) (list class image))))))))
     38            (values t (rest token-list) (list image))))))))
    3839
    3940(defmatcher comma)
     
    5758  (row (t-value (* row-rest) (= t-newline))
    5859       (lambda (row)
    59          (princ row)
    60          (mapcar #'second (cons (first row) (mapcar #'second (second row))))))
     60         (mapcar #'car (cons (first row) (mapcar #'second (second row))))))
    6161  (row-rest ((= t-comma) t-value) cdr))
    6262
Note: See TracChangeset for help on using the changeset viewer.