txlyre 1 жил өмнө
parent
commit
4f19362973

+ 1 - 1
langs/ada/run.sh

@@ -5,6 +5,6 @@ cat > "$IN"
 
 gnatmake "$IN" -o "$OUT" -w -gnatws
 
-if [ -f $OUT ]; then
+if [ -f $OUT ] && ! [ -s $OUT ]; then
   exec "$OUT"
 fi

+ 1 - 0
langs/asm/Dockerfile

@@ -0,0 +1 @@
+RUN apt-get install binutils nasm -y

+ 14 - 0
langs/asm/run.sh

@@ -0,0 +1,14 @@
+IN="$(mktemp --suffix .s)"
+OUT="$(mktemp)"
+TEMP="$(mktemo --suffix .o)"
+
+cat > "$IN"
+
+nasm -felf64 "$IN" -o "$TEMP"
+if [ -f $TEMP ]; then
+  ld "$TEMP" -o "$OUT"
+fi
+
+if [ -f $OUT ]; then
+    exec "$OUT"
+fi

+ 1 - 0
langs/clisp/Dockerfile

@@ -0,0 +1 @@
+RUN apt-get install clisp -y

+ 5 - 0
langs/clisp/run.sh

@@ -0,0 +1,5 @@
+IN="$(mktemp --suffix .lsp)"
+
+cat > "$IN"
+
+clisp "$IN"