Re: Supporting multiple input syntaxes

minforth@arcor.de
Thu, 13 Aug 2020 14:15:09 -0700 (PDT)

          From comp.compilers

Related articles
Supporting multiple input syntaxes mijoryx@yahoo.com.dmarc.email (luser droog) (2020-08-12)
Re: Supporting multiple input syntaxes 793-849-0957@kylheku.com (Kaz Kylheku) (2020-08-13)
Re: Supporting multiple input syntaxes DrDiettrich1@netscape.net (Hans-Peter Diettrich) (2020-08-13)
Re: Supporting multiple input syntaxes minforth@arcor.de (2020-08-13)
Re: Supporting multiple input syntaxes mijoryx@yahoo.com.dmarc.email (luser droog) (2020-08-13)
Re: Supporting multiple input syntaxes mijoryx@yahoo.com.dmarc.email (luser droog) (2020-08-13)
RE: Supporting mulitple input syntaxes christopher.f.clark@compiler-resources.com (Christopher F Clark) (2020-08-14)
Supporting multiple input syntaxes davidlovemore@gmail.com (David Lovemore) (2020-08-15)
Re: Supporting multiple input syntaxes mijoryx@yahoo.com.dmarc.email (luser droog) (2020-08-15)
Re: Supporting multiple input syntaxes davidlovemore@gmail.com (David Lovemore) (2020-08-16)
[9 later articles]
| List of all articles for this month |

From: minforth@arcor.de
Newsgroups: comp.compilers
Date: Thu, 13 Aug 2020 14:15:09 -0700 (PDT)
Organization: Compilers Central
References: 20-08-002
Injection-Info: gal.iecc.com; posting-host="news.iecc.com:2001:470:1f07:1126:0:676f:7373:6970"; logging-data="69491"; mail-complaints-to="abuse@iecc.com"
Keywords: parse, C, tools, comment
Posted-Date: 13 Aug 2020 18:24:34 EDT
In-Reply-To: 20-08-002

Am Donnerstag, 13. August 2020 00:32:56 UTC+2 schrieb luser droog:
> I've got my project successfully parsing the circa-1975 C syntax
> from that old manual. I'd like to add parsers for K&R1 and c90
> syntaxes.
>
> How separate should these be? Should they be complete
> separate grammars, or more piecewise selection? ...


Why not settle for one master dialect and use awk to translate between dialects?


[Probably because there is a great deal of C code written to comply with
the various versions of the standard, users want error messages that match
the code they wrote rather than some intermediate code, and it would be quite
an awk program that could reconcile all the differences among C flavors. -John]


Post a followup to this message

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