Path: csiph.com!weretis.net!feeder6.news.weretis.net!news.misty.com!news.iecc.com!.POSTED.news.iecc.com!nerds-end From: Jon Forrest Newsgroups: comp.compilers Subject: Basic Lexing Question Date: Wed, 29 Jun 2022 10:11:54 -0700 (PDT) Organization: Compilers Central Lines: 14 Sender: news@iecc.com Approved: comp.compilers@iecc.com Message-ID: <22-06-086@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="34774"; mail-complaints-to="abuse@iecc.com" Keywords: lex, question Posted-Date: 29 Jun 2022 17:02:05 EDT 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:3103 The following line is from a makefile accepted by gmake: onefile: $(AVAR) I'm wondering what the ramification are of lexing what's on the right of the colon as a single string and then breaking it apart later, as opposed to returning a more detailed sequence of tokens, such as DOLLAR LPAREN NAME RPAREN. gmake appears to do the former, I'm guessing because it means a simpler grammar but that seems like just postponing the hard work until later. Cordially, Jon Forrest