- Timestamp:
- 11/05/2007 03:12:10 PM (19 years ago)
- File:
-
- 1 edited
-
trunk/example.lisp (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/example.lisp
r10 r14 39 39 40 40 (defun scan-all (input) 41 (labels ((scan ( input tokens)42 (if (> (length input) 0)43 (multiple-value-bind (class literalremainder)44 (scan-csv input )41 (labels ((scan (start tokens) 42 (if (> (length input) start) 43 (multiple-value-bind (class image remainder) 44 (scan-csv input start) 45 45 (when class 46 (scan remainder (cons (cons class literal) tokens))))47 ( reverse tokens))))48 (scan input'())))46 (scan remainder (cons (cons class image) tokens)))) 47 (nreverse tokens)))) 48 (scan 0 '()))) 49 49 50 50 (scan-all "no quotes,'a ''quote''',\"another \"\"quote\"\"\"")
Note: See TracChangeset
for help on using the changeset viewer.
