about summary refs log tree commit diff
path: root/src/comp/front
AgeCommit message (Collapse)AuthorLines
2011-02-14Adjust commented-out diagnostic log statement in parser.rs.Graydon Hoare-1/+2
2011-02-14Add parse support for expr_ext.Graydon Hoare-0/+12
2011-02-14Expand expr_rec to take its optional trailing 'with' parameter.Graydon Hoare-10/+33
2011-02-10Support indexing pat_lit.Graydon Hoare-0/+1
2011-02-10Add pat_lit to ast, and support parsing it.Graydon Hoare-22/+22
2011-02-10Parse effects and layers in a couple contexts; drop on floor as we have ↵Graydon Hoare-0/+10
nowhere to put them yet.
2011-02-10Cleanup for 'be' statement and comments about future typestateBrian Anderson-1/+18
2011-02-10Parse 'be' statement. Pass tailcall tests. No actual tailcalls yet.Brian Anderson-0/+8
2011-02-07Add native modules to resolve. With this hello world gets to typecheck.Rafael Avila de Espindola-0/+2
2011-02-07Add support forRafael Avila de Espindola-1/+12
native mod foo = "bar" ...
2011-02-04Parse function declarations.Rafael Ávila de Espíndola-12/+37
2011-02-04Factor the parsing of "type foo" into parse_type_decl.Rafael Ávila de Espíndola-9/+11
2011-02-02Add most of the plumbing for native items and add support for parsing native ↵Rafael Ávila de Espíndola-3/+51
type declarations.
2011-02-01Add very minimal support for native modules. For now they must be empty.Rafael Ávila de Espíndola-0/+25
2011-02-01Implement 'else if'Graydon Hoare-11/+33
2011-02-01Add ty_type.Graydon Hoare-0/+1
2011-02-01Allow the else part of an expr_if to be either expr_if or expr_blockBrian Anderson-11/+10
2011-01-30Teach rustc to parse 'else if'Brian Anderson-2/+16
2011-01-28Teach rustc to failBrian Anderson-0/+7
2011-01-28Correctly handle "import foo = bar.zed;".Rafael Ávila de Espíndola-12/+24
2011-01-27First step for supporting "case (foo.bar(?zed))": Change the ast ofRafael Ávila de Espíndola-3/+4
pat_tag to hold a path.
2011-01-24Do better at parsing expr_paths with type arguments.Graydon Hoare-19/+23
2011-01-24Switch from booleans to symbolic tags in a few places.Graydon Hoare-23/+28
2011-01-24Teach parser to recognize ITER keyword as item-start.Graydon Hoare-0/+1
2011-01-21Teach AST, parser, folder about iter items.Graydon Hoare-8/+25
2011-01-20Adjust AST encoding, teach fold about linear for loops.Graydon Hoare-12/+21
2011-01-20typoRafael Ávila de Espíndola-1/+1
2011-01-20Teach ast and parser about linear for expressions.Graydon Hoare-28/+56
2011-01-18One last refactoring of the import handling:Rafael Ávila de Espíndola-3/+4
* Create an import resolving stage. Currently this involves a copy of the ast, we can probably revisit this once we revisit doing full copies of the ast in general. * Don't repeat work. Once we resolve a import, put it on a hash table and use it next time we are asked for it. This solves a O(n^2) behaviour in degenerated cases. * Once import resolution is done, the target of an import is stored on the import itself.
2011-01-13Change single-ident expr_ident to greedy/fat multi-ident expr_path, to ↵Graydon Hoare-38/+71
handle the module-path/value-indexing distinction.
2011-01-12Change mod_index_entry to point directly to items and view_items.Rafael Ávila de Espíndola-49/+53
2011-01-10Sketch support for reading multi-file crates in rustc. Add test, not yet ↵Graydon Hoare-32/+138
working.
2011-01-07Add sufficient import support to compile some simple single-crate programs.Rafael Ávila de Espíndola-1/+0
This is likely not the final solution. It does repetitive work and doesn't produce errors for invalid but unused imports. In any case, I think it is a useful step.
2011-01-04Add names from imports to the namespace.Rafael Ávila de Espíndola-3/+7
2011-01-04Add support for looking up a name introduced by a 'use'.Rafael Ávila de Espíndola-11/+24
With this we go from "error: unresolved name: foo" to "unimplemented definition variant for: foo" in use foo; fn main(vec[str] args) { foo.bar(); }
2011-01-04Refactor the view_item code so that it is similar to the code used forRafael Ávila de Espíndola-30/+40
parsing regular items.
2011-01-04Rename use_or_import to view_item.Rafael Ávila de Espíndola-8/+8
2011-01-03Split driver between parsing source files and crate files, by extension. Add ↵Graydon Hoare-1/+8
dummy function for crate files.
2011-01-03Actually return the correct node from the parser.Graydon Hoare-2/+1
2011-01-03Remove missed debug chatter.Graydon Hoare-1/+0
2010-12-31Add restricted-parse mode, and parse bind expressions.Graydon Hoare-10/+68
2010-12-31Parse local item decls.Graydon Hoare-6/+36
2010-12-31Index tag and obj items in decl stmts.Graydon Hoare-0/+6
2010-12-30Add def id to ast for obj fields.Graydon Hoare-0/+1
2010-12-30Record the ast of uses and imports.Rafael Ávila de Espíndola-21/+59
2010-12-24Parse 'import' directives in rustc.Rafael Ávila de Espíndola-0/+44
2010-12-24Parse 'use' directives in rustc.Rafael Ávila de Espíndola-0/+47
2010-12-21rustc: Move type logic out of typeck so trans doesn't look like it's calling ↵Patrick Walton-3/+2
into typeck
2010-12-20rustc: Add bind expressions to the ASTPatrick Walton-0/+1
2010-12-16Sketch trans_vtbl.Graydon Hoare-4/+5