| 2 | | This page demonstrates how to use C4. |
| | 2 | First, set the `${CLASSPATH}` environment variable, and other environment variable by sourcing the `setup.sh` file in the `XTC` source directory. |
| | 3 | The following code snippet assumes `XTC` source tree is located in your home directory. |
| | 4 | {{{ |
| | 5 | #!sh |
| | 6 | > cd ~/xtc && source setup.sh |
| | 7 | }}} |
| | 8 | |
| | 9 | Now that the environment to run C4 is setup. You can run C4 with the following command. |
| | 10 | |
| | 11 | {{{ |
| | 12 | #!sh |
| | 13 | > java xtc.lang.c4.C4 -printSource -transform [Pre-processed Source File] |
| | 14 | }}} |