Re: C-preprocessor for COBOL?

From: Bernard Giroud (bgiroud2_at__nospam_free.fr)
Date: 07/07/04

  • Next message: Bernard Giroud: "Re: C-preprocessor for COBOL?"
    Date: Wed, 07 Jul 2004 06:54:06 +0200
    
    

    Herwig Huener a écrit :

    > 2004-07-06 11:55:55 MESZ
    >
    > "Richard" <riplin@Azonic.co.nz> schrieb:
    >
    > > ...
    >
    > >
    > > Maybe, but it isn't hard to write a preprocessor that can more easily
    > > handle Cobol source, I have written a few.
    >
    > So did I - preprocessor for natural language, I mean.
    > Everybody should write a few preprocessors in a
    > lifetime - it's great fun - and after having played
    > with it a while, one finds out that emacs can do
    > the job just as well.
    >
    > fun aside: If one writes a preprocessor for purposes
    > of conditional compilation for a language that has
    > not (yet) such a thing, one must also invent a suitable
    > notation - a mini-programming language, so to say.
    >

    Conditional compilation is fine with the C preprocessor:
    I used it to control the generation of a Postscript driver.
    But as you said, conditional is already in COBOL,
    and I agree with Richard for areas like commenting
    and mostly way of "calling" preprocessing functions.

    BTW, yes TC is still alive, although some of us can't
    spend too much time on it. Life is hard these days !
    Too many mergers, and too many programmers on
    the market...

    >
    > OK - everybody should invent a new programming-language,
    > now and then, in a life time - it's great fun.
    >
    > Herwig

    --
    Bernard Giroud
    Open Source COBOL Tools Developer
    

  • Next message: Bernard Giroud: "Re: C-preprocessor for COBOL?"

    Relevant Pages

    • Re: C-preprocessor for COBOL?
      ... > can be used for other languages than C - it can ... > conditional compilation, you could, for instance, ... and Unix machines did not do much Cobol. ... but it isn't hard to write a preprocessor that can more easily ...
      (comp.lang.cobol)
    • Re: C-preprocessor for COBOL?
      ... We use GNU m4 as a preprocessor and macro languange for COBOL ...
      (comp.lang.cobol)
    • Re: Decision Tables
      ... Filetab but not Cobol. ... Reading various Cobol books I find no mention of ... code from decision table using a preprocessor. ...
      (comp.lang.cobol)