summary refs log tree commit diff
path: root/src/libsyntax/parse/parser.rs
AgeCommit message (Collapse)AuthorLines
2012-07-31Build fix: debug![ to debug!{Ben Blum-1/+1
2012-07-30libsyntax: Parse self types in methodsPatrick Walton-11/+152
2012-07-30Change syntax extension syntax: `#m[...]` -> `m!{...}`.Paul Stansifer-10/+10
2012-07-30Impl-ize interner.Paul Stansifer-3/+2
2012-07-27Make macro-system type and constructor names more uniform; more comments.Graydon Hoare-20/+20
2012-07-27Start killing off obsolete/unused quoters, and fix long lines.Graydon Hoare-17/+2
2012-07-26Make parsing about 0.3 seconds faster.Eric Holk-1/+1
2012-07-26Change `#macro` to `macro_rules!` in some cases.Paul Stansifer-38/+29
2012-07-24rustc: Parse new-style impl declarationsPatrick Walton-34/+69
2012-07-24rustc: Don't require that structs have constructorsPatrick Walton-3/+5
2012-07-24Bugfix: make the parser handle the case where zero repetitions occur, by ↵Paul Stansifer-1/+2
handling parse results on the basis of what names the matcher expects to bind, not on what names are actually bound.
2012-07-23syntax: Expect the closing brace after struct literalsPatrick Walton-0/+1
2012-07-23rustc: Max/min classes: Add struct literal syntaxPatrick Walton-30/+55
2012-07-19Revert "accept naked exprs with commas in pattern arms" due to ↵Patrick Walton-19/+2
pretty-printing failures This reverts commit f712b2d76b1077a2241916cc3269aa1d83ce3088. In alt arms, the parser needs to do a little lookahead to determine whether it's looking at a record literal or a block. Also there are some indentation issues in the expected source.
2012-07-18accept naked exprs with commas in pattern armsNiko Matsakis-2/+19
pretty printing will use them, but indentation is slightly off if the expr is long
2012-07-18Remove non-existent importsTim Chevalier-3/+3
2012-07-18syntax: Parse multiple trait refs in a single implementationPatrick Walton-10/+19
2012-07-18prevent regions from escaping in ifaces; remove &r.T syntaxNiko Matsakis-2/+1
2012-07-17rustc: Implement and enforce instance coherencePatrick Walton-4/+13
2012-07-17Support attributes on class ctors and dtorsTim Chevalier-27/+32
Closes #2660
2012-07-16introduce an owned kind for data that contains no borrowed ptrsNiko Matsakis-6/+11
2012-07-14remove typestate from code, tests, and docsNiko Matsakis-141/+12
2012-07-14Get rid of ast::ty_vstore, which was only used for fixed length.Michael Sullivan-9/+10
2012-07-14Make the new world order normative. Closes #2908.Michael Sullivan-9/+0
2012-07-14Move the world over to using the new style string literals and types. Closes ↵Michael Sullivan-146/+148
#2907.
2012-07-13Handle prefix notations for strings in patterns. This is kind of gross.Michael Sullivan-2/+21
2012-07-13Support prefix notation for vstore strings. Closes #2906.Michael Sullivan-8/+15
2012-07-13Clean up various bugs with trait parsing.Lindsey Kuper-18/+23
2012-07-13More consistent use of backticks and "expected" in error messages.Lindsey Kuper-11/+12
Got some of the debug messages, here, too. I figure it doesn't hurt to get used to doing this even in places where users won't ever see it.
2012-07-13Refactor how impl self types are storedTim Chevalier-2/+2
In order to avoid a confusing use of the tcache, I added an extra node ID field to trait refs. Now trait refs have a "ref ID" (the one that resolve3 resolves) and an "impl ID" (the one that you look up in the tcache to get the self type). Closes #2434
2012-07-13Front-end support for default impls in traits.Lindsey Kuper-13/+43
2012-07-13change region syntax to &r/T in place of &r.TNiko Matsakis-7/+12
2012-07-12Obliterate the callee_id hackTim Chevalier-3/+7
Exprs that could be applications of overloaded operators (expr_unary, expr_binary, expr_index) relied on the previous node ID being "reserved" to carry extra typechecking info. This was incredibly error-prone. Fixed it; now all exprs have two node IDs (which will be wasted in some cases; future work could make this an option instead if the extra int field ends up being a performance problem). Closes #2804
2012-07-12Accept prefix notation for writing the types of str/~ and friends.Michael Sullivan-24/+7
2012-07-11infer when types are region parameterized rather than requiring /&Niko Matsakis-31/+22
- removes various fields from various variants in the AST - also update tests not to use this notation
2012-07-11Fix (I think!) the ACTUALLY expr parsing situation.Paul Stansifer-32/+4
2012-07-10Visit item macros.Eric Holk-1/+0
2012-07-09Back out recognition of caret for unsafe ptr. Decided to abandon #2826 mid ↵Graydon Hoare-2/+1
way through.
2012-07-09Make the matcher parser treat `()` in a matchy way, like one would expect.Paul Stansifer-6/+25
2012-07-09Remove the tt macro demo.Paul Stansifer-41/+0
2012-07-09Allow defining token tree macros. They should work now!Paul Stansifer-4/+10
2012-07-09Add support for matchers nonterminals.Paul Stansifer-4/+8
2012-07-09rustc: Switch over to resolve3Patrick Walton-1/+1
2012-07-09Revert "rustc: Switch over to resolve3" due to Linux failuresPatrick Walton-1/+1
This reverts commit 2c0aa257e293dde91042a8045100d9923d139a04.
2012-07-09rustc: Switch over to resolve3Patrick Walton-1/+1
2012-07-09Remove 'cont' from parser/lexer.Graydon Hoare-2/+1
2012-07-09Switch 'cont' to 'again' everywhere. Close #2229.Graydon Hoare-1/+1
2012-07-09rustc: Add some changes I missedPatrick Walton-6/+6
2012-07-09rustc: Switch to the new resolution passPatrick Walton-1/+41
2012-07-06Revert "rustc: Switch to the new resolution pass"Niko Matsakis-41/+1
This reverts commit c4af6e92fbae171c56a4e68666025725555fc9d8. Branch was burning...many, many unresolved imports.