about summary refs log tree commit diff
path: root/src/comp/syntax/parse/eval.rs
AgeCommit message (Collapse)AuthorLines
2012-03-02Move src/comp to src/rustcGraydon Hoare-150/+0
2012-02-09Remove some pointless importsMarijn Haverbeke-2/+0
2012-01-31Change option::t to optionTim Chevalier-3/+3
Now that core exports "option" as a synonym for option::t, search-and- replace option::t with option. The only place that still refers to option::t are the modules in libcore that use option, because fixing this requires a new snapshot (forthcoming).
2012-01-25Correctly increment sess.byte_pos.Kevin Atkinson-2/+2
2012-01-23Don't reset the chpos/byte_pos to 0 in new_parser_from_source_str.Kevin Atkinson-9/+6
This correctly fixes issue #1362. chpos/byte_pos are now the offsets within a particular file, but rather the offsets within a virtual file with is formed by combing all of the modules within a crate. Thus, resetting them to 0 causes an overlap and hence, bogus source locations. Fix #1362 by moving chpos/byte_pos to parse_sess so that new_parser_from_source_str has access to them and hence can chose an initial value that is not already been used in the crate. Note that the trigger for bug 1361 was that syntax/ext/expand.rs calls parse_expr_from_source_str (which calls new_parser_from_source_str) using the same codemap as the current crate (and hence causing overlap with files in the crate as new_parser_from_source_str resets the chpos/byte_pos to 0).
2012-01-18Remove '.' after nullary tags in patternsTim Chevalier-2/+2
Does what it says on the tin. The next commit will remove support for this syntax.
2012-01-13Convert the objects used in the lexer and parser to records + implsMarijn Haverbeke-4/+4
2012-01-03Allow tail expressions even in no_value blocks. Type checkerNiko Matsakis-2/+2
will guarantee they have unit type.
2011-12-22Merge all 3 log syntaxes, tidy up residual misuses.Graydon Hoare-2/+2
2011-12-22Register snapshots and switch logging over to use of log_full or #error / ↵Graydon Hoare-3/+3
#debug.
2011-12-13Copy first batch of material from libstd to libcore.Graydon Hoare-2/+3
2011-11-24rustc: Add a path attribute for crate directivesHaitao Li-6/+14
The path information was an optional "filename" component of crate directive AST. It is now replaced by an attribute with metadata named "path". With this commit, a directive mod foo = "foo.rs"; should be written as: #[path = "foo.rs"] mod foo; Closes issue #906.
2011-11-23Remove last traces of auth keywordMarijn Haverbeke-1/+0
The reference now has an empty hole where the auth keyword used to be. Changing the keyword table seems to require manually sorting the keywords and putting them back into some kind of arcane interleaved order. I'll open an issue to actually fix this. Closes #1211
2011-11-17remove compile-command from local variable blocksNiko Matsakis-1/+0
2011-11-10Cleanup unused importsHaitao Li-1/+1
2011-10-29rustc: Support 'companion mod's for crates and directory modsBrian Anderson-5/+60
Under this scheme when parsing foo.rc the parser will also look for foo.rs to fill in the crate-level module, and when evaluating a directory module directive it will look for a .rs file with the same name as the directory.
2011-10-28rustc: Remove broken --depend flagBrian Anderson-6/+0
2011-09-12Kill trailing whitespace.Graydon Hoare-1/+1
2011-09-12Factor imports mindlessly.Graydon Hoare-9/+5
2011-09-12Pretty-print for new arg-mode syntaxMarijn Haverbeke-4/+4
2011-09-12Reformat for new mode syntax, step 1Marijn Haverbeke-5/+5
Long lines were fixed in a very crude way, as I'll be following up with another reformat in a bit.
2011-09-02Reformat. Issue #855Brian Anderson-28/+13
2011-09-01Rename std::istr to std::str. Issue #855Brian Anderson-1/+1
2011-09-01Remove std::str. Issue #855Brian Anderson-1/+0
2011-08-27Convert parser to istrs. Issue #855Brian Anderson-3/+3
2011-08-27Convert rustc::syntax::eval to istrs. Issue #855Brian Anderson-11/+12
2011-08-27Convert ast::ident to istr. Issue #855Brian Anderson-9/+21
2011-08-27Convert std::fs to istrs. Issue #855Brian Anderson-6/+9
2011-08-20ReformatBrian Anderson-8/+7
This changes the indexing syntax from .() to [], the vector syntax from ~[] to [] and the extension syntax from #fmt() to #fmt[]
2011-08-15The wonky for...in... whitespace was bothering me. Sorry!Lindsey Kuper-1/+1
2011-08-09Port the compiler to the ivec type [T] syntax.Erick Tryzelaar-9/+9
2011-08-02Compiler accepts input from stdin when source file is called "-"Brian Anderson-1/+2
2011-07-27Reformat for new syntaxMarijn Haverbeke-65/+62
2011-07-26Remove all uses of tuples from the compiler and stdlibMarijn Haverbeke-2/+2
2011-07-16Make clear the differentiation between char pos and byte pos in filemaps. ↵Josh Matthews-2/+5
Fix up error printing for files with multi-byte characters.
2011-07-15rustc: Remove a bunch of exterior vectorsPatrick Walton-3/+2
2011-07-11Pull lexer creation out of new_parserBrian Anderson-2/+2
This will allow custom lexers to be injected into the parser (for fuzzing)
2011-07-07rustc: Remove all exterior vectors from the ASTPatrick Walton-11/+9
2011-07-06rustc: Move crate directives over to interior vectorsPatrick Walton-4/+3
2011-07-06rustc: Revert the conversion to interior vectors due to heap corruptionPatrick Walton-3/+4
2011-07-06rustc: Move crate directives over to interior vectorsPatrick Walton-4/+3
2011-07-05Remove unused eval function. Issue #604Brian Anderson-17/+0
2011-07-05Move everything syntax-related to syntax/, break deps on rest of compilerMarijn Haverbeke-0/+124
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.