Path: csiph.com!xmission!news.snarked.org!border2.nntp.dca1.giganews.com!nntp.giganews.com!news.iecc.com!.POSTED.news.iecc.com!nerds-end From: gah4 Newsgroups: comp.compilers Subject: Re: Supporting multiple input syntaxes Date: Sun, 23 Aug 2020 14:26:27 -0700 (PDT) Organization: Compilers Central Lines: 20 Sender: news@iecc.com Approved: comp.compilers@iecc.com Message-ID: <20-08-013@comp.compilers> References: <20-08-002@comp.compilers> Mime-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Injection-Info: gal.iecc.com; posting-host="news.iecc.com:2001:470:1f07:1126:0:676f:7373:6970"; logging-data="562"; mail-complaints-to="abuse@iecc.com" Keywords: C, parse Posted-Date: 23 Aug 2020 23:13:43 EDT X-submission-address: compilers@iecc.com X-moderator-address: compilers-request@iecc.com X-FAQ-and-archives: http://compilers.iecc.com In-Reply-To: <20-08-002@comp.compilers> Xref: csiph.com comp.compilers:2565 On Wednesday, August 12, 2020 at 3:32:56 PM UTC-7, luser droog wrote: > 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. (snip) I remember using a later C compiler that accepted the older form of assignment operators, such as =+, =-, etc. Presumably for those with older code. I then had to put an extra space when assigning negative values: i= -4; I don't remember now how I found out about that one. That is the only old C syntax I remember. (And much later than 1975.)