Skip to content

Instantly share code, notes, and snippets.

@vdikan
vdikan / gist:e2e5eee952ce36bc5125a091bc935799
Created October 12, 2020 11:22 — forked from matthewp/gist:2324447
String Split in Scheme
;;; 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)))
@vdikan
vdikan / bibtex.lisp
Created September 19, 2020 23:54 — forked from Neronus/bibtex.lisp
Bibtex parser using parser combinators in Common Lisp
(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."))