Version

Analyze Method

Analyzes the Grammar and reports a list of warnings which may help the Grammar creator find and fix issues.
Syntax
'Declaration
 
Public Function Analyze( _
   Optional ByVal analysisOptions As GrammarAnalysisOptions _
) As GrammarAnalysisResult

Parameters

analysisOptions
The options which can be specified to customize the analysis of the grammar.

Return Value

A GrammarAnalysisResult which has a list of warnings.
Exceptions
ExceptionDescription
System.InvalidOperationExceptionOccurs when the StartSymbol of the Grammar is not set.
System.InvalidOperationExceptionOccurs when a LexerState does not have any enter symbols defined.
System.InvalidOperationExceptionOccurs when a NonTerminalSymbol in the grammar doesn't have a Rule defined or it owns a rule which is not initialized correctly.
System.InvalidOperationException Occurs when the start symbol never directly or indirectly references a terminal symbol.
Remarks

Note: the Grammar symbols and rules should be fully initialized before analysis because the Grammar will be immutable after it is analyzed.

Requirements

Target Platforms: Windows 10, Windows 8.1, Windows 8, Windows 7, Windows Server 2012, Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

See Also