Path: csiph.com!weretis.net!feeder6.news.weretis.net!news.misty.com!news.iecc.com!.POSTED.news.iecc.com!nerds-end From: Hans-Peter Diettrich Newsgroups: comp.compilers Subject: Re: How do you create a grammar for a multi-language language? Date: Sun, 6 Mar 2022 12:23:23 +0100 Organization: Compilers Central Lines: 10 Sender: news@iecc.com Approved: comp.compilers@iecc.com Message-ID: <22-03-009@comp.compilers> References: <22-03-004@comp.compilers> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 8bit Injection-Info: gal.iecc.com; posting-host="news.iecc.com:2001:470:1f07:1126:0:676f:7373:6970"; logging-data="88645"; mail-complaints-to="abuse@iecc.com" Keywords: parse, comment Posted-Date: 06 Mar 2022 12:03:48 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:2914 On 3/3/22 2:57 PM, Roger L Costello wrote: > How do you create a grammar for a multi-language language? A grammar is not required. In 1971 I saw a program source that could tell the compiler it was compiled with - Fortran or Algol. DoDi [I've seen obfuscated programs that will work as shell scripts or perl programs but I don't think that was what he was asking about. -John]