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