home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: comp.text.frame
- Path: sparky!uunet!ukma!rsg1.er.usgs.gov!darwin.sura.net!convex!convex!connolly
- From: connolly@convex.com (Dan Connolly)
- Subject: Re: lex&yacc definition of MIF format
- Sender: usenet@news.eng.convex.com (news access account)
- Message-ID: <1992Nov17.001525.28344@news.eng.convex.com>
- Date: Tue, 17 Nov 1992 00:15:25 GMT
- References: <92318.142107SLYNENSK@ESOC.BITNET>
- Nntp-Posting-Host: pixel.convex.com
- Organization: Engineering, CONVEX Computer Corp., Richardson, Tx., USA
- X-Disclaimer: This message was written by a user at CONVEX Computer
- Corp. The opinions expressed are those of the user and
- not necessarily those of CONVEX.
- Lines: 40
-
- In article <92318.142107SLYNENSK@ESOC.BITNET> <SLYNENSK@ESOC.BITNET> writes:
- >Does anyone have such a thing?
-
- I was looking for such a beast a while ago, and never found one.
- But I found that a LISP interpreter that implements a Common Lisp
- style readtable (such as XLISP) is a pretty convenient way to
- process MIF files.
-
- After you install the appropriate read table, executing this:
- (setq S (read))
- given this MIF statement:
-
- <BookComponent
- <FileName `<c\>misc<c\>Commands_List<U\>/doc/cetrone/Commands_List'>
- <StartPageSide ReadFromFile >
- <PageNumbering Continue >
- <PgfNumbering Continue >
- <PageNumPrefix `'>
- <PageNumSuffix `'>
- <DefaultPrint Yes >
- <DefaultApply Yes >
- > # end of BookComponent
-
- returns this lisp expression:
-
- (BOOKCOMPONENT
- (FILENAME "<c>misc<c>Commands_List<U>/doc/cetrone/Commands_List")
- (STARTPAGESIDE READFROMFILE)
- (PAGENUMBERING CONTINUE)
- (PGFNUMBERING CONTINUE)
- (PAGENUMPREFIX "")
- (PAGENUMSUFFIX "")
- (DEFAULTPRINT YES)
- (DEFAULTAPPLY YES))
-
- so you can easily decompose it with (first S) ==> BOOKCOMPONENT
- etc.
-
- Dan
-
-