about summary refs log tree commit diff
path: root/src/libsyntax/parse/lexer.rs
AgeCommit message (Collapse)AuthorLines
2012-08-22Centralize ident interner generation.Paul Stansifer-7/+6
2012-08-15rustc: "as Trait" can now be written "as @Trait".Patrick Walton-13/+13
There is also code for ~Trait and &Trait, but these are currently (incorrectly) synonyms for "as @Trait" and "as &Trait".
2012-08-15Convert more core types to camel caseBrian Anderson-12/+12
2012-08-13libsyntax: Accept "1..3" as the preferred form of "1 to 3" in patternsPatrick Walton-1/+2
2012-08-08Convert impls to new syntaxBrian Anderson-2/+2
2012-08-06Convert alt to match. Stop parsing altBrian Anderson-12/+12
2012-08-05Switch alts to use arrowsBrian Anderson-72/+72
2012-08-03rustc: Parse and typecheck repeating vector expressions; e.g. [ 0, ..512 ]Patrick Walton-0/+4
2012-08-02Remove modes from map API and replace with regions.Niko Matsakis-1/+1
API is (for now) mostly by value, there are options to use it by reference if you like. Hash and equality functions must be pure and by reference (forward looking to the day when something like send_map becomes the standard map).
2012-08-01Convert ret to returnBrian Anderson-85/+87
2012-07-31Change remaining "iface" occurrences to "trait"; deprecate "iface"Lindsey Kuper-1/+1
2012-07-30Allow single quote to be escaped in strings.Paul Stansifer-0/+1
2012-07-30Change syntax extension syntax: `#m[...]` -> `m!{...}`.Paul Stansifer-8/+8
2012-07-30Work around bug #2935 by unautounboxing.Paul Stansifer-7/+9
2012-07-30Impl-ize interner.Paul Stansifer-11/+8
2012-07-26Make parsing about 0.3 seconds faster.Eric Holk-3/+3
2012-07-14Move the world over to using the new style string literals and types. Closes ↵Michael Sullivan-28/+28
#2907.
2012-07-12Accept prefix notation for writing the types of str/~ and friends.Michael Sullivan-7/+7
2012-07-09Allow defining token tree macros. They should work now!Paul Stansifer-2/+2
2012-07-09Switch 'cont' to 'again' everywhere. Close #2229.Graydon Hoare-1/+1
2012-07-05Start letting the parser catch interpolated ASTs.Paul Stansifer-2/+1
2012-07-05Some rearranging in perparation for MBE-style TT transcription.Paul Stansifer-109/+19
2012-07-05Comments only: change TODOs to FIXMEs and annotate themTim Chevalier-1/+2
2012-07-04convert doc-attributes to doc-comments using ↵Gareth Daniel Smith-1/+1
./src/etc/sugarise-doc-comments.py (and manually tweaking) - for issue #2498
2012-07-02Merge remote-tracking branch 'Dretch/prettydocs'Brian Anderson-9/+57
Conflicts: src/compiletest/errors.rs src/libsyntax/parse/attr.rs src/libsyntax/parse/comments.rs src/test/compile-fail/ambig_impl_unify.rs src/test/compile-fail/assign-super.rs src/test/compile-fail/bad-for-loop.rs src/test/compile-fail/bad-var-env-capture-in-block-arg.rs src/test/compile-fail/block-arg-as-stmt-with-value.rs src/test/compile-fail/borrowck-assign-comp-idx.rs src/test/compile-fail/borrowck-lend-flow.rs src/test/compile-fail/borrowck-loan-blocks-move-cc.rs src/test/compile-fail/borrowck-loan-blocks-mut-uniq.rs src/test/compile-fail/borrowck-loan-rcvr.rs src/test/compile-fail/borrowck-loan-vec-content.rs src/test/compile-fail/borrowck-mut-vec-as-imm-slice-bad.rs src/test/compile-fail/cap-clause-with-stack-closure.rs src/test/compile-fail/do1.rs src/test/compile-fail/do2.rs src/test/compile-fail/empty-vec-trailing-comma.rs src/test/compile-fail/evec-subtyping.rs src/test/compile-fail/issue-1896.rs src/test/compile-fail/issue-2149.rs src/test/compile-fail/issue-2150.rs src/test/compile-fail/issue-2487-b.rs src/test/compile-fail/kindck-implicit-close-over-mut-var.rs src/test/compile-fail/liveness-issue-2163.rs src/test/compile-fail/liveness-use-in-index-lvalue.rs src/test/compile-fail/no-reuse-move-arc.rs src/test/compile-fail/no-send-res-ports.rs src/test/compile-fail/non-const.rs src/test/compile-fail/pure-higher-order.rs src/test/compile-fail/pure-loop-body.rs src/test/compile-fail/regions-addr-of-upvar-self.rs src/test/compile-fail/regions-escape-loop-via-vec.rs src/test/compile-fail/regions-scoping.rs src/test/compile-fail/seq-args.rs src/test/compile-fail/tstate-unsat-in-called-fn-expr.rs src/test/compile-fail/tstate-unsat-in-fn-expr.rs src/test/compile-fail/vec-add.rs src/test/compile-fail/vec-concat-bug.rs src/test/compile-fail/vector-no-ann.rs
2012-06-30initial draft of fix for issue #2498:Gareth Daniel Smith-9/+57
1. make /// ... and //! ... and /** ... */ and /*! ... */ into sugar for #[doc = ...] attributes. 2. add a script in etc/ to help converting doc-attributes to doc-comments 3. add some functions to core::str to help with (1)
2012-06-29Switch the compiler over to using ~[] notation instead of []/~. Closes #2759.Michael Sullivan-2/+2
2012-06-25Make vectors uglier ([]/~). Sorry. Should be temporary. Closes #2725.Michael Sullivan-2/+2
2012-06-25parsing for the macro systemPaul Stansifer-21/+49
2012-06-21Tag all remaining FIXMEs with bugs. Install rule in tidy script to enforce this.Graydon Hoare-3/+3
2012-06-21Issue #2657: track mutability of bindings, also prevent move from bindingsNiko Matsakis-1/+1
2012-06-15Lexers now emit spans, not chposes.Paul Stansifer-19/+32
2012-06-15Beginning of support for interpolation into token trees.Paul Stansifer-1/+1
2012-06-15Make token tree lexers and their stacks unique.Paul Stansifer-37/+50
2012-06-15Make tt lexers duplicatible.Paul Stansifer-1/+17
2012-06-15Bugfix: obey the tt_lexer's own invariants.Paul Stansifer-4/+4
2012-06-15Make it possible to make tt_reader-based parsers.Paul Stansifer-19/+33
2012-06-15Make token trees re-lexable.Paul Stansifer-2/+66
2012-06-15Pull out an interface for the lexer.Paul Stansifer-146/+165
2012-06-14Further work on integer literal suffix inference (#1425)Lindsey Kuper-1/+1
In this commit: * Change the lit_int_unsuffixed AST node to not carry a type, since it doesn't need one * Don't print "(unsuffixed)" when pretty-printing unsuffixed integer literals * Just print "I" instead of "(integral)" for integral type variables * Set up trans to use the information that will be gathered during typeck to construct the appropriate constants for unsuffixed int literals * Add logic for handling int_ty_sets in typeck::infer * Clean up unnecessary code in typeck::infer * Add missing mk_ functions to middle::ty * Add ty_var_integral to a few of the type utility functions it was missing from in middle::ty
2012-06-11Add a new AST node for unsuffixed integer types.Lindsey Kuper-1/+4
2012-06-09syntax: Intern @strs instead of strsBrian Anderson-9/+9
2012-06-04rustc: Implement optional fat-arrow syntax for alt (transitional change)Patrick Walton-1/+6
2012-05-31Implement 2 kinds of char / str escaping. Use in rustc. Close #2306.Graydon Hoare-0/+1
2012-05-31Rename librustsyntax to libsyntaxKevin Cantu-0/+536
Per issue #2418.