2012-06-21 19:41:40 -05:00
|
|
|
import dvec::dvec;
|
|
|
|
|
|
|
|
type parser = {
|
|
|
|
tokens: dvec<int>,
|
|
|
|
};
|
|
|
|
|
2012-07-11 17:00:40 -05:00
|
|
|
trait parse {
|
|
|
|
fn parse() -> ~[mut int];
|
|
|
|
}
|
|
|
|
|
|
|
|
impl parser of parse for parser {
|
2012-07-14 14:19:36 -05:00
|
|
|
fn parse() -> ~[mut int] {
|
2012-06-30 06:23:59 -05:00
|
|
|
dvec::unwrap(self.tokens) //~ ERROR illegal move from self
|
2012-06-21 19:41:40 -05:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
fn main() {}
|