compile input statement with some malloc goodness