( The Canterbury Corpus )
home | purpose | summary | details | corpora | methods | related | credits | faq


Description of the progl file

file name:progl
abbreviation:progl
description:Source code in LISP
file size:71646 bytes

Sample of contents of progl
(Lines 81 to 100)
 (cond (c (clear-zone-interior (field-zone f) c))
 (t (clear-zone-interior (field-zone f)¬
W-BACKGROUND))))
 ((eq b 'pattern); patterned background
 (cond (c (pattern-zone-interior (field-zone f)¬
c))
 (t (pattern-zone-interior (field-zone f)¬
W-PATTERN-1))))
 ))); no background at all!

 (defun draw-field-background (f); just what it¬
says
 (let ((b (get (field-properties f)¬
'empty-ground)) ; check if has one
 (c (get (field-properties f) 'empty-colour)))
 (cond ((eq b 'solid); solid background
 (cond (c (clear-zone (field-zone f) c))
 (t (clear-zone (field-zone f) W-BACKGROUND))))
 ((eq b 'pattern); patterned background
 (cond (c (pattern-zone (field-zone f) c))
 (t (pattern-zone (field-zone f) W-PATTERN-1))))
 ))); no background at all!

 (defun draw-field-border (f); draw outline, if¬
any
 (let ((c (get (field-properties f)¬
'border-colour)))
Note: Lines displaying the ¬ symbol have been wrapped for clarity



This page last updated Monday, January 08, 2001 by Matt Powell Department of Computer Science University of Canterbury