ExampleBuilder is a CodeProcessor plug-in that, given a ProblemComponentModel, produces code to test the examples in the target language.
The plug-in expects a JVM version 1.4 or later.
The plug-in has been in use for nearly a year in its current incarnation (its previous version that used a parser was in use for about a year before then). I did most of my testing using C# problems. I verified compatibility with Java and C++ on a handful of examples, but no extensive testing has been done.
ExampleBuilder comes with code templates for Java, C++, and C#. The plug-in defines a $MAINBODY$ variable used in the templates. Code templates are important part of the plug-in Ð you must configure your FileEdit with a version derived from one of the templates supplied with the plug-in.
To install ExampleBuilder, you need to install CodeProcessor, and configure it with an editor of your choice. See instructions below for configuring CodeProcessor to use ExampleBuilder and FileEdit.
To verify the installation, go to a practice room and open a problem. Verify that examples are expanded in the output.
The most common installation problem is a JVM version mismatch. If you are running The Arena from the browser, go to Java Plugin configuration in the Control Panel, and verify that your default JRE is 1.4. If you are running The Arena in WebStart, go to "File/Preferences, Java" in the WebStart application, and verify that 1.4 is the default JRE version.
Happy coding!
kyky