;;;;
;;;; Name: parse-common.lisp
;;;; Purpose: Common, stable parsing routines for UMLisp
-;;;; Programmer: Kevin M. Rosenberg
+;;;; Author: Kevin M. Rosenberg
;;;; Date Started: Apr 2000
;;;;
-;;;; $Id: parse-common.lisp,v 1.7 2003/05/06 07:17:35 kevin Exp $
+;;;; $Id: parse-common.lisp,v 1.8 2003/05/06 07:44:07 kevin Exp $
;;;;
;;;; This file, part of UMLisp, is
;;;; Copyright (c) 2000-2002 by Kevin M. Rosenberg, M.D.
(let* ((filename (car length-list))
(max-field (cadr length-list))
(av-field (caddr length-list))
- (file (find-umls-file filename)))
+ (file (find-ufile filename)))
(when file
(if (/= (length max-field) (length (fields file)))
(format t "Warning: Number of file fields ~A doesn't match length of fields in file structure ~S"
(dotimes (i (max (length max-field) (length (fields file))))
(declare (fixnum i))
(let* ((field (nth i (fields file)))
- (col (find-umls-col field filename)))
+ (col (find-ucol field filename)))
(if col
(progn
(setf (cmax col) (aref max-field i))
(push new-col *umls-cols*)
new-col))))))
-(defun find-umls-col (colname filename)
+(defun find-ucol (colname filename)
"Returns list of umls-col structure for a column name and a filename"
(find-or-make-col-in-columns colname filename *umls-cols*))
-(defun find-umls-file (filename)
+(defun find-ufile (filename)
"Returns umls-file structure for a filename"
(find-if (lambda (f) (string-equal filename (fil f))) *umls-files*))
-(defun ucols-for-umls-file (file)
+(defun ucols-for-ufile (file)
"Returns list of umls-cols for a file structure"
(let ((filename (fil file)))
- (mapcar (lambda (col) (find-umls-col col filename))
+ (mapcar (lambda (col) (find-ucol col filename))
(fields file))))