Derivations and Parse Trees
Once you have created a grammar, you can use it to construct derivations of strings in the language. As you build your derivation, Automat displays the corresponding parse tree.
Deriving a String
To construct a derivation, you work with the list of productions in the main editing area, the parse tree shown in the graphics area, and the step
buttons in the Derivation
area.
- Examine the current string shown in the graphics area and the Derivation area. Decide which nonterminal you want to expand.
- Click on the corresponding nonterminal in the parse tree to select it.
- In the list of productions, selct a production having that nonterminal symbol on the left.
- In the
Derivation
area, click the+step
button.
The derivation and the parse tree will be updated by expanding the nonterminal using the selected production.