Version

SaveEbnf(Stream,Encoding,EbnfSerializationSettings) Method

Saves the Grammar in the EBNF file format to the specified stream.
Syntax
'Declaration
 
Public Overloads Sub SaveEbnf( _
   ByVal stream As Stream, _
   Optional ByVal encoding As Encoding, _
   Optional ByVal settings As EbnfSerializationSettings _
) 
public void SaveEbnf( 
   Stream stream,
   Encoding encoding,
   EbnfSerializationSettings settings
)

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
The settings used to customize the EBNF serialization process.
Exceptions
ExceptionDescription
System.ArgumentNullExceptionOccurs when the specified stream is null.
System.InvalidOperationException Occurs when the Grammar is not in a valid state where is can be used to parse documents.
Remarks

EBNF, which stands for Extended Backus–Naur Form, is a format for files which can describe context-free grammars.

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