about summary refs log tree commit diff
path: root/src/libsyntax/parse/parser.rs
AgeCommit message (Collapse)AuthorLines
2013-05-14syntax: Remove #[allow(vecs_implicitly_copyable)]Alex Crichton-18/+21
2013-05-12libsyntax: Tighten up expressions in patterns to only allow identifiers or ↵Patrick Walton-3/+30
literals (possibly with a minus). This had very minimal fallout.
2013-05-12librustc: Make `self` and `static` into keywordsPatrick Walton-34/+31
2013-05-12libsyntax: Remove `extern mod foo { ... }` from the language.Patrick Walton-6/+11
2013-05-10Remove the '<->' operator from the languageAlex Crichton-4/+6
2013-05-09back-ticksLenny222-1/+1
2013-05-08librustc: Stop parsing modes and remove them entirely from the languagePatrick Walton-9/+6
2013-05-08librustc: Remove mutable fields from the language.Patrick Walton-4/+4
They're still parsed though, to get through bootstrapping.
2013-05-07auto merge of #6245 : youknowone/rust/match-range-static, r=graydonbors-2/+8
Fix unintended error problem of: ```` static s: int = 1; static e: int = 42; fn main() { match 7 { s..e => (), ^~ error: expected `=>` but found `..` _ => (), } } ````
2013-05-06Merge remote-tracking branch 'mozilla/incoming' into issue-5910-dyna-freezeNiko Matsakis-2/+2
2013-05-05Merge remote-tracking branch 'mozilla/incoming' into issue-5910-dyna-freezeNiko Matsakis-137/+59
Conflicts: src/libcore/core.rc src/libcore/hashmap.rs src/libcore/num/f32.rs src/libcore/num/f64.rs src/libcore/num/float.rs src/libcore/num/int-template.rs src/libcore/num/num.rs src/libcore/num/strconv.rs src/libcore/num/uint-template.rs src/libcore/ops.rs src/libcore/os.rs src/libcore/prelude.rs src/libcore/rt/mod.rs src/libcore/unstable/lang.rs src/librustc/driver/session.rs src/librustc/middle/astencode.rs src/librustc/middle/borrowck/check_loans.rs src/librustc/middle/borrowck/gather_loans.rs src/librustc/middle/borrowck/loan.rs src/librustc/middle/borrowck/preserve.rs src/librustc/middle/liveness.rs src/librustc/middle/mem_categorization.rs src/librustc/middle/region.rs src/librustc/middle/trans/base.rs src/librustc/middle/trans/inline.rs src/librustc/middle/trans/reachable.rs src/librustc/middle/typeck/check/_match.rs src/librustc/middle/typeck/check/regionck.rs src/librustc/util/ppaux.rs src/libstd/arena.rs src/libstd/ebml.rs src/libstd/json.rs src/libstd/serialize.rs src/libstd/std.rc src/libsyntax/ast_map.rs src/libsyntax/parse/parser.rs src/test/compile-fail/borrowck-uniq-via-box.rs src/test/compile-fail/regions-infer-borrow-scope-within-loop.rs src/test/run-pass/borrowck-nested-calls.rs
2013-05-05auto merge of #6208 : sanxiyn/rust/accurate-span, r=sanxiynbors-2/+2
2013-05-05Allow non-literal static range pattern for match armsJeong YunWon-2/+8
Fix unintended error problem of: static s: int = 1; static e: int = 42; fn main() { match 7 { s..e => (), ^~ error: expected `=>` but found `..` _ => (), } }
2013-05-03syntax: Warning policeTim Chevalier-3/+3
2013-05-03More accurate spansSeo Sanghyeon-2/+2
2013-05-03Use static stringsJeong YunWon-38/+31
2013-05-02Remove 'Local Variable' commentsBrendan Zabarauskas-11/+0
2013-05-01syntax: fix up dynamic borrow errors in libsyntaxNiko Matsakis-8/+8
2013-05-01auto merge of #6148 : erickt/rust/remove-drop, r=pcwaltonbors-85/+25
The drop block has been deprecated for quite some time. This patch series removes support for parsing it and all the related machinery that made drop work. As a side feature of all this, I also added the ability to annote fields in structs. This allows comments to be properly associated with an individual field. However, I didn't update `rustdoc` to integrate these comment blocks into the documentation it generates.
2013-05-01allow parsing attributes on struct fieldsErick Tryzelaar-12/+18
2013-05-01rustc: remove the rest of dropErick Tryzelaar-2/+0
Removes: ast::struct_def::dtor syntax::ast::ii_dtor syntax::visit::fk_dtor syntax::ast_map::node_dtor syntax:struct_dtor
2013-05-01syntax: remove parsing destructorsErick Tryzelaar-78/+14
2013-05-01rustc: print out filename/line-number when a borrow failsNiko Matsakis-1/+1
2013-05-01Revert rename of Div to QuotBrendan Zabarauskas-2/+2
2013-04-30allover: numerous unused muts etcNiko Matsakis-2/+1
2013-04-29librustc: Change labels to use the lifetime notation `'`.Patrick Walton-20/+37
2013-04-29librustc: Remove the concept of modes from the compiler.Patrick Walton-27/+35
This commit does not remove `ty::arg`, although that should be possible to do now.
2013-04-28parser commentsJohn Clements-12/+68
2013-04-28s/one_tuple/trailing_comma (more accurate name)John Clements-3/+3
2013-04-28removed unneeded argument to parse_recordJohn Clements-4/+5
2013-04-28s/parse_purity/parse_unsafetyJohn Clements-3/+4
2013-04-28remove 3-line used-once functionJohn Clements-8/+4
2013-04-28rename parse_instance_var to parse_name_and_tyJohn Clements-3/+3
the name no longer made sense. perhaps this could just be inlined.
2013-04-28remove obsolete semicolon from list of suggestionsJohn Clements-1/+1
2013-04-28rename parse_single_class_item as wellJohn Clements-4/+5
2013-04-28rename parse_class_item to parse_struct_decl_fieldJohn Clements-3/+4
two problems with the old name: they're not called classes any more, and the word "item" has a specific connotation in the parser
2013-04-28needs_comma was always trueJohn Clements-3/+2
2013-04-28fix for parsing x() as identifier patternJohn Clements-17/+14
2013-04-28hard to read the implied double negativeJohn Clements-4/+4
2013-04-28remove unused flag to parse_local fnJohn Clements-5/+4
2013-04-28remove unused RESTRICT_NO_CALL_EXPRS restrictionJohn Clements-7/+2
2013-04-28undo abstraction over whether to parse attrs in a blockJohn Clements-32/+19
In principle, it seems like a nice idea to abstract over the two functions that parse blocks (one with inner attrs allowed, one not). However, the existing one wound up making things more complex than just having two separate functions, especially after the obsolete syntax is (will be) removed.
2013-04-28refactoring to split foreign_items from itemsJohn Clements-164/+169
2013-04-28parser commentsJohn Clements-6/+8
parser comments
2013-04-28get rid of prec.rsJohn Clements-3/+2
prec.rs no longer had much to do with precedence; the token->binop function fits better in token.rs, and the one-liner defining the precedence of 'as' can go next to the other precedence stuff in ast_util.rs
2013-04-28reindent in parserJohn Clements-4/+4
2013-04-28remove unnecessary functionJohn Clements-7/+1
2013-04-28simplify, based on invariant that items_allowed != foreign_items_allowedJohn Clements-12/+7
2013-04-28adding parse_pathJohn Clements-19/+34
2013-04-28comments, helper function for tests, more informative error messageJohn Clements-1/+11