CFG Plugin2.3 Output Syntax

From FSL
Jump to: navigation, search

The CFG plugin generates a simplified CFG from the input CFG. Specifically, it removes unreachable and nongenerating productions, expands repetition constructs, and inserts the new start symbol used in LR table generation. Since this does not compile into any other logic, any instance of MOP will need to handle that step. Additionally, the creation events and enables sets are visible at this stage as are some monitor generation statistics.


The following example monitors hasNext* next for violation.

<Events>hasnext next</Events>
<Formula>S -> hasnext HasNextStar next,
HasNextStar -> HasNextStar hasnext | epsilon </Formula>
<CreationEvents>hasnext next</CreationEvents>
<EnableSets>// fail Enables
{hasnext=[[], [hasnext], [hasnext, next], [next]], next=[[],
[hasnext], [hasnext, next], [next]]}</EnableSets>
Personal tools