|
|
@@ -87,7 +87,10 @@ fn native_to_rs(native: SplitTypeNative) -> &'static str { |
|
|
|
} |
|
|
|
|
|
|
|
fn main() { |
|
|
|
let result = parser::TypeFileParser::new().parse("Test = uint8\nTestAgain = int32\nInterface = {hmm: uint32}").unwrap(); |
|
|
|
use std::io::Read; |
|
|
|
let mut content = String::new(); |
|
|
|
std::io::stdin().read_to_string(&mut content).expect("Failed to read stdin"); |
|
|
|
let result = parser::TypeFileParser::new().parse(&content).unwrap(); |
|
|
|
for def in result { |
|
|
|
match def.ty.into() { |
|
|
|
SplitType::Interface(interface) => { |
|
|
|