Testing and using the object frontend

Once you have written code to setup and register your new breve object type, you'll want to test that breve can locate objects, instantiate them and call their methods. To do so, you can add your frontend object type to the breve engine, and then instantiate an object from steve code.

To add your frontend object type to the breve engine, edit the file kernel/frontendAPI.c, and look at the function breveFrontendInit. The existing breve applications call this function to create a breve engine. At the bottom of this function, you can create and register your custom language frontend.

brEngineRegisterObjectType(frontend->engine, functionToCreateLanguageFrontend());

After recompiling breve with this change, it should be possible to instantiate an object from your new language frontend from directly within a steve simulation. See the Java example java/JavaTest.tz for more information.