Version

Generate EBNF File From a Grammar (Syntax Parsing Engine)

Topic Overview

Purpose

This topic explains the process of creating EBNF content from a grammar.

Required background

The following topics are prerequisites to understanding this topic:

Topic Purpose

This topic provides an overview of the Syntax Parsing Engine.

This topic provides an overview of the Syntax Parsing Engine’s Grammar.

This topic gives an overview of the EBNF file format used to define a grammar.

Process Overview

Overview

You can create an EBNF file from a Grammar instance using the following methods of the Grammar class:

Both methods accept an argument of type EbnfSerializationSettings with the following properties:

Property Description

Indicates whether to write out the EBNF file with the alternate operator syntax.

Note
Note

For more information about the alternate operator syntax, please see the EBNF File Format Overview topic.

Topics

The following topics provide additional information related to this topic.

Topic Purpose

This topic explains the format of the special sequence sections in the EBNF file used to configure the grammar.

This topic explains the deviations from the ISO 14977 specification in the EBNF format used by the Syntax Parsing Engine.

This topic explains the process of creating a grammar from EBNF content.