about summary refs log tree commit diff
path: root/src/libsyntax/syntax.rc
blob: 93ed5bd471bc059e4f141f0bddb0834bf8802db6 (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
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
#[link(name = "syntax",
       vers = "0.4",
       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)];
#[allow(deprecated_pattern)];

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

use core::*;

#[legacy_exports]
mod attr;
#[legacy_exports]
mod diagnostic;
#[legacy_exports]
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]
    mod interner;
}

mod parse {
    #[legacy_exports];
    export parser;
    export common;
    export lexer;
    export token;
    export comments;
    export prec;
    export classify;
    export attr;

    #[legacy_exports]
    mod eval;
    #[legacy_exports]
    mod lexer;
    #[legacy_exports]
    mod parser;
    #[legacy_exports]
    mod token;
    #[legacy_exports]
    mod comments;
    #[legacy_exports]
    mod attr;
    #[legacy_exports]

    /// Common routines shared by parser mods
    #[legacy_exports]
    mod common;

    /// Functions dealing with operator precedence
    #[legacy_exports]
    mod prec;

    /// Routines the parser uses to classify AST nodes
    #[legacy_exports]
    mod classify;

    /// Reporting obsolete syntax
    #[legacy_exports]
    mod obsolete;
}

mod print {
    #[legacy_exports];
    #[legacy_exports]
    mod pp;
    #[legacy_exports]
    mod pprust;
}

mod ext {
    #[legacy_exports];
    #[legacy_exports]
    mod base;
    #[legacy_exports]
    mod expand;
    #[legacy_exports]
    mod qquote;
    #[legacy_exports]
    mod build;

    mod tt {
        #[legacy_exports];
        #[legacy_exports]
        mod transcribe;
        #[legacy_exports]
        mod macro_parser;
        #[legacy_exports]
        mod macro_rules;
    }


    #[legacy_exports]
    mod simplext;
    #[legacy_exports]
    mod fmt;
    #[legacy_exports]
    mod env;
    #[legacy_exports]
    mod concat_idents;
    #[legacy_exports]
    mod ident_to_str;
    #[legacy_exports]
    mod log_syntax;
    #[legacy_exports]
    mod auto_serialize;
    #[legacy_exports]
    mod source_util;

    mod pipes {
        #[legacy_exports];
        #[legacy_exports]
        mod ast_builder;
        #[legacy_exports]
        mod parse_proto;
        #[legacy_exports]
        mod pipec;
        #[legacy_exports]
        mod proto;
        #[legacy_exports]
        mod check;
        #[legacy_exports]
        mod liveness;
    }

    #[legacy_exports]
    mod trace_macros;
}