This topic explains the grammar analysis performed by the Syntax Parsing Engine.
The following topics are prerequisites to understanding this topic:
This topic contains the following sections:
There are many things which are not allowed in a grammar definition (for more information refer to the Restrictions topic). However there are other things which are allowed but may not be what the grammar writer intended or may slow down the lexical or syntax analyzers. Below you can find the issues like this highlighted during grammar analysis and how to avoid them.
To determine the issues in your grammar definition you can use the Grammar.Analyze method and you can configure the analysis by passing an instance of type GrammarAnalysisOptions.
The GrammarAnalysisOptions
contains the following configurable options:
properties:
The return value of this method is an instance of type GrammarAnalysisResult, which contains the grammar and a Warnings collection containing objects of type GrammarWarning. The GrammarWarning
type has a descriptive Message property of type string and a Type property of type GrammarWarningType, which is an enumeration with the following values:
The following topics provide additional information related to this topic.