pgLab/pglab/sqlparser.cpp
Eelke Klein 04723a289b Switching to linux for development of pglab.
Switched from qmake to cmake. Code changes to make it compile.
2017-08-23 08:10:01 +02:00

30 lines
680 B
C++

#include "sqlparser.h"
/** Responsible for splitting the query into logical elements.
*
* It first uses common seperators to split the input, then it tries
* to determine if the fields it gets have a special meaning.
*
* However because SQL is very forgiving about the use of keywords
* as names.
*
* The lexical analyzer does however distinguish between
* - symbols/keywords (symbols might be schema, table, columns, functions etc)
* - numbers
* - strings
* - quoted symbol (a symbol between "" must be the name of something)
*
* seperators
* whitespace
* special chars ;,.
* operators
*/
class LexicalAnalyser {
public:
};
SqlParser::SqlParser()
{
}