Re: [PATCHES] dollar quoting - Mailing list pgsql-hackers

From Bruce Momjian
Subject Re: [PATCHES] dollar quoting
Date
Msg-id 200402170401.i1H41cN13675@candle.pha.pa.us
Whole thread Raw
In response to Re: [PATCHES] dollar quoting  (Christopher Kings-Lynne <chriskl@familyhealth.com.au>)
List pgsql-hackers
Christopher Kings-Lynne wrote:
> > Parsing is a whole nother ball of wax besides lexing.  I wasn't planning
> > to put *that* into psql.  Remember the only thing psql really wants from
> > this is to detect where end-of-statement is ...
> 
> Forgive my lameness, but I've never truly figured out where parsing ends 
> and lexing begins.  Anyone care to illuminate me on the difference?

The simplistic answer is the lexing breaks a string up into
words/tokens, and parsing matches those tokens against patterns and
fires actions.

--  Bruce Momjian                        |  http://candle.pha.pa.us pgman@candle.pha.pa.us               |  (610)
359-1001+  If your life is a hard drive,     |  13 Roberts Road +  Christ can be your backup.        |  Newtown Square,
Pennsylvania19073
 


pgsql-hackers by date:

Previous
From: Bruce Momjian
Date:
Subject: Re: [PATCHES] log session end - again
Next
From: Tom Lane
Date:
Subject: Re: casting zero-length strings