about summary refs log tree commit diff
path: root/src/comp/syntax/print
AgeCommit message (Collapse)AuthorLines
2011-11-16Replace 'mutable?' with 'const'Brian Anderson-1/+1
2011-11-16rustc: Accept 'const' as synonym for 'mutable?'Brian Anderson-1/+1
2011-11-16Use attributes for native module ABI and link nameHaitao Li-16/+0
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-11-16rustc: Use link_name attribute for native functionHaitao Li-5/+1
Fixes issue #906
2011-11-10Cleanup unused importsHaitao Li-2/+1
2011-11-09Add "cdecl" as synonym for "c-stack-cdecl"Brian Anderson-1/+1
2011-11-09Add "stdcall" as synonym for "c-stack-stdcall"Brian Anderson-1/+1
2011-11-09rustc: Rename native_abi_c_stack_cdecl to native_abi_cdeclBrian Anderson-1/+1
2011-11-09rustc: Rename native_abi_c_stack_stdcall to native_abi_stdcallBrian Anderson-1/+1
2011-11-09Remove native "x86stdcall" ABIBrian Anderson-1/+0
2011-11-08Remove native "cdecl" ABIBrian Anderson-1/+0
2011-11-07Remove native "llvm" ABIBrian Anderson-1/+0
2011-11-07Remove native "rust" ABIBrian Anderson-1/+0
2011-10-28Make shared kind the default only for generic functionsMarijn Haverbeke-4/+5
You almost never want a function with pinned type params. For types, objects, resources, and tags, pinned types are actually often more sane. For most of these, shared rarely makes sense. Only tricky case is objs -- you'll have to think about the kinds you want there. Issue #1076
2011-10-28Move to short type parameter keywordsMarijn Haverbeke-2/+2
Issue #1076
2011-10-25Step one towards new type param kind syntaxMarijn Haverbeke-2/+2
Issue #1067 Needs a snapshot to finalize.
2011-10-21Change the way block calls are parsed, mark them as block-calls.Marijn Haverbeke-4/+12
This makes it possible to omit the semicolon after the block, and will cause the pretty-printer to properly print such calls (if pretty-printing of blocks wasn't so broken). Block calls (with the block outside of the parentheses) can now only occur at statement level, and their value can not be used. When calling a block-style function that returns a useful value, the block must be put insde the parentheses. Issue #1054
2011-10-21Drop support for iter, put, and for-eachMarijn Haverbeke-19/+3
Closes #1056
2011-10-20Merge ast::proto_shared and ast::proto_closureBrian Anderson-3/+3
Now they are both just proto_shared and proto_shared takes an argument indicating that it is sugared as 'lambda'
2011-10-20Rename ast::proto_fn to ast::proto_sharedBrian Anderson-1/+1
2011-10-20Make fn denote a bare function. Convert fn to fn@ as neededBrian Anderson-7/+7
2011-10-12make treatment of unchecked/unsafe blocks more uniformNiko Matsakis-1/+1
also repair various errors in the parser related to such blocks. rename checked_blk to default_blk to reflect the fact that it inherits its purity from the surrounding context.
2011-10-12Extend the unchecked block stuff to allow unsafe blocks as well.Niko Matsakis-3/+7
2011-10-11Introduce ast::proto_bareBrian Anderson-0/+1
Issue #1022
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-07Parse and typecheck by-value and by-ref arg specsMarijn Haverbeke-14/+16
Add sprinkle && throughout the compiler to make it typecheck again. Issue #1008
2011-10-03rustc: Implement C stack stdcallPatrick Walton-0/+3
2011-09-28rustc: Add a new "C stack cdecl" native ABIPatrick Walton-0/+3
2011-09-28Revert "Revert "Implement pattern ranges for all numeric types.""Brian Anderson-0/+6
This reverts commit a034f87146e60e1db2327c6f6807c47406a1bb0b. Conflicts: src/comp/middle/check_alt.rs src/comp/middle/trans_alt.rs src/comp/syntax/ast.rs src/comp/syntax/ast_util.rs src/comp/syntax/fold.rs src/comp/syntax/print/pprust.rs Conflicts: src/comp/middle/trans_alt.rs
2011-09-26Make return-by-ref function headers pretty-print safelyMarijn Haverbeke-1/+1
Closes #972
2011-09-23Begin to support pattern matching on unique boxesBrian Anderson-0/+1
Issue #409
2011-09-21Revert "Implement pattern ranges for all numeric types."Marijn Haverbeke-6/+0
This reverts commit ce0f054f9d56df4e60291fc2e1b89ce979cf374f.
2011-09-21Implement pattern ranges for all numeric types.Josh Matthews-0/+6
2011-09-20Represent unique creation as a unop in the AST instead of its own exprBrian Anderson-3/+2
Like the box unop. Issue #409
2011-09-20Parse unique box typesBrian Anderson-0/+1
Issue #409
2011-09-16Require body of else-less if expressions to be a value-less blockMarijn Haverbeke-3/+3
For consistency with other constructs that could not possibly return a value (say, loops).
2011-09-15Add parens, as needed, around else-if conditions.Jesse Ruderman-1/+1
2011-09-15Require the parameter that will be referenced to be notedMarijn Haverbeke-2/+10
Issue #918
2011-09-15Add representation for by-ref let bindingsMarijn Haverbeke-1/+3
Issue #918
2011-09-15Ensure parens are wrapped around composite exprs in call/index/field posMarijn Haverbeke-5/+10
This is needed to fix the second example in issue #919
2011-09-15More thorough check for (.. 10).x in pretty-printerMarijn Haverbeke-5/+21
Closes #919
2011-09-15Also handle fail and put in print_maybe_parens_discrimMarijn Haverbeke-2/+5
Closes #920
2011-09-15Remove maybe_protect_block kludge from pretty-printerMarijn Haverbeke-86/+0
It is no longer needed.
2011-09-15Insert omitted semicolons for statementsMarijn Haverbeke-2/+1
2011-09-14Add syntax and representation for return-by-mutably-rooted-refMarijn Haverbeke-2/+8
This will be used in the near future to decide what can safely be done with the returned reference. Issue #918
2011-09-14Make most of the compiler aware of return-by-referenceMarijn Haverbeke-3/+6
tyencode/tydecode still don't know about it. return_ref will be extended to take arguments anyway.
2011-09-14Rename ast::controlflow to ast::ret_styleMarijn Haverbeke-2/+2
It will include information about returning by alias.
2011-09-13Properly pretty-print 10.xMarijn Haverbeke-1/+9
Closes #890
2011-09-13Make pretty-printer wrap fail/ret/put in parens in call/index/field posMarijn Haverbeke-10/+14
Closes #764 Closes #891
2011-09-12Factor imports mindlessly.Graydon Hoare-23/+6