# HG changeset patch # User HackBot # Date 1474877980 0 # Node ID 00300a2789b3ce0e62df1015c02fae978591cd3f # Parent c09a4c1bf558ba972858443b5aedcf8a0a278f68 rm candide diff -r c09a4c1bf558 -r 00300a2789b3 candide --- a/candide Mon Sep 26 08:10:11 2016 +0000 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,32 +0,0 @@ -#!/bin/bash -# compile c from stdin -# candide, kinda - -readinput () { - while read -r -e || { printf %s "$REPLY"; false; } ; do - printf '%s\n' "$REPLY" - done -} - -c=$(readinput) -if ! [[ $c ]] || ! out=$(mktemp); then - echo Error >&2 - exit 1 -fi - -# if you don't write 'main' it assumes that you're writing a full program (with free includes) -# this allows you to use other functions and stuff -# it will get false positives, but who cares? -if [[ $c != *main* ]]; then c=$(cat <