The following tables list the members exposed by Grammar.
Name | Description | |
---|---|---|
Grammar Constructor | Creates a new instance of the Grammar class. |
Name | Description | |
---|---|---|
DefaultWhitespacePattern | The default regular expression pattern used to identify whitespace characters other than newlines: [ \t]+ |
Name | Description | |
---|---|---|
EndOfStreamSymbol | Gets a TerminalSymbol which represents the end of the input stream. | |
EndOfStreamSymbolName | Gets or sets the name that is used to reference the EndOfStreamSymbol. | |
IsMutable | Gets the value indicating whether the Grammar or any of its related instances can be modified. | |
LexerStates | Gets the set of lexer states in which the lexical analyzer can possible be when analyzing a document. | |
Name | Gets or sets a name for this grammar definition. | |
NewLineSymbol | Gets a TerminalSymbol which represents newlines in a document. | |
NewLineSymbolName | Gets or sets the name that is used to reference the NewLineSymbol. | |
NonTerminalSymbols | Gets a collection of NonTerminalSymbol instances, each of which represents zero or more symbols in a document. | |
StartSymbol | Gets or sets a the NonTerminalSymbol which should be represented by the SyntaxNode at the root of the SyntaxTree. | |
SupportsParsing | Gets or sets the value indicating whether the Grammar supports syntax analysis. | |
SyntaxTreePruningMode | Gets or sets the value indicating how the syntax tree should be pruned. | |
UnrecognizedSymbol | Gets a TerminalSymbol which represents unrecognized content in a document. | |
UnrecognizedSymbolName | Gets or sets the name that is used to reference the UnrecognizedSymbol. | |
WhitespacePattern | Gets or sets the regular expression pattern used to identify non-newline whitespace by the syntax analysis layer. | |
WhitespaceSymbol | Gets a TerminalSymbol which represents non-newline whitespace in a document. | |
WhitespaceSymbolName | Gets or sets the name that is used to reference the WhitespaceSymbol. |
Name | Description | |
---|---|---|
Analyze | Analyzes the Grammar and reports a list of warnings which may help the Grammar creator find and fix issues. | |
Clone | Creates a mutable copy of the Grammar. | |
GetAllSymbols | Returns a collection of all symbols in the grammar. | |
InitializeFrom | Clears all data in the Grammar and copies the data from the specified Grammar. | |
LoadEbnf | Overloaded. Attempts to create a Grammar instance represented by the specified EBNF content. | |
SaveEbnf | Overloaded. Saves the Grammar represent in the EBNF file format and returns the saved content. | |
SymbolFromName | Gets the TerminalSymbol or NonTerminalSymbol with the specified name in the Grammar. | |
TerminalSymbolFromName | Gets the TerminalSymbol with the specified name in the Grammar. | |
ToString | Returns the string representation of this object. |