summary refs log tree commit diff
path: root/src/libsyntax
AgeCommit message (Collapse)AuthorLines
2012-06-30syntax: Pretty-print 'do' correctlyBrian Anderson-0/+1
2012-06-30initial draft of fix for issue #2498:Gareth Daniel Smith-50/+284
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-542/+542
2012-06-29Refactor syntax exts some. Don't ever emit bare vectors.Michael Sullivan-38/+30
2012-06-28Make fmt use a bitmask instead of a vector of flags. Closes #1993.Michael Sullivan-11/+11
2012-06-28Parse ~[...] as [...]/~. Same for @ and &. Closes #2747.Michael Sullivan-7/+38
2012-06-28Have #fmt use str::concat to build up the string instead of using binary +. ↵Michael Sullivan-6/+12
Closes #2746.
2012-06-28Don't use literal info from the original source when pretty printing ↵Michael Sullivan-2/+5
expanded ASTs.
2012-06-28replace more vector + (issue #2719)Eric Holk-9/+10
2012-06-27Replace more vector + (issue #2719)Eric Holk-64/+81
2012-06-27Have the syntax extension ast builders reserve the extra node ids required ↵Michael Sullivan-0/+2
for overloading. Closes #2732.
2012-06-27syntax: Don't use an enum name as a variable namePatrick Walton-5/+5
2012-06-27More keyword paring and migration in runtime, docs, code modes.Graydon Hoare-1/+1
2012-06-26Change 'native' and 'crust' to 'extern'.Graydon Hoare-92/+102
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-26Getting rid of lots more vector +=. (issue #2719)Eric Holk-40/+42
2012-06-25Make vectors uglier ([]/~). Sorry. Should be temporary. Closes #2725.Michael Sullivan-565/+594
2012-06-25When we cons up vector asts, generate evecs.Michael Sullivan-2/+12
2012-06-25Make it possible to make built-in tt syntax extensionsPaul Stansifer-6/+53
2012-06-25parsing for the macro systemPaul Stansifer-29/+370
2012-06-25MergeTim Chevalier-35/+24
2012-06-24Long linesBrian Anderson-1/+2
2012-06-24syntax: Merge parse_for_expr, parse_do_exprBrian Anderson-22/+6
2012-06-24Remove resourcesTim Chevalier-116/+8
Also fixed shapes for classes with dtors, as well as handling offsets for classes with dtors correctly in take glue. Closes #2485
2012-06-22Remove 'implements' keyword in favour of :, part of #2301.Graydon Hoare-5/+6
2012-06-22Serialize out uniq vecs typesMichael Sullivan-8/+11
2012-06-21Tag all remaining FIXMEs with bugs. Install rule in tidy script to enforce this.Graydon Hoare-129/+130
2012-06-21Fixed another performance issueEric Holk-1/+1
2012-06-21Move vector addition out of trans and into libcore.Eric Holk-6/+15
2012-06-21Issue #2657: track mutability of bindings, also prevent move from bindingsNiko Matsakis-1/+1
2012-06-20Remove bind. Issue #2189Brian Anderson-140/+111
2012-06-18Add 'do' expressionsBrian Anderson-2/+28
2012-06-16Re-fix whitespaceTim Chevalier-1/+1
2012-06-16Revert "Reference and whitespace fixes."Tim Chevalier-1/+1
This reverts commit 52f1904ddde95fb7d8e654b4cc78a4f162385275.
2012-06-15Reference and whitespace fixes.Eric Holk-1/+1
2012-06-15id_visitor should handle expr_index and expr_assign_op as well.Eric Holk-2/+3
2012-06-15Handle index expressions' callee IDs correctlyTim Chevalier-1/+1
Some code that handles unary and binary exprs' callee IDs was forgetting to handle the index expr case (since calls to user-defined index operators also have callee IDs). This was manifesting as an ICE in trans because when monomorphizing a function that had one of these operators in it (an index into a dvec, in the test case), the callee ID would be unbound to a type. Fixed it. Closes #2631.
2012-06-15Lexers now emit spans, not chposes.Paul Stansifer-48/+62
2012-06-15Beginning of support for interpolation into token trees.Paul Stansifer-1/+17
2012-06-15Make token tree lexers and their stacks unique.Paul Stansifer-37/+50
2012-06-15Make tt lexers duplicatible.Paul Stansifer-1/+17
2012-06-15Bugfix: obey the tt_lexer's own invariants.Paul Stansifer-20/+13
2012-06-15Add the interner to parse_sess.Paul Stansifer-14/+35
2012-06-15Make it possible to make tt_reader-based parsers.Paul Stansifer-20/+42
2012-06-15Make token trees re-lexable.Paul Stansifer-2/+66
2012-06-15Formatting fixup in parser.rsPaul Stansifer-45/+46
2012-06-15Pull out an interface for the lexer.Paul Stansifer-247/+285
2012-06-15Make token trees parseable.Paul Stansifer-5/+82
2012-06-14Further work on integer literal suffix inference (#1425)Lindsey Kuper-18/+14
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-14Remove code from parser that was awaiting snapshotTim Chevalier-62/+2
Remove old parser functions as well as support for old-style capture clauses. Remove remaining old-style capture clauses.
2012-06-14Comments only: annotate FIXMEsTim Chevalier-2/+5