From c6bc5cce4bf2ed84740ec6810505014c7d73b779 Mon Sep 17 00:00:00 2001 From: Graydon Hoare Date: Wed, 23 Feb 2011 13:28:46 -0800 Subject: Parse auth clauses, drop them on the floor. Nothing exists to use them yet anyways. --- src/comp/front/parser.rs | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'src/comp') diff --git a/src/comp/front/parser.rs b/src/comp/front/parser.rs index eb073e00..6d77a204 100644 --- a/src/comp/front/parser.rs +++ b/src/comp/front/parser.rs @@ -2117,6 +2117,15 @@ impure fn parse_crate_directive(str prefix, parser p, auto lo = p.get_span(); auto hi = lo; alt (p.peek()) { + case (token.AUTH) { + // FIXME: currently dropping auth clauses on the floor, + // as there is no effect-checking pass. + p.bump(); + auto n = parse_path(p, GREEDY); + expect(p, token.EQ); + auto e = parse_effect(p); + expect(p, token.SEMI); + } case (token.CONST) { auto c = parse_item_const(p); ast.index_item(index, c); -- cgit v1.2.3