Tag: Code Generation

Online Python code generator

We recently introduced the online code template editor in GenMyModel for creating  your own templates which generate code from your diagrams.

The editor is a full-featured MTL tool runing in the browser. Below are a few snapshots and details about the Python template of our library. In our sample library, the Python template produces the classes, attributes, inheritance relations, etc from the class diagrams. The template takes a UML model, browses its elements and translates the elements into code. The template is written in the standard MTL syntax (like Acceleo) and can easily be customized.

Continue reading

Introducing the GenMyModel code template editor

We are excited to unveil the code template editor in GenMyModel.

It’s now possible to create, modify and share Acceleo templates that generate code from your online diagrams. For example, you can design a code template that takes your class diagram and produces your REST API interfaces. Or it could just be your snippet generator. You decide what you generate and everything happens in the browser. The online editor relies on the Acceleo syntax (propulsed by Obeo) and provides live compilation, error checking, syntax coloring, auto-completion, generation preview and run.

Continue reading

GenMyModel + Github + JMerge = (Generating -> Coding)*

Without any doubt, automatic code generation from models is a strong feature allowing to save time and to keep consistency between models and code. One of the feature proposed by GenMyModel is to generate java source code from your model into Github repositories (config is accessible from “Tools->Generate->Generate Configurations…”). Here, we show how GenMyModel generation […]

Continue reading