summary refs log tree commit diff
path: root/src/libsyntax/parse/parser.rs
AgeCommit message (Collapse)AuthorLines
2012-12-07Remove impl_id from trait_ref. UnusedBrian Anderson-1/+1
2012-12-04librustc: Long lines. rs=rustbotPatrick Walton-1/+3
2012-12-04librustc: Remove all legacy pattern bindings from libsyntax and librustc. ↵Patrick Walton-25/+32
rs=refactoring
2012-11-30librustc: Make `a.b()` always a method call. r=nmatsakisPatrick Walton-7/+41
2012-11-29impls of traits cannot define methods on the anonymous traitBrian Anderson-1/+1
2012-11-29Properly sync macro_parser.rs after it escapes out to the Rust parser. ↵Paul Stansifer-0/+3
Closes #3201.
2012-11-29Forbid attrs on macros, since we don't handle them properly yet.Paul Stansifer-2/+9
2012-11-29Forbid item macros from occuring where statement macros might occur, and ↵Paul Stansifer-14/+22
allow item macros to look like statement/expr macros.
2012-11-29Distinguish `stmt_mac`s that are followed by semicolons and those that aren't.Paul Stansifer-3/+4
2012-11-29Make the parser handle stmt macros that might be exprs at the end of blocks.Paul Stansifer-0/+23
2012-11-29Allow parsing of macros in statement position.Paul Stansifer-6/+39
2012-11-29No longer parse the delimiters of the RHS of a macro as part of the expansion.Paul Stansifer-12/+12
2012-11-29Make it possible to invoke item macros without passing identifier arguments.Paul Stansifer-1/+5
2012-11-29libsyntax: Remove the "by-mutable-ref" obsolete syntax error; it blocks ↵Patrick Walton-9/+5
useful function argument patterns. Add a test for the latter. r=brson
2012-11-28core: Convert some records to structsBrian Anderson-0/+1
2012-11-28Merge remote-tracking branch 'brson/companion' into incomingBrian Anderson-96/+82
Conflicts: src/compiletest/compiletest.rs src/libcargo/cargo.rs src/libcore/core.rs src/librustc/rustc.rs src/librustdoc/rustdoc.rc
2012-11-28Register snapshotsBrian Anderson-10/+0
2012-11-28librustc: Parse `extern "C" { ... }`. r=brsonPatrick Walton-5/+39
2012-11-27librustc: Implement @mut [T] as the new replacement for @[mut T]Patrick Walton-3/+7
2012-11-26Remove the crate languageBrian Anderson-94/+55
2012-11-26syntax: Add a hack to support the int-template patternBrian Anderson-3/+38
2012-11-20syntax: switch tt quoter to emit ~[tt], not tt.Graydon Hoare-0/+8
2012-11-19rustc: Implement explicit self for Eq and Ord. r=graydonPatrick Walton-0/+10
2012-11-19Fix parsing of interpolated pathsBrian Anderson-1/+2
2012-11-18Remove unused file_type enum from the parserBrian Anderson-8/+1
2012-11-18Report errors better when failing to open files for sub-parsersBrian Anderson-1/+3
2012-11-18Parse file mods from .rs filesBrian Anderson-7/+20
2012-11-17Merge remote-tracking branch 'brson/codemap'Brian Anderson-14/+13
Conflicts: src/libsyntax/ext/source_util.rs
2012-11-16Change spans to use byte offsets instead of char offsetsBrian Anderson-11/+11
2012-11-14Add types for character position and byte position in the codemapBrian Anderson-11/+11
2012-11-14Camel case all the codemap types except spanBrian Anderson-1/+1
2012-11-14librustc: Require the #[derivable] attribute, remove the significance of ↵Patrick Walton-7/+3
"impl Foo : Bar;", and allow only a subset of methods in a trait to be derived. r=brson
2012-11-13rustc: add new token-tree based quasiquoter.Graydon Hoare-2/+3
2012-11-13rustc: Remove the case of foo![...] as invocation syntax. foo!(...) and ↵Graydon Hoare-2/+2
foo!{...} only.
2012-11-13Revert "`m1!{...}` is now forbidden. Use `m1!(...)` instead."Graydon Hoare-7/+18
This reverts commit 89bbaff84fed6e6796c82f5a9fd200e693d47beb.
2012-11-12Convert most codemap types from records to structsBrian Anderson-3/+2
2012-11-12rustc: Implement floating point literal inference. r=nmatsakisPatrick Walton-3/+5
2012-11-07rustc: Support irrefutable patterns in function arguments. r=nmatsakisPatrick Walton-8/+15
2012-11-06Cleanup how we handle proto in types, remove unsound subtypingNiko Matsakis-102/+173
Fixes #1896 which was never truly fixed, just masked. The given tests would have failed had they used `~fn()` and not `@fn()`. They now result in compilation errors. Fixes #2978. Necessary first step for #2202, #2263.
2012-11-05rustc: Implement parsing and typechecking for "once fn"Patrick Walton-6/+33
2012-10-30Fix #1458 (allow paren'd exprs to be the operator in a `do`)Tim Chevalier-1/+1
Closes #1458
2012-10-30Preserve parenthesization in the ASTTim Chevalier-77/+52
Maintain explicit "paren" nodes in the AST so we can pretty-print without having to guess where parens should go. We may revisit this in the future. r=graydon
2012-10-25libsyntax: Don't write a ctor ID for struct-like enum variants. rs=rustbotPatrick Walton-1/+1
2012-10-25rustc: Translate tuple struct constructorsPatrick Walton-2/+7
2012-10-24Merge branch 'method-vis-parse'Brian Anderson-10/+10
Conflicts: src/libsyntax/parse/parser.rs
2012-10-24rustc: Implement typechecking for tuple structs. r=nmatsakisPatrick Walton-2/+5
2012-10-24Make check & TidyMahmut Bulut-4/+3
2012-10-23Remove <- operator from the compilerTim Chevalier-17/+17
Yield an obsolete syntax error on things like "let foo <- bar;" and "foo <- bar;" r=brson Progress on #3466
2012-10-23rustc: Implement typechecking for simple monomorphic derivable traits on ↵Patrick Walton-6/+13
monomorphic types. r=brson
2012-10-23* Parsing sequence changedMahmut Bulut-11/+12
1- visibility parse 2- purity parse