about summary refs log tree commit diff
path: root/src/comp/syntax
AgeCommit message (Collapse)AuthorLines
2011-07-26Try to keep the local and its type together when wrapping a long decl.Graydon Hoare-3/+7
2011-07-26Prohibit breaking between "let" and "=" in local decls.Graydon Hoare-2/+4
2011-07-26Trailing whitespace.Graydon Hoare-1/+1
2011-07-26Handle printing 'auto' occurring in loop-variable context.Graydon Hoare-1/+4
2011-07-26Improve printing of mod and native mod.Graydon Hoare-33/+47
2011-07-26Handle hardbreaks at bol slightly better, including break_offset calls (tuck ↵Graydon Hoare-18/+34
offset into previous hardbreak).
2011-07-26Handle column-zero \n explicitly rather than looking for \n\n.Graydon Hoare-4/+1
2011-07-26Consume EOL after line comment.Graydon Hoare-0/+3
2011-07-26Add block and closure protos and parse/pp block and lambda exprs.Michael Sullivan-5/+19
2011-07-26Oops, left whitespace.Paul Stansifer-1/+1
2011-07-26Add basic support for blocks and types in macros.Paul Stansifer-7/+123
2011-07-26Add 'simple' visiting to visit.rsMarijn Haverbeke-4/+105
2011-07-26Resolve loop collection expressions in the right scopeMarijn Haverbeke-6/+1
Closes #745
2011-07-26Remove tuple support from the compilerMarijn Haverbeke-58/+1
2011-07-26Properly parse 'auto' for loop variable typesMarijn Haverbeke-1/+1
2011-07-26Remove all uses of tuples from the compiler and stdlibMarijn Haverbeke-77/+82
2011-07-26Make the pretty-printer output new-style syntax for recordsMarijn Haverbeke-9/+8
2011-07-26Make the pretty-printer output new-style syntax for local declsMarijn Haverbeke-11/+8
2011-07-26Add support for new-style local declsMarijn Haverbeke-0/+33
let x = 5; let y: int = 10; // as soon as a typestate bug is fixed: let x: str = foo, y <- 20u; 'auto' and 'type-first let' will soon be dropped.
2011-07-25Correct input coordinate tracking on block-opening brace.Graydon Hoare-5/+5
2011-07-25Recognize and preserve first blank line if first line of file.Graydon Hoare-5/+13
2011-07-25Rename the block type to be blk also. Sorry.Michael Sullivan-39/+39
2011-07-25Adjust pp interface to that printing a crate (an reproducing ↵Graydon Hoare-4/+8
literals/comments) takes a reader, not just a filename. Fixes first big pp-fuzzer bug.
2011-07-25Disallow block as a variable name in preparation for it becoming a keyword.Michael Sullivan-28/+29
2011-07-25Add support for bracey record types and literalsMarijn Haverbeke-8/+46
type foo = {mutable x: int, y: int}; auto myfoo = {mutable x: 10, y: 20u}; The old syntax is also still supported.
2011-07-25Add look-ahead to parser objectMarijn Haverbeke-34/+48
2011-07-25Make the lexer slightly less statefulMarijn Haverbeke-29/+25
2011-07-25Remove some rustboot-ismsMarijn Haverbeke-4/+3
Closes #464
2011-07-25Fix span information returned by parser::parse_seqMarijn Haverbeke-35/+33
Its hi pos used to be the end of the token after the sequence. It now properly reports the end of the closing token.
2011-07-22Add a "fake" def_upvar and mechanisms to create it.Michael Sullivan-0/+6
2011-07-22Implement Macro By Example.Paul Stansifer-210/+609
2011-07-22Start adding support for multiple variable declarations per stmtMarijn Haverbeke-21/+34
This adds parser support and most of the machinery for auto x = 10, y = 20; However, the above still goes wrong somewhere in typestate, causing the state checker to believe only the last variable in the list is initialized after the statement. Tim, if you have a moment, could you go over the changes to the tstate code in this patch and see where I'm going wrong? Multi-var-decls without the typestate extension Add a loop
2011-07-21Consolidate obj_field_from_anon_obj_field().Lindsey Kuper-0/+5
2011-07-21Remove vestiges of typarams from anon objs.Lindsey Kuper-12/+8
2011-07-21Make the pretty-printer output paren-free and case-free codeMarijn Haverbeke-19/+19
We should probably do another pretty-printing pass soon.
2011-07-20Parse nil literals (including in patterns)Tim Chevalier-0/+5
Closes #622.
2011-07-19Beginnings of support for constrained typesTim Chevalier-76/+131
Programs with constrained types now parse and typecheck, but typestate doesn't check them specially, so the one relevant test case so far is XFAILed. Also rewrote all of the constraint-related data structures in the process (again), for some reason. I got rid of a superfluous data structure in the context that was mapping front-end constraints to resolved constraints, instead handling constraints in the same way in which everything else gets resolved.
2011-07-19Simple refactoring in the pretty printer.Michael Sullivan-7/+10
Introduce a proto_to_str function to find the string representation of a given proto instead of casing on the proto in multiple places.
2011-07-18Support x86 stdcall conventionBrian Anderson-0/+3
This allows rust to call the Win32 API
2011-07-16Make clear the differentiation between char pos and byte pos in filemaps. ↵Josh Matthews-33/+63
Fix up error printing for files with multi-byte characters.
2011-07-16Fix pre-existing problem with filemap line positions always starting at 0. ↵Josh Matthews-4/+12
Fix error line output to only retrieve up to the nearest newline.
2011-07-16Use the actual start position of the file in the codemap rather than the ↵Josh Matthews-4/+2
position of the first newline.
2011-07-16Reenable error line printing.Josh Matthews-2/+1
2011-07-16Fix error line display slicing.Josh Matthews-5/+7
2011-07-15rustc: Remove a bunch of exterior vectorsPatrick Walton-147/+108
2011-07-14rustc: Move much of metadata reading over to interior vectorsPatrick Walton-30/+31
2011-07-13Prohibit trailing whitespace under 'tidy' script. Clean up all caught cases.Graydon Hoare-93/+93
2011-07-13Parse nullary ret correctlyTim Chevalier-9/+7
ret is similar to fail: if not followed by an expression, it should be parsed as a ret without an argument. The old version would fail if ret was followed by a close paren (for example). Fixed it. Closes #676.
2011-07-13Add some missing cases to token::can_begin_exprTim Chevalier-0/+4
2011-07-13box patterns, expect for the trans partMarijn Haverbeke-3/+17