Path: csiph.com!weretis.net!feeder6.news.weretis.net!news.misty.com!news.iecc.com!.POSTED.news.iecc.com!nerds-end From: "Robin Vowels" Newsgroups: comp.compilers Subject: Re: How do you create a grammar for a multi-language language? Date: Mon, 7 Mar 2022 13:39:33 +1100 Organization: Compilers Central Lines: 13 Sender: news@iecc.com Approved: comp.compilers@iecc.com Message-ID: <22-03-014@comp.compilers> References: <22-03-004@comp.compilers> <22-03-008@comp.compilers> Mime-Version: 1.0 Content-Type: text/plain; format=flowed; charset="utf-8"; reply-type=original Content-Transfer-Encoding: 8bit Injection-Info: gal.iecc.com; posting-host="news.iecc.com:2001:470:1f07:1126:0:676f:7373:6970"; logging-data="17392"; mail-complaints-to="abuse@iecc.com" Keywords: parse, PL/I Posted-Date: 06 Mar 2022 22:08:18 EST X-submission-address: compilers@iecc.com X-moderator-address: compilers-request@iecc.com X-FAQ-and-archives: http://compilers.iecc.com Xref: csiph.com comp.compilers:2919 From: "gah4" Sent: Sunday, March 06, 2022 4:10 PM > > The C preprocessor, originally a separate pass, but now usually implemented > together with the rest of the C compiler, processes its statements, and passes > everything else through. It does that well enough, that it is commonly used > with Fortran. (The traditional version, not the newer one.) IBM's PL/I has a preprocessor that accepts a subset of PL/I. The finished text is then passed to the compiler. XPL processes such text as it goes, handling the text processing before passing it to the compiler.