Please note : This help page is not for the latest version of Enterprise Architect. The latest help can be found here.

Profiling Grammar Parsing

When you parse a grammar that you have created, it might show errors that you cannot immediately diagnose. To help you resolve such errors, you can review the process that the parser followed to generate the AST you can see, using the Grammar Profiler.

You again parse the text in the bottom half of the Grammar Editor window, but this time the tree shows each rule that the parser attempted, where it got to and if it passed or not. Rules for opening a file, pasting a file and setting the starting rule remain the same.

Access     Analyzer | Grammar Editor > Grammar Debugger > Profiler Results

Toolbar Options



See also

Open File

Display a browser through which you can locate and open the file containing the grammar you want to edit.




Perform the parse operation.  If the parse is successful, the AST Results tab will contain the resulting AST. The Profile Results tab will contain debug information regarding the path that the parser took through your grammar.  The profile data is extremely useful when debugging a new grammar.



Select Rule


This drop down allows you to select an alternative root rule for processing your sample source.




Display this Help topic.


Learn more