aboutsummaryrefslogtreecommitdiff
path: root/src/lib/bitv.rs
Commit message (Collapse)AuthorAgeFilesLines
* Remove effect system from src.Graydon Hoare2011-04-191-8/+8
|
* Further work on typestate. Handles expr_rec and expr_assign now.Tim Chevalier2011-04-121-3/+12
| | | | | | | | | | | | Also changed the ts_ann field on statements to be an ann instead, which explains most of the changes. As well, got rid of the "warning: no type for expression" error by filling in annotations for local decls in typeck (not sure whether this was my fault or not). Finally, in bitv, added a clone() function to copy a bit vector, and fixed is_true, is_false, and to_str to not be nonsense.
* Implemented computing prestates and poststates for a few expression forms.Tim Chevalier2011-04-081-0/+15
| | | | | The typestate checker (if it's uncommented) now correctly rejects a trivial example program that has an uninitialized variable.
* Continued sketching out code for checking states against preconditions.Tim Chevalier2011-04-061-0/+22
| | | | | | | | | It's still sketchy. I added a typestate annotation field to statements tagged stmt_decl or stmt_expr, because a stmt_decl statement has a typestate that's different from that of its child node. This necessitated trivial changes to a bunch of other files all over to the compiler. I also added a few small standard library functions, some of which I didn't actually end up using but which I thought might be useful anyway.
* Add "mutable?" to _vec in the standard library; fix callersPatrick Walton2011-03-181-1/+1
|
* Remove redundant imports in lib (rustc doesn't like 'std' as a synonym for ↵Graydon Hoare2011-03-091-4/+0
| | | | root within std.rc anyway)
* Add a check for binding an alias. Good thing, as we had two instances in our ↵Graydon Hoare2010-11-081-1/+1
| | | | library.
* Split out stratum-checking pass, implement more-strict (overly aggressive) ↵Graydon Hoare2010-11-021-9/+9
| | | | impure-effect checking.
* eliminated bitv.test, which now lives in test/run-passDave Herman2010-10-211-283/+0
|
* line length police; moved comp.util.bits to std.bitvDave Herman2010-10-211-0/+463