diff options
author | 2008-08-14 13:59:11 -0400 | |
---|---|---|
committer | 2008-08-14 13:59:11 -0400 | |
commit | 14fbe79a3735e547f03cd8e95ca925fbdbb1841a (patch) | |
tree | f5b06cb6a023562572622c9b10d66f5265ee1518 /src/lacweb.lex | |
parent | 25658a4755c86ffbda946fb8b97f882f3ce7a724 (diff) |
Parsing the simplest SQL query
Diffstat (limited to 'src/lacweb.lex')
-rw-r--r-- | src/lacweb.lex | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/lacweb.lex b/src/lacweb.lex index 8a9756d1..50fe7f26 100644 --- a/src/lacweb.lex +++ b/src/lacweb.lex @@ -285,6 +285,10 @@ notags = [^<{\n]+; <INITIAL> "Name" => (Tokens.NAME (pos yypos, pos yypos + size yytext)); <INITIAL> "Unit" => (Tokens.KUNIT (pos yypos, pos yypos + size yytext)); +<INITIAL> "SELECT" => (Tokens.SELECT (pos yypos, pos yypos + size yytext)); +<INITIAL> "FROM" => (Tokens.FROM (pos yypos, pos yypos + size yytext)); +<INITIAL> "AS" => (Tokens.AS (pos yypos, pos yypos + size yytext)); + <INITIAL> {id} => (Tokens.SYMBOL (yytext, pos yypos, pos yypos + size yytext)); <INITIAL> {cid} => (Tokens.CSYMBOL (yytext, pos yypos, pos yypos + size yytext)); |