This commit is contained in:
eelke 2017-02-11 08:08:50 +01:00
parent c2e201f813
commit f51105bde0
114 changed files with 92 additions and 0 deletions

30
src/sqlparser.cpp Normal file
View file

@ -0,0 +1,30 @@
#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()
{
}