Skip to content

Instantly share code, notes, and snippets.

@NalaGinrut
Created July 20, 2012 10:28
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save NalaGinrut/3150057 to your computer and use it in GitHub Desktop.
Save NalaGinrut/3150057 to your computer and use it in GitHub Desktop.
weekly report parser
#! /usr/local/bin/guile \
-e main -s
!#
(define main
(lambda args
(let ((wrl (primitive-eval (read))))
(for-each (lambda (x)
(format #t "[~a]:~%" (car x))
(if (null? (cdr x))
(display "- NULL\n")
(for-each (lambda (y)
(format #t "-~a. ~a~%" (car y) (cadr y)))
(cadr x)))
(newline))
wrl))))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment