Development of DSL for web applications based on the MEAN stack.
cd /path/to/project
python3 dispatcher.py
Generated code structure is in /path/to/project/gen/
.
- program loads DSL definition from
lang/mean.tx
and generates its meta model alongside its visual representation inVISUALIZATION_DIR
. - program generate program model from test case based on meta model from previous step (test program is
examples/clue-example.mean
). - dispatcher calls all the generators to fill templates.
Every template should have corresponding generator module, dispatcher imports these modules from GENERATORS_DIR
and runs theirs generate()
function.
To convert .dot
files generated by textX exports one could use [Graphviz] (http://www.graphviz.org/).