about summary refs log tree commit diff
path: root/src/comp/front/config.rs
AgeCommit message (Collapse)AuthorLines
2012-03-02Move src/comp to src/rustcGraydon Hoare-134/+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-23Allow ast_fold_precursor to change the span.Kevin Atkinson-1/+1
This involved changing the prototype for the callbacks to thread the span though. A wrapper function, fold::wrap, can be used to wrap the old style callbacks.
2012-01-05rustc: Configure out #[test] functions when not testingBrian Anderson-20/+35
2011-12-16reorder args to the various vec, option fns so blk comes lastNiko Matsakis-10/+10
2011-12-13Copy first batch of material from libstd to libcore.Graydon Hoare-1/+1
2011-11-23Allow import directives in any blockMarijn Haverbeke-1/+2
Closes #49
2011-11-21rustc: Remove abi from ast::native_modHaitao Li-2/+1
2011-11-17remove compile-command from local variable blocksNiko Matsakis-1/+0
2011-11-16Use attributes for native module ABI and link nameHaitao Li-2/+1
This patch changes how to specify ABI and link name of a native module. Before: native "cdecl" mod llvm = "rustllvm" {...} After: #[abi = "cdecl"] #[link_name = "rustllvm"] native mod llvm {...} The old optional syntax for ABI and link name is no longer supported. Fixes issue #547
2011-10-29Add the ability to ignore tests by compiler configBrian Anderson-18/+12
[test] [ignore(cfg(target_os = "win32"))]
2011-10-10Adjust function signatures to allow for vecs being immediateMarijn Haverbeke-1/+1
Some code was relying on vectors being implicitly by-reference (as non-immediate value). This adds the necessary &&-sigils. Closes #1021
2011-10-07Give up on providing a by-value version of map, convert fold over toMarijn Haverbeke-5/+5
passing pointers by ref Issue #1008
2011-10-07Parse and typecheck by-value and by-ref arg specsMarijn Haverbeke-22/+21
Add sprinkle && throughout the compiler to make it typecheck again. Issue #1008
2011-09-19Break fold's circular reference during unwindingBrian Anderson-2/+0
This converts the AST fold into a resource that breaks it's own circular reference (just a temporary workaround until GC), so that failure during fold will unwind correctly. Issue #936
2011-09-12Factor imports mindlessly.Graydon Hoare-4/+2
2011-09-12Reformat for new mode syntax, step 1Marijn Haverbeke-13/+11
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-3/+4
2011-08-27Convert ast::ident to istr. Issue #855Brian Anderson-2/+2
2011-08-25Support unchecked blocksTim Chevalier-1/+1
This patch supports the syntax unchecked { ... } to disable purity checking within a block. Presumably it will only be used within a declared "pure fn". However, there is no checking that it doesn't occur elsewhere, and it would be harmless for it to do so. I went with Lindsey's suggestion for the syntax, but it's subject to change. This allows you to write code that uses predicates that call arbitrary Rust functions, but you must declare your intentions by wrapping it in an unchecked { ... } block. The test case run-pass/unchecked-predicates.rs demonstrates how to do that.
2011-08-20ReformatBrian Anderson-1/+1
This changes the indexing syntax from .() to [], the vector syntax from ~[] to [] and the extension syntax from #fmt() to #fmt[]
2011-08-16Port the compiler to the typaram foo<T> syntax.Erick Tryzelaar-3/+3
2011-08-16Rename std::ivec to std::vecBrian Anderson-10/+10
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-3/+3
2011-07-27Fix damage done by the pretty-printerMarijn Haverbeke-3/+1
2011-07-27Reformat for new syntaxMarijn Haverbeke-78/+74
2011-07-25Rename the block type to be blk also. Sorry.Michael Sullivan-2/+2
2011-07-12rustc: Remove some useless std::vec importsPatrick Walton-1/+0
2011-07-07rustc: Remove all exterior vectors from the ASTPatrick Walton-5/+5
2011-07-07rustc: Change lots of AST nodes to use interior vectorsPatrick Walton-2/+2
2011-07-06rustc: Make meta items into interior vectorsPatrick Walton-6/+4
2011-07-06rustc: Convert attribute in the AST to interior vectorsPatrick Walton-2/+3
2011-07-06rustc: Revert the conversion to interior vectors due to heap corruptionPatrick Walton-7/+8
2011-07-06Temp commit on the way to making meta_item into an interior vectorPatrick Walton-6/+4
2011-07-06rustc: Convert attribute in the AST to interior vectorsPatrick Walton-2/+3
2011-07-05Support conditional compilation of native items. Closes #610Brian Anderson-5/+33
2011-07-05Move everything syntax-related to syntax/, break deps on rest of compilerMarijn Haverbeke-2/+2
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-06-30Use attributes for conditional compilation in std.rcBrian Anderson-2/+20
2011-06-30Conditionally compile items declared as statements. Issue #489Brian Anderson-1/+30
2011-06-30Add a pass to fold out items that do not belong in the current configurationBrian Anderson-0/+68
The parser needs to parse unconfigured items into the AST so that they can make the round trip back through the pretty printer, but subsequent passes shouldn't care about items not being translated. Running a fold pass after parsing is the lowest-impact way to make this work. The performance seems fine. Issue #489