For non-interactive use (like a compiler) you could implement the program as a function taking and returning a string.
For non-interactive use (like a compiler) you could implement the program as a function taking and returning a string.