summary refs log tree commit diff
path: root/src/libsyntax/ast.rs
AgeCommit message (Collapse)AuthorLines
2012-07-09Allow defining token tree macros. They should work now!Paul Stansifer-1/+1
2012-07-06For #2229, recognize 'again' in place of 'cont', final change pending snapshot.Graydon Hoare-1/+1
2012-07-06Plumbing and parsing for item-position macros.Eric Holk-0/+1
2012-07-05Add new syntax for interpolation and repetition, and allow the transcription ↵Paul Stansifer-1/+1
of separators.
2012-07-05Macro By Example transcription of token trees with interpolations and ↵Paul Stansifer-2/+2
dotdotdots.
2012-07-05Some rearranging in perparation for MBE-style TT transcription.Paul Stansifer-2/+7
2012-07-05Document matchers a little better.Paul Stansifer-1/+3
2012-07-05Change 'iface' to 'trait' internally; parse `trait` as `iface` synonymLindsey Kuper-7/+7
2012-07-03Revert "Remove rule requiring non-nil block-style statements to be ↵Brian Anderson-0/+5
semi-terminated" This reverts commit 0f5eaef5fb2443acd3ea67250c953839c3d04d38.
2012-07-03Remove rule requiring non-nil block-style statements to be semi-terminatedBrian Anderson-5/+0
This is a subtle rule that no longer seems to be required.
2012-07-03Change crust -> extern.Graydon Hoare-1/+1
2012-07-03Switch 'native' to 'extern' (or 'foreign' in some descriptions)Graydon Hoare-1/+1
2012-07-02Merge remote-tracking branch 'Dretch/prettydocs'Brian Anderson-1/+2
Conflicts: src/compiletest/errors.rs src/libsyntax/parse/attr.rs src/libsyntax/parse/comments.rs src/test/compile-fail/ambig_impl_unify.rs src/test/compile-fail/assign-super.rs src/test/compile-fail/bad-for-loop.rs src/test/compile-fail/bad-var-env-capture-in-block-arg.rs src/test/compile-fail/block-arg-as-stmt-with-value.rs src/test/compile-fail/borrowck-assign-comp-idx.rs src/test/compile-fail/borrowck-lend-flow.rs src/test/compile-fail/borrowck-loan-blocks-move-cc.rs src/test/compile-fail/borrowck-loan-blocks-mut-uniq.rs src/test/compile-fail/borrowck-loan-rcvr.rs src/test/compile-fail/borrowck-loan-vec-content.rs src/test/compile-fail/borrowck-mut-vec-as-imm-slice-bad.rs src/test/compile-fail/cap-clause-with-stack-closure.rs src/test/compile-fail/do1.rs src/test/compile-fail/do2.rs src/test/compile-fail/empty-vec-trailing-comma.rs src/test/compile-fail/evec-subtyping.rs src/test/compile-fail/issue-1896.rs src/test/compile-fail/issue-2149.rs src/test/compile-fail/issue-2150.rs src/test/compile-fail/issue-2487-b.rs src/test/compile-fail/kindck-implicit-close-over-mut-var.rs src/test/compile-fail/liveness-issue-2163.rs src/test/compile-fail/liveness-use-in-index-lvalue.rs src/test/compile-fail/no-reuse-move-arc.rs src/test/compile-fail/no-send-res-ports.rs src/test/compile-fail/non-const.rs src/test/compile-fail/pure-higher-order.rs src/test/compile-fail/pure-loop-body.rs src/test/compile-fail/regions-addr-of-upvar-self.rs src/test/compile-fail/regions-escape-loop-via-vec.rs src/test/compile-fail/regions-scoping.rs src/test/compile-fail/seq-args.rs src/test/compile-fail/tstate-unsat-in-called-fn-expr.rs src/test/compile-fail/tstate-unsat-in-fn-expr.rs src/test/compile-fail/vec-add.rs src/test/compile-fail/vec-concat-bug.rs src/test/compile-fail/vector-no-ann.rs
2012-06-30initial draft of fix for issue #2498:Gareth Daniel Smith-1/+2
1. make /// ... and //! ... and /** ... */ and /*! ... */ into sugar for #[doc = ...] attributes. 2. add a script in etc/ to help converting doc-attributes to doc-comments 3. add some functions to core::str to help with (1)
2012-06-29Switch the compiler over to using ~[] notation instead of []/~. Closes #2759.Michael Sullivan-61/+61
2012-06-26Change 'native' and 'crust' to 'extern'.Graydon Hoare-14/+14
This comes with a terminology change. All linkage-symbols are 'extern' now, including rust syms in other crates. Some extern ABIs are merely "foreign". The term "native" is retired, not clear/useful. What was "crust" is now "extern" applied to a _definition_. This is a bit of an overloading, but should be unambiguous: it means that the definition should be made available to some non-rust ABI.
2012-06-25Make vectors uglier ([]/~). Sorry. Should be temporary. Closes #2725.Michael Sullivan-58/+61
2012-06-25parsing for the macro systemPaul Stansifer-0/+11
2012-06-24Remove resourcesTim Chevalier-3/+0
Also fixed shapes for classes with dtors, as well as handling offsets for classes with dtors correctly in take glue. Closes #2485
2012-06-21Tag all remaining FIXMEs with bugs. Install rule in tidy script to enforce this.Graydon Hoare-10/+6
2012-06-20Remove bind. Issue #2189Brian Anderson-1/+0
2012-06-18Add 'do' expressionsBrian Anderson-0/+2
2012-06-15Lexers now emit spans, not chposes.Paul Stansifer-1/+1
2012-06-15Pull out an interface for the lexer.Paul Stansifer-6/+3
2012-06-15Make token trees parseable.Paul Stansifer-0/+13
2012-06-14Further work on integer literal suffix inference (#1425)Lindsey Kuper-1/+1
In this commit: * Change the lit_int_unsuffixed AST node to not carry a type, since it doesn't need one * Don't print "(unsuffixed)" when pretty-printing unsuffixed integer literals * Just print "I" instead of "(integral)" for integral type variables * Set up trans to use the information that will be gathered during typeck to construct the appropriate constants for unsuffixed int literals * Add logic for handling int_ty_sets in typeck::infer * Clean up unnecessary code in typeck::infer * Add missing mk_ functions to middle::ty * Add ty_var_integral to a few of the type utility functions it was missing from in middle::ty
2012-06-13Box AST identsBrian Anderson-3/+3
2012-06-12Handle class destructors correctly in metadataTim Chevalier-1/+2
This allows destructors to be inlined, which is necessary since classes can have both ty params and destructors.
2012-06-11Add a new AST node for unsuffixed integer types.Lindsey Kuper-0/+1
2012-06-06Say "easily" instead of "sanely"Tim Chevalier-1/+1
I can't correct it every time, but every time someone uses "insane"/ "sane" as synonyms for "bad"/"good", they're saying that being like me is the same as being everything that's bad and wrong in the world... so I'm changing this to a word that means approximately the same thing but doesn't devalue any group of people.
2012-05-31Rename librustsyntax to libsyntaxKevin Cantu-0/+743
Per issue #2418.