aboutsummaryrefslogtreecommitdiff
path: root/src/comp
diff options
context:
space:
mode:
authorGraydon Hoare <[email protected]>2011-02-23 13:28:46 -0800
committerGraydon Hoare <[email protected]>2011-02-23 13:28:46 -0800
commitc6bc5cce4bf2ed84740ec6810505014c7d73b779 (patch)
treea5e4ff90541e6698e206ebc30e47129445b7a693 /src/comp
parentUse the computed abi :-( (diff)
downloadrust-c6bc5cce4bf2ed84740ec6810505014c7d73b779.tar.xz
rust-c6bc5cce4bf2ed84740ec6810505014c7d73b779.zip
Parse auth clauses, drop them on the floor. Nothing exists to use them yet anyways.
Diffstat (limited to 'src/comp')
-rw-r--r--src/comp/front/parser.rs9
1 files changed, 9 insertions, 0 deletions
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);