summaryrefslogtreecommitdiff
path: root/src/urweb.lex
diff options
context:
space:
mode:
authorGravatar Adam Chlipala <adamc@hcoop.net>2008-09-07 14:07:10 -0400
committerGravatar Adam Chlipala <adamc@hcoop.net>2008-09-07 14:07:10 -0400
commita034349c535b054c9d31beb4e1133f8cd0b68c5a (patch)
tree3c2892afafe8179b14dca536dcd0b0da34165b96 /src/urweb.lex
parent071f5b9a8c042414e427d72142c078a64cf9b0d7 (diff)
Parsing INSERT
Diffstat (limited to 'src/urweb.lex')
-rw-r--r--src/urweb.lex7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/urweb.lex b/src/urweb.lex
index e47546b3..1e7876b4 100644
--- a/src/urweb.lex
+++ b/src/urweb.lex
@@ -335,6 +335,13 @@ notags = [^<{\n]+;
<INITIAL> "ASC" => (Tokens.ASC (pos yypos, pos yypos + size yytext));
<INITIAL> "DESC" => (Tokens.DESC (pos yypos, pos yypos + size yytext));
+<INITIAL> "INSERT" => (Tokens.INSERT (pos yypos, pos yypos + size yytext));
+<INITIAL> "INTO" => (Tokens.INTO (pos yypos, pos yypos + size yytext));
+<INITIAL> "VALUES" => (Tokens.VALUES (pos yypos, pos yypos + size yytext));
+<INITIAL> "UPDATE" => (Tokens.UPDATE (pos yypos, pos yypos + size yytext));
+<INITIAL> "SET" => (Tokens.SET (pos yypos, pos yypos + size yytext));
+<INITIAL> "DELETE" => (Tokens.DELETE (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));