Mercurial > urweb
diff src/lacweb.lex @ 110:3739af9e727a
Starting with closure links
author | Adam Chlipala <adamc@hcoop.net> |
---|---|
date | Sun, 13 Jul 2008 11:43:57 -0400 |
parents | 813e5a52063d |
children | 6230bdd122e7 |
line wrap: on
line diff
--- a/src/lacweb.lex Sun Jul 13 10:17:06 2008 -0400 +++ b/src/lacweb.lex Sun Jul 13 11:43:57 2008 -0400 @@ -227,8 +227,10 @@ <INITIAL> ")" => (Tokens.RPAREN (pos yypos, pos yypos + size yytext)); <INITIAL> "[" => (Tokens.LBRACK (pos yypos, pos yypos + size yytext)); <INITIAL> "]" => (Tokens.RBRACK (pos yypos, pos yypos + size yytext)); -<INITIAL> "{" => (Tokens.LBRACE (pos yypos, pos yypos + size yytext)); -<INITIAL> "}" => (Tokens.RBRACE (pos yypos, pos yypos + size yytext)); +<INITIAL> "{" => (enterBrace (); + Tokens.LBRACE (pos yypos, pos yypos + size yytext)); +<INITIAL> "}" => (exitBrace (); + Tokens.RBRACE (pos yypos, pos yypos + size yytext)); <INITIAL> "->" => (Tokens.ARROW (pos yypos, pos yypos + size yytext)); <INITIAL> "=>" => (Tokens.DARROW (pos yypos, pos yypos + size yytext));