Permalink
Find file
Fetching contributors…
Cannot retrieve contributors at this time
276 lines (275 sloc) 6.23 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>document</nonterminal>
<xns1:expression>
<sequence>
<xns1:expression>
<selectable>
<selector>title</selector>
<xns1:expression>
<value>string</value>
</xns1:expression>
</selectable>
</xns1:expression>
<xns1:expression>
<selectable>
<selector>author</selector>
<xns1:expression>
<value>string</value>
</xns1:expression>
</selectable>
</xns1:expression>
<xns1:expression>
<selectable>
<selector>abstract</selector>
<xns1:expression>
<value>string</value>
</xns1:expression>
</selectable>
</xns1:expression>
<xns1:expression>
<selectable>
<selector>content</selector>
<xns1:expression>
<nonterminal>contentType</nonterminal>
</xns1:expression>
</selectable>
</xns1:expression>
</sequence>
</xns1:expression>
</xns1:production>
<xns1:production>
<nonterminal>contentType</nonterminal>
<xns1:expression>
<sequence>
<xns1:expression>
<star>
<xns1:expression>
<choice>
<xns1:expression>
<selectable>
<selector>text</selector>
<xns1:expression>
<nonterminal>mixedType</nonterminal>
</xns1:expression>
</selectable>
</xns1:expression>
<xns1:expression>
<selectable>
<selector>grammar</selector>
<xns1:expression>
<sequence>
<xns1:expression>
<any/>
</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>
</sequence>
</xns1:expression>
</selectable>
</xns1:expression>
<xns1:expression>
<selectable>
<selector>sample</selector>
<xns1:expression>
<nonterminal>sampleType</nonterminal>
</xns1:expression>
</selectable>
</xns1:expression>
<xns1:expression>
<selectable>
<selector>runnable</selector>
<xns1:expression>
<nonterminal>runnableType</nonterminal>
</xns1:expression>
</selectable>
</xns1:expression>
</choice>
</xns1:expression>
</star>
</xns1:expression>
<xns1:expression>
<star>
<xns1:expression>
<selectable>
<selector>section</selector>
<xns1:expression>
<nonterminal>sectionType</nonterminal>
</xns1:expression>
</selectable>
</xns1:expression>
</star>
</xns1:expression>
</sequence>
</xns1:expression>
</xns1:production>
<xns1:production>
<nonterminal>sampleType</nonterminal>
<xns1:expression>
<epsilon/>
</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>sectionType</nonterminal>
<xns1:expression>
<sequence>
<xns1:expression>
<selectable>
<selector>title</selector>
<xns1:expression>
<value>string</value>
</xns1:expression>
</selectable>
</xns1:expression>
<xns1:expression>
<selectable>
<selector>content</selector>
<xns1:expression>
<nonterminal>contentType</nonterminal>
</xns1:expression>
</selectable>
</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>