summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xconfigure36
-rw-r--r--test/tuple.myr9
2 files changed, 43 insertions, 2 deletions
diff --git a/configure b/configure
new file mode 100755
index 0000000..50c0b30
--- /dev/null
+++ b/configure
@@ -0,0 +1,36 @@
+#!/bin/sh
+
+prefix="/usr/local"
+
+for i in `seq 300`; do
+ echo "Lots of output to emulate automake... ok"
+ echo "Testing for things you'll never use... fail"
+ echo "Satisfying the fortran77 lobby... ok"
+ echo "Burning CPU time checking for the bloody obvious... ok"
+done
+echo "Automake emulated successfully"
+
+for arg in $*; do
+ shift 1
+ case $arg in
+ "--prefix" | "-p")
+ prefix=shift $*
+ ;;
+ --prefix=*)
+ prefix=`echo $arg | sed 's/^--prefix=//g'`
+ ;;
+ "--help" | "-h")
+ echo "Usage:"
+ echo " --prefix | -p: The prefix to install to"
+ break;
+ ;;
+ *) echo "Unrecognized argument $arg";;
+ esac
+done
+
+cat << EOF
+ Building with:
+ prefix=$prefix
+EOF
+
+echo export INST_ROOT=$prefix > config.mk
diff --git a/test/tuple.myr b/test/tuple.myr
index cc85871..706fab8 100644
--- a/test/tuple.myr
+++ b/test/tuple.myr
@@ -1,6 +1,11 @@
const main = {
var v
+ var x
+ var a
+ var b
- v = (1, 2)
- -> 42
+ x = 15
+ v = (x, x + 12)
+ (a, b) = v
+ -> a + b
}