Stateflow User's Guide Previous page   Next Page

Parsing Stateflow Diagrams

When you begin a build for a target as described in Starting the Build, the parser evaluates the graphical and nongraphical objects in each Stateflow machine against the supported Stateflow notation and the action language syntax. This section describes the Stateflow parser and how its messages appear with the following topics:

Calling the Stateflow Parser

Apart from building a target, you can call the Stateflow parser to check the syntax of your Stateflow diagrams in one of the following ways:

In all cases, the Stateflow Builder window displays when parsing is complete. If parsing is unsuccessful (that is, an error is detected), the Stateflow diagram editor automatically appears with the highlighted object causing the first parse error. In the Stateflow Builder window, each error is displayed with a leading red button icon. You can double-click any error in this window to bring its source Stateflow diagram to the front with the source object highlighted. See Parsing Diagram Example for example displays of parsing results in the Stateflow Builder window.


Previous page  Starting the Build Parser Error Checking Next page

© 1994-2005 The MathWorks, Inc.