Download / Usage of the C* compiler

The C* compiler, version 0.3, is in the public domain, and is released under the GNU GPL version 2. That means you may read the source code, distribute it, and distribute modified versions of it. However, you may not claim that it's your own. Further, if you distribute a modified version of this compiler, you must provide the source code with it. (You do not need to provide the source for the C* programs you compile using it.)

Download source

To install, extract the package to a directory, then run the make command in that directory. You need gcc, bison and flex to build and install the compiler, which are present on most UNIX systems including most distributions of Linux and Mac OS X. Windows users can install a UNIX environment like mingw, or can pay me to compile a Windows executable.

The result should be a single executable named "cstar" (but you can rename it as you like). This program simply takes a C* program, either on standard input or as the first argument to the program, and compiles it to C++ code on standard output. So, using most command line programs, you should be able to type a command like the following to compile your program:

cstar < program.cf > program.cc

where "program.cf" is your program written in C*. Then you can compile it to an executable by compiling "program.cc" with a C++ compiler. For example, using gcc:

g++ program.cc -o program

where "program" is the executable program that you can run.

If you're using the compiler for anything, I'd appreciate it if you would tell me.