[290] in Zephyr_Comments
Zwgc description language
daemon@ATHENA.MIT.EDU (Barr3y Jaspan)
Mon Jun 5 18:59:27 1989
Date: Mon, 5 Jun 89 18:56:35 EDT
From: Barr3y Jaspan <bjaspan@ATHENA.MIT.EDU>
To: zephyr-comments@ATHENA.MIT.EDU
Cc: watchmakers@ATHENA.MIT.EDU
Here is the next installment in the series of bizarre and probably
useless suggestions of mine.
------------------------------------------------------------------
There was some discussion in the zephyr meeting about the language to
use for the new zwgc description language. I suggest a lisp-based
language, because (as I see) it offers whole lists of advantages
(sorry) without the grossness of C syntax (another suggestion.. sorry,
Marc.) What I am thinking about is something like this: (in a
scheme/lisp mix because I don't use either often enough to remember
keywords..)
(define (general-notice-handler notice)
(case ((eq? (class notice) 'message)
(show (center (instance notice))
NEWLINE
'From
(sender notice)
'at
(host notice)
NEWLINE
(message notice)))))
etc. Some useful macros for cpp would make it nicer, such as (for the
show list)
#define SENDER (sender notice)
and for the case eq?'s,
#define CLASS? (eq? (class notice)
so that it would look like:
(case (CLASS? 'message)
etc. (Paren's are off here, I realize.) I don't know if it is
possible/legal/desireable to snarf emacs' lisp interpreter..
Barr3y