-
- Downloads
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.
Showing
- src/bin/psql/.cvsignore 1 addition, 0 deletionssrc/bin/psql/.cvsignore
- src/bin/psql/Makefile 14 additions, 3 deletionssrc/bin/psql/Makefile
- src/bin/psql/command.c 117 additions, 561 deletionssrc/bin/psql/command.c
- src/bin/psql/command.h 4 additions, 7 deletionssrc/bin/psql/command.h
- src/bin/psql/mainloop.c 86 additions, 264 deletionssrc/bin/psql/mainloop.c
- src/bin/psql/psqlscan.h 65 additions, 0 deletionssrc/bin/psql/psqlscan.h
- src/bin/psql/psqlscan.l 1506 additions, 0 deletionssrc/bin/psql/psqlscan.l
- src/bin/psql/startup.c 11 additions, 2 deletionssrc/bin/psql/startup.c
Loading
Please register or sign in to comment