|
|
The compiler can actually take input from stdin.
|
|
|
This is useful for piping in data from other programs or for testing.
|
|
|
|
|
|
These two just work:
|
|
|
|
|
|
```shell
|
|
|
echo "int main() {return 0;}" | sac2c
|
|
|
```
|
|
|
|
|
|
or even
|
|
|
|
|
|
```shell
|
|
|
cat test.sac | sac2c
|
|
|
``` |
|
|
\ No newline at end of file |