about summary refs log tree commit diff
path: root/src/librustsyntax/ext
AgeCommit message (Collapse)AuthorLines
2012-05-31Rename librustsyntax to libsyntaxKevin Cantu-2922/+0
Per issue #2418.
2012-05-26core: Make range follow the for loop protocolBrian Anderson-1/+1
2012-05-23The parser is represented by a class now.Paul Stansifer-16/+10
2012-05-21remove mutable cycle from ast_foldNiko Matsakis-24/+25
2012-05-18remove unused variableNiko Matsakis-1/+0
2012-05-18port qquote to use dvecNiko Matsakis-10/+13
2012-05-18avoid modifying the variable we are alting overNiko Matsakis-2/+2
2012-05-18Using const vector slices for more vec functions.Eric Holk-1/+2
2012-05-18add #include_bin[]Paul Stansifer-0/+27
2012-05-18Fold #include_str into the other source_utils.rs syntax extensions.Paul Stansifer-59/+52
2012-05-18add #mod[], which expands to the current module pathPaul Stansifer-3/+34
2012-05-18New syntax extensions: #line[], #col[], #file[], #stringify[], #include[]Paul Stansifer-0/+58
2012-05-18Make extracting syntax extension arguments easier.Paul Stansifer-76/+58
2012-05-10Preliminary groundwork for intrinsic module, reflection interface.Graydon Hoare-0/+61
2012-05-08Start parsing pub/priv on regular itemsMarijn Haverbeke-1/+3
Issue #1893
2012-04-30Revert "Eliminate a copy in syntax::parse::new_parser_from_file"Tim Chevalier-1/+1
This reverts commit 2bb3b63ec4379b812aeceb690d78763ec55d3cbb. (I was confused.)
2012-04-30Eliminate a copy in syntax::parse::new_parser_from_fileTim Chevalier-1/+1
Fixing a FIXME turned out to be pretty involved. I added an io function that returns a unique boxed string (for the contents of a file) rather than a string, and went from there. Also made the src field of codemap a unique boxed string. This doesn't seem to make that much difference in amount of allocation according to valgrind (disappointingly), but I also had to introduce a copy somewhere else pending a new snapshot, so maybe that's it.
2012-04-25lots of work to make iface/impls parameterized by regionsNiko Matsakis-6/+10
- paths can now take region parameters, replacing the dirty hack I was doing before of abusing vstores. vstores are now a bit of a hack though. - fix various small bugs: - we never checked that iface types were compatible when casting to an iface with `as` - we allowed nonsense like int<int> - and more! (actually that may be it)
2012-04-25Rewrite exhaustiveness checkerMarijn Haverbeke-1/+0
Issue #2111
2012-04-23Move map iface over to more `for`-friendly iteration methodsMarijn Haverbeke-2/+2
2012-04-23Simplify representation of ast::pathMarijn Haverbeke-49/+42
2012-04-20Add new syntax for patterns that match the head constructor onlyTim Chevalier-1/+1
Adds a new kind of pattern C(*) where C is a constructor that may have any number of fields. This pattern matches any value constructed with C, without binding names for any of the fields. Closes #1701.
2012-04-19make nominal types optionally parameterized by a self region.Niko Matsakis-2/+2
Issue #2201.
2012-04-19Disallow rebinding / matching against consts in altsTim Chevalier-3/+2
As per Issue #1193. Closes #1193. I had to rename a few variables ("info" and "epsilon") to avoid clashing with in-scope constants, which is responsible for all the changes other than resolve and issue-1193.rs.
2012-04-19Annotate FIXMEs (comments only)Tim Chevalier-5/+7
2012-04-19Cleanup FIXMEs in syntax::ext::qquoteTim Chevalier-13/+7
Inline some one-off functions, add an error message, annotate a FIXME
2012-04-19Removed a FIXME from librustcsyntax/ext/build.rsTim Chevalier-3/+0
I removed a FIXME about cleaning up function names because I couldn't tell what needed cleaning up. If you know, please add a FIXME and a corresponding issue tracker issue that explains the problem!
2012-04-18syntax: Put the main parser interface in mod parseBrian Anderson-8/+8
2012-04-12Support general warnings and errors in lint pass via flags and attrs. Close ↵Graydon Hoare-6/+1
#1543.
2012-04-11Add vstore/evec/estr to compiler.Graydon Hoare-8/+12
2012-04-06Re-rename option functionsTim Chevalier-1/+1
get_with_default (nee from_maybe) => get_default with_option (nee maybe) => map_default with_option_do (nee may) => iter As per discussion of 21be1379d561b6679a8a2ea47dce88f948c5acca
2012-04-06Convert old-style for loops to new-styleMarijn Haverbeke-12/+12
Most could use the each method, but because of the hack used to disambiguate old- and new-style loops, some had to use vec::each. (This hack will go away soon.) Issue #1619
2012-04-05Explicitly use version 0.2 of cratesBrian Anderson-2/+0
2012-04-02Rename some core::option functionsTim Chevalier-1/+1
from_maybe => get_with_default maybe => with_option may => with_option_do I know these names are kind of ridiculous, but it's the best I could think of. Feel free to bikeshed. Closes #2081
2012-03-29rustc: Move ext to librustsyntaxBrian Anderson-0/+2785