Version

Search Results

LoadEbnf(Stream,Encoding) Method

Attempts to create a Grammar instance represented by the specified EBNF file stream. Syntax Parameters stream A stream containing the EBNF (Extended Backus-Naur Form) file.encoding The character encoding used in the file. UTF8 will be used if it is not specified. Return Value An EbnfLoadResult instance which descr...

LoadEbnf(String) Method

Attempts to create a Grammar instance represented by the specified EBNF content. Syntax Parameters ebnfContent A string containing the EBNF (Extended Backus-Naur Form) content. Return Value An EbnfLoadResult instance which describes the result of the parse operation and contains a reference to the created Grammar ...

LoadEbnf Method

Attempts to create a Grammar instance represented by the specified EBNF content. Overload List

Name Property (Grammar)

Gets or sets a name for this grammar definition. Syntax Exceptions Exception Description System.InvalidOperationException Occurs when the value is set and IsMutable is False.

NewLineSymbol Property

Gets a TerminalSymbol which represents newlines in a document. Syntax

NewLineSymbolName Property

Gets or sets the name that is used to reference the NewLineSymbol. Syntax Exceptions Exception Description System.InvalidOperationException Occurs when the value is set and IsMutable is False. System.ArgumentException Occurs when the specified name matches that of another symbol in the Grammar.

NonTerminalSymbols Property

Gets a collection of NonTerminalSymbol instances, each of which represents zero or more symbols in a document. Syntax Remarks Each SyntaxNode that is not a token node in the SyntaxTree generated during a parse of a document corresponds to a NonTerminalSymbol in the Grammar. The root node of the SyntaxTree will alw...

SaveEbnf(EbnfSerializationSettings) Method

Saves the Grammar represent in the EBNF file format and returns the saved content. Syntax Parameters settings The settings used to customize the EBNF serialization process. Exceptions Exception Description System.InvalidOperationException Occurs when the Grammar is not in a valid state where is can be used to pars...

SaveEbnf(Stream,Encoding,EbnfSerializationSettings) Method

Saves the Grammar in the EBNF file format to the specified stream. Syntax Parameters stream The stream to which the output is saved. The caller is responsible for disposing the stream after the Grammar is saved.encoding The character encoding to use in the file. UTF8 will be used if it is not specified.settings Th...

SaveEbnf Method

Saves the Grammar represent in the EBNF file format and returns the saved content. Overload List