Add all of the code gen, want to show it off
This commit is contained in:
38
test.mcl
38
test.mcl
@@ -1,21 +1,21 @@
|
||||
//type str = [u8];
|
||||
//
|
||||
//struct Foo {
|
||||
// a: usize,
|
||||
// b: &str
|
||||
//}
|
||||
//
|
||||
//fn Foo.new(a: usize, b: &str) -> Foo {
|
||||
// return Foo {
|
||||
// a: a,
|
||||
// b: b
|
||||
// };
|
||||
//}
|
||||
//
|
||||
//
|
||||
//fn main() {
|
||||
// let obj = Foo::new();
|
||||
//
|
||||
//}
|
||||
type str = [u8];
|
||||
|
||||
struct Foo {
|
||||
a: usize,
|
||||
b: &str
|
||||
}
|
||||
|
||||
fn Foo.new(a: usize, b: &str) -> Foo {
|
||||
return Foo {
|
||||
a: a,
|
||||
b: b
|
||||
};
|
||||
}
|
||||
|
||||
|
||||
fn main() -> i32 {
|
||||
let obj = Foo::new();
|
||||
|
||||
}
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user