Last active
August 29, 2015 13:57
-
-
Save bvssvni/9408082 to your computer and use it in GitHub Desktop.
A 'rusti' interpreter script (by mcpherrin)
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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