about summary refs log tree commit diff
path: root/src/libsyntax/syntax.rc
blob: 6013178c5eea9e4f9d0e7fd412322d88d5b0f8a7 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
// Copyright 2012 The Rust Project Developers. See the COPYRIGHT
// file at the top-level directory of this distribution and at
// http://rust-lang.org/COPYRIGHT.
//
// Licensed under the Apache License, Version 2.0 <LICENSE-APACHE or
// http://www.apache.org/licenses/LICENSE-2.0> or the MIT license
// <LICENSE-MIT or http://opensource.org/licenses/MIT>, at your
// option. This file may not be copied, modified, or distributed
// except according to those terms.

#[link(name = "syntax",
       vers = "0.5",
       uuid = "9311401b-d6ea-4cd9-a1d9-61f89499c645")];



#[crate_type = "lib"];

#[no_core];

#[legacy_modes];
#[legacy_exports];

#[allow(vecs_implicitly_copyable)];
#[allow(non_camel_case_types)];
#[allow(deprecated_mode)];
#[warn(deprecated_pattern)];

extern mod core(vers = "0.5");
extern mod std(vers = "0.5");

use core::*;

pub mod syntax {
    pub use ext;
    pub use parse;
}

#[legacy_exports]
mod attr;
#[legacy_exports]
mod diagnostic;
mod codemap;
#[legacy_exports]
mod ast;
#[legacy_exports]
mod ast_util;
#[legacy_exports]
mod ast_map;
#[legacy_exports]
mod visit;
#[legacy_exports]
mod fold;
#[legacy_exports]
mod util {
    #[legacy_exports];
    #[legacy_exports]
    #[path = "util/interner.rs"]
    mod interner;
}

#[path = "parse/mod.rs"]
mod parse;

mod print {
    #[legacy_exports];
    #[legacy_exports]
    #[path = "print/pp.rs"]
    mod pp;
    #[legacy_exports]
    #[path = "print/pprust.rs"]
    mod pprust;
}

mod ext {
    #[legacy_exports];
    #[legacy_exports]
    #[path = "ext/base.rs"]
    mod base;
    #[legacy_exports]
    #[path = "ext/expand.rs"]
    mod expand;

    #[path = "ext/quote.rs"]
    mod quote;
    #[path = "ext/deriving.rs"]
    mod deriving;

    #[legacy_exports]
    #[path = "ext/build.rs"]
    mod build;

    mod tt {
        #[legacy_exports];
        #[legacy_exports]
        #[path = "ext/tt/transcribe.rs"]
        mod transcribe;
        #[legacy_exports]
        #[path = "ext/tt/macro_parser.rs"]
        mod macro_parser;
        #[legacy_exports]
        #[path = "ext/tt/macro_rules.rs"]
        mod macro_rules;
    }


    #[legacy_exports]
    #[path = "ext/fmt.rs"]
    mod fmt;
    #[legacy_exports]
    #[path = "ext/env.rs"]
    mod env;
    #[legacy_exports]
    #[path = "ext/concat_idents.rs"]
    mod concat_idents;
    #[legacy_exports]
    #[path = "ext/log_syntax.rs"]
    mod log_syntax;
    #[legacy_exports]
    #[path = "ext/auto_encode.rs"]
    mod auto_encode;
    #[legacy_exports]
    #[path = "ext/auto_serialize.rs"]
    mod auto_serialize;
    #[legacy_exports]
    #[path = "ext/source_util.rs"]
    mod source_util;

    #[legacy_exports]
    #[path = "ext/pipes/mod.rs"]
    mod pipes;

    #[legacy_exports]
    #[path = "ext/trace_macros.rs"]
    mod trace_macros;
}