CIF code generation to JS/HTML
We can generate from CIF models already code in various languages, e.g., Java, C, PLC, etc. It may be useful to also be able to generate JavaScript code. Then it can be run in a browser, which mostly everyone has already installed. Since a browser also supports SVG, we could even generate an HTML page that includes the SVG image, the JavaScript and connects the two (using the SVG input/output mappings from the CIF model). A CIF model could then be simulated/executed within a browser.
Concretely the idea is to:
- Add JavaScript code generation.
- Add HTML code generation, which includes the JavaScript code generation, but also an HTML page, the SVG image, the linking, and some very basic simulation features (e.g. console output).
This will be picked up by @riklubking:
- https://gitlab.eclipse.org/riklubking/escet/-/wikis/home
- https://gitlab.eclipse.org/riklubking/escet/-/milestones
Merge requests:
-
CIF code generator: add JavaScript as code generation target (!681 (merged)) -
Add utils classes for JavaScript code generation (!686 (merged)) -
JavaScript code generation: added UI/CSS (!699 (merged)) -
JavaScript code generation: generate variables and functions boilerplate (!704 (merged)) -
Generate variables and functions for JavaScript export target (!710 (merged)) -
CIF code generator: add SVG boilerplate code to JavaScript code generator (!716 (closed))-
CIF codegen: add SVG code generation to JavaScript code generator (!721 (merged)) -- This replaces !716 (closed), as that couldn't be merged.
-
Any follow-ups are part of #715.
Edited by Dennis Hendriks