about summary refs log tree commit diff
path: root/src/comp/syntax/parse
AgeCommit message (Collapse)AuthorLines
2012-03-02Move src/comp to src/rustcGraydon Hoare-3844/+0
2012-03-02Avoid hitting unicode lib per char.Graydon Hoare-2/+9
2012-02-29optionally enforce local variable mutabilityNiko Matsakis-8/+8
2012-02-24Encode/decode AST into metadata, re-instantiate inlined itemsNiko Matsakis-3/+0
2012-02-23(core::str) remove len_bytes aliasKevin Cantu-7/+7
2012-02-23(core::str) replace uses of unsafe::slice_bytes; replace find[_from]_bytes ↵Kevin Cantu-2/+2
with find[_from]
2012-02-22rustc: Don't ignore attributes inside empty mods. Closes #1655Brian Anderson-1/+7
2012-02-22Make the various from_str functions return optionsMarijn Haverbeke-4/+4
So that they can be used with user input without causing task failures. Closes #1335
2012-02-22Remove preconditions from librariesMarijn Haverbeke-1/+0
Closes #1805
2012-02-22Clean up small things in syntax submodulesMarijn Haverbeke-2/+2
2012-02-20Further work on resolving and typechecking classesTim Chevalier-3/+8
Class tests aren't working yet, but they fail a little later :-) Also, make the parser correctly set a constructor's result type to its enclosing class type.
2012-02-17Refactor view_path to parse (but not yet process) export globs, unify code ↵Graydon Hoare-119/+64
paths.
2012-02-15make mut a keyword synonymous with mutableNiko Matsakis-18/+23
first step towards issue #1273
2012-02-15Support 'alt check' syntaxMarijn Haverbeke-2/+4
It is only a way to flag an alt as intentionally non-exhaustive right now. Issue #1679
2012-02-14When parsing a source string, fail when the entire string is not parsed.Kevin Atkinson-0/+3
(For now only fail when parse_from_source_str is used to avoid possible compatibility problems; parse_expr_from_source_str still does not check.)
2012-02-14Correctly handle the character position at the EOF.Kevin Atkinson-1/+7
Fixes issue #1785.
2012-02-14Change file_substr to allow for external strings.Kevin Atkinson-3/+3
2012-02-14rustc: Parse crust functionsBrian Anderson-1/+4
2012-02-13Track purity/unsafety of iface and impl methodsMarijn Haverbeke-17/+16
Closes #1807
2012-02-12(core::str) rename byte_len -> len_bytes and rename char_len -> lenKevin Cantu-7/+7
2012-02-12(core::str) move push_byte, push_bytes, pop_byte, and shift_byte into ↵Kevin Cantu-9/+9
str::unsafe
2012-02-11make bind syntax unnecessary: just use _ for one of the argumentsNiko Matsakis-11/+20
2012-02-10Don't allow binding patterns to bind keywordsMarijn Haverbeke-5/+14
Closes #1586
2012-02-10Remove a vestige of return-by-referenceMarijn Haverbeke-18/+5
2012-02-10Output meaningful lexer error when no digits given for numberMarijn Haverbeke-0/+6
Closes #1802
2012-02-09Remove some pointless importsMarijn Haverbeke-8/+0
2012-02-09Increase precedence of as operatorMarijn Haverbeke-3/+3
Closes #1717
2012-02-08A bit more WIP on classes, and some cleanup in resolveTim Chevalier-10/+9
2012-02-07Minor class-related tweaks to the ASTTim Chevalier-3/+5
2012-02-06Make keyword table in reference reflect reality more closelyMarijn Haverbeke-6/+6
And remove the part about reserved words.
2012-02-06Handle built-in typenames in the resolve pass, rather than in parserMarijn Haverbeke-53/+18
Closes #1728 Comments out a section of debuginfo.rs. This code was already broken (only being called when --xg was passed, and only working on trivial programs).
2012-02-06Removed sendfn from badwords and made the precedence of XOR between that of ↵Ian D. Bollinger-2/+2
OR and AND.
2012-02-06Allow non-semicolon-requiring expressions to be followed by .fieldMarijn Haverbeke-22/+22
There is no valid expression that starts with a dot token (.5 is a number token), so this introduces no ambiguities. Issue #1716
2012-02-05Remove support for $(...) form of quasi-quotes, use #ast{...} instead.Kevin Atkinson-9/+0
2012-02-05infer modes rather than overwriting with expected tyNiko Matsakis-10/+15
2012-02-03Beginnings of front-end support for classesTim Chevalier-1/+105
Added class support to the parser, prettyprinter, fold, and visit. (See Issue 1726.) This is WIP -- the test case is xfailed, and attempting to compile it will error out in resolve.
2012-02-03Fix various drift issues in the qq branch.Graydon Hoare-2/+5
2012-02-03Allow anti-quotes to also be ast::ty rather than just ast::expr.Kevin Atkinson-0/+7
2012-02-03Implement quasi-quoting of multiple syntatic categories.Kevin Atkinson-2/+2
2012-02-03Store info about file "substr".Kevin Atkinson-9/+11
That is when a string that is part of a file needs to be parsed for a reason, record that the string is a substr of the file rather than using "<anon>" or "-" as the file name. This will eventually allow pointing to the right location, for now it just uses a more meaningful string for the filename.
2012-02-03Implement quasi-quotes in more macro form: #ast{...}.Kevin Atkinson-1/+13
The #(...) form is still supported for now.
2012-02-03Make macro arg optional in syntax, again untested.Kevin Atkinson-8/+14
2012-02-03Add support for recognizing macro body, completely untested.Kevin Atkinson-1/+18
2012-02-03Implement anti-quotes.Kevin Atkinson-4/+16
2012-02-03Add support for parsing quasi-quotes, doesn't do anything useful yet.Kevin Atkinson-0/+48
2012-02-01Rename (again) str::unsafe::slice -> str::unsafe::slice_bytes andKevin Cantu-2/+2
str::unsafe::safe_slice -> str::unsafe::slice_bytes_safe_range
2012-02-01Propagating unsafe::slice 3Kevin Cantu-1/+2
2012-02-01Propagating unsafe::slice 2Kevin Cantu-4/+4
2012-02-01make boxes self-describing (fixes #1493)" (take 2)Niko Matsakis-0/+2
this will be used to generate a new snapshot.
2012-02-01Revert "make boxes self-describing (fixes #1493)" until a newNiko Matsakis-2/+0
snapshot is prepared.