about summary refs log tree commit diff
path: root/src/libsyntax/parse/token.rs
AgeCommit message (Collapse)AuthorLines
2013-02-13auto merge of #4922 : jbclements/rust/add-deriving-eq-to-asts, r=catamorphismbors-6/+2
r? Apply deriving_eq to the data structures in ast.rs, and get rid of the custom definitions of eq that were everywhere. resulting ast.rs is about 400 lines shorter. Also: add a few test cases and a bunch of comments. Also: change ast_ty_to_ty_cache to use node ids rather than ast::ty's. I believe this was a suggestion related to my changes, and it appears to pass all tests. Also: tiny doc fix, remove references to crate keywords.
2013-02-13Remove die!, raplace invocations with fail! Issue #4524 pt 3Nick Desaulniers-2/+2
2013-02-13deriving_eq for tokens and binopsJohn Clements-6/+1
Note that the replaced definition of equality on tokens contains a *huge* shortcut on INTERPOLATED tokens (those that contain ASTs), whereby any two INTERPOLATED tokens are considered equal. This seems like a really broken notion of equality, but it appears that the existing test cases and the compiler don't depend on it. Niko noticed this, BTW. Replace long definition of Eq on tokens and binops w
2013-02-13Commenting, test cases, cleanupJohn Clements-0/+1
2013-02-09auto merge of #4854 : thestinger/rust/oldmap, r=catamorphismbors-3/+3
2013-02-08oldmap: get rid of legacy _ref suffixesDaniel Micay-3/+3
2013-02-08Add and lex LIFETIME tokensNiko Matsakis-1/+8
cc #4846
2013-02-03oldmap: get rid of the legacy each_key methodDaniel Micay-3/+3
2013-02-03rename map -> oldmap and mark it as deprecatedDaniel Micay-1/+1
LinearMap is quite a bit faster, and is fully owned/sendable without requiring copies. The older std::map also doesn't use explicit self and relies on mutable fields.
2013-02-01Remove fail keyword from lexer & parser and clean up remaining calls toNick Desaulniers-1/+1
fail Fix merge conflicts - Issue 4524
2013-01-31Replace most invocations of fail keyword with die! macroNick Desaulniers-2/+2
2013-01-30librustc: Remove legacy exports from the language. r=brsonPatrick Walton-1/+1
2013-01-29libsyntax: De-export a lot of libsyntax. rs=deëxportingPatrick Walton-61/+62
2013-01-24Make `super` a keywordYoungsoo Son-1/+1
2013-01-23libsyntax: Implement `assert` as a macro (called `fail_unless!` on a ↵Patrick Walton-12/+17
transitionary basis to avoid conflicting with the keyword right now). r=brson
2013-01-10librustc: Allow the type parameter version of `Self` to be spelled with a ↵Patrick Walton-9/+38
capital S
2013-01-08librustc: Make unqualified identifier searches terminate at the nearest ↵Patrick Walton-0/+2
module scope. r=tjc
2013-01-08Revert "librustc: Make unqualified identifier searches terminate at the ↵Patrick Walton-2/+0
nearest module scope. r=tjc" This reverts commit a8d37af2473da79be704c9ce2374f278c47177b6.
2013-01-08librustc: Make unqualified identifier searches terminate at the nearest ↵Patrick Walton-0/+2
module scope. r=tjc
2012-12-27librustc: Terminate name searches at the nearest module scope for paths that ↵Patrick Walton-2/+11
contain at least two components. r=graydon
2012-12-17Switch from serialization to std::serialize. (snapshot)Erick Tryzelaar-7/+7
2012-12-12syntax: remove most code handling old-style syntax extensions.Graydon Hoare-8/+0
2012-12-04librustc: Remove all legacy pattern bindings from libsyntax and librustc. ↵Patrick Walton-2/+2
rs=refactoring
2012-12-03Update license, add license boilerplate to most files. Remainder will follow.Graydon Hoare-0/+10
2012-11-29syntax: slight improvement in fidelity of printing tokens. Still not great.Graydon Hoare-5/+3
2012-11-29Forbid attrs on macros, since we don't handle them properly yet.Paul Stansifer-1/+1
2012-11-28Merge remote-tracking branch 'brson/companion' into incomingBrian Anderson-285/+0
Conflicts: src/compiletest/compiletest.rs src/libcargo/cargo.rs src/libcore/core.rs src/librustc/rustc.rs src/librustdoc/rustdoc.rc
2012-11-28Register snapshotsBrian Anderson-285/+0
2012-11-28librustc: Parse `extern "C" { ... }`. r=brsonPatrick Walton-1/+3
2012-11-19rustc: Implement explicit self for Eq and Ord. r=graydonPatrick Walton-0/+285
2012-11-12rustc: Implement floating point literal inference. r=nmatsakisPatrick Walton-0/+16
2012-11-05rustc: Implement parsing and typechecking for "once fn"Patrick Walton-0/+1
2012-10-25rustc: Translate tuple struct constructorsPatrick Walton-0/+1
2012-10-15rustc: Merge module and type namespaces. r=brsonPatrick Walton-15/+15
2012-10-09Merge pull request #3700 from erickt/cargo-internerTim Chevalier-21/+26
allow interner cache to be shared across parsers (#3699)
2012-10-08Revert "Revert "Remove old auto_serialize2 code (needs snapshot)""Tim Chevalier-6/+0
This reverts commit a33535e441dc5461fec0489069a1491367ad1c91.
2012-10-08Revert "Remove old auto_serialize2 code (needs snapshot)"Tim Chevalier-0/+6
This reverts commit 0bd6da8a8c93143325cb45e8a074ccf7121ca168.
2012-10-08allow interner cache to be shared across parsers (#3699)Erick Tryzelaar-21/+26
2012-10-07Remove old auto_serialize2 code (needs snapshot)Erick Tryzelaar-6/+0
2012-10-07Remove the old serializers (needs snapshot)Erick Tryzelaar-0/+6
2012-10-07migrate libsyntax/rustc to auto_serialize2Erick Tryzelaar-14/+7
2012-10-05Remove uses of mutable ref mode.Tim Chevalier-1/+1
It's still in the compiler right now, but warned about
2012-10-05Revert "wip"Tim Chevalier-1/+1
This reverts commit ca49fd402af8e7bf613c43e996274b5a017958d2.
2012-10-05wipTim Chevalier-1/+1
2012-09-26turn ast::ident into a structErick Tryzelaar-51/+67
This will help with the auto_serialize2 migration. We have to change ident from a type alias to uint into a unique type. We need to use a struct instead of a "enum ident = token::str_num" because structs support constants, but newtypes do not.
2012-09-23Register snapshots. Remove redundant Eq impls, Makefile hacksBrian Anderson-277/+0
2012-09-23Fix trans for region patterns (&P)Niko Matsakis-1/+1
2012-09-21Install new pub/priv/export rules as defaults, old rules accessible under ↵Graydon Hoare-0/+1
#[legacy_exports];
2012-09-20rustc: De-mode all overloaded operatorsPatrick Walton-0/+277
2012-09-19core: Move TLS to task::local_dataBrian Anderson-2/+6