Skip to content

Instantly share code, notes, and snippets.

@arademaker
Created November 3, 2015 10:14
Show Gist options
  • Select an option

  • Save arademaker/d6acd47e0e48bc97727c to your computer and use it in GitHub Desktop.

Select an option

Save arademaker/d6acd47e0e48bc97727c to your computer and use it in GitHub Desktop.
reading CPDOC headers in CL
CL-USER> (pushnew "/opt/local/lib/" cffi:*foreign-library-directories* :test #'equal)
("/opt/local/lib/" (CFFI::EXPLODE-PATH-ENVIRONMENT-VARIABLE "LD_LIBRARY_PATH")
(CFFI::EXPLODE-PATH-ENVIRONMENT-VARIABLE "DYLD_LIBRARY_PATH") (UIOP/OS:GETCWD)
(CFFI::DARWIN-FALLBACK-LIBRARY-PATH))
CL-USER> (ql:quickload :cl-yaml)
To load "cl-yaml":
Load 1 ASDF system:
cl-yaml
; Loading "cl-yaml"
......
(:CL-YAML)
CL-USER> (yaml:parse "---
title: COELHO, Machado
natureza: biográfico
sexo: m
cargos:
- dep. fed. DF 1927-1929 e 1930
- const. 1946
- dep. fed. SP 1946-1951
---
")
#<HASH-TABLE :TEST EQUAL :COUNT 4 {1008E101E3}>
CL-USER> (alexandria:hash-table-alist *)
(("cargos" "dep. fed. DF 1927-1929 e 1930" "const. 1946"
"dep. fed. SP 1946-1951")
("sexo" . "m") ("natureza" . "biográfico") ("title" . "COELHO, Machado"))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment