When you want to actually write your input in real time and actually see the output also in real time, use console. This is helpful for me when I want interact in real time with Tau Language. I want to actually type the value on the REPL and I want to see what will be the output.
So this is how to write it
# Define your input
tau> sbf i1 = console
#Define your output
tau> sbf o1 = console
Now, you can input your value (0 or 1) and can see the actual output in the REPL
I will use some part of taumorrow's example in this link https://github.com/taumorrow/tau-lang-demos/blob/master/logic_gates.tau
Thank you l0g1x for providing the code for us.
But I change the input and output file format to console because I want to actually type the input myself and see the output results at an instant.
# Define input files
sbf i1 = console
sbf i2 = console
# Define output files
sbf o1 = console
# AND gate
r o1[t] = i1[t] & i2[t]
(https://www.instagram.com/p/DI1YbosSUeI/?utm_source=ig_web_copy_link&igsh=MzRlODBiNWFlZA==)