Permalink
Find file
Fetching contributors…
Cannot retrieve contributors at this time
1097 lines (1096 sloc) 24.7 KB
<?xml version="1.0" encoding="UTF-8"?>
<xns1:grammar xmlns:xns1="http://planet-sl.org/bgf">
<root>reference</root>
<root>sample</root>
<root>runnable</root>
<root>tail</root>
<root>document</root>
<xns1:production>
<nonterminal>reference</nonterminal>
<xns1:expression>
<value>string</value>
</xns1:expression>
</xns1:production>
<xns1:production>
<nonterminal>sample</nonterminal>
<xns1:expression>
<nonterminal>sampleType</nonterminal>
</xns1:expression>
</xns1:production>
<xns1:production>
<nonterminal>runnable</nonterminal>
<xns1:expression>
<nonterminal>runnableType</nonterminal>
</xns1:expression>
</xns1:production>
<xns1:production>
<nonterminal>tail</nonterminal>
<xns1:expression>
<nonterminal>mixedType</nonterminal>
</xns1:expression>
</xns1:production>
<xns1:production>
<nonterminal>ListOfTerms</nonterminal>
<xns1:expression>
<sequence>
<xns1:expression>
<optional>
<xns1:expression>
<selectable>
<selector>id</selector>
<xns1:expression>
<value>string</value>
</xns1:expression>
</selectable>
</xns1:expression>
</optional>
</xns1:expression>
<xns1:expression>
<optional>
<xns1:expression>
<selectable>
<selector>title</selector>
<xns1:expression>
<value>string</value>
</xns1:expression>
</selectable>
</xns1:expression>
</optional>
</xns1:expression>
<xns1:expression>
<optional>
<xns1:expression>
<plus>
<xns1:expression>
<selectable>
<selector>author</selector>
<xns1:expression>
<value>string</value>
</xns1:expression>
</selectable>
</xns1:expression>
</plus>
</xns1:expression>
</optional>
</xns1:expression>
<xns1:expression>
<plus>
<xns1:expression>
<selectable>
<selector>term</selector>
<xns1:expression>
<sequence>
<xns1:expression>
<selectable>
<selector>name</selector>
<xns1:expression>
<value>string</value>
</xns1:expression>
</selectable>
</xns1:expression>
<xns1:expression>
<selectable>
<selector>definition</selector>
<xns1:expression>
<nonterminal>SimpleText</nonterminal>
</xns1:expression>
</selectable>
</xns1:expression>
</sequence>
</xns1:expression>
</selectable>
</xns1:expression>
</plus>
</xns1:expression>
</sequence>
</xns1:expression>
</xns1:production>
<xns1:production>
<nonterminal>ListOfInternalLinks</nonterminal>
<xns1:expression>
<plus>
<xns1:expression>
<selectable>
<selector>link</selector>
<xns1:expression>
<sequence>
<xns1:expression>
<selectable>
<selector>text</selector>
<xns1:expression>
<value>string</value>
</xns1:expression>
</selectable>
</xns1:expression>
<xns1:expression>
<optional>
<xns1:expression>
<selectable>
<selector>linktext</selector>
<xns1:expression>
<value>string</value>
</xns1:expression>
</selectable>
</xns1:expression>
</optional>
</xns1:expression>
<xns1:expression>
<selectable>
<selector>reference</selector>
<xns1:expression>
<value>string</value>
</xns1:expression>
</selectable>
</xns1:expression>
</sequence>
</xns1:expression>
</selectable>
</xns1:expression>
</plus>
</xns1:expression>
</xns1:production>
<xns1:production>
<nonterminal>SimpleList</nonterminal>
<xns1:expression>
<plus>
<xns1:expression>
<selectable>
<selector>item</selector>
<xns1:expression>
<value>string</value>
</xns1:expression>
</selectable>
</xns1:expression>
</plus>
</xns1:expression>
</xns1:production>
<xns1:production>
<nonterminal>SimpleText</nonterminal>
<xns1:expression>
<plus>
<xns1:expression>
<nonterminal>insideSimpleText</nonterminal>
</xns1:expression>
</plus>
</xns1:expression>
</xns1:production>
<xns1:production>
<nonterminal>insideSimpleText</nonterminal>
<xns1:expression>
<choice>
<xns1:expression>
<selectable>
<selector>p</selector>
<xns1:expression>
<value>string</value>
</xns1:expression>
</selectable>
</xns1:expression>
<xns1:expression>
<selectable>
<selector>list</selector>
<xns1:expression>
<nonterminal>SimpleList</nonterminal>
</xns1:expression>
</selectable>
</xns1:expression>
<xns1:expression>
<selectable>
<selector>formula</selector>
<xns1:expression>
<value>string</value>
</xns1:expression>
</selectable>
</xns1:expression>
<xns1:expression>
<nonterminal>production</nonterminal>
</xns1:expression>
</choice>
</xns1:expression>
</xns1:production>
<xns1:production>
<nonterminal>SimpleSection</nonterminal>
<xns1:expression>
<sequence>
<xns1:expression>
<optional>
<xns1:expression>
<selectable>
<selector>id</selector>
<xns1:expression>
<value>string</value>
</xns1:expression>
</selectable>
</xns1:expression>
</optional>
</xns1:expression>
<xns1:expression>
<optional>
<xns1:expression>
<selectable>
<selector>title</selector>
<xns1:expression>
<value>string</value>
</xns1:expression>
</selectable>
</xns1:expression>
</optional>
</xns1:expression>
<xns1:expression>
<optional>
<xns1:expression>
<plus>
<xns1:expression>
<selectable>
<selector>author</selector>
<xns1:expression>
<value>string</value>
</xns1:expression>
</selectable>
</xns1:expression>
</plus>
</xns1:expression>
</optional>
</xns1:expression>
<xns1:expression>
<selectable>
<selector>content</selector>
<xns1:expression>
<nonterminal>SimpleText</nonterminal>
</xns1:expression>
</selectable>
</xns1:expression>
</sequence>
</xns1:expression>
</xns1:production>
<xns1:production>
<nonterminal>StructuredSection</nonterminal>
<xns1:expression>
<sequence>
<xns1:expression>
<optional>
<xns1:expression>
<selectable>
<selector>id</selector>
<xns1:expression>
<value>string</value>
</xns1:expression>
</selectable>
</xns1:expression>
</optional>
</xns1:expression>
<xns1:expression>
<selectable>
<selector>title</selector>
<xns1:expression>
<value>string</value>
</xns1:expression>
</selectable>
</xns1:expression>
<xns1:expression>
<optional>
<xns1:expression>
<plus>
<xns1:expression>
<selectable>
<selector>author</selector>
<xns1:expression>
<value>string</value>
</xns1:expression>
</selectable>
</xns1:expression>
</plus>
</xns1:expression>
</optional>
</xns1:expression>
<xns1:expression>
<plus>
<xns1:expression>
<choice>
<xns1:expression>
<selectable>
<selector>placeholder</selector>
<xns1:expression>
<nonterminal>generated</nonterminal>
</xns1:expression>
</selectable>
</xns1:expression>
<xns1:expression>
<nonterminal>normative</nonterminal>
</xns1:expression>
<xns1:expression>
<nonterminal>informative</nonterminal>
</xns1:expression>
<xns1:expression>
<nonterminal>production</nonterminal>
</xns1:expression>
<xns1:expression>
<selectable>
<selector>relationship</selector>
<xns1:expression>
<nonterminal>ListOfInternalLinks</nonterminal>
</xns1:expression>
</selectable>
</xns1:expression>
<xns1:expression>
<selectable>
<selector>subtopic</selector>
<xns1:expression>
<nonterminal>StructuredSection</nonterminal>
</xns1:expression>
</selectable>
</xns1:expression>
</choice>
</xns1:expression>
</plus>
</xns1:expression>
</sequence>
</xns1:expression>
</xns1:production>
<xns1:production>
<nonterminal>normative</nonterminal>
<xns1:expression>
<choice>
<xns1:expression>
<selectable>
<selector>purpose</selector>
<xns1:expression>
<nonterminal>SimpleSection</nonterminal>
</xns1:expression>
</selectable>
</xns1:expression>
<xns1:expression>
<selectable>
<selector>description</selector>
<xns1:expression>
<nonterminal>SimpleSection</nonterminal>
</xns1:expression>
</selectable>
</xns1:expression>
<xns1:expression>
<selectable>
<selector>location</selector>
<xns1:expression>
<nonterminal>SimpleSection</nonterminal>
</xns1:expression>
</selectable>
</xns1:expression>
<xns1:expression>
<selectable>
<selector>considerations</selector>
<xns1:expression>
<nonterminal>SimpleSection</nonterminal>
</xns1:expression>
</selectable>
</xns1:expression>
<xns1:expression>
<selectable>
<selector>defaults</selector>
<xns1:expression>
<nonterminal>SimpleSection</nonterminal>
</xns1:expression>
</selectable>
</xns1:expression>
<xns1:expression>
<selectable>
<selector>normative</selector>
<xns1:expression>
<nonterminal>SimpleSection</nonterminal>
</xns1:expression>
</selectable>
</xns1:expression>
</choice>
</xns1:expression>
</xns1:production>
<xns1:production>
<nonterminal>informative</nonterminal>
<xns1:expression>
<choice>
<xns1:expression>
<selectable>
<selector>note</selector>
<xns1:expression>
<nonterminal>SimpleSection</nonterminal>
</xns1:expression>
</selectable>
</xns1:expression>
<xns1:expression>
<selectable>
<selector>example</selector>
<xns1:expression>
<nonterminal>SimpleSection</nonterminal>
</xns1:expression>
</selectable>
</xns1:expression>
<xns1:expression>
<selectable>
<selector>informative</selector>
<xns1:expression>
<nonterminal>SimpleSection</nonterminal>
</xns1:expression>
</selectable>
</xns1:expression>
</choice>
</xns1:expression>
</xns1:production>
<xns1:production>
<nonterminal>lexical</nonterminal>
<xns1:expression>
<choice>
<xns1:expression>
<selectable>
<selector>lineContinuations</selector>
<xns1:expression>
<nonterminal>SimpleSection</nonterminal>
</xns1:expression>
</selectable>
</xns1:expression>
<xns1:expression>
<selectable>
<selector>whitespace</selector>
<xns1:expression>
<nonterminal>SimpleSection</nonterminal>
</xns1:expression>
</selectable>
</xns1:expression>
<xns1:expression>
<selectable>
<selector>tokens</selector>
<xns1:expression>
<nonterminal>SimpleSection</nonterminal>
</xns1:expression>
</selectable>
</xns1:expression>
<xns1:expression>
<selectable>
<selector>preprocessor</selector>
<xns1:expression>
<nonterminal>SimpleSection</nonterminal>
</xns1:expression>
</selectable>
</xns1:expression>
<xns1:expression>
<selectable>
<selector>literals</selector>
<xns1:expression>
<nonterminal>SimpleSection</nonterminal>
</xns1:expression>
</selectable>
</xns1:expression>
<xns1:expression>
<selectable>
<selector>lexical</selector>
<xns1:expression>
<nonterminal>SimpleSection</nonterminal>
</xns1:expression>
</selectable>
</xns1:expression>
</choice>
</xns1:expression>
</xns1:production>
<xns1:production>
<nonterminal>status</nonterminal>
<xns1:expression>
<choice>
<xns1:expression>
<selectable>
<selector>unknown</selector>
<xns1:expression>
<epsilon/>
</xns1:expression>
</selectable>
</xns1:expression>
<xns1:expression>
<selectable>
<selector>draft</selector>
<xns1:expression>
<epsilon/>
</xns1:expression>
</selectable>
</xns1:expression>
<xns1:expression>
<selectable>
<selector>committee draft</selector>
<xns1:expression>
<epsilon/>
</xns1:expression>
</selectable>
</xns1:expression>
<xns1:expression>
<selectable>
<selector>recommendation</selector>
<xns1:expression>
<epsilon/>
</xns1:expression>
</selectable>
</xns1:expression>
<xns1:expression>
<selectable>
<selector>international standard</selector>
<xns1:expression>
<epsilon/>
</xns1:expression>
</selectable>
</xns1:expression>
</choice>
</xns1:expression>
</xns1:production>
<xns1:production>
<nonterminal>generated</nonterminal>
<xns1:expression>
<choice>
<xns1:expression>
<selectable>
<selector>index</selector>
<xns1:expression>
<epsilon/>
</xns1:expression>
</selectable>
</xns1:expression>
<xns1:expression>
<selectable>
<selector>fullgrammar</selector>
<xns1:expression>
<epsilon/>
</xns1:expression>
</selectable>
</xns1:expression>
<xns1:expression>
<selectable>
<selector>listoftables</selector>
<xns1:expression>
<epsilon/>
</xns1:expression>
</selectable>
</xns1:expression>
<xns1:expression>
<selectable>
<selector>listofauthors</selector>
<xns1:expression>
<epsilon/>
</xns1:expression>
</selectable>
</xns1:expression>
<xns1:expression>
<selectable>
<selector>listofcontents</selector>
<xns1:expression>
<epsilon/>
</xns1:expression>
</selectable>
</xns1:expression>
<xns1:expression>
<selectable>
<selector>listofreferences</selector>
<xns1:expression>
<epsilon/>
</xns1:expression>
</selectable>
</xns1:expression>
</choice>
</xns1:expression>
</xns1:production>
<xns1:production>
<nonterminal>body</nonterminal>
<xns1:expression>
<choice>
<xns1:expression>
<selectable>
<selector>ansi</selector>
<xns1:expression>
<epsilon/>
</xns1:expression>
</selectable>
</xns1:expression>
<xns1:expression>
<selectable>
<selector>ecma</selector>
<xns1:expression>
<epsilon/>
</xns1:expression>
</selectable>
</xns1:expression>
<xns1:expression>
<selectable>
<selector>ieee</selector>
<xns1:expression>
<epsilon/>
</xns1:expression>
</selectable>
</xns1:expression>
<xns1:expression>
<selectable>
<selector>iso</selector>
<xns1:expression>
<epsilon/>
</xns1:expression>
</selectable>
</xns1:expression>
<xns1:expression>
<selectable>
<selector>iso/iet</selector>
<xns1:expression>
<epsilon/>
</xns1:expression>
</selectable>
</xns1:expression>
<xns1:expression>
<selectable>
<selector>itu</selector>
<xns1:expression>
<epsilon/>
</xns1:expression>
</selectable>
</xns1:expression>
<xns1:expression>
<selectable>
<selector>ietf</selector>
<xns1:expression>
<epsilon/>
</xns1:expression>
</selectable>
</xns1:expression>
<xns1:expression>
<selectable>
<selector>iec</selector>
<xns1:expression>
<epsilon/>
</xns1:expression>
</selectable>
</xns1:expression>
<xns1:expression>
<selectable>
<selector>oasis</selector>
<xns1:expression>
<epsilon/>
</xns1:expression>
</selectable>
</xns1:expression>
<xns1:expression>
<selectable>
<selector>wsa</selector>
<xns1:expression>
<epsilon/>
</xns1:expression>
</selectable>
</xns1:expression>
<xns1:expression>
<selectable>
<selector>w3c</selector>
<xns1:expression>
<epsilon/>
</xns1:expression>
</selectable>
</xns1:expression>
</choice>
</xns1:expression>
</xns1:production>
<xns1:production>
<nonterminal>document</nonterminal>
<xns1:expression>
<sequence>
<xns1:expression>
<selectable>
<selector>titlePage</selector>
<xns1:expression>
<nonterminal>titlePage</nonterminal>
</xns1:expression>
</selectable>
</xns1:expression>
<xns1:expression>
<star>
<xns1:expression>
<selectable>
<selector>placeholder</selector>
<xns1:expression>
<nonterminal>generated</nonterminal>
</xns1:expression>
</selectable>
</xns1:expression>
</star>
</xns1:expression>
<xns1:expression>
<selectable>
<selector>frontMatter</selector>
<xns1:expression>
<plus>
<xns1:expression>
<nonterminal>front-simple-section</nonterminal>
</xns1:expression>
</plus>
</xns1:expression>
</selectable>
</xns1:expression>
<xns1:expression>
<optional>
<xns1:expression>
<selectable>
<selector>lists</selector>
<xns1:expression>
<plus>
<xns1:expression>
<nonterminal>front-list</nonterminal>
</xns1:expression>
</plus>
</xns1:expression>
</selectable>
</xns1:expression>
</optional>
</xns1:expression>
<xns1:expression>
<optional>
<xns1:expression>
<selectable>
<selector>lexicalPart</selector>
<xns1:expression>
<plus>
<xns1:expression>
<nonterminal>lexical</nonterminal>
</xns1:expression>
</plus>
</xns1:expression>
</selectable>
</xns1:expression>
</optional>
</xns1:expression>
<xns1:expression>
<plus>
<xns1:expression>
<selectable>
<selector>core</selector>
<xns1:expression>
<nonterminal>StructuredSection</nonterminal>
</xns1:expression>
</selectable>
</xns1:expression>
</plus>
</xns1:expression>
<xns1:expression>
<star>
<xns1:expression>
<selectable>
<selector>annex</selector>
<xns1:expression>
<nonterminal>StructuredSection</nonterminal>
</xns1:expression>
</selectable>
</xns1:expression>
</star>
</xns1:expression>
</sequence>
</xns1:expression>
</xns1:production>
<xns1:production>
<nonterminal>titlePage</nonterminal>
<xns1:expression>
<sequence>
<xns1:expression>
<choice>
<xns1:expression>
<sequence>
<xns1:expression>
<selectable>
<selector>body</selector>
<xns1:expression>
<nonterminal>body</nonterminal>
</xns1:expression>
</selectable>
</xns1:expression>
<xns1:expression>
<selectable>
<selector>number</selector>
<xns1:expression>
<value>int</value>
</xns1:expression>
</selectable>
</xns1:expression>
</sequence>
</xns1:expression>
<xns1:expression>
<plus>
<xns1:expression>
<selectable>
<selector>author</selector>
<xns1:expression>
<value>string</value>
</xns1:expression>
</selectable>
</xns1:expression>
</plus>
</xns1:expression>
</choice>
</xns1:expression>
<xns1:expression>
<selectable>
<selector>topic</selector>
<xns1:expression>
<value>string</value>
</xns1:expression>
</selectable>
</xns1:expression>
<xns1:expression>
<choice>
<xns1:expression>
<selectable>
<selector>version</selector>
<xns1:expression>
<value>string</value>
</xns1:expression>
</selectable>
</xns1:expression>
<xns1:expression>
<selectable>
<selector>edition</selector>
<xns1:expression>
<value>string</value>
</xns1:expression>
</selectable>
</xns1:expression>
</choice>
</xns1:expression>
<xns1:expression>
<selectable>
<selector>status</selector>
<xns1:expression>
<nonterminal>status</nonterminal>
</xns1:expression>
</selectable>
</xns1:expression>
<xns1:expression>
<selectable>
<selector>date</selector>
<xns1:expression>
<value>string</value>
</xns1:expression>
</selectable>
</xns1:expression>
</sequence>
</xns1:expression>
</xns1:production>
<xns1:production>
<nonterminal>front-simple-section</nonterminal>
<xns1:expression>
<choice>
<xns1:expression>
<selectable>
<selector>foreword</selector>
<xns1:expression>
<nonterminal>SimpleSection</nonterminal>
</xns1:expression>
</selectable>
</xns1:expression>
<xns1:expression>
<selectable>
<selector>designGoals</selector>
<xns1:expression>
<nonterminal>SimpleSection</nonterminal>
</xns1:expression>
</selectable>
</xns1:expression>
<xns1:expression>
<selectable>
<selector>scope</selector>
<xns1:expression>
<nonterminal>SimpleSection</nonterminal>
</xns1:expression>
</selectable>
</xns1:expression>
<xns1:expression>
<selectable>
<selector>conformance</selector>
<xns1:expression>
<nonterminal>SimpleSection</nonterminal>
</xns1:expression>
</selectable>
</xns1:expression>
<xns1:expression>
<selectable>
<selector>compliance</selector>
<xns1:expression>
<nonterminal>SimpleSection</nonterminal>
</xns1:expression>
</selectable>
</xns1:expression>
<xns1:expression>
<selectable>
<selector>compatibility</selector>
<xns1:expression>
<nonterminal>SimpleSection</nonterminal>
</xns1:expression>
</selectable>
</xns1:expression>
<xns1:expression>
<selectable>
<selector>notation</selector>
<xns1:expression>
<nonterminal>SimpleSection</nonterminal>
</xns1:expression>
</selectable>
</xns1:expression>
<xns1:expression>
<selectable>
<selector>normativeReferences</selector>
<xns1:expression>
<nonterminal>SimpleSection</nonterminal>
</xns1:expression>
</selectable>
</xns1:expression>
<xns1:expression>
<selectable>
<selector>documentStructure</selector>
<xns1:expression>
<nonterminal>SimpleSection</nonterminal>
</xns1:expression>
</selectable>
</xns1:expression>
<xns1:expression>
<selectable>
<selector>whatsnew</selector>
<xns1:expression>
<nonterminal>SimpleSection</nonterminal>
</xns1:expression>
</selectable>
</xns1:expression>
<xns1:expression>
<selectable>
<selector>clause</selector>
<xns1:expression>
<nonterminal>SimpleSection</nonterminal>
</xns1:expression>
</selectable>
</xns1:expression>
<xns1:expression>
<selectable>
<selector>field</selector>
<xns1:expression>
<nonterminal>SimpleSection</nonterminal>
</xns1:expression>
</selectable>
</xns1:expression>
</choice>
</xns1:expression>
</xns1:production>
<xns1:production>
<nonterminal>front-list</nonterminal>
<xns1:expression>
<choice>
<xns1:expression>
<selectable>
<selector>definitions</selector>
<xns1:expression>
<nonterminal>ListOfTerms</nonterminal>
</xns1:expression>
</selectable>
</xns1:expression>
<xns1:expression>
<selectable>
<selector>abbreviations</selector>
<xns1:expression>
<nonterminal>ListOfTerms</nonterminal>
</xns1:expression>
</selectable>
</xns1:expression>
<xns1:expression>
<selectable>
<selector>languageOverview</selector>
<xns1:expression>
<nonterminal>ListOfTerms</nonterminal>
</xns1:expression>
</selectable>
</xns1:expression>
</choice>
</xns1:expression>
</xns1:production>
<xns1:production>
<nonterminal>runnableType</nonterminal>
<xns1:expression>
<sequence>
<xns1:expression>
<selectable>
<selector>context</selector>
<xns1:expression>
<value>string</value>
</xns1:expression>
</selectable>
</xns1:expression>
<xns1:expression>
<selectable>
<selector>main</selector>
<xns1:expression>
<value>string</value>
</xns1:expression>
</selectable>
</xns1:expression>
<xns1:expression>
<star>
<xns1:expression>
<selectable>
<selector>argument</selector>
<xns1:expression>
<value>string</value>
</xns1:expression>
</selectable>
</xns1:expression>
</star>
</xns1:expression>
<xns1:expression>
<selectable>
<selector>yields</selector>
<xns1:expression>
<value>string</value>
</xns1:expression>
</selectable>
</xns1:expression>
<xns1:expression>
<selectable>
<selector>language</selector>
<xns1:expression>
<value>string</value>
</xns1:expression>
</selectable>
</xns1:expression>
<xns1:expression>
<optional>
<xns1:expression>
<selectable>
<selector>version</selector>
<xns1:expression>
<value>string</value>
</xns1:expression>
</selectable>
</xns1:expression>
</optional>
</xns1:expression>
<xns1:expression>
<optional>
<xns1:expression>
<selectable>
<selector>id</selector>
<xns1:expression>
<value>string</value>
</xns1:expression>
</selectable>
</xns1:expression>
</optional>
</xns1:expression>
</sequence>
</xns1:expression>
</xns1:production>
<xns1:production>
<nonterminal>mixedType</nonterminal>
<xns1:expression>
<star>
<xns1:expression>
<choice>
<xns1:expression>
<any/>
</xns1:expression>
<xns1:expression>
<value>string</value>
</xns1:expression>
</choice>
</xns1:expression>
</star>
</xns1:expression>
</xns1:production>
</xns1:grammar>