about summary refs log tree commit diff
path: root/src/comp/front/extenv.rs
AgeCommit message (Collapse)AuthorLines
2011-07-05Move everything syntax-related to syntax/, break deps on rest of compilerMarijn Haverbeke-48/+0
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.
2011-06-28Add simple syntax extension (#simplext)Paul Stansifer-15/+1
2011-06-21Move expr ids into the expr record typeMarijn Haverbeke-3/+2
This simplifies the tag variants a bit and makes expr_node_id obsolete.
2011-06-20Get rid of def_ids and anns in AST nodes, use single node_idMarijn Haverbeke-1/+1
This reduces some redundancy in the AST data structures and cruft in the code that works with them. To get a def_id from a node_id, apply ast::local_def, which adds the local crate_num to the given node_id. Most code only deals with crate-local node_ids, and won't have to create def_ids at all.
2011-06-19rustc: Rename session.span_err -> span_fatal, err -> fatalBrian Anderson-3/+3
Issue #440
2011-06-19Revert previous 6 commits. Hopefully put out Windows fire.Brian Anderson-3/+3
Revert "rustc: Export only what's needed from middle::ty" This reverts commit 4255d58aa5db2a05362c4435a0e807205e1b8ed7. Revert "rustc: Make name resolution errors less fatal" This reverts commit b8ab9ea89c16c60237e7660804f4321f59ae0435. Revert "rustc: Make import resolution errors less fatal" This reverts commit 92a8ae94b971206bf0502da3dc5f416fcb24cc36. Revert "rustc: Export only what's used from middle::resolve" This reverts commit 4539a2cf7ad99851a165c98ed2f4e4a475cffd7d. Revert "rustc: Re-introduce session.span_err, session.err" This reverts commit 7fe9a88e31ae07f2fd89f6715efedd7e3edf49e6. Revert "rustc: Rename session.span_err -> span_fatal, err -> fatal" This reverts commit c394a7f49ac29a099994e243017065de2ff97f2a.
2011-06-19rustc: Rename session.span_err -> span_fatal, err -> fatalBrian Anderson-3/+3
Issue #440
2011-06-15Reformat source tree (minus a couple tests that are still grumpy).Graydon Hoare-20/+8
2011-06-09rustc: Annotate vector and string literals in the AST with their uniqueness ↵Patrick Walton-13/+5
or lack thereof
2011-06-04rustc: Hide the parser from syntax extensionsBrian Anderson-2/+0
Eventually extensions will probably need access to the parser again, but it'll be in a different form.
2011-06-04rustc: Generate extension annotations from ext_ctxt instead of parserBrian Anderson-9/+9
2011-06-04rustc: Use spans for #env errorsBrian Anderson-5/+9
Issue #444
2011-06-04rustc: Introduce ext module. Move some things from parser to ext.Brian Anderson-1/+4
Introduce an ext_ctxt record to provide a span_err method for use while expanding syntax extensions. Hopefully it will be useful for other things.
2011-06-03Make the macro system more modular.Paul Stansifer-2/+2
2011-05-31rustc: Remove unneeded type params from alt patternsBrian Anderson-2/+2
2011-05-17Finally rename std::_xxx to std::xxxMarijn Haverbeke-3/+3
Except for _task, which is still a keyword.
2011-05-12Downcase std modules again, move to :: for module dereferencingMarijn Haverbeke-23/+24
This should be a snapshot transition.
2011-05-10rustc: Number everything with an annotationPatrick Walton-6/+6
2011-05-06Fix GenericOS.getenv returning a raw str, return an Option.t[str] instead.Graydon Hoare-2/+11
2011-05-06Rename std modules to be camelcasedMarijn Haverbeke-5/+5
(Have fun mergining your stuff with this.)
2011-05-04Add #env syntax extension for plucking strings out of the compilation ↵Graydon Hoare-0/+68
environment.