Path: csiph.com!1.us.feeder.erje.net!3.us.feeder.erje.net!feeder.erje.net!news.misty.com!news.iecc.com!.POSTED.news.iecc.com!nerds-end From: luser droog Newsgroups: comp.compilers Subject: Re: Wrestling with phase 1 of a C compiler Date: Fri, 9 Sep 2022 20:47:15 -0700 (PDT) Organization: Compilers Central Lines: 11 Sender: news@iecc.com Approved: comp.compilers@iecc.com Message-ID: <22-09-002@comp.compilers> References: <22-09-001@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="72888"; mail-complaints-to="abuse@iecc.com" Keywords: parse, design, comment Posted-Date: 10 Sep 2022 14:36:54 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: <22-09-001@comp.compilers> Xref: csiph.com comp.compilers:3154 On Wednesday, September 7, 2022 at 4:01:04 PM UTC-5, luser droog wrote: > At my tedious glacial pace, I have rewritten my parser library > for the umpteen-plus-one'th time only to stall out at an earlier > step than where I stalled out the last time around. Sorry for the noise. I'm prematurely optimizing, aren't I? The function that works just fine and is already reasonably short and readable is just fine for now. Folding and iotas will probably be a fun idea to try -- on the next rewrite. On to possibly important problems.... [It occurred to me that if you want to write in a functional language style, doing it in C is really painful. -John]