comparison src/urweb.lex @ 1572:5530a8075b62

IF THEN ELSE conditional for SQL.
author Karn Kallio <kkallio@eka>
date Fri, 14 Oct 2011 02:33:03 -0430
parents 7d024767b024
children 60d438cdb3a5
comparison
equal deleted inserted replaced
1571:f403e129c276 1572:5530a8075b62
478 <INITIAL> "AVG" => (Tokens.AVG (pos yypos, pos yypos + size yytext)); 478 <INITIAL> "AVG" => (Tokens.AVG (pos yypos, pos yypos + size yytext));
479 <INITIAL> "SUM" => (Tokens.SUM (pos yypos, pos yypos + size yytext)); 479 <INITIAL> "SUM" => (Tokens.SUM (pos yypos, pos yypos + size yytext));
480 <INITIAL> "MIN" => (Tokens.MIN (pos yypos, pos yypos + size yytext)); 480 <INITIAL> "MIN" => (Tokens.MIN (pos yypos, pos yypos + size yytext));
481 <INITIAL> "MAX" => (Tokens.MAX (pos yypos, pos yypos + size yytext)); 481 <INITIAL> "MAX" => (Tokens.MAX (pos yypos, pos yypos + size yytext));
482 482
483 <INITIAL> "IF" => (Tokens.CIF (pos yypos, pos yypos + size yytext));
484 <INITIAL> "THEN" => (Tokens.CTHEN (pos yypos, pos yypos + size yytext));
485 <INITIAL> "ELSE" => (Tokens.CELSE (pos yypos, pos yypos + size yytext));
486
483 <INITIAL> "ASC" => (Tokens.ASC (pos yypos, pos yypos + size yytext)); 487 <INITIAL> "ASC" => (Tokens.ASC (pos yypos, pos yypos + size yytext));
484 <INITIAL> "DESC" => (Tokens.DESC (pos yypos, pos yypos + size yytext)); 488 <INITIAL> "DESC" => (Tokens.DESC (pos yypos, pos yypos + size yytext));
485 489
486 <INITIAL> "INSERT" => (Tokens.INSERT (pos yypos, pos yypos + size yytext)); 490 <INITIAL> "INSERT" => (Tokens.INSERT (pos yypos, pos yypos + size yytext));
487 <INITIAL> "INTO" => (Tokens.INTO (pos yypos, pos yypos + size yytext)); 491 <INITIAL> "INTO" => (Tokens.INTO (pos yypos, pos yypos + size yytext));