Browsable WordprocessingML Simplified Grammar

CC-BY

Grammar extracted by Vadim Zaytsev, see the Grammar Zoo entry for details: doc/office/wordprocessingml/simplified/extracted
Source used for this grammar: Hugo Brunelière, WordprocessingMLSimplified 1.2, MSOfficeWord_WordprocessingMLSimplified.ecore, 2005/07/01

Summary

Syntax

Integer ::=
	integer
String ::=
	string
Boolean ::=
	"true"
	"false"
StringProperty ::=
	[val]::String
StringType ::=
	StringProperty
StringType ::=
	Text
StringType ::=
	DelText
StringType ::=
	InstrText
StringType ::=
	DelInstrText
StringType ::=
	[val]::String
BreakType ::=
	[bt_page]::ε
	[bt_column]::ε
	[bt_text_wrapping]::ε
NoteValue ::=
	[ftn_normal]::ε
	[ftn_separator]::ε
	[ftn_continuation_separator]::ε
	[ftn_continuation_notice]::ε
OnOffType ::=
	[oot_on]::ε
	[oot_off]::ε
FldCharTypeProperty ::=
	[fctp_begin]::ε
	[fctp_separate]::ε
	[fctp_end]::ε
WordDocument ::=
	[ignoreSubtree]::StringProperty [ignoreElements]::StringProperty [body]::BodyElt
BodyElt ::=
	[be_wordDocument]::WordDocument [blockLevelElts]::BlockLevelElt+
BlockLevelElt ::=
	BlockLevelChunkElt
BlockLevelChunkElt ::=
	ParaElt
ParaElt ::=
	[pContentElts]::ParaContentElt+
ParaContentElt ::=
	RunElt
RunElt ::=
	[rContentElts]::RunContentElt+
RunContentElt ::=
	BreakElt
RunContentElt ::=
	NoBreakHyphen
RunContentElt ::=
	SoftHyphen
RunContentElt ::=
	AnnotationRef
RunContentElt ::=
	FootnoteRef
RunContentElt ::=
	EndnoteRef
RunContentElt ::=
	Separator
RunContentElt ::=
	ContinuationSeparator
RunContentElt ::=
	PgNum
RunContentElt ::=
	Cr
RunContentElt ::=
	Picture
RunContentElt ::=
	Tab
RunContentElt ::=
	Text
RunContentElt ::=
	DelText
RunContentElt ::=
	InstrText
RunContentElt ::=
	DelInstrText
RunContentElt ::=
	Footnote
RunContentElt ::=
	Endnote
RunContentElt ::=
	Symbol
RunContentElt ::=
	FldChar
BreakElt ::=
	[type]::BreakType
Text ::=
	[rce_rElt]::RunElt [val]::String
DelText ::=
	[rce_rElt]::RunElt [val]::String
InstrText ::=
	[rce_rElt]::RunElt [val]::String
DelInstrText ::=
	[rce_rElt]::RunElt [val]::String
NoBreakHyphen ::=
	[rce_rElt]::RunElt
SoftHyphen ::=
	[rce_rElt]::RunElt
AnnotationRef ::=
	[rce_rElt]::RunElt
FootnoteRef ::=
	[rce_rElt]::RunElt
EndnoteRef ::=
	[rce_rElt]::RunElt
Separator ::=
	[rce_rElt]::RunElt
ContinuationSeparator ::=
	[rce_rElt]::RunElt
PgNum ::=
	[rce_rElt]::RunElt
Cr ::=
	[rce_rElt]::RunElt
Footnote ::=
	[rce_rElt]::RunElt [n_blockLevelElts]::BlockLevelElt+ [type]::NoteValue [suppressRef]::OnOffType
Endnote ::=
	[rce_rElt]::RunElt [n_blockLevelElts]::BlockLevelElt+ [type]::NoteValue [suppressRef]::OnOffType
NoteElt ::=
	Footnote
NoteElt ::=
	Endnote
Picture ::=
	[rce_rElt]::RunElt
Symbol ::=
	[rce_rElt]::RunElt [font]::StringType [char]::StringType
SymElt ::=
	Symbol
SymElt ::=
	[font]::StringType [char]::StringType
Tab ::=
	[rce_rElt]::RunElt
FldChar ::=
	[rce_rElt]::RunElt [fldData]::StringType [fldCharType]::FldCharTypeProperty [fldLock]::OnOffType
FldCharElt ::=
	FldChar
FldCharElt ::=
	[fldData]::StringType [fldCharType]::FldCharTypeProperty [fldLock]::OnOffType

GrammarLabMaintained by Dr. Vadim Zaytsev a.k.a. @grammarware. Last updated in September 2015. []