Permalink
Find file
Fetching contributors…
Cannot retrieve contributors at this time
3 lines (2 sloc) 18 KB
<?xml version="1.0" encoding="UTF-8"?>
<bgf:grammar xmlns:bgf="http://planet-sl.org/bgf" xmlns:xmi="http://www.omg.org/XMI" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:ecore="http://www.eclipse.org/emf/2002/Ecore"><bgf:production><nonterminal>Integer</nonterminal><bgf:expression><value>int</value></bgf:expression></bgf:production><bgf:production><nonterminal>String</nonterminal><bgf:expression><value>string</value></bgf:expression></bgf:production><bgf:production><nonterminal>Boolean</nonterminal><bgf:expression><choice><bgf:expression><terminal>true</terminal></bgf:expression><bgf:expression><terminal>false</terminal></bgf:expression></choice></bgf:expression></bgf:production><bgf:production><nonterminal>StringProperty</nonterminal><bgf:expression><sequence><bgf:expression><selectable><selector>val</selector><bgf:expression><nonterminal>String</nonterminal></bgf:expression></selectable></bgf:expression></sequence></bgf:expression></bgf:production><bgf:production><nonterminal>StringType</nonterminal><bgf:expression><nonterminal>StringProperty</nonterminal></bgf:expression></bgf:production><bgf:production><nonterminal>StringType</nonterminal><bgf:expression><nonterminal>Text</nonterminal></bgf:expression></bgf:production><bgf:production><nonterminal>StringType</nonterminal><bgf:expression><nonterminal>DelText</nonterminal></bgf:expression></bgf:production><bgf:production><nonterminal>StringType</nonterminal><bgf:expression><nonterminal>InstrText</nonterminal></bgf:expression></bgf:production><bgf:production><nonterminal>StringType</nonterminal><bgf:expression><nonterminal>DelInstrText</nonterminal></bgf:expression></bgf:production><bgf:production><nonterminal>StringType</nonterminal><bgf:expression><selectable><selector>val</selector><bgf:expression><nonterminal>String</nonterminal></bgf:expression></selectable></bgf:expression></bgf:production><bgf:production><nonterminal>BreakType</nonterminal><bgf:expression><choice><bgf:expression><selectable><selector>bt_page</selector><bgf:expression><epsilon/></bgf:expression></selectable></bgf:expression><bgf:expression><selectable><selector>bt_column</selector><bgf:expression><epsilon/></bgf:expression></selectable></bgf:expression><bgf:expression><selectable><selector>bt_text_wrapping</selector><bgf:expression><epsilon/></bgf:expression></selectable></bgf:expression></choice></bgf:expression></bgf:production><bgf:production><nonterminal>NoteValue</nonterminal><bgf:expression><choice><bgf:expression><selectable><selector>ftn_normal</selector><bgf:expression><epsilon/></bgf:expression></selectable></bgf:expression><bgf:expression><selectable><selector>ftn_separator</selector><bgf:expression><epsilon/></bgf:expression></selectable></bgf:expression><bgf:expression><selectable><selector>ftn_continuation_separator</selector><bgf:expression><epsilon/></bgf:expression></selectable></bgf:expression><bgf:expression><selectable><selector>ftn_continuation_notice</selector><bgf:expression><epsilon/></bgf:expression></selectable></bgf:expression></choice></bgf:expression></bgf:production><bgf:production><nonterminal>OnOffType</nonterminal><bgf:expression><choice><bgf:expression><selectable><selector>oot_on</selector><bgf:expression><epsilon/></bgf:expression></selectable></bgf:expression><bgf:expression><selectable><selector>oot_off</selector><bgf:expression><epsilon/></bgf:expression></selectable></bgf:expression></choice></bgf:expression></bgf:production><bgf:production><nonterminal>FldCharTypeProperty</nonterminal><bgf:expression><choice><bgf:expression><selectable><selector>fctp_begin</selector><bgf:expression><epsilon/></bgf:expression></selectable></bgf:expression><bgf:expression><selectable><selector>fctp_separate</selector><bgf:expression><epsilon/></bgf:expression></selectable></bgf:expression><bgf:expression><selectable><selector>fctp_end</selector><bgf:expression><epsilon/></bgf:expression></selectable></bgf:expression></choice></bgf:expression></bgf:production><bgf:production><nonterminal>WordDocument</nonterminal><bgf:expression><sequence><bgf:expression><selectable><selector>ignoreSubtree</selector><bgf:expression><nonterminal>StringProperty</nonterminal></bgf:expression></selectable></bgf:expression><bgf:expression><selectable><selector>ignoreElements</selector><bgf:expression><nonterminal>StringProperty</nonterminal></bgf:expression></selectable></bgf:expression><bgf:expression><selectable><selector>body</selector><bgf:expression><nonterminal>BodyElt</nonterminal></bgf:expression></selectable></bgf:expression></sequence></bgf:expression></bgf:production><bgf:production><nonterminal>BodyElt</nonterminal><bgf:expression><sequence><bgf:expression><selectable><selector>be_wordDocument</selector><bgf:expression><nonterminal>WordDocument</nonterminal></bgf:expression></selectable></bgf:expression><bgf:expression><plus><bgf:expression><selectable><selector>blockLevelElts</selector><bgf:expression><nonterminal>BlockLevelElt</nonterminal></bgf:expression></selectable></bgf:expression></plus></bgf:expression></sequence></bgf:expression></bgf:production><bgf:production><nonterminal>BlockLevelElt</nonterminal><bgf:expression><nonterminal>BlockLevelChunkElt</nonterminal></bgf:expression></bgf:production><bgf:production><nonterminal>BlockLevelChunkElt</nonterminal><bgf:expression><nonterminal>ParaElt</nonterminal></bgf:expression></bgf:production><bgf:production><nonterminal>ParaElt</nonterminal><bgf:expression><plus><bgf:expression><selectable><selector>pContentElts</selector><bgf:expression><nonterminal>ParaContentElt</nonterminal></bgf:expression></selectable></bgf:expression></plus></bgf:expression></bgf:production><bgf:production><nonterminal>ParaContentElt</nonterminal><bgf:expression><nonterminal>RunElt</nonterminal></bgf:expression></bgf:production><bgf:production><nonterminal>RunElt</nonterminal><bgf:expression><plus><bgf:expression><selectable><selector>rContentElts</selector><bgf:expression><nonterminal>RunContentElt</nonterminal></bgf:expression></selectable></bgf:expression></plus></bgf:expression></bgf:production><bgf:production><nonterminal>RunContentElt</nonterminal><bgf:expression><nonterminal>BreakElt</nonterminal></bgf:expression></bgf:production><bgf:production><nonterminal>RunContentElt</nonterminal><bgf:expression><nonterminal>NoBreakHyphen</nonterminal></bgf:expression></bgf:production><bgf:production><nonterminal>RunContentElt</nonterminal><bgf:expression><nonterminal>SoftHyphen</nonterminal></bgf:expression></bgf:production><bgf:production><nonterminal>RunContentElt</nonterminal><bgf:expression><nonterminal>AnnotationRef</nonterminal></bgf:expression></bgf:production><bgf:production><nonterminal>RunContentElt</nonterminal><bgf:expression><nonterminal>FootnoteRef</nonterminal></bgf:expression></bgf:production><bgf:production><nonterminal>RunContentElt</nonterminal><bgf:expression><nonterminal>EndnoteRef</nonterminal></bgf:expression></bgf:production><bgf:production><nonterminal>RunContentElt</nonterminal><bgf:expression><nonterminal>Separator</nonterminal></bgf:expression></bgf:production><bgf:production><nonterminal>RunContentElt</nonterminal><bgf:expression><nonterminal>ContinuationSeparator</nonterminal></bgf:expression></bgf:production><bgf:production><nonterminal>RunContentElt</nonterminal><bgf:expression><nonterminal>PgNum</nonterminal></bgf:expression></bgf:production><bgf:production><nonterminal>RunContentElt</nonterminal><bgf:expression><nonterminal>Cr</nonterminal></bgf:expression></bgf:production><bgf:production><nonterminal>RunContentElt</nonterminal><bgf:expression><nonterminal>Picture</nonterminal></bgf:expression></bgf:production><bgf:production><nonterminal>RunContentElt</nonterminal><bgf:expression><nonterminal>Tab</nonterminal></bgf:expression></bgf:production><bgf:production><nonterminal>RunContentElt</nonterminal><bgf:expression><nonterminal>Text</nonterminal></bgf:expression></bgf:production><bgf:production><nonterminal>RunContentElt</nonterminal><bgf:expression><nonterminal>DelText</nonterminal></bgf:expression></bgf:production><bgf:production><nonterminal>RunContentElt</nonterminal><bgf:expression><nonterminal>InstrText</nonterminal></bgf:expression></bgf:production><bgf:production><nonterminal>RunContentElt</nonterminal><bgf:expression><nonterminal>DelInstrText</nonterminal></bgf:expression></bgf:production><bgf:production><nonterminal>RunContentElt</nonterminal><bgf:expression><nonterminal>Footnote</nonterminal></bgf:expression></bgf:production><bgf:production><nonterminal>RunContentElt</nonterminal><bgf:expression><nonterminal>Endnote</nonterminal></bgf:expression></bgf:production><bgf:production><nonterminal>RunContentElt</nonterminal><bgf:expression><nonterminal>Symbol</nonterminal></bgf:expression></bgf:production><bgf:production><nonterminal>RunContentElt</nonterminal><bgf:expression><nonterminal>FldChar</nonterminal></bgf:expression></bgf:production><bgf:production><nonterminal>BreakElt</nonterminal><bgf:expression><selectable><selector>type</selector><bgf:expression><nonterminal>BreakType</nonterminal></bgf:expression></selectable></bgf:expression></bgf:production><bgf:production><nonterminal>Text</nonterminal><bgf:expression><sequence><bgf:expression><selectable><selector>rce_rElt</selector><bgf:expression><nonterminal>RunElt</nonterminal></bgf:expression></selectable></bgf:expression><bgf:expression><selectable><selector>val</selector><bgf:expression><nonterminal>String</nonterminal></bgf:expression></selectable></bgf:expression></sequence></bgf:expression></bgf:production><bgf:production><nonterminal>DelText</nonterminal><bgf:expression><sequence><bgf:expression><selectable><selector>rce_rElt</selector><bgf:expression><nonterminal>RunElt</nonterminal></bgf:expression></selectable></bgf:expression><bgf:expression><selectable><selector>val</selector><bgf:expression><nonterminal>String</nonterminal></bgf:expression></selectable></bgf:expression></sequence></bgf:expression></bgf:production><bgf:production><nonterminal>InstrText</nonterminal><bgf:expression><sequence><bgf:expression><selectable><selector>rce_rElt</selector><bgf:expression><nonterminal>RunElt</nonterminal></bgf:expression></selectable></bgf:expression><bgf:expression><selectable><selector>val</selector><bgf:expression><nonterminal>String</nonterminal></bgf:expression></selectable></bgf:expression></sequence></bgf:expression></bgf:production><bgf:production><nonterminal>DelInstrText</nonterminal><bgf:expression><sequence><bgf:expression><selectable><selector>rce_rElt</selector><bgf:expression><nonterminal>RunElt</nonterminal></bgf:expression></selectable></bgf:expression><bgf:expression><selectable><selector>val</selector><bgf:expression><nonterminal>String</nonterminal></bgf:expression></selectable></bgf:expression></sequence></bgf:expression></bgf:production><bgf:production><nonterminal>NoBreakHyphen</nonterminal><bgf:expression><sequence><bgf:expression><selectable><selector>rce_rElt</selector><bgf:expression><nonterminal>RunElt</nonterminal></bgf:expression></selectable></bgf:expression></sequence></bgf:expression></bgf:production><bgf:production><nonterminal>SoftHyphen</nonterminal><bgf:expression><sequence><bgf:expression><selectable><selector>rce_rElt</selector><bgf:expression><nonterminal>RunElt</nonterminal></bgf:expression></selectable></bgf:expression></sequence></bgf:expression></bgf:production><bgf:production><nonterminal>AnnotationRef</nonterminal><bgf:expression><sequence><bgf:expression><selectable><selector>rce_rElt</selector><bgf:expression><nonterminal>RunElt</nonterminal></bgf:expression></selectable></bgf:expression></sequence></bgf:expression></bgf:production><bgf:production><nonterminal>FootnoteRef</nonterminal><bgf:expression><sequence><bgf:expression><selectable><selector>rce_rElt</selector><bgf:expression><nonterminal>RunElt</nonterminal></bgf:expression></selectable></bgf:expression></sequence></bgf:expression></bgf:production><bgf:production><nonterminal>EndnoteRef</nonterminal><bgf:expression><sequence><bgf:expression><selectable><selector>rce_rElt</selector><bgf:expression><nonterminal>RunElt</nonterminal></bgf:expression></selectable></bgf:expression></sequence></bgf:expression></bgf:production><bgf:production><nonterminal>Separator</nonterminal><bgf:expression><sequence><bgf:expression><selectable><selector>rce_rElt</selector><bgf:expression><nonterminal>RunElt</nonterminal></bgf:expression></selectable></bgf:expression></sequence></bgf:expression></bgf:production><bgf:production><nonterminal>ContinuationSeparator</nonterminal><bgf:expression><sequence><bgf:expression><selectable><selector>rce_rElt</selector><bgf:expression><nonterminal>RunElt</nonterminal></bgf:expression></selectable></bgf:expression></sequence></bgf:expression></bgf:production><bgf:production><nonterminal>PgNum</nonterminal><bgf:expression><sequence><bgf:expression><selectable><selector>rce_rElt</selector><bgf:expression><nonterminal>RunElt</nonterminal></bgf:expression></selectable></bgf:expression></sequence></bgf:expression></bgf:production><bgf:production><nonterminal>Cr</nonterminal><bgf:expression><sequence><bgf:expression><selectable><selector>rce_rElt</selector><bgf:expression><nonterminal>RunElt</nonterminal></bgf:expression></selectable></bgf:expression></sequence></bgf:expression></bgf:production><bgf:production><nonterminal>Footnote</nonterminal><bgf:expression><sequence><bgf:expression><selectable><selector>rce_rElt</selector><bgf:expression><nonterminal>RunElt</nonterminal></bgf:expression></selectable></bgf:expression><bgf:expression><plus><bgf:expression><selectable><selector>n_blockLevelElts</selector><bgf:expression><nonterminal>BlockLevelElt</nonterminal></bgf:expression></selectable></bgf:expression></plus></bgf:expression><bgf:expression><selectable><selector>type</selector><bgf:expression><nonterminal>NoteValue</nonterminal></bgf:expression></selectable></bgf:expression><bgf:expression><selectable><selector>suppressRef</selector><bgf:expression><nonterminal>OnOffType</nonterminal></bgf:expression></selectable></bgf:expression></sequence></bgf:expression></bgf:production><bgf:production><nonterminal>Endnote</nonterminal><bgf:expression><sequence><bgf:expression><selectable><selector>rce_rElt</selector><bgf:expression><nonterminal>RunElt</nonterminal></bgf:expression></selectable></bgf:expression><bgf:expression><plus><bgf:expression><selectable><selector>n_blockLevelElts</selector><bgf:expression><nonterminal>BlockLevelElt</nonterminal></bgf:expression></selectable></bgf:expression></plus></bgf:expression><bgf:expression><selectable><selector>type</selector><bgf:expression><nonterminal>NoteValue</nonterminal></bgf:expression></selectable></bgf:expression><bgf:expression><selectable><selector>suppressRef</selector><bgf:expression><nonterminal>OnOffType</nonterminal></bgf:expression></selectable></bgf:expression></sequence></bgf:expression></bgf:production><bgf:production><nonterminal>NoteElt</nonterminal><bgf:expression><nonterminal>Footnote</nonterminal></bgf:expression></bgf:production><bgf:production><nonterminal>NoteElt</nonterminal><bgf:expression><nonterminal>Endnote</nonterminal></bgf:expression></bgf:production><bgf:production><nonterminal>Picture</nonterminal><bgf:expression><sequence><bgf:expression><selectable><selector>rce_rElt</selector><bgf:expression><nonterminal>RunElt</nonterminal></bgf:expression></selectable></bgf:expression></sequence></bgf:expression></bgf:production><bgf:production><nonterminal>Symbol</nonterminal><bgf:expression><sequence><bgf:expression><selectable><selector>rce_rElt</selector><bgf:expression><nonterminal>RunElt</nonterminal></bgf:expression></selectable></bgf:expression><bgf:expression><selectable><selector>font</selector><bgf:expression><nonterminal>StringType</nonterminal></bgf:expression></selectable></bgf:expression><bgf:expression><selectable><selector>char</selector><bgf:expression><nonterminal>StringType</nonterminal></bgf:expression></selectable></bgf:expression></sequence></bgf:expression></bgf:production><bgf:production><nonterminal>SymElt</nonterminal><bgf:expression><nonterminal>Symbol</nonterminal></bgf:expression></bgf:production><bgf:production><nonterminal>SymElt</nonterminal><bgf:expression><sequence><bgf:expression><selectable><selector>font</selector><bgf:expression><nonterminal>StringType</nonterminal></bgf:expression></selectable></bgf:expression><bgf:expression><selectable><selector>char</selector><bgf:expression><nonterminal>StringType</nonterminal></bgf:expression></selectable></bgf:expression></sequence></bgf:expression></bgf:production><bgf:production><nonterminal>Tab</nonterminal><bgf:expression><sequence><bgf:expression><selectable><selector>rce_rElt</selector><bgf:expression><nonterminal>RunElt</nonterminal></bgf:expression></selectable></bgf:expression></sequence></bgf:expression></bgf:production><bgf:production><nonterminal>FldChar</nonterminal><bgf:expression><sequence><bgf:expression><selectable><selector>rce_rElt</selector><bgf:expression><nonterminal>RunElt</nonterminal></bgf:expression></selectable></bgf:expression><bgf:expression><selectable><selector>fldData</selector><bgf:expression><nonterminal>StringType</nonterminal></bgf:expression></selectable></bgf:expression><bgf:expression><selectable><selector>fldCharType</selector><bgf:expression><nonterminal>FldCharTypeProperty</nonterminal></bgf:expression></selectable></bgf:expression><bgf:expression><selectable><selector>fldLock</selector><bgf:expression><nonterminal>OnOffType</nonterminal></bgf:expression></selectable></bgf:expression></sequence></bgf:expression></bgf:production><bgf:production><nonterminal>FldCharElt</nonterminal><bgf:expression><nonterminal>FldChar</nonterminal></bgf:expression></bgf:production><bgf:production><nonterminal>FldCharElt</nonterminal><bgf:expression><sequence><bgf:expression><selectable><selector>fldData</selector><bgf:expression><nonterminal>StringType</nonterminal></bgf:expression></selectable></bgf:expression><bgf:expression><selectable><selector>fldCharType</selector><bgf:expression><nonterminal>FldCharTypeProperty</nonterminal></bgf:expression></selectable></bgf:expression><bgf:expression><selectable><selector>fldLock</selector><bgf:expression><nonterminal>OnOffType</nonterminal></bgf:expression></selectable></bgf:expression></sequence></bgf:expression></bgf:production></bgf:grammar>