Generating Code for State Machines
...This section describes the state machine implementation strategies and coding aspects for hierarchical state machines in C and C++. Class ToastOven with a hierarchical state machine used in the following examples of code generation...
https://www.state-machine.com/qm/ce_sm.html
Introduction to Stateflow HDL Code Generation - MathWorks
...This example shows how to generate HDL code for a subsystem that includes Stateflow charts....
https://www.mathworks.com/help/hdlcoder/ug/introduction-to-stateflow-hdl-code-generation.html
GitHub - tzijnge/FloHsm: Code generation tool for C++ hierarchical ...
...Code generation tool written in Python for C++ hierarchical state machines. The basic idea is to design your state machine graphically in PlantUml and then use the PlantUml input file also as an input file for FloHsm.py to generate C++ code....
https://github.com/tzijnge/FloHsm
Hierarchical State Machines - a Fundamentally Important Way of Design
...With just a bit of practice, you will forget that you are "translating" state models into code; rather, you will directly code state machines in C or C++, just as you directly code classes in C++ or Java....
https://www.cis.upenn.edu/~lee/06cse480/lec-HSM.pdf
From design to code with ease [SinelaboreRT]
...Code generator to build modern and robust event-driven embedded real-time systems based on hierarchical state machines created with UML tools like Enterprise Architect, UModel, Magic Draw, Papyrus, Cadifra....
https://www.sinelabore.de/
Introduction to Hierarchical State Machines (HSMs) - Barr Group
...The fundamental character of state nesting in Hierarchical State Machines (HSMs) comes from combining hierarchy with programming-by-difference, which is otherwise known in software as inheritance....
https://barrgroup.com/blog/introduction-hierarchical-state-machines
About QM - state machine
...QM (QP Modeler) is a freeware Model-Based Design (MBD) and automatic code generation tool for real-time embedded software in C or C++ based on Hierarchical State Machines? (UML Statecharts) and the event-driven QP Real-Time Event Frameworks (RTEFs)?....
https://www.state-machine.com/qm/
Implementing a "hierarchical state machine" (HSM) in modern C++
...And when I noticed how messy my old GUI code was and then found this pattern, I thought of giving it a shot. In particular, my "ideal" interface for the HSM would look like this:...
https://stackoverflow.com/questions/72133484/implementing-a-hierarchical-state-machine-hsm-in-modern-c
Code Generators - itemis
...Ultimately, you will need your state machine not only as a nice graphical statechart model. This chapter explains how to generate it as executable code. You can integrate the generated code with your software project as a component....
https://www.itemis.com/en/products/itemis-create/documentation/user-guide/codegen_generating_state_machine_code
CHSM - Hierarchical State Machine (HSM) Framework for C
...?? Experimental code, expect breaking changes. The project consists of two main parts: an editor (CHSM) to draw state machines and a C library (CRF) that is able to drive the C code generated by the editor....
https://github.com/jszeman/chsm