diff options
author | Karn Kallio <kkallio@eka> | 2011-10-14 01:33:03 -0530 |
---|---|---|
committer | Karn Kallio <kkallio@eka> | 2011-10-14 01:33:03 -0530 |
commit | 8a167261f4de68926907c3cc97f8252957274bff (patch) | |
tree | 50d09ebb9dd61e4c628d7bf29b2e9a2b0de01641 /src/urweb.lex | |
parent | 8b909d991fe993c711d432cfc9928dc7ffbdbbac (diff) |
IF THEN ELSE conditional for SQL.
Diffstat (limited to 'src/urweb.lex')
-rw-r--r-- | src/urweb.lex | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/urweb.lex b/src/urweb.lex index 74b91432..21e3d603 100644 --- a/src/urweb.lex +++ b/src/urweb.lex @@ -480,6 +480,10 @@ xint = x[0-9a-fA-F][0-9a-fA-F]; <INITIAL> "MIN" => (Tokens.MIN (pos yypos, pos yypos + size yytext)); <INITIAL> "MAX" => (Tokens.MAX (pos yypos, pos yypos + size yytext)); +<INITIAL> "IF" => (Tokens.CIF (pos yypos, pos yypos + size yytext)); +<INITIAL> "THEN" => (Tokens.CTHEN (pos yypos, pos yypos + size yytext)); +<INITIAL> "ELSE" => (Tokens.CELSE (pos yypos, pos yypos + size yytext)); + <INITIAL> "ASC" => (Tokens.ASC (pos yypos, pos yypos + size yytext)); <INITIAL> "DESC" => (Tokens.DESC (pos yypos, pos yypos + size yytext)); |