about summary refs log tree commit diff
path: root/src/comp/front/parser.rs
AgeCommit message (Collapse)AuthorLines
2011-06-16rustc: Parse inner attributes of modulesBrian Anderson-16/+48
Issue #487
2011-06-16rustc: Parse interior vector types in which the base type is a path properlyPatrick Walton-14/+36
2011-06-16Bring back if-checkTim Chevalier-2/+17
Add "if check" (expr_if_check), a variation on check that executes an "else" clause rather than failing if the check doesn't hold.
2011-06-16Parse swap.Michael Sullivan-0/+8
2011-06-16rustc: Change interior vector syntax to `T[]`Patrick Walton-6/+21
2011-06-16Refactor ast::item representationMarijn Haverbeke-20/+18
Most of the fields in an AST item were present in all variants. Things could be simplified considerably by putting them in the rec rather than in the variant tags.
2011-06-15Improve and test failure behavior for malformed attributesBrian Anderson-1/+13
2011-06-15rustc: Support outer attributes on items that are defined as statementsBrian Anderson-9/+61
Issue #487
2011-06-15Small simplification in parser.rs' crate parsingMarijn Haverbeke-7/+1
2011-06-15Reformat source tree (minus a couple tests that are still grumpy).Graydon Hoare-830/+557
2011-06-15rustc: Make room in remaining AST item nodes for attributesBrian Anderson-22/+27
Issue #487
2011-06-15rustc: Introduce an attribute type to the ASTBrian Anderson-8/+16
Right now the only thing that it adds to meta_item is an indication of whether the attribute was declared inside or outside the item, but I expect it will become more useful. Issue #487
2011-06-15rustc: Parse module attributesBrian Anderson-6/+21
Issue #487
2011-06-15rustc: Make room in item_mod for metadataBrian Anderson-1/+1
Issue #487
2011-06-15Stop dropping object field mutability on the floorMarijn Haverbeke-11/+5
2011-06-14Modernize some code in parser.rsMarijn Haverbeke-132/+82
No more explicit type params or working around rustboot bugs
2011-06-14Print parens on unops when necessary. 'make reformat' output now builds to ↵Graydon Hoare-0/+1
stage3.
2011-06-14Implement function expressions/anonymous functionsMarijn Haverbeke-5/+24
Looks like 'fn(..arg..) -> ret {body;}. They don't support type parameters or upvars yet.
2011-06-14Remove 'peeking_at_item' from parserMarijn Haverbeke-52/+41
parse_item now returns a value to indicate it didn't find an item
2011-06-13Change decl to local in expr_for and expr_for_eachTim Chevalier-11/+10
Since the decl in a for or for-each loop must always be a local decl, I changed the AST to express this. Fewer potential match failures and "the impossible happened" error messages = yay!
2011-06-10Reject programs with unsatisfied predicate constraintsTim Chevalier-11/+33
Generate appropriate constraints for calls to functions with preconditions, and reject calls where those constraints don't hold true in the prestate. ...by which I mean that it works for one test case :-)
2011-06-10Encode meta tags in the crate and start sketching enhanced logic for ↵Graydon Hoare-5/+11
resolving crate "use" directives. Now with extra "works on OSX" kludging.
2011-06-10rustc: Remove the bitwise not operatorPatrick Walton-7/+0
2011-06-10Implement mutable/immutable alias distinction.Marijn Haverbeke-12/+3
Before, all aliases were implicitly mutable, and writing &mutable was the same as writing &. Now, the two are distinguished, and assignments to regular aliases are no longer allowed.
2011-06-09Revert "Encode meta tags in the crate and start sketching enhanced logic for ↵Patrick Walton-11/+5
resolving crate "use" directives." due to tree bustage This reverts commit ab3635eebef2b8cf0e19cdbc5b4e8dd7a49a4658.
2011-06-09Encode meta tags in the crate and start sketching enhanced logic for ↵Graydon Hoare-5/+11
resolving crate "use" directives.
2011-06-09rustc: Annotate vector and string literals in the AST with their uniqueness ↵Patrick Walton-3/+26
or lack thereof
2011-06-09rustc: Add ty_istr and ty_ivec typesPatrick Walton-1/+1
2011-06-09rustc: Parse istr and ivecPatrick Walton-0/+6
2011-06-09Further support for predicate constraintsTim Chevalier-14/+13
Changed function types to include a list of constraints. Added code for parsing and pretty-printing constraints. This necessitated splitting pprust into two files (pprust and ppaux) to break a circulate dependency, as ty_to_str now needs to print out constraints, which may include literals, but pprust depended on ty.
2011-06-08Add optional message to fail.Josh Matthews-3/+12
2011-06-07More work on proper linkage name-mangling. Almost right, aside from version ↵Graydon Hoare-1/+5
numbers.
2011-06-04rustc: Hide the parser from syntax extensionsBrian Anderson-1/+1
Eventually extensions will probably need access to the parser again, but it'll be in a different form.
2011-06-04rustc: Add a next_ann method to ext_ctxtBrian Anderson-1/+1
After this we can remove the parser from the syntax extensions, at least for now.
2011-06-04rustc: Return the correct span from parse_seqBrian Anderson-7/+4
2011-06-04rustc: Pass the correct span to syntax extensionsBrian Anderson-1/+2
2011-06-04rustc: Introduce ext module. Move some things from parser to ext.Brian Anderson-22/+10
Introduce an ext_ctxt record to provide a span_err method for use while expanding syntax extensions. Hopefully it will be useful for other things.
2011-06-03"macro" -> "syntax extension" for nowPaul Stansifer-22/+22
2011-06-03Make the macro system more modular.Paul Stansifer-41/+54
2011-06-03Add spans to fields, args, methods. Improve pp of same.Graydon Hoare-10/+10
2011-06-03Accept *foo as a pointer to foo.Rafael Ávila de Espíndola-0/+5
This is accepted everywhere, since just passing a pointer is safe.
2011-06-01Move brace/if/for/while/do/alt/spawn exprs into bottom_expr rule.Graydon Hoare-23/+19
2011-05-31Now imports are not re-exported unless 'export' is explicitly used.Paul Stansifer-2/+2
2011-05-31Support move as an initializer.Michael Sullivan-0/+5
2011-05-31Insert plumbing for move that behaves just like assign.Michael Sullivan-0/+6
2011-05-31Teach the compiler to understand yield and join, as well as using task as a ↵Eric Holk-1/+1
type name.
2011-05-31Consolidate formatting functions a bit more.Graydon Hoare-3/+3
2011-05-31Add span to field to catch per-field comments in rec exprs.Graydon Hoare-1/+2
2011-05-31Improve comment handling in pp.Graydon Hoare-1/+1
2011-05-31rustc: Remove unneeded type params from alt patternsBrian Anderson-8/+8