Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.compilers > #3103

Basic Lexing Question

Path csiph.com!weretis.net!feeder6.news.weretis.net!news.misty.com!news.iecc.com!.POSTED.news.iecc.com!nerds-end
From Jon Forrest <nobozo@gmail.com>
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> (permalink)
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

Show key headers only | View raw


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

Back to comp.compilers | Previous | NextNext in thread | Find similar


Thread

Basic Lexing Question Jon Forrest <nobozo@gmail.com> - 2022-06-29 10:11 -0700
  Re: Basic Lexing Question gah4 <gah4@u.washington.edu> - 2022-06-29 16:27 -0700
    Re: Basic Lexing Question Kaz Kylheku <480-992-1380@kylheku.com> - 2022-07-01 04:44 +0000
  Re: Basic Lexing Question Johann Klammer <klammerj@a1.net> - 2022-06-30 02:38 +0200

csiph-web