diff options
| author | Graydon Hoare <[email protected]> | 2010-09-21 11:47:10 -0700 |
|---|---|---|
| committer | Graydon Hoare <[email protected]> | 2010-09-21 11:47:10 -0700 |
| commit | 9f0a6c21b2de2247eccbfb1b72137db5c7dd5173 (patch) | |
| tree | c4929a54a7ff40ab4b252e32e7aa548320304258 /src/comp/fe/parser.rs | |
| parent | Add QUES to comp/fe/lexer.rs, rustc can self-lex again. (diff) | |
| download | rust-9f0a6c21b2de2247eccbfb1b72137db5c7dd5173.tar.xz rust-9f0a6c21b2de2247eccbfb1b72137db5c7dd5173.zip | |
Implement preliminary form of structured compare. No boxes, vectors or strings yet.
Diffstat (limited to 'src/comp/fe/parser.rs')
| -rw-r--r-- | src/comp/fe/parser.rs | 3 |
1 files changed, 1 insertions, 2 deletions
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 "; |