JSSM, a JavaScript state machine - the FSM for FSL
    Preparing search index...

    Function fslDiagnostics

    • Parse then compile text, returning a list of diagnostics — empty when the machine parses and compiles cleanly.

      Parameters

      • text: string

      Returns Diagnostic[]

      fslDiagnostics('a -> b;');            // => []
      fslDiagnostics('a -> ;')[0].severity; // => 'error'
      // a `required` property no state defines is a construction-time error:
      fslDiagnostics('property p required; a -> b;')[0].severity; // => 'error'