Skip to content

Instantly share code, notes, and snippets.

@mcpherrinm
Created March 13, 2014 03:37
Show Gist options
  • Save mcpherrinm/9521550 to your computer and use it in GitHub Desktop.
Save mcpherrinm/9521550 to your computer and use it in GitHub Desktop.
rusti
#!/bin/sh
while true; do
echo -n " > "
read line
TMP=`mktemp`
rustc - -o $TMP <<EOF
#[feature(globs, macro_rules, struct_variant)];
extern mod extra;
fn main() {
let r = { $line };
println!("{:?}", r);
}
EOF
$TMP
rm $TMP
done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment