Basic Lexing Question

Jon Forrest <nobozo@gmail.com>
Wed, 29 Jun 2022 10:11:54 -0700 (PDT)

          From comp.compilers

Related articles
Basic Lexing Question nobozo@gmail.com (Jon Forrest) (2022-06-29)
Re: Basic Lexing Question gah4@u.washington.edu (gah4) (2022-06-29)
Re: Basic Lexing Question klammerj@a1.net (Johann Klammer) (2022-06-30)
Re: Basic Lexing Question 480-992-1380@kylheku.com (Kaz Kylheku) (2022-07-01)
| List of all articles for this month |
From: Jon Forrest <nobozo@gmail.com>
Newsgroups: comp.compilers
Date: Wed, 29 Jun 2022 10:11:54 -0700 (PDT)
Organization: Compilers Central
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

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


Post a followup to this message

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