about summary refs log tree commit diff
path: root/src/libsyntax/parse/parser.rs
AgeCommit message (Collapse)AuthorLines
2012-08-06rustc: Implement pattern matching for structsPatrick Walton-62/+128
2012-08-06make `ref x` bindings produce region ptrs and fix various minor bugsNiko Matsakis-69/+85
we now detect inconsistent modes, binding names, and various other errors. typeck/trans integration is mostly done. borrowck not so much. more tests needed.
2012-08-06Convert alt to match. Stop parsing altBrian Anderson-70/+70
2012-08-06Handle interpolated paths in pattern parsing. Fixes #3007.Eric Holk-2/+3
We might need to use is_ident_or_path in a for other places too.
2012-08-06rustc: Implement functional record update for structsPatrick Walton-3/+12
2012-08-05syntax: Stop parsing alts without arrowsBrian Anderson-6/+2
2012-08-05Switch alts to use arrowsBrian Anderson-193/+181
2012-08-03rustc: Merge fn& and fn in favor of fn&.Patrick Walton-11/+8
This is a step on the way to moving the function "proto" sigil out front.
2012-08-03rustc: Parse and typecheck repeating vector expressions; e.g. [ 0, ..512 ]Patrick Walton-31/+58
2012-08-03libsyntax: Fix trailing whitespacePatrick Walton-1/+1
2012-08-03rustc: Parse, serialize, and deserialize trait inheritancePatrick Walton-1/+11
2012-08-03rustc: Add the notion of inherited visibilityPatrick Walton-45/+61
2012-08-03rustc: Remove all fixed-length strings from our codebasePatrick Walton-1/+1
2012-08-02Purge placement new; Make borrowck know about unary move.Niko Matsakis-8/+1
cc #3071
2012-08-02Extend ast_map to know about method declarations in traits.Michael Sullivan-1/+1
2012-08-02Remove modes from map API and replace with regions.Niko Matsakis-1/+1
API is (for now) mostly by value, there are options to use it by reference if you like. Hash and equality functions must be pure and by reference (forward looking to the day when something like send_map becomes the standard map).
2012-08-02Allow `macro_rules! m { (...) => ... }`Paul Stansifer-2/+7
2012-08-02Allow interpolations of all the nt_*s.Paul Stansifer-10/+33
2012-08-01syntax: Remove 'ret'Brian Anderson-1/+1
2012-08-01Convert ret to returnBrian Anderson-130/+137
2012-08-01syntax: Allow any block-like expr to be used as alt arm w/o comma separatorBrian Anderson-20/+25
2012-08-01libsyntax: Use the keyword "copy" for copy-mode bindings instead of the +.Patrick Walton-16/+8
Mea culpa for introducing + in the first place.
2012-08-01libsyntax: Fix a parsing problem with the temporary syntax for by-value ↵Patrick Walton-2/+2
pattern match bindings
2012-07-31rustc: Parse by-reference pattern bindings with the "ref" keywordPatrick Walton-59/+89
2012-07-31rustc: Implement unary move. Closes #917.Patrick Walton-6/+10
2012-07-31Introduce 'return', 'match' and 'module' as synonymsBrian Anderson-7/+21
2012-07-31rustc: Check self types in method lookup; allow required trait methods to ↵Patrick Walton-0/+1
have self types; write self types into metadata
2012-07-31syntax: More tweaks to make alt arrows parse and print correctlyBrian Anderson-41/+46
2012-07-31accept 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-31Now you can use whatever delimiter you want to invoke syntax extensions.Paul Stansifer-17/+19
2012-07-31Change remaining "iface" occurrences to "trait"; deprecate "iface"Lindsey Kuper-0/+1
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