In this tutorial, we'll build a parser that can handle four-function calculator arithmetic. Some very minimal assumptions are made in terms of your work environment. I assume that you have a JDK installed on your machine. This must be version 1.5 or later. It is assumed that you have downloaded and decompressed the freecc distribution on your hard drive. Also, you have your PATH environment variable set such that you can type the commands:
java
and:
javac
and:
freecc
at a command prompt with no parameters and get a list of the respective tools' options. This basically means that you have added the directories JDK_ROOT/bin and FREECC_ROOT/bin to your PATH, where JDK_ROOT and FREECC_ROOT are respectively the root directories of the JDK and of where you decompressed freecc.
I also assume that you have a plain text editor in which to write source code. Microsoft Notepad will do fine, though I hope for your sake that you have something better than that in your tool stack! (If you don't, I suggest you go and get one here.)