about summary refs log tree commit diff
path: root/src/librustsyntax/parse
AgeCommit message (Collapse)AuthorLines
2012-05-31Rename librustsyntax to libsyntaxKevin Cantu-4185/+0
Per issue #2418.
2012-05-30integrate purity into typeNiko Matsakis-11/+21
2012-05-24Fixing method call issue in parser.Eric Holk-5/+3
2012-05-24Teach parser and related things to understand const kind bounds.Eric Holk-2/+5
2012-05-24Access parse/attrs.rs with an impl.Paul Stansifer-116/+127
2012-05-24Use an impl to access parse/common.rsPaul Stansifer-436/+445
2012-05-24remove dead assignmentsNiko Matsakis-4/+4
2012-05-24new liveness pass to supercede last_use / initednessNiko Matsakis-2/+2
2012-05-23The parser is represented by a class now.Paul Stansifer-2203/+2219
2012-05-22Merge branch 'master' of git://github.com/mozilla/rustMargaret Meyerhofer-25/+13
2012-05-22cleaned up debugging codeMargaret Meyerhofer-2/+1
2012-05-22Changed the pretty printer also read #! commentsMargaret Meyerhofer-3/+17
2012-05-22Changed the lexer to accept #! comments on the first line.Margaret Meyerhofer-0/+11
2012-05-22Get rid of the >>> operator and make >> logical or arithmetic depending on ↵Michael Sullivan-24/+12
the signedness. Closes #2417.
2012-05-22`do` is no longer a keywordPaul Stansifer-1/+1
2012-05-18port some code to use dvecNiko Matsakis-5/+6
2012-05-15core: Generalize uint-string conversions to all uint typesBrian Anderson-2/+2
Issue #2239
2012-05-15Remove `be` keyword.Lindsey Kuper-10/+5
Closes #2227.
2012-05-14First cut at dtors for classesTim Chevalier-18/+45
Classes with dtors should compile now. Haven't yet tested whether they actually run correctly. Beginnings of support for #2295, though that won't be done until there's more test cases and resources are removed.
2012-05-10Remove `do { ... } while ...` from the language.Paul Stansifer-13/+2
2012-05-08Support visibility modifiers and attributes on view itemsMarijn Haverbeke-65/+48
Issue #1893 Tangentially, issue #2357
2012-05-08Import ast::* in parser.rsMarijn Haverbeke-386/+386
And make the code look a lot less awkward.
2012-05-08Start parsing pub/priv on regular itemsMarijn Haverbeke-23/+37
Issue #1893
2012-05-08parser: Consolidate some duplicated codeMarijn Haverbeke-96/+79
2012-05-07make it illegal to implicitly capture mutable variablesNiko Matsakis-4/+5
this is the final part of #1273
2012-05-04new cap clause syntaxNiko Matsakis-99/+139
2012-05-03Revert "allow fn exprs to omit arg types"Niko Matsakis-8/+7
This reverts commit 1ba4ca4c4a0153578e812baf5f7f5554d079de40.
2012-05-03allow fn exprs to omit arg typesNiko Matsakis-7/+8
also, avoid using type variables for fn args with omitted types unless necessary. This will be important for bound regions in fn types. fixes #2093
2012-04-30Stop inferring bot/static when types/regions are unconstrained.Niko Matsakis-10/+1
Also, some other changes that came up along the way: - add a 'blk' region for the current block. - detect unused type/region variables.
2012-04-30Revert "Eliminate a copy in syntax::parse::new_parser_from_file"Tim Chevalier-4/+4
This reverts commit 2bb3b63ec4379b812aeceb690d78763ec55d3cbb. (I was confused.)
2012-04-30Eliminate a copy in syntax::parse::new_parser_from_fileTim Chevalier-4/+4
Fixing a FIXME turned out to be pretty involved. I added an io function that returns a unique boxed string (for the contents of a file) rather than a string, and went from there. Also made the src field of codemap a unique boxed string. This doesn't seem to make that much difference in amount of allocation according to valgrind (disappointingly), but I also had to introduce a copy somewhere else pending a new snapshot, so maybe that's it.
2012-04-27parser: More refactoring of restricted value name checkingBrian Anderson-10/+13
2012-04-27parser: Remove a restricted keyword checkBrian Anderson-1/+0
I can't find a way to trigger this error
2012-04-27test: Add test for two restricted keyword casesBrian Anderson-2/+2
2012-04-27parser: Make parse_value_path use parse_value_identBrian Anderson-7/+10
2012-04-27parser: Rewrite parse_path_without_tps so it knows beforehand which is the ↵Brian Anderson-2/+11
last ident Needed to centralize all keyword-as-value parsing in parse_value_ident
2012-04-27parser: Fix lookahead of > 1 tokenBrian Anderson-2/+2
2012-04-27syntax: Refactor ident parsingBrian Anderson-3/+3
2012-04-26Refactor operator precedence codeTim Chevalier-52/+54
Use functions instead of a dynamically created table to determine operator precedence. Gets rid of a FIXME in syntax::parse::prec. Change precedences from int to uint while we're at it, since don't use negative precedences.
2012-04-25lots of work to make iface/impls parameterized by regionsNiko Matsakis-103/+139
- paths can now take region parameters, replacing the dirty hack I was doing before of abusing vstores. vstores are now a bit of a hack though. - fix various small bugs: - we never checked that iface types were compatible when casting to an iface with `as` - we allowed nonsense like int<int> - and more! (actually that may be it)
2012-04-24syntax: Divide keywords into contextual/restricted. No bad wordsBrian Anderson-30/+61
2012-04-24syntax: Make 'true' and 'false' bad wordsBrian Anderson-5/+3
When these are idents they are always shadowed by the boolean constants.
2012-04-24syntax: Clean up the bad_expr_word functionsBrian Anderson-20/+17
2012-04-24syntax: Rename is_word to is_keyword, etc.Brian Anderson-92/+97
2012-04-23Allow classes to be cast to ifaces that are in the same crateTim Chevalier-8/+10
I had to xfail one existing test case (class-implements-int) because, I think, of the same bug described in #2272.
2012-04-23Rename option::get_or_default to get_default, for consistencyTim Chevalier-1/+1
2012-04-23Move map iface over to more `for`-friendly iteration methodsMarijn Haverbeke-1/+1
2012-04-23Simplify representation of ast::pathMarijn Haverbeke-77/+61
2012-04-22syntax: Replace token::DOLLAR_PAREN, DOLLAR_NUM with just DOLLARBrian Anderson-37/+23
Figure the rest out in the parser
2012-04-22syntax: Eliminate token::POUND_LT, POUND_LBRACEBrian Anderson-16/+9
Use lookahead in the parser