Formal Syntax

This content is no longer actively maintained. It is provided as is, for anyone who may still be using these technologies, with no warranties or claims of accuracy with regard to the most recent product version or service release.

 

This RTF Specification describes RTF using the following syntax, based on Backus-Naur Form.

Syntax Meaning
#PCDATA Text (without control words).
#SDATA Hexadecimal data.
#BDATA Binary data.
'c' A literal.
<text> A nonterminal.
A The (terminal) control word a, without a parameter.
a or aN The (terminal) control word a, with a parameter.
a? Item a is optional.
a+ One or more repetitions of item a.
a* Zero or more repetitions of item a.
a b Item a followed by item b.
a | b Item a or item b.
a & b Item a and/or item b, in any order.