about summary refs log tree commit diff
path: root/src/comp/syntax
AgeCommit message (Collapse)AuthorLines
2011-07-12Fix fast-check target by disabling code snippet printing on warnings (broken ↵Graydon Hoare-1/+4
on .rc files) and adding an xfail-fast flag for global-scope.rs.
2011-07-12Elide existing main function when building a test runner. Issue #428Brian Anderson-0/+1
This prevents any defined main function from colliding with the one synthesized for the test runner. This is not the best solution since it doesn't compile a function the user defined, but I don't think it's likely to be a problem in the near term.
2011-07-12rustc: Remove some interior vectors from typestate and some useless ↵Patrick Walton-2/+0
vec-related imports
2011-07-12rustc: Move ppaux away from exterior vectorsPatrick Walton-8/+2
2011-07-12rustc: Complete the transition of pprust to interior vectorsPatrick Walton-80/+48
2011-07-12Update pretty-printing of '...' in record patterns to be ', _' insteadMarijn Haverbeke-1/+4
2011-07-11Fix pretty-printing of literals again. Issue #672Brian Anderson-1/+6
The pos variable is one character beyond where I thought it was.
2011-07-11Make the parser add correct spans to view_itemsTim Chevalier-30/+19
Closes #650.
2011-07-11So... I can't spell 'ellipsis'.Paul Stansifer-8/+8
2011-07-11Change "etc" syntax for record patterns from `{a:b ...}` to `{a:b, _}`.Paul Stansifer-5/+6
2011-07-11Add elipses, reorganize the macro components into their own AST node.Paul Stansifer-99/+202
2011-07-11Move macro expansion to a separate phase, change macro syntax, and add ↵Paul Stansifer-143/+298
parse_sess to session.
2011-07-11Add nodes for embedding types and blocks in expressions for macros.Paul Stansifer-45/+58
2011-07-11Only print up to six lines on error. Print ^~~~~ to highlight error span.Josh Matthews-1/+49
2011-07-11Hack to print lines when error spans are available.Josh Matthews-2/+55
2011-07-11Visit the type argument in a port expressionTim Chevalier-1/+8
This closes #664.
2011-07-11Add parser::parse_crate_from_source_strBrian Anderson-0/+18
The fuzzer wants to be able to do stuff like this
2011-07-11Pull lexer creation out of new_parserBrian Anderson-15/+20
This will allow custom lexers to be injected into the parser (for fuzzing)
2011-07-11Pull file reading out of the lexerBrian Anderson-10/+11
2011-07-11rustc: Implement explicit global scope resolution via leading "::"; add a ↵Patrick Walton-9/+22
test case
2011-07-11The lexer's get_mark_str should slice by byte position, not char. Closes #654Brian Anderson-3/+4
2011-07-11Fix pretty-printing of record patternsMarijn Haverbeke-3/+3
2011-07-11Implement record patternsMarijn Haverbeke-0/+74
Closes #469.
2011-07-11Move visit to newtype-style nominal typeMarijn Haverbeke-112/+110
This makes getting the function fields out of the visitor less cumbersome and more efficient (no take/drop).
2011-07-11Implement or-patterns in case clausesMarijn Haverbeke-18/+53
You can now say expr_move(?dst, ?src) | expr_assign(?dst, ?src) { ... } to match both expr_move and expr_assign. The names, types, and number of bound names have to match in all the patterns. Closes #449.
2011-07-10Add a missing case so nbody.rs can ppJesse Ruderman-0/+1
2011-07-10Export noop_fold_expr so the fuzzer can use itJesse Ruderman-0/+1
2011-07-10Make #fmt work from inside std. Issue #175Brian Anderson-10/+25
At long last, this patch makes #fmt usable from inside the standard library. The way it does it us very hackish, but at least it works now.
2011-07-09Track the path as we fold over the AST looking for unit tests. Issue #428Brian Anderson-1/+4
2011-07-08Alias-ify some prettyprinting functionsTim Chevalier-3/+4
2011-07-08Nicer pretty-printing for anon objs. Closes #499.Lindsey Kuper-3/+50
(Incidentally, what's the right way to test changes to the pretty-printer? There has to be a better way than what I did, which was to log_err the results of expr_to_str as exprs passed through trans and glance at the output.)
2011-07-07rustc: Remove all exterior vectors from the ASTPatrick Walton-46/+43
2011-07-07rustc: Change lots of AST nodes to use interior vectorsPatrick Walton-164/+171
2011-07-06rustc: Make constraint args in the AST interior vectorsPatrick Walton-3/+4
2011-07-06rustc: Move AST constraints to interior vectorsPatrick Walton-16/+17
2011-07-06rustc: Migrate core AST types to interior vectorsPatrick Walton-12/+32
2011-07-06rustc: Make AST tuple types use interior vectorsPatrick Walton-4/+4
2011-07-06rustc: Make meta items into interior vectorsPatrick Walton-15/+43
2011-07-06rustc: Move crate directives over to interior vectorsPatrick Walton-13/+12
2011-07-06rustc: Convert attribute in the AST to interior vectorsPatrick Walton-61/+57
2011-07-06rustc: Make AST paths use interior vectorsPatrick Walton-29/+57
2011-07-06Begin adding unit testing infrastructure to the compilerBrian Anderson-0/+1
Add a --test flag and a pass for transforming the AST to generate a test harness. Issue #428
2011-07-06rustc: Move the interner over to interior vectorsPatrick Walton-6/+6
2011-07-06rustc: Make the various constraint-related types in middle::ty use interior ↵Patrick Walton-2/+7
vectors
2011-07-06Simplify AST for expr_anon_obj.Lindsey Kuper-9/+8
2011-07-06rustc: Revert the conversion to interior vectors due to heap corruptionPatrick Walton-177/+121
2011-07-06Temp commit on the way to making meta_item into an interior vectorPatrick Walton-15/+43
2011-07-06rustc: Move crate directives over to interior vectorsPatrick Walton-13/+12
2011-07-06rustc: Convert attribute in the AST to interior vectorsPatrick Walton-61/+57
2011-07-06rustc: Make AST paths use interior vectorsPatrick Walton-29/+57