From 9f0a6c21b2de2247eccbfb1b72137db5c7dd5173 Mon Sep 17 00:00:00 2001 From: Graydon Hoare Date: Tue, 21 Sep 2010 11:47:10 -0700 Subject: Implement preliminary form of structured compare. No boxes, vectors or strings yet. --- src/comp/fe/parser.rs | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'src/comp') diff --git a/src/comp/fe/parser.rs b/src/comp/fe/parser.rs index 24228a8a..fd11efe1 100644 --- a/src/comp/fe/parser.rs +++ b/src/comp/fe/parser.rs @@ -50,8 +50,7 @@ state fn new_parser(session.session sess, str path) -> parser { } state fn expect(parser p, token.token t) { - // FIXME: comparing tags would be good. One of these days. - if (true /* p.peek() == t */) { + if (p.peek() == t) { p.bump(); } else { let str s = "expecting "; -- cgit v1.2.3