Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.compilers > #2648

Re: macros of yore, was TeX syntax?

From gah4 <gah4@u.washington.edu>
Newsgroups comp.compilers
Subject Re: macros of yore, was TeX syntax?
Date 2021-04-09 18:39 -0700
Organization Compilers Central
Message-ID <21-04-009@comp.compilers> (permalink)
References <07-02-024@comp.compilers> <21-04-002@comp.compilers> <21-04-004@comp.compilers> <21-04-007@comp.compilers>

Show all headers | View raw


On Friday, April 9, 2021 at 4:20:27 PM UTC-7, Rock Brentwood wrote:
> (His original aim is much more doable now, by the way, than in the 1980's,
> because the *forward* advancement of C from the 1980's to C99 actually entails
> a dramatic *simplification* of what's needed for a "cfront" like utility, and
> much of what went into the original is no longer needed, on that account. You
> can almost even write up a utility as a simple editor script, now! ... Except
> for exception-handling. Most people forget, translation is a *contravariant*
> function of source language - it simplifies when source language complexifies.
> So things become *more* doable, not less!)

I have recently been working with another macro processor from the 1970's,
which is written using a set of macros, and converted to standard Fortran 66.

Among others, the macros implement IF-THEN-ELSE structures and the usual
DO-WHILE and and DO-UNTIL loops.

I recently realized, though haven't done it yet, that I can rewrite the macros
to generate Fortran 90 structured if and looping constructs.

I did that some years ago with the MORTRAN macros, which also are designed
to generate standard Fortran 66 code.

But yes, it is interesting to look at what can be done with old programs
and modern tools.

Back to comp.compilers | Previous | NextPrevious in thread | Find similar


Thread

Re: TeX syntax? Rock Brentwood <rockbrentwood@gmail.com> - 2021-04-04 14:08 -0500
  Re: TeX syntax? gah4 <gah4@u.washington.edu> - 2021-04-05 04:21 -0700
    Re: TeX syntax? gah4 <gah4@u.washington.edu> - 2021-04-05 13:29 -0700
    Re: TeX syntax? ... In-stream/parallel parsing & intelligent handling of macros Rock Brentwood <rockbrentwood@gmail.com> - 2021-04-09 15:18 -0700
      Re: macros of yore, was TeX syntax? gah4 <gah4@u.washington.edu> - 2021-04-09 18:39 -0700

csiph-web