comparison src/lacweb.lex @ 156:34ccd7d2bea8

Start of datatype support
author Adam Chlipala <adamc@hcoop.net>
date Thu, 24 Jul 2008 15:02:03 -0400
parents 7420fa18d657
children a158f8c5aa55
comparison
equal deleted inserted replaced
155:4334bb734187 156:34ccd7d2bea8
246 <INITIAL> "$" => (Tokens.DOLLAR (pos yypos, pos yypos + size yytext)); 246 <INITIAL> "$" => (Tokens.DOLLAR (pos yypos, pos yypos + size yytext));
247 <INITIAL> "#" => (Tokens.HASH (pos yypos, pos yypos + size yytext)); 247 <INITIAL> "#" => (Tokens.HASH (pos yypos, pos yypos + size yytext));
248 <INITIAL> "__" => (Tokens.UNDERUNDER (pos yypos, pos yypos + size yytext)); 248 <INITIAL> "__" => (Tokens.UNDERUNDER (pos yypos, pos yypos + size yytext));
249 <INITIAL> "_" => (Tokens.UNDER (pos yypos, pos yypos + size yytext)); 249 <INITIAL> "_" => (Tokens.UNDER (pos yypos, pos yypos + size yytext));
250 <INITIAL> "~" => (Tokens.TWIDDLE (pos yypos, pos yypos + size yytext)); 250 <INITIAL> "~" => (Tokens.TWIDDLE (pos yypos, pos yypos + size yytext));
251 <INITIAL> "|" => (Tokens.BAR (pos yypos, pos yypos + size yytext));
251 252
252 <INITIAL> "con" => (Tokens.CON (pos yypos, pos yypos + size yytext)); 253 <INITIAL> "con" => (Tokens.CON (pos yypos, pos yypos + size yytext));
253 <INITIAL> "type" => (Tokens.LTYPE (pos yypos, pos yypos + size yytext)); 254 <INITIAL> "type" => (Tokens.LTYPE (pos yypos, pos yypos + size yytext));
255 <INITIAL> "datatype" => (Tokens.DATATYPE (pos yypos, pos yypos + size yytext));
256 <INITIAL> "of" => (Tokens.OF (pos yypos, pos yypos + size yytext));
254 <INITIAL> "val" => (Tokens.VAL (pos yypos, pos yypos + size yytext)); 257 <INITIAL> "val" => (Tokens.VAL (pos yypos, pos yypos + size yytext));
255 <INITIAL> "rec" => (Tokens.REC (pos yypos, pos yypos + size yytext)); 258 <INITIAL> "rec" => (Tokens.REC (pos yypos, pos yypos + size yytext));
256 <INITIAL> "and" => (Tokens.AND (pos yypos, pos yypos + size yytext)); 259 <INITIAL> "and" => (Tokens.AND (pos yypos, pos yypos + size yytext));
257 <INITIAL> "fn" => (Tokens.FN (pos yypos, pos yypos + size yytext)); 260 <INITIAL> "fn" => (Tokens.FN (pos yypos, pos yypos + size yytext));
258 <INITIAL> "fold" => (Tokens.FOLD (pos yypos, pos yypos + size yytext)); 261 <INITIAL> "fold" => (Tokens.FOLD (pos yypos, pos yypos + size yytext));