aboutsummaryrefslogtreecommitdiff
path: root/src/comp
diff options
context:
space:
mode:
authorGraydon Hoare <[email protected]>2010-09-21 11:47:10 -0700
committerGraydon Hoare <[email protected]>2010-09-21 11:47:10 -0700
commit9f0a6c21b2de2247eccbfb1b72137db5c7dd5173 (patch)
treec4929a54a7ff40ab4b252e32e7aa548320304258 /src/comp
parentAdd QUES to comp/fe/lexer.rs, rustc can self-lex again. (diff)
downloadrust-9f0a6c21b2de2247eccbfb1b72137db5c7dd5173.tar.xz
rust-9f0a6c21b2de2247eccbfb1b72137db5c7dd5173.zip
Implement preliminary form of structured compare. No boxes, vectors or strings yet.
Diffstat (limited to 'src/comp')
-rw-r--r--src/comp/fe/parser.rs3
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 ";