1
Fork 0

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.
This commit is contained in:
Marijn Haverbeke 2011-07-05 11:48:19 +02:00
parent c59ebf0f01
commit 6fd6fdea93
54 changed files with 1254 additions and 1203 deletions

View file

@ -1,21 +1,22 @@
import front::ast;
import front::ast::ident;
import front::ast::fn_ident;
import front::ast::def;
import front::ast::def_id;
import front::ast::node_id;
import front::ast::local_def;
import syntax::ast;
import ast::ident;
import ast::fn_ident;
import ast::def;
import ast::def_id;
import ast::node_id;
import ast::local_def;
import metadata::creader;
import metadata::decoder;
import driver::session::session;
import util::common::new_def_hash;
import util::common::new_int_hash;
import util::common::new_str_hash;
import util::common::span;
import util::common::respan;
import syntax::_std::new_int_hash;
import syntax::_std::new_str_hash;
import syntax::codemap::span;
import syntax::ast::respan;
import middle::ty::constr_table;
import syntax::visit;
import visit::vt;
import std::map::hashmap;
import std::list;