about summary refs log tree commit diff
path: root/src/comp/syntax
AgeCommit message (Collapse)AuthorLines
2011-08-22Remove ast::spawn_domBrian Anderson-2/+0
2011-08-22Implement pattern guardsMarijn Haverbeke-3/+18
The syntax is alt x { mypat where mycond { ... } } The condition may refer to any of the variables bound by the pattern. When a guard fails, pattern-matching continues with the next pattern. Closes #857
2011-08-22Drop arguments on the caller side, not the calleeMarijn Haverbeke-2/+2
This makes it easier for the caller to optimize the take/drop away for temporary values, and opens up new possibilities for alias handling. Breaks tail calls.
2011-08-20Stop parsing ~[] vector syntaxBrian Anderson-8/+0
2011-08-20Stop parsing .() indexesBrian Anderson-7/+0
2011-08-20ReformatBrian Anderson-922/+857
This changes the indexing syntax from .() to [], the vector syntax from ~[] to [] and the extension syntax from #fmt() to #fmt[]
2011-08-19Pretty-print new index syntaxBrian Anderson-3/+2
2011-08-19Parse x[y] as indexesBrian Anderson-0/+7
2011-08-19Getting rid of superfluous log statement.Lindsey Kuper-2/+0
2011-08-19Pretty-print constrained types correctlyBrian Anderson-1/+6
2011-08-19Pretty-print parens around more things that need disambiguationBrian Anderson-7/+17
Ridiculous stuff like (ret 0) == (log "error")
2011-08-19Teach the pretty-printer to disambiguate 'if ret { }' et. alBrian Anderson-3/+15
2011-08-19Do better at preserving blank lines during pretty-printingBrian Anderson-1/+5
2011-08-19Don't pretty-print extra blank lines after anon object methodsBrian Anderson-2/+5
2011-08-18Don't pretty-print trailing whitespace for blank lines inside block commentsBrian Anderson-2/+10
2011-08-18Try harder to disambig blocks followed by various exprs in pprust. Closes #840Brian Anderson-15/+74
As it turns out, it's not just unops we need to worry about. Also tuples and anything that requires parens.
2011-08-18CommentsTim Chevalier-1/+2
2011-08-18Kill another case of a spurious blank line. Closes #809.Graydon Hoare-1/+1
2011-08-18More misc ivec->vec renamingBrian Anderson-3/+3
2011-08-18Change ast::ty_ivec, ty::ty_ivec to ty_vecBrian Anderson-6/+6
2011-08-18Remove ast::ty_vecBrian Anderson-3/+0
2011-08-18Remove seq_kind from ast::expr_vecBrian Anderson-21/+21
2011-08-18Pretty-print ivecs as []Brian Anderson-5/+1
2011-08-18Remove or _-prefix all unused function argumentsMarijn Haverbeke-73/+70
This should make the compilation process a bit less noisy.
2011-08-17Stop parsing old-style vec typesBrian Anderson-5/+0
2011-08-17Allow multiple imports in a single statementBrian Anderson-2/+55
Like so: import foo::{bar, baz}; Issue #817
2011-08-17Refactor ast::view_item to differentiate between [ident]s and pathsBrian Anderson-2/+6
2011-08-17Allow multiple exports in a single export statement. Issue #817Brian Anderson-10/+15
2011-08-16Remove dead send/recv operator tokens.Graydon Hoare-6/+0
2011-08-16Remove support for expr[T] syntax.Erick Tryzelaar-11/+1
2011-08-16Remove support for foo[T] declaration syntax.Erick Tryzelaar-5/+1
2011-08-16Remove type parameter and vec/port/chan foo[T] syntax.Erick Tryzelaar-19/+6
2011-08-16Port the compiler to the expr foo::<T> syntax.Erick Tryzelaar-56/+56
2011-08-16Port the compiler to foo<T> decl syntax.Erick Tryzelaar-52/+52
2011-08-16Port the compiler to the typaram foo<T> syntax.Erick Tryzelaar-206/+206
2011-08-16Change expr foo[T] syntax to foo::<T>.Erick Tryzelaar-8/+38
This preserves the old syntax for now.
2011-08-16Change declaration type parameter syntax to foo<T>.Erick Tryzelaar-2/+5
2011-08-16Change type parameter syntax to foo<T>.Erick Tryzelaar-17/+64
This preserves the old syntax for now.
2011-08-16Removing tasks, ports and chans from the compiler.Eric Holk-81/+0
2011-08-16Rename std::ivec to std::vecBrian Anderson-126/+124
2011-08-16Continue migrating the std #fmt interface to ivecsBrian Anderson-1/+1
Only thing left is to remove some duplicate interfaces in std::extfmt::rt after the next snapshot
2011-08-16Revert "Revert "Make [] and ~[] both construct ivecs""Brian Anderson-1/+1
This reverts commit 28bf19021981bd41a365aaa684c71afd2cf079d7. Should work now that tests are all using ivecs
2011-08-16Removed trans_comm.rs from the compiler. Updating aio/sio to work with the ↵Eric Holk-39/+0
new chan and port system, started on a networking module for the standard library.
2011-08-15The wonky for...in... whitespace was bothering me. Sorry!Lindsey Kuper-80/+80
2011-08-15Pretty print lambda-blocks.Michael Sullivan-10/+41
2011-08-15Parse type inferred lambda-block expressions.Michael Sullivan-7/+41
2011-08-15Add operator 'copy', translates as fall-through.Graydon Hoare-0/+14
2011-08-15Implement an untyped version of the AST, with a coversion back to the typed ↵Paul Stansifer-0/+816
AST..
2011-08-15Use span stacks to track macro expansion for less troublesome error messages.Paul Stansifer-29/+55
2011-08-15Make spans into stacks (to store expansion backtraces).Paul Stansifer-17/+47