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: What stage should entities be resolved? Date: Fri, 18 Mar 2022 00:31:39 +0100 Organization: Compilers Central Lines: 17 Sender: news@iecc.com Approved: comp.compilers@iecc.com Message-ID: <22-03-033@comp.compilers> References: <22-03-019@comp.compilers> <22-03-025@comp.compilers> <22-03-032@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="49533"; mail-complaints-to="abuse@iecc.com" Keywords: lex, design Posted-Date: 17 Mar 2022 19:34:55 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-03-032@comp.compilers> Xref: csiph.com comp.compilers:2935 On 3/15/22 12:49 PM, Roger L Costello wrote: > So that brings me to my questions: > > 1. How much knowledge of the language should the preprocessor stage have? [...] Knowledge of how many languages should the preprocessor stage have? I think that all parts of a compiler front end should follow the specific language rules. Just for maintenance purposes. If universal generator tools for lexer or parser are used then the specific language grammar is the input to these tools. DoDi