Permalink
Find file
Fetching contributors…
Cannot retrieve contributors at this time
3 lines (2 sloc) 10.3 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>COBOLUsageValue</nonterminal><bgf:expression><choice><bgf:expression><selectable><selector>cuv_binary</selector><bgf:expression><epsilon/></bgf:expression></selectable></bgf:expression><bgf:expression><selectable><selector>cuv_dbcs</selector><bgf:expression><epsilon/></bgf:expression></selectable></bgf:expression><bgf:expression><selectable><selector>cuv_double</selector><bgf:expression><epsilon/></bgf:expression></selectable></bgf:expression><bgf:expression><selectable><selector>cuv_display</selector><bgf:expression><epsilon/></bgf:expression></selectable></bgf:expression><bgf:expression><selectable><selector>cuv_float</selector><bgf:expression><epsilon/></bgf:expression></selectable></bgf:expression><bgf:expression><selectable><selector>cuv_index</selector><bgf:expression><epsilon/></bgf:expression></selectable></bgf:expression><bgf:expression><selectable><selector>cuv_objectReference</selector><bgf:expression><epsilon/></bgf:expression></selectable></bgf:expression><bgf:expression><selectable><selector>cuv_packedDecimal</selector><bgf:expression><epsilon/></bgf:expression></selectable></bgf:expression><bgf:expression><selectable><selector>cuv_pointer</selector><bgf:expression><epsilon/></bgf:expression></selectable></bgf:expression><bgf:expression><selectable><selector>cuv_procedurePointer</selector><bgf:expression><epsilon/></bgf:expression></selectable></bgf:expression></choice></bgf:expression></bgf:production><bgf:production><nonterminal>COBOLInitialValueKind</nonterminal><bgf:expression><choice><bgf:expression><selectable><selector>civk_string_value</selector><bgf:expression><epsilon/></bgf:expression></selectable></bgf:expression><bgf:expression><selectable><selector>civk_low_value</selector><bgf:expression><epsilon/></bgf:expression></selectable></bgf:expression><bgf:expression><selectable><selector>civk_high_value</selector><bgf:expression><epsilon/></bgf:expression></selectable></bgf:expression><bgf:expression><selectable><selector>civk_zero_value</selector><bgf:expression><epsilon/></bgf:expression></selectable></bgf:expression><bgf:expression><selectable><selector>civk_quotes</selector><bgf:expression><epsilon/></bgf:expression></selectable></bgf:expression><bgf:expression><selectable><selector>civk_null</selector><bgf:expression><epsilon/></bgf:expression></selectable></bgf:expression><bgf:expression><selectable><selector>civk_all_literal</selector><bgf:expression><epsilon/></bgf:expression></selectable></bgf:expression></choice></bgf:expression></bgf:production><bgf:production><nonterminal>COBOLElement</nonterminal><bgf:expression><nonterminal>COBOLRedefiningElement</nonterminal></bgf:expression></bgf:production><bgf:production><nonterminal>COBOLElement</nonterminal><bgf:expression><sequence><bgf:expression><selectable><selector>level</selector><bgf:expression><nonterminal>String</nonterminal></bgf:expression></selectable></bgf:expression><bgf:expression><selectable><selector>refined</selector><bgf:expression><nonterminal>Boolean</nonterminal></bgf:expression></selectable></bgf:expression><bgf:expression><selectable><selector>name</selector><bgf:expression><nonterminal>String</nonterminal></bgf:expression></selectable></bgf:expression><bgf:expression><selectable><selector>sharedType</selector><bgf:expression><nonterminal>COBOLClassifier</nonterminal></bgf:expression></selectable></bgf:expression><bgf:expression><selectable><selector>group</selector><bgf:expression><nonterminal>COBOLComposedType</nonterminal></bgf:expression></selectable></bgf:expression><bgf:expression><plus><bgf:expression><selectable><selector>initial</selector><bgf:expression><nonterminal>COBOLElementInitialValue</nonterminal></bgf:expression></selectable></bgf:expression></plus></bgf:expression><bgf:expression><plus><bgf:expression><selectable><selector>contains</selector><bgf:expression><nonterminal>COBOL88Element</nonterminal></bgf:expression></selectable></bgf:expression></plus></bgf:expression><bgf:expression><selectable><selector>source</selector><bgf:expression><nonterminal>COBOLSourceText</nonterminal></bgf:expression></selectable></bgf:expression><bgf:expression><selectable><selector>array</selector><bgf:expression><nonterminal>COBOLFixedLengthArray</nonterminal></bgf:expression></selectable></bgf:expression></sequence></bgf:expression></bgf:production><bgf:production><nonterminal>COBOLClassifier</nonterminal><bgf:expression><nonterminal>COBOLSimpleType</nonterminal></bgf:expression></bgf:production><bgf:production><nonterminal>COBOLClassifier</nonterminal><bgf:expression><nonterminal>COBOLComposedType</nonterminal></bgf:expression></bgf:production><bgf:production><nonterminal>COBOLClassifier</nonterminal><bgf:expression><sequence><bgf:expression><selectable><selector>typeded</selector><bgf:expression><nonterminal>Boolean</nonterminal></bgf:expression></selectable></bgf:expression><bgf:expression><selectable><selector>name</selector><bgf:expression><nonterminal>String</nonterminal></bgf:expression></selectable></bgf:expression><bgf:expression><plus><bgf:expression><selectable><selector>typedElements</selector><bgf:expression><nonterminal>COBOLElement</nonterminal></bgf:expression></selectable></bgf:expression></plus></bgf:expression></sequence></bgf:expression></bgf:production><bgf:production><nonterminal>COBOLSimpleType</nonterminal><bgf:expression><sequence><bgf:expression><selectable><selector>usageValue</selector><bgf:expression><nonterminal>COBOLUsageValue</nonterminal></bgf:expression></selectable></bgf:expression><bgf:expression><selectable><selector>pictureString</selector><bgf:expression><nonterminal>String</nonterminal></bgf:expression></selectable></bgf:expression><bgf:expression><selectable><selector>usage</selector><bgf:expression><nonterminal>Boolean</nonterminal></bgf:expression></selectable></bgf:expression></sequence></bgf:expression></bgf:production><bgf:production><nonterminal>COBOLComposedType</nonterminal><bgf:expression><plus><bgf:expression><selectable><selector>elements</selector><bgf:expression><nonterminal>COBOLElement</nonterminal></bgf:expression></selectable></bgf:expression></plus></bgf:expression></bgf:production><bgf:production><nonterminal>COBOLElementInitialValue</nonterminal><bgf:expression><sequence><bgf:expression><selectable><selector>initVal</selector><bgf:expression><nonterminal>String</nonterminal></bgf:expression></selectable></bgf:expression><bgf:expression><selectable><selector>valueKind</selector><bgf:expression><nonterminal>COBOLInitialValueKind</nonterminal></bgf:expression></selectable></bgf:expression></sequence></bgf:expression></bgf:production><bgf:production><nonterminal>COBOL88Element</nonterminal><bgf:expression><sequence><bgf:expression><selectable><selector>name</selector><bgf:expression><nonterminal>String</nonterminal></bgf:expression></selectable></bgf:expression><bgf:expression><plus><bgf:expression><selectable><selector>has</selector><bgf:expression><nonterminal>COBOL88ElementValue</nonterminal></bgf:expression></selectable></bgf:expression></plus></bgf:expression></sequence></bgf:expression></bgf:production><bgf:production><nonterminal>COBOL88ElementValue</nonterminal><bgf:expression><sequence><bgf:expression><selectable><selector>lowerLimit</selector><bgf:expression><nonterminal>String</nonterminal></bgf:expression></selectable></bgf:expression><bgf:expression><selectable><selector>upperLimit</selector><bgf:expression><nonterminal>String</nonterminal></bgf:expression></selectable></bgf:expression><bgf:expression><selectable><selector>range</selector><bgf:expression><nonterminal>Boolean</nonterminal></bgf:expression></selectable></bgf:expression></sequence></bgf:expression></bgf:production><bgf:production><nonterminal>COBOLRedefiningElement</nonterminal><bgf:expression><selectable><selector>redefines</selector><bgf:expression><nonterminal>COBOLElement</nonterminal></bgf:expression></selectable></bgf:expression></bgf:production><bgf:production><nonterminal>COBOL66Element</nonterminal><bgf:expression><sequence><bgf:expression><selectable><selector>name</selector><bgf:expression><nonterminal>String</nonterminal></bgf:expression></selectable></bgf:expression><bgf:expression><selectable><selector>end</selector><bgf:expression><nonterminal>COBOLElement</nonterminal></bgf:expression></selectable></bgf:expression><bgf:expression><selectable><selector>start</selector><bgf:expression><nonterminal>COBOLElement</nonterminal></bgf:expression></selectable></bgf:expression></sequence></bgf:expression></bgf:production><bgf:production><nonterminal>COBOLSourceText</nonterminal><bgf:expression><sequence><bgf:expression><selectable><selector>source</selector><bgf:expression><nonterminal>String</nonterminal></bgf:expression></selectable></bgf:expression><bgf:expression><selectable><selector>fileName</selector><bgf:expression><nonterminal>String</nonterminal></bgf:expression></selectable></bgf:expression></sequence></bgf:expression></bgf:production><bgf:production><nonterminal>COBOLFixedLengthArray</nonterminal><bgf:expression><nonterminal>COBOLVariableLengthArray</nonterminal></bgf:expression></bgf:production><bgf:production><nonterminal>COBOLFixedLengthArray</nonterminal><bgf:expression><selectable><selector>maxUpper</selector><bgf:expression><nonterminal>Integer</nonterminal></bgf:expression></selectable></bgf:expression></bgf:production><bgf:production><nonterminal>COBOLVariableLengthArray</nonterminal><bgf:expression><sequence><bgf:expression><selectable><selector>minUpper</selector><bgf:expression><nonterminal>Integer</nonterminal></bgf:expression></selectable></bgf:expression><bgf:expression><selectable><selector>dependingOn</selector><bgf:expression><nonterminal>COBOLElement</nonterminal></bgf:expression></selectable></bgf:expression></sequence></bgf:expression></bgf:production><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:grammar>