Sketched rough parser code construction including some SQL AST classes.
This commit is contained in:
parent
f3898599fd
commit
5b20f900fc
15 changed files with 459 additions and 4 deletions
|
|
@ -110,7 +110,11 @@ bool SqlLexer::nextBasicToken(int &startpos, int &length, BasicTokenType &tokent
|
|||
}
|
||||
if (isSelf(c)) {
|
||||
length = m_pos - startpos;
|
||||
tokentype = BasicTokenType::Self;
|
||||
if (c == ',')
|
||||
tokentype = BasicTokenType::Comma;
|
||||
else
|
||||
tokentype = BasicTokenType::Self;
|
||||
|
||||
QStringRef sr(&m_block, startpos, length);
|
||||
out = sr.toString();
|
||||
return true;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue