OSDN Git Service

Re-implement psql's input scanning to use a flex-generated lexer, as per
authorTom Lane <tgl@sss.pgh.pa.us>
Thu, 19 Feb 2004 19:40:09 +0000 (19:40 +0000)
committerTom Lane <tgl@sss.pgh.pa.us>
Thu, 19 Feb 2004 19:40:09 +0000 (19:40 +0000)
commit4b39aa3a7cc51d130016ed8d5e443b436d3ae92d
tree0fc8748c9b9f8d2e9112fd6f1806ef4879df60b5
parent737f1cd44b674be9148820736b671b279f642c14
Re-implement psql's input scanning to use a flex-generated lexer, as per
recent discussion.  The lexer is used for both SQL command text and
backslash commands.  The purpose of this change is to make it easier to
track the behavior of the backend's SQL lexer --- essentially identical
flex rules are now used by psql.  Also, this cleans up a lot of very
squirrelly code in mainloop.c and command.c.  The flex code is somewhat
bulkier than the removed code, but should be lots easier to maintain.
src/bin/psql/.cvsignore
src/bin/psql/Makefile
src/bin/psql/command.c
src/bin/psql/command.h
src/bin/psql/mainloop.c
src/bin/psql/psqlscan.h [new file with mode: 0644]
src/bin/psql/psqlscan.l [new file with mode: 0644]
src/bin/psql/startup.c