about summary refs log tree commit diff
path: root/src/comp/syntax/ext/expand.rs
AgeCommit message (Collapse)AuthorLines
2012-03-02Move src/comp to src/rustcGraydon Hoare-102/+0
2012-02-14Use file_substr rather than <anon> when re-parsing quasi-quotesKevin Atkinson-1/+1
for better error messages.
2012-02-09Remove some pointless importsMarijn Haverbeke-3/+0
2012-02-05Fix macro backtraces.Kevin Atkinson-5/+13
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-8/+1
2012-02-03Fix various drift issues in the qq branch.Graydon Hoare-1/+2
2012-02-03Implement quasi-quoting of multiple syntatic categories.Kevin Atkinson-1/+1
2012-02-03Implement quasi-quotes in more macro form: #ast{...}.Kevin Atkinson-1/+1
The #(...) form is still supported for now.
2012-02-03Expand result of quasi-quote.Kevin Atkinson-1/+7
2012-02-03Implement basic quasi-quoter. No anti-quotes yet.Kevin Atkinson-7/+1
2012-02-03Rename AST builders to use uniform naming scheme. Also add a few more.Kevin Atkinson-1/+1
2012-02-03Add support for parsing quasi-quotes, doesn't do anything useful yet.Kevin Atkinson-1/+9
2012-01-25Keep source file around after parsing.Kevin Atkinson-1/+1
Specifically box the string (to avoid unnecessary copies) and store it in codemap::filemap. Remove the hack in driver::diagnostic that rereads the source from the file and instead just get the source from the filemap. (This commit is also a prerequisite for issue #1612)
2012-01-23Allow ast_fold_precursor to change the span.Kevin Atkinson-6/+11
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-23Change "file" of injected string from "-" to "<anon>", less confusingKevin Atkinson-1/+1
that way.
2012-01-18Remove '.' after nullary tags in patternsTim Chevalier-1/+1
Does what it says on the tin. The next commit will remove support for this syntax.
2012-01-13Change builtin macro defs to use #macro()Graydon Hoare-4/+4
2012-01-12Make driver::session::session no longer an objectMarijn Haverbeke-2/+2
Rather, it is now a struct where properties like opts are accessed directly, and the error-reporting methods are part of a static impl (with the same name as the type).
2011-12-22Switch core macros to expand to log(level, ...).Graydon Hoare-4/+4
2011-12-22Revert all of yesterday's snapshots and try again. Cursed!Graydon Hoare-4/+4
2011-12-20Inject "core macros" into default syntax-expansion environment. Bit of a ↵Graydon Hoare-2/+24
kludge but enough to work on logging-via-macros.
2011-12-13Copy first batch of material from libstd to libcore.Graydon Hoare-2/+2
2011-11-17remove compile-command from local variable blocksNiko Matsakis-1/+0
2011-11-10Cleanup unused importsHaitao Li-1/+1
2011-10-20Make fn denote a bare function. Convert fn to fn@ as neededBrian Anderson-1/+1
2011-09-19Break fold's circular reference during unwindingBrian Anderson-1/+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-12Factor imports mindlessly.Graydon Hoare-8/+3
2011-09-12Reformat for new mode syntax, step 1Marijn Haverbeke-4/+3
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-7/+4
2011-09-01Convert all uses of #ifmt to #fmt. Issue #855Brian Anderson-1/+1
2011-09-01Rename std::istr to std::str. Issue #855Brian Anderson-1/+1
2011-08-31Convert uses of #fmt to #ifmt. Issue #855Brian Anderson-3/+3
2011-08-27Convert rustc::syntax::ext::base to istrs. Issue #855Brian Anderson-4/+4
2011-08-27Convert ast::ident to istr. Issue #855Brian Anderson-2/+3
2011-08-27Convert std::map::new_str_hash to istrs. Issue #855Brian Anderson-3/+6
2011-08-20ReformatBrian Anderson-5/+4
This changes the indexing syntax from .() to [], the vector syntax from ~[] to [] and the extension syntax from #fmt() to #fmt[]
2011-08-16Port the compiler to the typaram foo<T> syntax.Erick Tryzelaar-1/+1
2011-08-16Rename std::ivec to std::vecBrian Anderson-2/+2
2011-08-15Add backtraces for syntax problems.Paul Stansifer-26/+26
2011-07-27Reformat for new syntaxMarijn Haverbeke-44/+42
2011-07-26Remove tuple support from the compilerMarijn Haverbeke-1/+1
2011-07-26Remove all uses of tuples from the compiler and stdlibMarijn Haverbeke-2/+2
2011-07-13Prohibit trailing whitespace under 'tidy' script. Clean up all caught cases.Graydon Hoare-6/+6
2011-07-11Add elipses, reorganize the macro components into their own AST node.Paul Stansifer-19/+32
2011-07-11Move macro expansion to a separate phase, change macro syntax, and add ↵Paul Stansifer-0/+65
parse_sess to session.