[fpc-pascal]replacing BEGIN and END?
Jan Je/lowicki
Jasj at OZI.AR.WROC.PL
Thu Jan 8 16:32:04 CET 2004
> To: fpc-pascal at lists.freepascal.org
> From: "Laurent Cocea" <cocea at canada.com>
> Subject: [fpc-pascal]replacing BEGIN and END?
> Send reply to: fpc-pascal at lists.freepascal.org
> Date sent: Wed, 07 Jan 2004 21:41:35 -0800 (PST)
> Hi all-
>
> Do you guys think there might be a way, either at this time or in the
> near future, to replace `BEGIN' with `{' and `END' with `}' in FPC code,
> and still be able to successfully compile it? Thanks.
>
> --Laurent
>
> _______________________________________________
> fpc-pascal maillist - fpc-pascal at lists.freepascal.org
> http://lists.freepascal.org/mailman/listinfo/fpc-pascal
Here it is:
echo /* test*/ program test; {writeln('hello'); }. |\
sed -e"s/{/begin/g" | sed -e"s/}/end/g" | fpc -o hello
Enjoy, but remember that there are also comments.
Jan Jelowicki
jasj at ozi.ar.wroc.pl
-------------------------------------------------------------------
Wroclaw University of Agriculture Akademia Rolnicza we Wroclawiu
Department of Mathematics Katedra Matematyki
-------------------------------------------------------------------
More information about the fpc-pascal
mailing list