TrueDoctor / c--

A Brainfuck transpiler and interpreter
GNU General Public License v3.0
0 stars 0 forks source link

read from `stdin` if argc==0 #4

Open Ma27 opened 5 years ago

Ma27 commented 5 years ago

Several CLI tools simply read from stdin if no file is given by default. This can be helpful when piping several processes together. Currently you'd have to use ugly bash-isms to achieve this.

With such a change, pipes like this will be possible:

# replace chars in a script before running
cat foo.bf | sed -e "magic here" | interfuck

# execute a script from a remote location (be careful with this!)
curl http://example.com/example.bf | interfuck
TrueDoctor commented 5 years ago

12 would be really useful for testing purposes