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


Groups > comp.compilers > #3103

Basic Lexing Question

From Jon Forrest <nobozo@gmail.com>
Newsgroups comp.compilers
Subject Basic Lexing Question
Date 2022-06-29 10:11 -0700
Organization Compilers Central
Message-ID <22-06-086@comp.compilers> (permalink)

Show all headers | 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