Dec 162017
 
This is a tutorial program which illustrates how the Standard's macro expansion algorithm works. By Plum Hill.
File PH_MACRO.ZIP from The Programmer’s Corner in
Category C Source Code
This is a tutorial program which illustrates how the Standard’s macro expansion algorithm works. By Plum Hill.
File Name File Size Zip Size Zip Type
MAC.C 16256 3943 deflated
MAKEFILE 392 233 deflated
PH_MACRO.DOC 1165 673 deflated
READ.ME 871 490 deflated
STD1.IN 61 55 deflated
STD1.OUT 1199 270 deflated
STD2.IN 75 61 deflated
STD2.OUT 909 281 deflated
STD3.IN 93 71 deflated
STD3.OUT 1433 344 deflated
STD4.IN 76 61 deflated
STD4.OUT 1022 297 deflated
TEST1.IN 49 46 deflated
TEST1.OUT 886 257 deflated
TEST2.IN 211 138 deflated
TEST2.OUT 1942 524 deflated
TEST5.IN 54 43 deflated
TEST5.OUT 477 192 deflated
TEST6.IN 53 41 deflated
TEST6.OUT 688 189 deflated
TEST7.IN 30 30 stored
TEST7.OUT 236 125 deflated
TEST8.IN 41 36 deflated
TEST8.OUT 421 163 deflated

Download File PH_MACRO.ZIP Here

Contents of the READ.ME file


The MAC demonstration program

This is a tutorial program which illustrates how the Standard's
macro-expansion algorithm works. First, look at some of the .out files
to see the model of presentation of macro-expansion.

Then, look at the file mac.c for notes on the implementation. This is
not an elegant program. It was designed to illustrate the dynamics in
the minimum amount of C code. Forget about "information-hiding";
everything is a string of chars.

All of this directory is experimental, not intended to be authoritative,
and in no way an official opinion of the ANSI X3J11 committee.

-----------------------
Permissions:

Permission is granted for reproduction and use of this mac program,
provided that its enclosed authorship notice is reproduced entirely.


Tom Plum, Plum Hall Inc, 609-927-3770, uunet!plumhall!plum .


 December 16, 2017  Add comments

 Leave a Reply

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <s> <strike> <strong>

(required)

(required)