about summary refs log tree commit diff
path: root/src/comp/syntax/ext/simplext.rs
AgeCommit message (Collapse)AuthorLines
2012-03-02Move src/comp to src/rustcGraydon Hoare-779/+0
2012-02-22Clean up small things in syntax submodulesMarijn Haverbeke-1/+1
2012-02-15make mut a keyword synonymous with mutableNiko Matsakis-1/+1
first step towards issue #1273
2012-02-09Remove some pointless importsMarijn Haverbeke-2/+0
2012-02-05Fix macro backtraces.Kevin Atkinson-4/+4
In addition add information about the macro doing the expansion, and move the printing of the expansion backtrace from codemap::span_to_str to the diagnostic code. The backtrace is now more verbose and includes information on the macro doing the expansion, in addition to the expansion site.
2012-02-05Remove support for $(...) form of quasi-quotes, use #ast{...} instead.Kevin Atkinson-1/+0
2012-02-03Make macro arg optional in syntax, again untested.Kevin Atkinson-1/+3
2012-02-03Add support for recognizing macro body, completely untested.Kevin Atkinson-4/+6
2012-02-03Change the type for the macro body to also store the span.Kevin Atkinson-2/+2
Note: the body is the part of the macro syntax between the {}.
2012-02-03Add support for parsing quasi-quotes, doesn't do anything useful yet.Kevin Atkinson-0/+3
2012-01-31Change option::t to optionTim Chevalier-13/+13
Now that core exports "option" as a synonym for option::t, search-and- replace option::t with option. The only place that still refers to option::t are the modules in libcore that use option, because fixing this requires a new snapshot (forthcoming).
2012-01-31Require alts to be exhaustiveTim Chevalier-5/+8
middle::check_alt does the work. Lots of changes to add default cases into alts that were previously inexhaustive.
2012-01-23s/block()/fn()/gNiko Matsakis-2/+2
2012-01-23When replacing a pattern variable in macro expansion use the span ofKevin Atkinson-6/+6
the replacement and not the span of the pattern variable. Fixes issue #1448, and #1387.
2012-01-23Allow ast_fold_precursor to change the span.Kevin Atkinson-33/+37
This involved changing the prototype for the callbacks to thread the span though. A wrapper function, fold::wrap, can be used to wrap the old style callbacks.
2012-01-19rustc: ";" to "," in enumsPatrick Walton-7/+7
2012-01-19rustc: "tag" -> "enum"Patrick Walton-2/+2
2012-01-18Remove '.' after nullary tags in patternsTim Chevalier-30/+30
Does what it says on the tin. The next commit will remove support for this syntax.
2012-01-13deprecate fn exprs and the fn() type, preferring fn@ and native fnNiko Matsakis-1/+1
2012-01-05Switch to new param kind bound syntaxMarijn Haverbeke-1/+1
And remove support for the old syntax
2011-12-16reorder args to the various vec, option fns so blk comes lastNiko Matsakis-2/+2
2011-12-13Copy first batch of material from libstd to libcore.Graydon Hoare-1/+1
2011-11-30Box ast::path valuesMarijn Haverbeke-7/+7
It seems inefficient to copy them around. Let's measure whether that's actually > the case
2011-11-18Update stdlib, compiler, and tests to new kind systemMarijn Haverbeke-1/+1
This involved adding 'copy' to more generics than I hoped, but an experiment with making it implicit showed that that way lies madness -- unless enforced, you will not remember to mark functions that don't copy as not requiring copyable kind. Issue #1177
2011-11-17remove compile-command from local variable blocksNiko Matsakis-1/+0
2011-11-10Cleanup unused importsHaitao Li-4/+3
2011-10-25Update our code to new type parameter kind syntaxMarijn Haverbeke-1/+1
Closes #1067
2011-10-21Move hash table iteration over to block-taking functionsMarijn Haverbeke-8/+8
Issue #1056
2011-10-20Make fn denote a bare function. Convert fn to fn@ as neededBrian Anderson-6/+6
2011-10-10Adjust function signatures to allow for vecs being immediateMarijn Haverbeke-2/+2
Some code was relying on vectors being implicitly by-reference (as non-immediate value). This adds the necessary &&-sigils. Closes #1021
2011-10-07Give up on providing a by-value version of map, convert fold over toMarijn Haverbeke-3/+3
passing pointers by ref Issue #1008
2011-10-07Parse and typecheck by-value and by-ref arg specsMarijn Haverbeke-2/+2
Add sprinkle && throughout the compiler to make it typecheck again. Issue #1008
2011-09-24Vectors containing pinned kinds become pinnedBrian Anderson-1/+1
Otherwise they could be copied
2011-09-19Break fold's circular reference during unwindingBrian Anderson-2/+0
This converts the AST fold into a resource that breaks it's own circular reference (just a temporary workaround until GC), so that failure during fold will unwind correctly. Issue #936
2011-09-16Require body of else-less if expressions to be a value-less blockMarijn Haverbeke-1/+1
For consistency with other constructs that could not possibly return a value (say, loops).
2011-09-15Insert omitted semicolons for statementsMarijn Haverbeke-1/+1
2011-09-12Factor imports mindlessly.Graydon Hoare-26/+8
2011-09-12Pretty-print for new arg-mode syntaxMarijn Haverbeke-0/+2
2011-09-12Reformat for new mode syntax, step 1Marijn Haverbeke-60/+61
Long lines were fixed in a very crude way, as I'll be following up with another reformat in a bit.
2011-09-02Reformat. Issue #855Brian Anderson-68/+59
2011-09-01Convert all uses of #ifmt to #fmt. Issue #855Brian Anderson-2/+2
2011-09-01Rename std::istr to std::str. Issue #855Brian Anderson-1/+1
2011-08-31Convert uses of #fmt to #ifmt. Issue #855Brian Anderson-5/+5
2011-08-27Convert misc compiler bits to istrs. Issue #855Brian Anderson-13/+12
2011-08-27Convert rustc::syntax::ext::base to istrs. Issue #855Brian Anderson-35/+38
2011-08-27Convert rest of the AST to istrs. Issue #855Brian Anderson-2/+3
2011-08-27Remove ast::identistr. Issue #855Brian Anderson-7/+6
2011-08-27Convert ast::ident to istr. Issue #855Brian Anderson-20/+19
2011-08-27Convert std::map::new_str_hash to istrs. Issue #855Brian Anderson-17/+29
2011-08-22Move functions from syntax::ast to syntax::ast_utilBrian Anderson-1/+1
This leaves syntax::ast just defining the AST, which strikes me as somewhat nicer