Skip to content
pja35 edited this page Oct 23, 2012 · 30 revisions

Say you write a program in GOOL and want to produce Java, C++, C#, and run this output. Here is how to proceed.

Where to put GOOL source files

By default, place them in input/. You can change this in gool.properties. An example file Test.gool is provided.

Running the GOOL compiler

Run the Main() of GoolCompiler. For instance by doing: Eclipse > GOOL > gool.GoolCompiler > Run.

Retrieving the translated code

By default, it will be found in output/java, output/csharp, output/cpp. You can change this in gool.properties.

Running the translated code

Clone this wiki locally