about summary refs log tree commit diff
path: root/src/comp/front/token.rs
AgeCommit message (Collapse)AuthorLines
2011-07-05Move everything syntax-related to syntax/, break deps on rest of compilerMarijn Haverbeke-202/+0
src/comp/syntax is currently just a sub-module of rustc, but it will, in the near future, be its own crate. This includes: - The AST data structure - The parser - The pretty-printer - Visit, walk, and fold - The syntax extension system - Some utility stuff that should be in the stdlib* *) Stdlib extensions currently require a snapshot before they can be used, and the win build is very broken right now. This is temporary and will be cleaned up when one of those problems goes away. A lot of code was moved by this patch, mostly towards a more organized layout. Some package paths did get longer, and I guess the new layout will take some getting used to. Sorry about that! Please try not to re-introduce any dependencies in syntax/ on any of the other src/comp/ subdirs.
2011-07-03Add a predicate that determines whether a token can begin an expressionTim Chevalier-0/+21
2011-06-18rustc: receive is spelled |> nowBrian Anderson-1/+1
2011-06-16Add "<->" to the token definition and the lexer.Michael Sullivan-0/+2
2011-06-15Reformat source tree (minus a couple tests that are still grumpy).Graydon Hoare-25/+21
2011-05-27Pretty print the new RECV token...Michael Sullivan-0/+1
2011-05-27Lex '|>' as the RECV token.Michael Sullivan-0/+1
2011-05-20rustc: Move the interner to a new module intended to be used for general ↵Patrick Walton-1/+1
data structures
2011-05-17Finally rename std::_xxx to std::xxxMarijn Haverbeke-9/+9
Except for _task, which is still a keyword.
2011-05-16rustc: Make the parser use the internerPatrick Walton-6/+6
2011-05-14Mark IDENT tokens that are followed by ::Marijn Haverbeke-2/+2
So that the type parser won't go off and try to parse a vec type when it sees vec::init_op.
2011-05-13Make the parser more careful about keywordsMarijn Haverbeke-201/+1
Keywords are now only recognized in contexts where they are valid. The lexer no longer recognizes them, all words are lexed as IDENT tokens, that get interpreted by the parser.
2011-05-12Downcase std modules again, move to :: for module dereferencingMarijn Haverbeke-13/+13
This should be a snapshot transition.
2011-05-12Change module dereference syntax from . to ::Marijn Haverbeke-0/+2
This will need to be a snapshot.
2011-05-09Remove boxes from token.t.Graydon Hoare-10/+19
2011-05-06Rename std modules to be camelcasedMarijn Haverbeke-9/+9
(Have fun mergining your stuff with this.)
2011-05-05Bring back "pred" syntax for writing predicates for checkTim Chevalier-0/+2
This commit reinstates the requirement that the predicate in a "check" must be a manifest call to a special kind of function declared with the new "pred" keyword instead of "fn". Preds must have a boolean return type and can only call other preds; they can't have any effects (as enforced by the typechecker). The arguments to a predicate in a check expression must be slot variables or literals.
2011-05-02Un-revert "Use different syntax for checks that matter to typestate", fixing ↵Patrick Walton-0/+2
the problem. This reverts commit d08b443fffb1181d8d45ae5d061412f202dd4118.
2011-05-02Revert "Use different syntax for checks that matter to typestate"Graydon Hoare-2/+0
This reverts commit aa25f22f197682de3b18fc4c8ba068d1feda220f. It broke stage2, not sure why yet.
2011-05-02Use different syntax for checks that matter to typestateTim Chevalier-0/+2
This giant commit changes the syntax of Rust to use "assert" for "check" expressions that didn't mean anything to the typestate system, and continue using "check" for checks that are used as part of typestate checking. Most of the changes are just replacing "check" with "assert" in test cases and rustc.
2011-04-19Remove half-baked 'opacity' layer qualifier.Graydon Hoare-6/+0
2011-04-19Remove effect system from src.Graydon Hoare-4/+2
2011-04-19add log_err to rustcMarijn Haverbeke-0/+2
2011-04-05Further on the path toward self-awareness.Lindsey Kuper-0/+2
Mostly: * Merciless refactoring of trans.rs so that trans_call can work for self-calls as well as other kinds of calls Also: * Various changes to go with having idents, rather than exprs, in expr_call_self AST nodes * Added missing case for SELF token to token.to_str()
2011-03-29Beginnings of support for magical self prefix; nothing profound happening yet.Lindsey Kuper-1/+2
2011-03-27Add support for break and cont to rustcMarijn Haverbeke-0/+6
Testing proper cleanup is hampered by https://github.com/graydon/rust/issues/293
2011-03-25Another go at changing compile-command, this time using RBUILD env var.Graydon Hoare-1/+1
2011-03-25Revert "Bulk-edit compile commands in emacs chatter to point to assumed ↵Graydon Hoare-1/+1
build/ dir off src root." This reverts commit 846f2e2ba994268725f38c36fa12f1a09f21615c.
2011-03-25Bulk-edit compile commands in emacs chatter to point to assumed build/ dir ↵Graydon Hoare-1/+1
off src root.
2011-03-25make lexer unicode-aware for strings and char literalsMarijn Haverbeke-2/+2
2011-03-22Further support for floating-point. Literals with exponents workTim Chevalier-0/+1
and literals with the 'f32' or 'f64' suffixes work as well. In addition, logging things with the f32 or f64 type works. (float is still assumed to be a synonym for f64).
2011-03-21Started adding support for floating-point type, floating-point literals, and ↵Tim Chevalier-1/+2
logging of floats. Other operations on float probably don't work yet.
2011-03-16Switch all vases of vec += elt to vec += vec. Prohibit former in rustboot. ↵Graydon Hoare-2/+3
Tweak std lib vec fns in process.
2010-12-03Change 'stratum' to the friendlier term 'layer'.Graydon Hoare-2/+2
2010-11-03Teach rustc lexer about changes to stratum, opacity and effect keywords.Graydon Hoare-4/+16
2010-09-23Translate a bunch of the material (lltrans, llasm, abi) from rustboot to ↵Graydon Hoare-0/+348
rustc, and move files around.