1
;=============================================================================
2
; (c) copyright 1988 Kent State University kent, ohio 44242
5
; Authors: Paul S. Wang, Barbara Gates
6
; Permission to use this work for any purpose is granted provided that
7
; the copyright notice, author and support credits above are retained.
8
;=============================================================================
10
(cond ((null (getd 'wrs)) (include "convmac.l")))
12
(declare (special *gentran-dir tempvartype* tempvarname* tempvarnum* genstmtno*
4
;*******************************************************************************
6
;* copyright (c) 1988 kent state univ. kent, ohio 44242 *
8
;*******************************************************************************
11
(cond ((null (fboundp 'wrs)) (include "convmac.l")))
13
(declare-top (special *gentran-dir tempvartype* tempvarname* tempvarnum* genstmtno*
13
14
genstmtincr* *symboltable* *instk* *stdin* *currin* *outstk*
14
15
*stdout* *currout* *outchanl* *lispdefops* *lisparithexpops*
15
16
*lisplogexpops* *lispstmtops* *lispstmtgpops*))
16
(declare (special ccurrind* clinelen* fortcurrind* fortlinelen* genstmtincr*
17
(declare-top (special ccurrind* clinelen* fortcurrind* fortlinelen* genstmtincr*
17
18
genstmtno* *gentranlang gentranopt*
18
19
maxexpprintlen* ratcurrind* ratlinelen* tablen*
19
20
tempvarname* tempvarnum* tempvartype*))
31
32
;; gentran commands ;;
33
(declare (nlambda $gentran $gentranin $gentranout $gentranshut
34
$gentranpush $gentranpop $on $off))
34
;; The following will be declared with defmfun instead.
35
;(declare (nlambda $gentran $gentranin $gentranout $gentranshut
36
; $gentranpush $gentranpop $on $off))
36
38
;; gentran functions ;;
88
90
;; global variables ;;
90
(declare (special *cr* *currin* *currout* *endofloopstack* *errin* *errout*
92
(declare-top (special *eof* *cr* *currin* *currout* *endofloopstack* *errin* *errout*
91
93
*instk* *lisparithexpops* *lispdefops* *lisplogexpops*
92
94
*lispstmtgpops* *lispstmtops* *outchanl* *outstk* *reswds* *slash*
93
95
*stdin* *stdout* *symboltable*))
111
113
(setq *lispstmtgpops* (list 'prog 'progn))
112
114
(setq *lispdefops* (list 'defun))
113
(setq *slash* (ascii 47))
114
(setq *cr* (ascii 10))
115
(setq *slash* (character 47))
116
(setq *cr* (character 10))
117
(setq *eof* (character 0))
115
118
(setq *reswds* '(lambda mand mcond mdefine mdo mdoin mequal mexpt mgeqp
116
119
mgo mgreaterp mleqp mlessp mlist mminus mnot mnotequal
117
120
mor mplus mprog mprogn mquotient mreturn msetq mtimes