about summary refs log tree commit diff
path: root/src/libsyntax/parse
AgeCommit message (Collapse)AuthorLines
2012-11-18Remove some unused code from lexerBrian Anderson-6/+2
2012-11-17Merge remote-tracking branch 'brson/codemap'Brian Anderson-79/+101
Conflicts: src/libsyntax/ext/source_util.rs
2012-11-16Remove unused types from codemapBrian Anderson-1/+1
2012-11-16Stop tracking CodeMap offsets in the parse session. Big simplificationBrian Anderson-10/+7
2012-11-16Stop storing char positions in CodeMapBrian Anderson-28/+18
2012-11-16Change spans to use byte offsets instead of char offsetsBrian Anderson-28/+33
2012-11-15Add some comments to codemap and lexerBrian Anderson-0/+4
2012-11-15Refactor the lexer to use FilePos typesBrian Anderson-38/+49
2012-11-14Factor out some position management code in the lexerBrian Anderson-7/+7
2012-11-14Track character and byte positions together in the parserBrian Anderson-7/+17
2012-11-14Add types for character position and byte position in the codemapBrian Anderson-46/+51
2012-11-14Camel case all the codemap types except spanBrian Anderson-6/+6
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-12Objectify the codemapBrian Anderson-4/+4
2012-11-12Remove CodeMap box typedef from codemapBrian Anderson-1/+1
2012-11-12Move filemap ctors to static methodsBrian Anderson-1/+2
2012-11-12Remove filemap box typedef from codemapBrian Anderson-4/+4
2012-11-12Convert most codemap types from records to structsBrian Anderson-3/+2
2012-11-12rustc: Implement floating point literal inference. r=nmatsakisPatrick Walton-4/+28
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-168/+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/+34
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-113/+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/+8
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-20/+28
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
2012-10-22Simplify the AST representation of ty param boundsTim Chevalier-10/+10
Change ast::ty_param_bound so that all ty param bounds are represented as traits, with no special cases for Copy/Send/Owned/Const. typeck::collect generates the special cases. A consequence of this is that code using the #[no_core] attribute can't use the Copy kind/trait. Probably not a big deal? As a side effect, any user-defined traits that happen to be called Copy, etc. in the same module override the built-in Copy trait. r=nmatsakis Closes #2284
2012-10-20Parse and report obsolete fixed-length vector syntaxBrian Anderson-3/+77
2012-10-20No longer parse old fixed-length vec sytnaxBen Striegel-38/+1
2012-10-20Remove old fixed-length vector syntaxBen Striegel-7/+2
2012-10-18Remove dead type definitionTim Chevalier-1/+1
2012-10-17libsyntax: refactor the parser to consider foreign items as itemsPhilipp Brüschweiler-26/+60
parse_item_or_view_item() would drop visibility if none of the conditions following it would hold. This was the case when parsing extern {} blocks, where the function was only used to parse view items, but discarded the visibility of the first not-view item.
2012-10-15rustc: Merge module and type namespaces. r=brsonPatrick Walton-117/+117
2012-10-12remove ctor from ast (take 2) (no review: just dead code removal)Niko Matsakis-56/+9
2012-10-12Replace several common macros of the form #m[...] with m!(...)Kevin Cantu-3/+3
This commit replaces nearly all remaining uses of #fmt, #debug, #error, and #info, and fixes some error messages...
2012-10-11Update FIXME numberTim Chevalier-1/+1
2012-10-09Merge pull request #3700 from erickt/cargo-internerTim Chevalier-21/+26
allow interner cache to be shared across parsers (#3699)
2012-10-08Revert "Revert "Remove old auto_serialize2 code (needs snapshot)""Tim Chevalier-6/+0
This reverts commit a33535e441dc5461fec0489069a1491367ad1c91.
2012-10-08Revert "Remove old auto_serialize2 code (needs snapshot)"Tim Chevalier-0/+6
This reverts commit 0bd6da8a8c93143325cb45e8a074ccf7121ca168.
2012-10-08allow interner cache to be shared across parsers (#3699)Erick Tryzelaar-21/+26
2012-10-08remove ctor from astNiko Matsakis-56/+9