Browsable LDF Grammar

CC-BY

Grammar extracted by Vadim Zaytsev, see the Grammar Zoo entry for details: doc/ldf/v16.0-xsd/extracted
Source used for this grammar: Vadim Zaytsev, Software Language Processing Suite, LDF, shared/xsd/ldf.xsd, 2008–2011, Version 28 [Explore]

Summary

Syntax

reference ::=
	string
sample ::=
	sampleType
runnable ::=
	runnableType
tail ::=
	mixedType
document ::=
	[titlePage]::titlePage [frontMatter]::topSection* [lists]::frontList+? [lexicalPart]::lexicalSection+? ([core]::structuredSection+ | [part]::[core]::structuredSection++) [backMatter]::topSection*? [annex]::structuredSection*
titlePage ::=
	([body]::body [number]::integer | [author]::string+) [topic]::string ([version]::string | [edition]::string) [status]::status [date]::string
body ::=
	[ansi]::ε
	[ecma]::ε
	[ieee]::ε
	[iso]::ε
	[iso/iet]::ε
	[itu]::ε
	[ietf]::ε
	[iec]::ε
	[oasis]::ε
	[wsa]::ε
	[w3c]::ε
status ::=
	[unknown]::ε
	[draft]::ε
	[candidate]::ε
	[proposed]::ε
	[approved]::ε
	[revised]::ε
	[obsolete]::ε
	[withdrawn]::ε
	[collection]::ε
	[trial]::ε
	[errata]::ε
	[report]::ε
generated ::=
	[index]::ε
	[fullgrammar]::ε
	[listoftables]::ε
	[listofauthors]::ε
	[listofcontents]::ε
	[listofreferences]::ε
topSection ::=
	[foreword]::simpleSection
	[designGoals]::simpleSection
	[scope]::simpleSection
	[conformance]::simpleSection
	[compliance]::simpleSection
	[compatibility]::simpleSection
	[notation]::simpleSection
	[normativeReferences]::simpleSection
	[documentStructure]::simpleSection
	[whatsnew]::simpleSection
	[placeholder]::generated
simpleSection ::=
	[title]::string? [author]::string* [content]::simpleText [id]::string?
simpleText ::=
	simpleTextElement+
simpleTextElement ::=
	[empty]::ε
	[text]::mixedType
	[figure]::simpleFigure
	[table]::simpleTable
	[list]::simpleList
	[formula]::([math]::anyMath | [mfenced]::anyMath | [mtext]::anyMath | [msub]::anyMath | [msup]::anyMath | [mrow]::anyMath | [mi]::anyMath | [mo]::anyMath | [varepsilon]::α)+
	[sample]::((α | string)* [src]::string)
	production
simpleFigure ::=
	[caption]::string [type]::string [file]::string [id]::string?
simpleTable ::=
	[header]::tableRow* [row]::tableRow+
simpleList ::=
	[item]::mixedType+
frontList ::=
	[definitions]::listOfTerms
	[abbreviations]::listOfTerms
	[languageOverview]::listOfTerms
lexicalSection ::=
	[lineContinuations]::simpleSection
	[whitespace]::simpleSection
	[tokens]::simpleSection
	[preprocessor]::simpleSection
	[literals]::simpleSection
	[lexical]::simpleSection
structuredSection ::=
	[title]::string [author]::string* structuredSectionElement+ [id]::string?
listOfTerms ::=
	[title]::string? [author]::string* [term]::([name]::string [definition]::simpleText)+ [id]::string?
tableRow ::=
	[cell]::simpleText+
structuredSectionElement ::=
	[placeholder]::generated
	normative
	informative
	production
	[references]::simpleList
	[section]::simpleSection
	[subtopic]::structuredSection
	[value]::([key]::string [data]::string)
normative ::=
	[synopsis]::simpleSection
	[description]::simpleSection
	[syntax]::simpleSection
	[constraints]::simpleSection
	[relationship]::simpleSection
	[semantics]::simpleSection
	[default]::simpleSection
informative ::=
	[rationale]::simpleSection
	[example]::simpleSection
	[update]::simpleSection
runnableType ::=
	[context]::string [main]::string [argument]::string* [yields]::string [language]::string [version]::string? [id]::string?
mixedType ::=
	(α | string)*
formula ::=
	α+
keyword ::=
	string
code ::=
	string
link ::=
	[text]::string? [reference]::string
math ::=
	anyMath
mfenced ::=
	anyMath
mtext ::=
	anyMath
msub ::=
	anyMath
msup ::=
	anyMath
mrow ::=
	anyMath
mi ::=
	anyMath
mo ::=
	anyMath
varepsilon ::=
	ε
anyMath ::=
	(α | string)*

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