diff src/lacweb.lex @ 204:241c9a0e3397

Parsing the simplest SQL query
author Adam Chlipala <adamc@hcoop.net>
date Thu, 14 Aug 2008 13:59:11 -0400
parents dd82457fda82
children 1487c712eb12
line wrap: on
line diff
--- a/src/lacweb.lex	Thu Aug 14 13:20:29 2008 -0400
+++ b/src/lacweb.lex	Thu Aug 14 13:59:11 2008 -0400
@@ -285,6 +285,10 @@
 <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));