Permalink
Find file
Fetching contributors…
Cannot retrieve contributors at this time
3 lines (2 sloc) 7.43 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>Definition</nonterminal><bgf:expression><sequence><bgf:expression><plus><bgf:expression><selectable><selector>context</selector><bgf:expression><value>string</value></bgf:expression></selectable></bgf:expression></plus></bgf:expression><bgf:expression><selectable><selector>defaultMetaclass</selector><bgf:expression><nonterminal>DefaultMetaclassSection</nonterminal></bgf:expression></selectable></bgf:expression><bgf:expression><plus><bgf:expression><selectable><selector>mappings</selector><bgf:expression><nonterminal>Mapping</nonterminal></bgf:expression></selectable></bgf:expression></plus></bgf:expression></sequence></bgf:expression></bgf:production><bgf:production><nonterminal>DefaultMetaclassSection</nonterminal><bgf:expression><sequence><bgf:expression><selectable><selector>metaclassName</selector><bgf:expression><value>string</value></bgf:expression></selectable></bgf:expression><bgf:expression><selectable><selector>attribute</selector><bgf:expression><value>string</value></bgf:expression></selectable></bgf:expression></sequence></bgf:expression></bgf:production><bgf:production><nonterminal>Mapping</nonterminal><bgf:expression><sequence><bgf:expression><selectable><selector>metaclass</selector><bgf:expression><value>string</value></bgf:expression></selectable></bgf:expression><bgf:expression><selectable><selector>instanceClass</selector><bgf:expression><value>string</value></bgf:expression></selectable></bgf:expression><bgf:expression><plus><bgf:expression><selectable><selector>sections</selector><bgf:expression><nonterminal>Section</nonterminal></bgf:expression></selectable></bgf:expression></plus></bgf:expression></sequence></bgf:expression></bgf:production><bgf:production><nonterminal>Section</nonterminal><bgf:expression><nonterminal>DefaultMetaclassSection</nonterminal></bgf:expression></bgf:production><bgf:production><nonterminal>Section</nonterminal><bgf:expression><nonterminal>PropertySection</nonterminal></bgf:expression></bgf:production><bgf:production><nonterminal>Section</nonterminal><bgf:expression><nonterminal>NewSection</nonterminal></bgf:expression></bgf:production><bgf:production><nonterminal>Section</nonterminal><bgf:expression><nonterminal>MultipleSection</nonterminal></bgf:expression></bgf:production><bgf:production><nonterminal>Section</nonterminal><bgf:expression><nonterminal>ValueSection</nonterminal></bgf:expression></bgf:production><bgf:production><nonterminal>PropertySection</nonterminal><bgf:expression><sequence><bgf:expression><selectable><selector>property</selector><bgf:expression><value>string</value></bgf:expression></selectable></bgf:expression><bgf:expression><plus><bgf:expression><selectable><selector>statements</selector><bgf:expression><nonterminal>Statement</nonterminal></bgf:expression></selectable></bgf:expression></plus></bgf:expression></sequence></bgf:expression></bgf:production><bgf:production><nonterminal>NewSection</nonterminal><bgf:expression><plus><bgf:expression><selectable><selector>constructors</selector><bgf:expression><nonterminal>Constructor</nonterminal></bgf:expression></selectable></bgf:expression></plus></bgf:expression></bgf:production><bgf:production><nonterminal>MultipleSection</nonterminal><bgf:expression><plus><bgf:expression><selectable><selector>statements</selector><bgf:expression><nonterminal>Statement</nonterminal></bgf:expression></selectable></bgf:expression></plus></bgf:expression></bgf:production><bgf:production><nonterminal>ValueSection</nonterminal><bgf:expression><sequence><bgf:expression><selectable><selector>metaValue</selector><bgf:expression><value>string</value></bgf:expression></selectable></bgf:expression><bgf:expression><selectable><selector>instanceValue</selector><bgf:expression><value>string</value></bgf:expression></selectable></bgf:expression></sequence></bgf:expression></bgf:production><bgf:production><nonterminal>Statement</nonterminal><bgf:expression><sequence><bgf:expression><selectable><selector>type</selector><bgf:expression><nonterminal>StatementType</nonterminal></bgf:expression></selectable></bgf:expression><bgf:expression><plus><bgf:expression><selectable><selector>variables</selector><bgf:expression><value>string</value></bgf:expression></selectable></bgf:expression></plus></bgf:expression><bgf:expression><plus><bgf:expression><selectable><selector>calls</selector><bgf:expression><nonterminal>MethodCall</nonterminal></bgf:expression></selectable></bgf:expression></plus></bgf:expression></sequence></bgf:expression></bgf:production><bgf:production><nonterminal>StatementType</nonterminal><bgf:expression><choice><bgf:expression><selectable><selector>GET</selector><bgf:expression><epsilon/></bgf:expression></selectable></bgf:expression><bgf:expression><selectable><selector>SET</selector><bgf:expression><epsilon/></bgf:expression></selectable></bgf:expression><bgf:expression><selectable><selector>APPEND</selector><bgf:expression><epsilon/></bgf:expression></selectable></bgf:expression><bgf:expression><selectable><selector>INSERT_AT</selector><bgf:expression><epsilon/></bgf:expression></selectable></bgf:expression><bgf:expression><selectable><selector>REMOVE</selector><bgf:expression><epsilon/></bgf:expression></selectable></bgf:expression><bgf:expression><selectable><selector>REMOVE_AT</selector><bgf:expression><epsilon/></bgf:expression></selectable></bgf:expression><bgf:expression><selectable><selector>REMOVE_LAST</selector><bgf:expression><epsilon/></bgf:expression></selectable></bgf:expression><bgf:expression><selectable><selector>REMOVE_ALL</selector><bgf:expression><epsilon/></bgf:expression></selectable></bgf:expression><bgf:expression><selectable><selector>COUNT</selector><bgf:expression><epsilon/></bgf:expression></selectable></bgf:expression><bgf:expression><selectable><selector>ACCESSORS</selector><bgf:expression><epsilon/></bgf:expression></selectable></bgf:expression><bgf:expression><selectable><selector>DIRECT</selector><bgf:expression><epsilon/></bgf:expression></selectable></bgf:expression></choice></bgf:expression></bgf:production><bgf:production><nonterminal>NamedElement</nonterminal><bgf:expression><nonterminal>MethodCall</nonterminal></bgf:expression></bgf:production><bgf:production><nonterminal>NamedElement</nonterminal><bgf:expression><nonterminal>Parameter</nonterminal></bgf:expression></bgf:production><bgf:production><nonterminal>MethodCall</nonterminal><bgf:expression><nonterminal>Constructor</nonterminal></bgf:expression></bgf:production><bgf:production><nonterminal>MethodCall</nonterminal><bgf:expression><plus><bgf:expression><selectable><selector>params</selector><bgf:expression><nonterminal>Parameter</nonterminal></bgf:expression></selectable></bgf:expression></plus></bgf:expression></bgf:production><bgf:production><nonterminal>Parameter</nonterminal><bgf:expression><sequence><bgf:expression><selectable><selector>name</selector><bgf:expression><value>string</value></bgf:expression></selectable></bgf:expression></sequence></bgf:expression></bgf:production><bgf:production><nonterminal>Constructor</nonterminal><bgf:expression><sequence><bgf:expression><plus><bgf:expression><selectable><selector>params</selector><bgf:expression><nonterminal>Parameter</nonterminal></bgf:expression></selectable></bgf:expression></plus></bgf:expression></sequence></bgf:expression></bgf:production></bgf:grammar>