Re: Code generation / markup language processing

Martin.Ward@SMLtd.Com (Martin Ward)
20 Jan 1999 12:46:34 -0500

          From comp.compilers

Related articles
Code generation / markup language processing sbisse01@harris.com (Scott Bissett) (1999-01-11)
Re: Code generation / markup language processing nr@labrador.cs.virginia.edu (Norman Ramsey) (1999-01-15)
Re: Code generation / markup language processing Martin.Ward@SMLtd.Com (1999-01-20)
| List of all articles for this month |
From: Martin.Ward@SMLtd.Com (Martin Ward)
Newsgroups: comp.compilers
Date: 20 Jan 1999 12:46:34 -0500
Organization: Compilers Central
References: 99-01-038
Keywords: code

sbisse01@harris.com writes:
> So, my quest is to build a better code generation tool...
> Some of the 'wishes':
> 1) must accept 'template' source code
> 2) must not modify any of the tool's source files
> 3) will generate a MIB file based on the input database
> 4) must be based on a command-line interface
> 5) multi-platform


This looks like an ideal job for perl. Perl runs on both Windows
and virtually any Unix system (as well as many other OSs).
Perl is ideal for parsing text files (including flat-file databases:
just slurp the whole database into an associative array)
and generating other text files (including source code).


Write your code as a module and send it in to CPAN
(the Comprehensive Perl Archive Net).
See: http://www.perl.org and http://www.perl.com


Martin


Martin.Ward@durham.ac.uk http://www.dur.ac.uk/~dcs0mpw/ Erdos number: 4
Maintainer of the G.K.Chesterton web site: http://www.dur.ac.uk/~dcs0mpw/gkc/
Shortcuts: http://i.am/mw and http://i.am/gkc -- try them!


Post a followup to this message

Return to the comp.compilers page.
Search the comp.compilers archives again.