This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(defpackage bibtex | |
(:use :cl :parser-combinators :alexandria) | |
(:export parse) | |
(:documentation | |
"Parse bibtex files. | |
The current state is quite fragile and didn't go through any extensive testing. | |
There is one external function: PARSE.")) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
;;; str-split : Apr 2006 Doug Hoyte, hcsw.org. | |
;;; ---- | |
;;; Splits a string 'str into a list of strings | |
;;; that were separated by the delimiter character 'ch | |
;;; ---- | |
;;; Efficient as possible given that we can't count on | |
;;; 'str being an immutable string. | |
(define (str-split str ch) | |
(let ((len (string-length str))) |