nasa / fpp

F Prime Prime: A modeling language for F Prime
https://fprime.jpl.nasa.gov
Apache License 2.0
41 stars 31 forks source link

Statemachine check #439

Closed garthwatney closed 3 weeks ago

garthwatney commented 1 month ago

Added dependency analysis and semantic checking to state machines Phase 1.

Closes #436. Closes #437.

bocchino commented 1 month ago

Per discussion, we need to check the following rules:

  1. A component containing a state machine instance must be active or queued.
  2. An active component containing a state machine instance and no other async element is valid.
bocchino commented 1 month ago

We also need to check that each state machine instance specifier in a component definition has a distinct name. I added this rule to the spec for component definitions.

garthwatney commented 1 month ago

I created a state_machine_instance directory for state machine tests I added checks for incorrect symbols in state machine instances.