Article View: comp.sys.mac.programmer.codewarrior
Article #1034Re: [Q] How do I use a source code generator?
From: MW Ron
Date: Wed, 27 Feb 2002 00:13
Date: Wed, 27 Feb 2002 00:13
42 lines
2581 bytes
2581 bytes
In article
<oster-B8530D.08470726022002@newssvr14-ext.news.prodigy.com>,
David Phillip Oster <oster@ieee.org> wrote:
>What is the best way to use a source code generator with Codewarrior?
>
>Say, I've got something like lex or yacc, that takes source code in a
>little language and generates a new file or stream of c++ source code,
>and that my input file has #includes in it. How do I:
>
>1.) Tell Codewarrior that after it runs the translator on the input
>file, it should run the compiler on the resulting output file?
>
>2.) Tell Codewarrior that the output C file depends on the input file,
>and also the include files?
>
>3.) What if the translator generates both a .cp file, and a .r file?
>
>Should I be writing my translator as a preprocessor plugin?
either that or use a perl script to do this and use the Perl plugin.
>Should I junk the whole idea of seamless integration with Codewarrior,
>and just use MPW and MPW's makeFiles to do all the non-Codewarrior
>processing, then have it send an appleEvent to codewarrior to build the
>resulting C++?
>
>What part of the Metrowerks documentation should I have read?
You should read the Plugin API Reference.
It seems like this should be something you can do simply, but I'm really
not up on this stuff.
Ron
--
TOP PICK HandHeld Computing - issue 4.5
"The best overall development tool for the Palm OS"
Metrowerks, maker of CodeWarrior - "Software Starts Here"
Ron Liechty - MWRon@metrowerks.com - http://www.metrowerks.com
Technical Details
Message-ID:
<mwron-C88661.19130126022002@enews.newsguy.com>Path:
arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!newsfeed.stanford.edu!logbridge.uoregon.edu!pln-w!spln!dex!extra.newsguy.com!newsp.newsguy.com!mwronReferences:
<oster-B8530D.08470726022002@newssvr14-ext.news.prodigy.com>Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: f635e,daecabf3b262f1cb
X-Google-Attributes: gidf635e,public
X-Google-Thread: 10bcce,daecabf3b262f1cb
X-Google-Attributes: gid10bcce,public
X-Google-ArrivalTime: 2002-02-26 16:37:00 PST
Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!newsfeed.stanford.edu!logbridge.uoregon.edu!pln-w!spln!dex!extra.newsguy.com!newsp.newsguy.com!mwron
From: MW Ron <mwron@metrowerks.com>
Newsgroups: comp.sys.mac.programmer.codewarrior,codewarrior.mac
Subject: Re: [Q] How do I use a source code generator?
Date: Tue, 26 Feb 2002 19:13:01 -0500
Organization: Metrowerks
Lines: 42
Message-ID: <mwron-C88661.19130126022002@enews.newsguy.com>
References: <oster-B8530D.08470726022002@newssvr14-ext.news.prodigy.com>
NNTP-Posting-Host: p-948.newsdawg.com
User-Agent: MT-NewsWatcher/3.1 (PPC)
X-Face: )mY~XFHLw)UOW!W#[Ljvxq6Ja7(g'#F0-g*&puNxR8hEJkd@Oue/70^.)I78\
(%a%&Id211u"l/t.llWo/M|?15XUlx9!IGkdWiEmcasiyg"k;Q9[~XuE+`t2"*n(>nmm
@L/q,TjMd5+H{gASEPDR^$