Mercurial > urweb
comparison src/lacweb.lex @ 220:2b665e822e9a
SQL boolean operators
author | Adam Chlipala <adamc@hcoop.net> |
---|---|
date | Sat, 16 Aug 2008 17:35:28 -0400 |
parents | 5292c0113024 |
children | b0041cc7e5f7 |
comparison
equal
deleted
inserted
replaced
219:5292c0113024 | 220:2b665e822e9a |
---|---|
296 <INITIAL> "AS" => (Tokens.AS (pos yypos, pos yypos + size yytext)); | 296 <INITIAL> "AS" => (Tokens.AS (pos yypos, pos yypos + size yytext)); |
297 <INITIAL> "WHERE" => (Tokens.CWHERE (pos yypos, pos yypos + size yytext)); | 297 <INITIAL> "WHERE" => (Tokens.CWHERE (pos yypos, pos yypos + size yytext)); |
298 | 298 |
299 <INITIAL> "TRUE" => (Tokens.TRUE (pos yypos, pos yypos + size yytext)); | 299 <INITIAL> "TRUE" => (Tokens.TRUE (pos yypos, pos yypos + size yytext)); |
300 <INITIAL> "FALSE" => (Tokens.FALSE (pos yypos, pos yypos + size yytext)); | 300 <INITIAL> "FALSE" => (Tokens.FALSE (pos yypos, pos yypos + size yytext)); |
301 <INITIAL> "AND" => (Tokens.CAND (pos yypos, pos yypos + size yytext)); | |
302 <INITIAL> "OR" => (Tokens.OR (pos yypos, pos yypos + size yytext)); | |
303 <INITIAL> "NOT" => (Tokens.NOT (pos yypos, pos yypos + size yytext)); | |
301 | 304 |
302 <INITIAL> {id} => (Tokens.SYMBOL (yytext, pos yypos, pos yypos + size yytext)); | 305 <INITIAL> {id} => (Tokens.SYMBOL (yytext, pos yypos, pos yypos + size yytext)); |
303 <INITIAL> {cid} => (Tokens.CSYMBOL (yytext, pos yypos, pos yypos + size yytext)); | 306 <INITIAL> {cid} => (Tokens.CSYMBOL (yytext, pos yypos, pos yypos + size yytext)); |
304 | 307 |
305 <INITIAL> {intconst} => (case Int64.fromString yytext of | 308 <INITIAL> {intconst} => (case Int64.fromString yytext of |