Related articles |
---|
MACRO PROCESSOR Pcohen@sii.fr (PAtrick COhen) (1998-06-27) |
Re: MACRO PROCESSOR lindsay-j@rmc.ca (John Lindsay) (1998-06-28) |
Re: MACRO PROCESSOR (and Re: writing an assembler!) budd@cs.bu.edu (Phil Budne) (1998-07-01) |
From: | Phil Budne <budd@cs.bu.edu> |
Newsgroups: | comp.compilers |
Date: | 1 Jul 1998 22:49:54 -0400 |
Organization: | Computer Science Department, Boston University, Boston, MA, USA |
References: | 98-06-154 98-06-157 |
Keywords: | assembler, macros |
PAtrick COhen wrote:
>> I have to develop a macro processor for the macro used in
>> assembly of IBM 370. You know the MACRO.. MEND block and the AIF, AGO
>> and LCLA , SETA .....
>>
>> So I'm intersted to know if any one has an idea about the
>> algorithm and where to find the algorithm (URL ?). I'm intersted if
>> some one can give me too the name of a book that treat this subject
>> with detail.
John Lindsay <lindsay-j@rmc.ca> wrote:
>The second is ye olde ad hoc method, especially if it is implemented
>in a language with a powerful string-processing and data handling
>capability like SNOBOL 4 (get the Spitbol compiler from Catspaw for
>any of a number of platforms, or one of a couple of other SNOBOL
>systems) or Icon (surf to the U. of Arizona -- its free and available
>for several platforms and systems!).
Since SNOBOL came up in two threads in one week;
I've done a free port of the "Macro Implementation of SNOBOL4" that
makes full SNOBOL4 (with many SPITBOL extensions) available on just
about anything that has a C compiler. Not to put down Catspaw
SPITBOL, a professional quality tool (which beats my SNOBOL by a
factor of between 6 and 30 depending on the program), which I used to
bootstrap my system. See my page at
http://people.ne.mediaone.net/philbudne/snobol.html
However as much I like using SNOBOL for one-off text processing jobs,
I'd be remiss to not to point out the implementation of a PDP-1
assembler with a macro processor (written to assemble "spacewar" for a
Java PDP-1 simulator) in Perl;
http://lcs.www.media.mit.edu/groups/el/projects/spacewar/
http://lcs.www.media.mit.edu/groups/el/projects/spacewar/sources/macro.pl
http://lcs.www.media.mit.edu/groups/el/projects/spacewar/sources/pdp1.pl
--
Return to the
comp.compilers page.
Search the
comp.compilers archives again.