I'm a big fan of the freestyle format, but unfortunately it doesn't support input yet. I don't know if you already had something in mind for this, but I was thinking one possible syntax could be <=, <==, and <=== which nicely mirrors the output prefixes. So an example test case (in Befunge) could look something like this:
~~~...@
<= ABC
=> 67 66 65
It turns out this wasn't as difficult to add as I had imagined it would be, but here's my patch FWIW.
freestyle-input-patch.txt
I made a brief attempt to add some test cases as well, but I got half way through adding them to the test-freestyle-format file before I realised it would need a different functionality, and I figured I should probably just leave that to you to sort out. :)
I'm a big fan of the freestyle format, but unfortunately it doesn't support input yet. I don't know if you already had something in mind for this, but I was thinking one possible syntax could be
<=,<==, and<===which nicely mirrors the output prefixes. So an example test case (in Befunge) could look something like this:It turns out this wasn't as difficult to add as I had imagined it would be, but here's my patch FWIW.
freestyle-input-patch.txt
I made a brief attempt to add some test cases as well, but I got half way through adding them to the test-freestyle-format file before I realised it would need a different functionality, and I figured I should probably just leave that to you to sort out. :)