summary refs log tree commit diff
path: root/src/comp/syntax/parse
AgeCommit message (Collapse)AuthorLines
2011-07-06rustc: Make meta items into interior vectorsPatrick Walton-7/+35
2011-07-06rustc: Move crate directives over to interior vectorsPatrick Walton-9/+8
2011-07-06rustc: Convert attribute in the AST to interior vectorsPatrick Walton-48/+44
2011-07-06rustc: Make AST paths use interior vectorsPatrick Walton-7/+18
2011-07-06Simplify AST for expr_anon_obj.Lindsey Kuper-3/+2
2011-07-06rustc: Revert the conversion to interior vectors due to heap corruptionPatrick Walton-103/+69
2011-07-06Temp commit on the way to making meta_item into an interior vectorPatrick Walton-7/+35
2011-07-06rustc: Move crate directives over to interior vectorsPatrick Walton-9/+8
2011-07-06rustc: Convert attribute in the AST to interior vectorsPatrick Walton-48/+44
2011-07-06rustc: Make AST paths use interior vectorsPatrick Walton-7/+18
2011-07-06Support paren-free and lightweight-case syntaxMarijn Haverbeke-21/+10
(The old syntax is still supported as well, for now.) It is now possible to leave out the parens around if, while, and do/while conditions, and around alt expressions. Cases in an alt block can now leave off the case keyword and parens around the pattern. After the next snapshot, we can start migrating our code to use the new alt syntax, probably with a pretty-printer pass. The paren-free syntax will remain optional (you may always parenthesize expressions), but the old case syntax will no longer be supported in the future.
2011-07-06Remove temporary stdlib placeholders, use actual stdlib functionsMarijn Haverbeke-2/+2
(Possible now that a snapshot took place.)
2011-07-05Change ast::meta_name_value to accept any literal, not just stringBrian Anderson-11/+3
This isn't useful for much of anything yet, since metadata::encoder doesn't know how to handle the non-string variants. Issue #611
2011-07-05Remove unused eval function. Issue #604Brian Anderson-17/+0
2011-07-05Parse attributes for native items. Closes #609Brian Anderson-10/+30
2011-07-05Move everything syntax-related to syntax/, break deps on rest of compilerMarijn Haverbeke-0/+3552
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.