escet merge requestshttps://gitlab.eclipse.org/eclipse/escet/escet/-/merge_requests2024-03-26T18:06:31Zhttps://gitlab.eclipse.org/eclipse/escet/escet/-/merge_requests/841#715 JS/HTML codegen: better log panel performance + no state printing by def...2024-03-26T18:06:31ZDennis Hendriks#715 JS/HTML codegen: better log panel performance + no state printing by default + settings button/menu* Best to review per commit.
* Changes:
* State printing disabled by default (JS/HTML).
* Improved performance of log panel (HTML).
* Settings button/menu to enable/disable state and transition printing (HTML).
* The settings m...* Best to review per commit.
* Changes:
* State printing disabled by default (JS/HTML).
* Improved performance of log panel (HTML).
* Settings button/menu to enable/disable state and transition printing (HTML).
* The settings menu is opened/closed by clicking the 'Settings' button.
* The entire menu item is clickable to toggle settings.
* Documentation improvements for state/transition printing (JS).
Addresses #715v3.0https://gitlab.eclipse.org/eclipse/escet/escet/-/merge_requests/824#787 Assignments on edges / SVG input mappings crash on wrapping expressions2024-03-18T21:13:57ZFerdie Reijnen#787 Assignments on edges / SVG input mappings crash on wrapping expressionsCloses #787
Addresses #227
I moved some tests around. Because if we have failing during 'normal' type checking, the post checking will not happen.Closes #787
Addresses #227
I moved some tests around. Because if we have failing during 'normal' type checking, the post checking will not happen.v3.0https://gitlab.eclipse.org/eclipse/escet/escet/-/merge_requests/801#772 #773 CIF examples: fix indentation and execution of 'button_lamp_timer_g...2024-02-09T13:09:39ZDennis Hendriks#772 #773 CIF examples: fix indentation and execution of 'button_lamp_timer_genplc.tooldef'* I used two commits, one for #772 and one for #773:
* #772 CIF examples: fix button_lamp_timer_genplc.tooldef.
* #773 CIF examples: fix indentation in button_lamp_timer_genplc.tooldef.
* Also added commas after last arguments.
...* I used two commits, one for #772 and one for #773:
* #772 CIF examples: fix button_lamp_timer_genplc.tooldef.
* #773 CIF examples: fix indentation in button_lamp_timer_genplc.tooldef.
* Also added commas after last arguments.
* Make it easier to adapt the script if extra options are needed.
Closes #772, #773v3.0https://gitlab.eclipse.org/eclipse/escet/escet/-/merge_requests/796#767 Product cell benchmark model comment fix: it has a 'feed belt'.2024-02-05T18:41:44ZDennis Hendriks#767 Product cell benchmark model comment fix: it has a 'feed belt'.Closes #767Closes #767v3.0https://gitlab.eclipse.org/eclipse/escet/escet/-/merge_requests/789#762 CIF Ecore docs: add missing element type for 'Delete' function.2024-02-05T18:42:12ZDennis Hendriks#762 CIF Ecore docs: add missing element type for 'Delete' function.Closes #762Closes #762v3.0https://gitlab.eclipse.org/eclipse/escet/escet/-/merge_requests/786#756 Remove 'no duplicate state annotations per automaton' constraint.2024-01-31T09:59:15ZDennis Hendriks#756 Remove 'no duplicate state annotations per automaton' constraint.Closes #756Closes #756v3.0https://gitlab.eclipse.org/eclipse/escet/escet/-/merge_requests/784#715 HTML codegen: use a queue for SVG input.2024-01-31T10:51:01ZDennis Hendriks#715 HTML codegen: use a queue for SVG input.- Best to review per commit.
- JS/HTML codegen: add warning logging support.
- HTML codegen: Use a queue for SVG input:
- The queue preserves the order of the clicks.
- If the clicked element is not enabled, a warning is printed and ...- Best to review per commit.
- JS/HTML codegen: add warning logging support.
- HTML codegen: Use a queue for SVG input:
- The queue preserves the order of the clicks.
- If the clicked element is not enabled, a warning is printed and the click is ignored, just like in the simulator.
- The queue consists of functions, such that we can delay determining the event until the click is at the head of the queue, to evaluate it in the proper state, also like in the simulator.
- Also fixed hover CSS for same SVG input element id in different SVGs, by using the query selector that first selects on the SVG image and only then on the SVG element id.
Addresses #715v3.0https://gitlab.eclipse.org/eclipse/escet/escet/-/merge_requests/778#751 Fixed 'Sumpremica' typo in Ball sorting model source information.2024-01-28T13:27:41ZDennis Hendriks#751 Fixed 'Sumpremica' typo in Ball sorting model source information.Closes #751Closes #751v3.0https://gitlab.eclipse.org/eclipse/escet/escet/-/merge_requests/777#750 Fix typos (plural->singular) in PlantsRefsReqsChecker warnings.2024-01-28T13:27:07ZDennis Hendriks#750 Fix typos (plural->singular) in PlantsRefsReqsChecker warnings.Closes #750Closes #750v3.0https://gitlab.eclipse.org/eclipse/escet/escet/-/merge_requests/776#749 Removed trailing space from 'cif.bnf'.2024-01-27T19:24:45ZDennis Hendriks#749 Removed trailing space from 'cif.bnf'.Fixes #749Fixes #749v3.0https://gitlab.eclipse.org/eclipse/escet/escet/-/merge_requests/766#715 JS codegen: fix init of constants defined using other constants.2024-01-12T08:32:54ZDennis Hendriks#715 JS codegen: fix init of constants defined using other constants.* Fixes the issue discussed at https://gitlab.eclipse.org/eclipse/escet/escet/-/issues/715#note_1611585.
Addresses #715* Fixes the issue discussed at https://gitlab.eclipse.org/eclipse/escet/escet/-/issues/715#note_1611585.
Addresses #715v3.0https://gitlab.eclipse.org/eclipse/escet/escet/-/merge_requests/762#715 Replace final C89 to JavaScript in JS documentation.2024-01-09T11:33:42ZMartijn Goorden#715 Replace final C89 to JavaScript in JS documentation.Minor documentation improvement.
Addresses #715.Minor documentation improvement.
Addresses #715.v3.0https://gitlab.eclipse.org/eclipse/escet/escet/-/merge_requests/755#734 CIF Ecore docs: fix 'SwitchExpression.elseMandatory' description.2024-01-04T13:04:02ZDennis Hendriks#734 CIF Ecore docs: fix 'SwitchExpression.elseMandatory' description.Closes #734Closes #734v3.0https://gitlab.eclipse.org/eclipse/escet/escet/-/merge_requests/752#730 CIF simulator: fixed print output to file in non-existing dir.2024-01-03T09:57:14ZDennis Hendriks#730 CIF simulator: fixed print output to file in non-existing dir.Closes #730Closes #730v3.0https://gitlab.eclipse.org/eclipse/escet/escet/-/merge_requests/748#715 HTML codegen: support SVG copy/move declarations2024-01-03T13:30:40ZDennis Hendriks#715 HTML codegen: support SVG copy/move declarations* Best to review per commit.
* Also checks that no CIF/SVG declarations get lost during codegen.
* And improves JavaDoc for 'gencodeSvgOut'.
Addresses #715* Best to review per commit.
* Also checks that no CIF/SVG declarations get lost during codegen.
* And improves JavaDoc for 'gencodeSvgOut'.
Addresses #715v3.0https://gitlab.eclipse.org/eclipse/escet/escet/-/merge_requests/747#715 HTML codegen: fix and improve print declarations and logging2024-01-03T09:55:38ZDennis Hendriks#715 HTML codegen: fix and improve print declarations and logging* Best to review per commit.
* Fixes:
* Fixed handling of print declaration stdout/stderr/file targets, with red coloring for stderr in HTML log panel. No coloring for browser console logging.
* Fixed string escaping, for among other...* Best to review per commit.
* Fixes:
* Fixed handling of print declaration stdout/stderr/file targets, with red coloring for stderr in HTML log panel. No coloring for browser console logging.
* Fixed string escaping, for among others: log output, certain runtime errors, and state printing.
* Fixed HTML-escaping for logging to log panel.
* Fixed a CSS style with invalid property value (not end user visible): `display` does not support `visible` as value. Changed to `inherit` as counterpart of `none`.
* Improvements:
* Reduced HTML log panel horizontal margin.
* Use Unix newline for log panel, not Windows newlines. The `\r` is not needed.
* Improved empty line logging output. Now: after everything is printed for initial state, and after everything is printed for a transition.
* Introduced variables to control printing state/transition output (enable or disable it).
* Updated/extended JavaScript code generation documentation.
Addresses #715v3.0https://gitlab.eclipse.org/eclipse/escet/escet/-/merge_requests/746#715 Fix JS/HTML code generation for tuples2024-01-02T13:12:38ZDennis Hendriks#715 Fix JS/HTML code generation for tuples- Fixed generated tuple constructors.
- Fixed generated tuple copy methods.
- Fixed generated tuple 'toString' methods.
- Use single quotes for strings in generated JS code.
Addresses #715- Fixed generated tuple constructors.
- Fixed generated tuple copy methods.
- Fixed generated tuple 'toString' methods.
- Use single quotes for strings in generated JS code.
Addresses #715v3.0https://gitlab.eclipse.org/eclipse/escet/escet/-/merge_requests/745#715 JavaScript/HTML codegen: fix function parameter and local variable refer...2023-12-29T18:23:52ZDennis Hendriks#715 JavaScript/HTML codegen: fix function parameter and local variable references* Best to review per commit.
* Function JS/HTML code generation changes that are the main scope of this merge request:
* Improved exception message.
* Use single quotes for strings in generated JS code.
* No compile errors for unre...* Best to review per commit.
* Function JS/HTML code generation changes that are the main scope of this merge request:
* Improved exception message.
* Use single quotes for strings in generated JS code.
* No compile errors for unreachable statements in JS code, unlike Java.
* Various changes for references, reading variables, writing variables, etc.
* Other non-JS/HTML-specific changes (not end user visible for the other target languages):
* No more references to commented out code to `readOnly` from `VariableInformation`, as that field doesn't exist.
* Removed `VariableInformation.isReference`, as only assigned, copied, etc, but never read.
* Proper and consistent marking of temporary variables.
* Renamed `VariableInformation.targetName` to `targetRef`.
* Renamed `CodeGen.getTargetName` to `getTargetRef`.
* Implement target variable name logic in `getTargetVariableName` instead of in `getTargetRef`. The reference should default to the name, not the other way around. Then also Simulink code generation does not need to override `getTargetVariableName` anymore.
* Renamed `SimulinkCodeGen.simulinkTargetNameMap` to `simulinkTargetRefMap`.
* Renamed `SimulinkCodeGen.setupVarmaps` to `setupVarMaps`.
* Some other renaming etc, for consistency.
* Add `CodeGen.getPrefix()` and use it in `CodeGen`.
Addresses #715v3.0https://gitlab.eclipse.org/eclipse/escet/escet/-/merge_requests/740#725 Generated CIF simulator debug code misses exit argument for application.run2023-12-25T08:45:23ZFerdie Reijnen#725 Generated CIF simulator debug code misses exit argument for application.runCloses #725Closes #725v3.0https://gitlab.eclipse.org/eclipse/escet/escet/-/merge_requests/739#723 JavaDoc fixes: '{@Link ...}' to '{@link ...}'.2023-12-24T11:52:16ZDennis Hendriks#723 JavaDoc fixes: '{@Link ...}' to '{@link ...}'.Closes #723Closes #723v3.0