summary refs log tree commit diff
path: root/src/libsyntax/ext/expand.rs
AgeCommit message (Collapse)AuthorLines
2013-09-25rustdoc: Change all code-blocks with a scriptAlex Crichton-2/+2
find src -name '*.rs' | xargs sed -i '' 's/~~~.*{\.rust}/```rust/g' find src -name '*.rs' | xargs sed -i '' 's/ ~~~$/ ```/g' find src -name '*.rs' | xargs sed -i '' 's/^~~~$/ ```/g'
2013-09-24comment changes onlyJohn Clements-3/+5
2013-09-23test: Fix rustdoc and tests.Patrick Walton-2/+2
2013-09-23libsyntax: Remove some more `@fn`s from the macro expanderPatrick Walton-14/+16
2013-09-23librustc: Change fold to use traits instead of `@fn`.Patrick Walton-151/+314
2013-09-20Invert --cfg debug to --cfg ndebugAlex Crichton-2/+2
Many people will be very confused that their debug! statements aren't working when they first use rust only to learn that they should have been building with `--cfg debug` the entire time. This inverts the meaning of the flag to instead of enabling debug statements, now it disables debug statements. This way the default behavior is a bit more reasonable, and requires less end-user configuration. Furthermore, this turns on debug by default when building the rustc compiler.
2013-09-19auto merge of #9291 : jzelinskie/rust/remove-cond, r=alexcrichtonbors-36/+0
This is my first contribution, so please point out anything that I may have missed. I consulted IRC and settled on `match () { ... }` for most of the replacements.
2013-09-18Register new snapshotsAlex Crichton-8/+2
2013-09-18Remove and replace cond! Closes #9282.Jimmy Zelinskie-36/+0
2013-09-15Fix expand_stmt as well as expand_expr to use the correct spanAlex Crichton-15/+25
The same fix as before is still relevant, I just forgot to update the expand_stmt macro expansion site. The tests for format!() suffice as tests for this change.
2013-09-15Reduce the amount of complexity in format!Alex Crichton-15/+23
This renames the syntax-extension file to format from ifmt, and it also reduces the amount of complexity inside by defining all other macros in terms of format_args!
2013-09-14auto merge of #9183 : alexcrichton/rust/issue-5794, r=catamorphismbors-1/+19
Closes #5794
2013-09-14auto merge of #9181 : lkuper/rust/libsyntax-default-methods-refactor, ↵bors-198/+2
r=alexcrichton I'm getting the three `make check` failures mentioned in issue #9127, which I also get building master.
2013-09-13Pass a more proper span to the syntax expandersAlex Crichton-1/+19
Closes #5794
2013-09-13Refactor libsyntax Visitor impls to use default methods.Lindsey Kuper-198/+2
2013-09-12std: Rename {Option,Result}::chain{,_err}* to {and_then,or_else}Erick Tryzelaar-5/+12
2013-09-10change type of ExprLoop and ExprBreak elts from ident->name.John Clements-1/+3
Lots of downstream changes in librustc, should be infinitesimally faster.
2013-09-10Delay assignment of node ids until after expansion. Ensures that each AST nodeNiko Matsakis-4/+4
has a unique id. Fixes numerous bugs in macro expansion and deriving. Add two representative tests. Fixes #7971 Fixes #6304 Fixes #8367 Fixes #8754 Fixes #8852 Fixes #2543 Fixes #7654
2013-09-09auto merge of #9005 : alexcrichton/rust/rusty-log, r=brsonbors-52/+34
Also redefine all of the standard logging macros to use more rust code instead of custom LLVM translation code. This makes them a bit easier to understand, but also more flexibile for future types of logging. Additionally, this commit removes the LogType language item in preparation for changing how logging is performed.
2013-09-08syntax: aesthetic improvements to the `for` desugaring.Huon Wilson-130/+38
2013-09-08syntax: implement labelled breaks for `for`.Huon Wilson-2/+2
`for` desugars to `loop` so it is trivial to just desugar to `loop` while retaining any label.
2013-09-06added index to test cases, more debugging outputJohn Clements-4/+11
2013-09-06quote_* macros no longer need to be capturingJohn Clements-52/+0
This is actually almost a problem, because those were my poster-child macros for "here's how to implement a capturing macro." Following this change, there will be no macros that use capturing; this will probably make life unpleasant for the first person that wants to implement a capturing macro. I should probably create a dummy_capturing macro, just to show how it works.
2013-09-06add test case, cleanupJohn Clements-15/+14
2013-09-06fixed a bug that caused double-expand-traversal of macros that expand into ↵John Clements-19/+10
modules.
2013-09-06WIP: adding mark-cancelling for macro_rulesJohn Clements-4/+42
2013-09-06comment on hygienic context extension train fnsJohn Clements-0/+11
2013-09-06awesome new bug! added test caseJohn Clements-13/+68
2013-09-06remove unneeded imports, clean up unused var warningsJohn Clements-7/+7
2013-09-06whitespace, reindentation, and comments onlyJohn Clements-18/+22
2013-09-06remove dead codeJohn Clements-15/+0
2013-09-06capturing macros now implementedJohn Clements-35/+116
2013-09-06add fold_mac clause to fun_to_ctxt_folderJohn Clements-5/+12
2013-09-06WIP: adding context to macrosJohn Clements-9/+15
2013-09-06rework fold so that fold_tts takes an ast_fold rather than a thunk, stop ↵John Clements-45/+61
using closures in ident traversal
2013-09-06add temporarily unused ctxt field to mac_invoc_ttJohn Clements-3/+3
2013-09-06add test case for macro token comparisonJohn Clements-0/+4
2013-09-06marking on both input and output from macros. nice shiny new test case frameworkJohn Clements-29/+275
2013-09-06test case support fns, remove debugging test caseJohn Clements-3/+7
2013-09-06test case workJohn Clements-4/+2
2013-09-06re-add lost call to expand_block_eltsJohn Clements-1/+2
2013-09-06test case workJohn Clements-2/+10
2013-09-06use empty_ctxt to simplify downstreamJohn Clements-2/+5
2013-09-06make comparison of special_idents non-hygienicJohn Clements-2/+2
2013-09-06commentsJohn Clements-0/+3
2013-09-06remove FIXME #2888, now bug is fixedJohn Clements-11/+11
2013-09-06comments onlyJohn Clements-0/+2
2013-09-06adding test case to check marking/unmarkingJohn Clements-9/+17
2013-09-06removed unneccessary SyntaxExpander structsJohn Clements-16/+12
2013-09-06renaming test casesJohn Clements-6/+12