Version

Grammar Class Members

The following tables list the members exposed by Grammar.

Public Constructors
 NameDescription
Public ConstructorGrammar ConstructorCreates a new instance of the Grammar class.  
Public Fields
 NameDescription
Public FieldDefaultWhitespacePatternThe default regular expression pattern used to identify whitespace characters other than newlines: [ \t]+  
Public Properties
 NameDescription
Public PropertyEndOfStreamSymbolGets a TerminalSymbol which represents the end of the input stream.  
Public PropertyEndOfStreamSymbolNameGets or sets the name that is used to reference the EndOfStreamSymbol.  
Public PropertyIsMutableGets the value indicating whether the Grammar or any of its related instances can be modified.  
Public PropertyLexerStatesGets the set of lexer states in which the lexical analyzer can possible be when analyzing a document.  
Public PropertyNameGets or sets a name for this grammar definition.  
Public PropertyNewLineSymbolGets a TerminalSymbol which represents newlines in a document.  
Public PropertyNewLineSymbolNameGets or sets the name that is used to reference the NewLineSymbol.  
Public PropertyNonTerminalSymbolsGets a collection of NonTerminalSymbol instances, each of which represents zero or more symbols in a document.  
Public PropertyStartSymbolGets or sets a the NonTerminalSymbol which should be represented by the SyntaxNode at the root of the SyntaxTree.  
Public PropertySupportsParsingGets or sets the value indicating whether the Grammar supports syntax analysis.  
Public PropertySyntaxTreePruningModeGets or sets the value indicating how the syntax tree should be pruned.  
Public PropertyUnrecognizedSymbolGets a TerminalSymbol which represents unrecognized content in a document.  
Public PropertyUnrecognizedSymbolNameGets or sets the name that is used to reference the UnrecognizedSymbol.  
Public PropertyWhitespacePatternGets or sets the regular expression pattern used to identify non-newline whitespace by the syntax analysis layer.  
Public PropertyWhitespaceSymbolGets a TerminalSymbol which represents non-newline whitespace in a document.  
Public PropertyWhitespaceSymbolNameGets or sets the name that is used to reference the WhitespaceSymbol.  
Public Methods
 NameDescription
Public MethodAnalyzeAnalyzes the Grammar and reports a list of warnings which may help the Grammar creator find and fix issues.  
Public MethodCloneCreates a mutable copy of the Grammar.  
Public MethodGetAllSymbolsReturns a collection of all symbols in the grammar.  
Public MethodInitializeFromClears all data in the Grammar and copies the data from the specified Grammar.  
Public Methodstatic (Shared in Visual Basic)LoadEbnfOverloaded. Attempts to create a Grammar instance represented by the specified EBNF content.  
Public MethodSaveEbnfOverloaded. Saves the Grammar represent in the EBNF file format and returns the saved content.  
Public MethodSymbolFromNameGets the TerminalSymbol or NonTerminalSymbol with the specified name in the Grammar.  
Public MethodTerminalSymbolFromNameGets the TerminalSymbol with the specified name in the Grammar.  
Public MethodToStringReturns the string representation of this object.  
See Also