changelog shortlog graph tags branches changeset files revisions annotate raw help

Mercurial > core / lisp/lib/organ/util.lisp

changeset 129: 80a56483f9b5
parent: 960c010a23ce
child: 6ad95601645e
author: ellis <ellis@rwest.io>
date: Tue, 26 Dec 2023 23:44:35 -0500
permissions: -rw-r--r--
description: more organ work
1 ;;; lib/organ/util.lisp --- Organ Utils
2 
3 ;;
4 
5 ;;; Code:
6 (in-package :organ)
7 
8 (defun read-org-lines (&optional stream)
9  (apply #'vector
10  (loop for l = (read-line stream nil :eof)
11  until (eq l :eof)
12  collect l)))
13 
14 (defun read-org-lines-from-string (str)
15  (with-input-from-string (s str) (read-org-lines s)))