]> git.lizzy.rs Git - rust.git/commit
Move everything syntax-related to syntax/, break deps on rest of compiler
authorMarijn Haverbeke <marijnh@gmail.com>
Tue, 5 Jul 2011 09:48:19 +0000 (11:48 +0200)
committerMarijn Haverbeke <marijnh@gmail.com>
Tue, 5 Jul 2011 13:57:21 +0000 (15:57 +0200)
commit6fd6fdea93fca19f168526943c177f942212cbc6
tree967778dac7798a33628a4e7992f2d26492e9d71f
parentc59ebf0f018b748011fc9b23ce0bab3dcfcfe733
Move everything syntax-related to syntax/, break deps on rest of compiler

src/comp/syntax is currently just a sub-module of rustc, but it will,
in the near future, be its own crate. This includes:

 - The AST data structure
 - The parser
 - The pretty-printer
 - Visit, walk, and fold
 - The syntax extension system
 - Some utility stuff that should be in the stdlib*

*) Stdlib extensions currently require a snapshot before they can be
   used, and the win build is very broken right now. This is temporary
   and will be cleaned up when one of those problems goes away.

A lot of code was moved by this patch, mostly towards a more organized
layout. Some package paths did get longer, and I guess the new layout
will take some getting used to. Sorry about that!

Please try not to re-introduce any dependencies in syntax/ on any of
the other src/comp/ subdirs.
68 files changed:
src/comp/back/link.rs
src/comp/back/x86.rs
src/comp/driver/rustc.rs
src/comp/driver/session.rs
src/comp/front/ast.rs [deleted file]
src/comp/front/attr.rs
src/comp/front/codemap.rs [deleted file]
src/comp/front/config.rs
src/comp/front/eval.rs [deleted file]
src/comp/front/ext.rs [deleted file]
src/comp/front/extenv.rs [deleted file]
src/comp/front/extfmt.rs [deleted file]
src/comp/front/extsimplext.rs [deleted file]
src/comp/front/fold.rs [deleted file]
src/comp/front/lexer.rs [deleted file]
src/comp/front/parser.rs [deleted file]
src/comp/front/token.rs [deleted file]
src/comp/lib/llvm.rs
src/comp/metadata/creader.rs
src/comp/metadata/cwriter.rs
src/comp/metadata/decoder.rs
src/comp/metadata/encoder.rs
src/comp/metadata/tydecode.rs
src/comp/metadata/tyencode.rs
src/comp/middle/alias.rs
src/comp/middle/ast_map.rs
src/comp/middle/resolve.rs
src/comp/middle/trans.rs
src/comp/middle/tstate/ann.rs
src/comp/middle/tstate/annotate.rs
src/comp/middle/tstate/auxiliary.rs
src/comp/middle/tstate/bitvectors.rs
src/comp/middle/tstate/ck.rs
src/comp/middle/tstate/collect_locals.rs
src/comp/middle/tstate/pre_post_conditions.rs
src/comp/middle/tstate/states.rs
src/comp/middle/ty.rs
src/comp/middle/typeck.rs
src/comp/middle/visit.rs [deleted file]
src/comp/middle/walk.rs [deleted file]
src/comp/pretty/pp.rs [deleted file]
src/comp/pretty/ppaux.rs [deleted file]
src/comp/pretty/pprust.rs [deleted file]
src/comp/rustc.rc
src/comp/syntax/_std.rs [new file with mode: 0644]
src/comp/syntax/ast.rs [new file with mode: 0644]
src/comp/syntax/codemap.rs [new file with mode: 0644]
src/comp/syntax/ext/base.rs [new file with mode: 0644]
src/comp/syntax/ext/env.rs [new file with mode: 0644]
src/comp/syntax/ext/fmt.rs [new file with mode: 0644]
src/comp/syntax/ext/simplext.rs [new file with mode: 0644]
src/comp/syntax/fold.rs [new file with mode: 0644]
src/comp/syntax/parse/eval.rs [new file with mode: 0644]
src/comp/syntax/parse/lexer.rs [new file with mode: 0644]
src/comp/syntax/parse/parser.rs [new file with mode: 0644]
src/comp/syntax/parse/token.rs [new file with mode: 0644]
src/comp/syntax/print/pp.rs [new file with mode: 0644]
src/comp/syntax/print/pprust.rs [new file with mode: 0644]
src/comp/syntax/util/interner.rs [new file with mode: 0644]
src/comp/syntax/visit.rs [new file with mode: 0644]
src/comp/syntax/walk.rs [new file with mode: 0644]
src/comp/util/common.rs
src/comp/util/data.rs [deleted file]
src/comp/util/ppaux.rs [new file with mode: 0644]
src/lib/int.rs
src/lib/map.rs
src/lib/uint.rs
src/lib/vec.rs