Permalink
Find file
Fetching contributors…
Cannot retrieve contributors at this time
3 lines (2 sloc) 11.7 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>MgaObject</nonterminal><bgf:expression><nonterminal>StateBase</nonterminal></bgf:expression></bgf:production><bgf:production><nonterminal>MgaObject</nonterminal><bgf:expression><nonterminal>DataVar</nonterminal></bgf:expression></bgf:production><bgf:production><nonterminal>MgaObject</nonterminal><bgf:expression><nonterminal>Transition</nonterminal></bgf:expression></bgf:production><bgf:production><nonterminal>MgaObject</nonterminal><bgf:expression><nonterminal>StateDateRelation</nonterminal></bgf:expression></bgf:production><bgf:production><nonterminal>MgaObject</nonterminal><bgf:expression><sequence><bgf:expression><selectable><selector>name</selector><bgf:expression><nonterminal>String</nonterminal></bgf:expression></selectable></bgf:expression><bgf:expression><selectable><selector>position</selector><bgf:expression><nonterminal>String</nonterminal></bgf:expression></selectable></bgf:expression></sequence></bgf:expression></bgf:production><bgf:production><nonterminal>StateBase</nonterminal><bgf:expression><nonterminal>CompoundState</nonterminal></bgf:expression></bgf:production><bgf:production><nonterminal>StateBase</nonterminal><bgf:expression><nonterminal>PrimitiveState</nonterminal></bgf:expression></bgf:production><bgf:production><nonterminal>StateBase</nonterminal><bgf:expression><sequence><bgf:expression><selectable><selector>defaultTransition</selector><bgf:expression><nonterminal>String</nonterminal></bgf:expression></selectable></bgf:expression><bgf:expression><selectable><selector>marked</selector><bgf:expression><nonterminal>Boolean</nonterminal></bgf:expression></selectable></bgf:expression><bgf:expression><plus><bgf:expression><selectable><selector>associationStateStatedst</selector><bgf:expression><nonterminal>AssociationStateState</nonterminal></bgf:expression></selectable></bgf:expression></plus></bgf:expression><bgf:expression><plus><bgf:expression><selectable><selector>associationStateStatesrc</selector><bgf:expression><nonterminal>AssociationStateState</nonterminal></bgf:expression></selectable></bgf:expression></plus></bgf:expression><bgf:expression><plus><bgf:expression><selectable><selector>data</selector><bgf:expression><nonterminal>DataVar</nonterminal></bgf:expression></selectable></bgf:expression></plus></bgf:expression><bgf:expression><selectable><selector>associationDataStateBase</selector><bgf:expression><nonterminal>AssociationDataStateBase</nonterminal></bgf:expression></selectable></bgf:expression></sequence></bgf:expression></bgf:production><bgf:production><nonterminal>DataVar</nonterminal><bgf:expression><sequence><bgf:expression><plus><bgf:expression><selectable><selector>stateBase</selector><bgf:expression><nonterminal>StateBase</nonterminal></bgf:expression></selectable></bgf:expression></plus></bgf:expression><bgf:expression><selectable><selector>orState</selector><bgf:expression><nonterminal>OrState</nonterminal></bgf:expression></selectable></bgf:expression><bgf:expression><selectable><selector>associationDataStateBase</selector><bgf:expression><nonterminal>AssociationDataStateBase</nonterminal></bgf:expression></selectable></bgf:expression></sequence></bgf:expression></bgf:production><bgf:production><nonterminal>Transition</nonterminal><bgf:expression><sequence><bgf:expression><selectable><selector>guard</selector><bgf:expression><nonterminal>String</nonterminal></bgf:expression></selectable></bgf:expression><bgf:expression><selectable><selector>trigger</selector><bgf:expression><nonterminal>String</nonterminal></bgf:expression></selectable></bgf:expression><bgf:expression><selectable><selector>action</selector><bgf:expression><nonterminal>String</nonterminal></bgf:expression></selectable></bgf:expression><bgf:expression><selectable><selector>isSync</selector><bgf:expression><nonterminal>Boolean</nonterminal></bgf:expression></selectable></bgf:expression><bgf:expression><selectable><selector>orState</selector><bgf:expression><nonterminal>OrState</nonterminal></bgf:expression></selectable></bgf:expression><bgf:expression><selectable><selector>associationStateState</selector><bgf:expression><nonterminal>AssociationStateState</nonterminal></bgf:expression></selectable></bgf:expression></sequence></bgf:expression></bgf:production><bgf:production><nonterminal>StateDateRelation</nonterminal><bgf:expression><sequence><bgf:expression><selectable><selector>value</selector><bgf:expression><nonterminal>String</nonterminal></bgf:expression></selectable></bgf:expression><bgf:expression><selectable><selector>color</selector><bgf:expression><nonterminal>String</nonterminal></bgf:expression></selectable></bgf:expression></sequence></bgf:expression></bgf:production><bgf:production><nonterminal>RootFolder</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>rootFolders</selector><bgf:expression><nonterminal>RootFolder</nonterminal></bgf:expression></selectable></bgf:expression></plus></bgf:expression><bgf:expression><plus><bgf:expression><selectable><selector>orState</selector><bgf:expression><nonterminal>OrState</nonterminal></bgf:expression></selectable></bgf:expression></plus></bgf:expression></sequence></bgf:expression></bgf:production><bgf:production><nonterminal>OrState</nonterminal><bgf:expression><sequence><bgf:expression><selectable><selector>rootFolder</selector><bgf:expression><nonterminal>RootFolder</nonterminal></bgf:expression></selectable></bgf:expression><bgf:expression><plus><bgf:expression><selectable><selector>state</selector><bgf:expression><nonterminal>State</nonterminal></bgf:expression></selectable></bgf:expression></plus></bgf:expression><bgf:expression><selectable><selector>init</selector><bgf:expression><nonterminal>Init</nonterminal></bgf:expression></selectable></bgf:expression><bgf:expression><plus><bgf:expression><selectable><selector>dataVar</selector><bgf:expression><nonterminal>DataVar</nonterminal></bgf:expression></selectable></bgf:expression></plus></bgf:expression><bgf:expression><plus><bgf:expression><selectable><selector>stateDataRelation</selector><bgf:expression><nonterminal>StateDataRelation</nonterminal></bgf:expression></selectable></bgf:expression></plus></bgf:expression><bgf:expression><plus><bgf:expression><selectable><selector>transition</selector><bgf:expression><nonterminal>Transition</nonterminal></bgf:expression></selectable></bgf:expression></plus></bgf:expression><bgf:expression><plus><bgf:expression><selectable><selector>compoundState</selector><bgf:expression><nonterminal>CompoundState</nonterminal></bgf:expression></selectable></bgf:expression></plus></bgf:expression></sequence></bgf:expression></bgf:production><bgf:production><nonterminal>AndState</nonterminal><bgf:expression><plus><bgf:expression><selectable><selector>compoundState</selector><bgf:expression><nonterminal>CompoundState</nonterminal></bgf:expression></selectable></bgf:expression></plus></bgf:expression></bgf:production><bgf:production><nonterminal>CompoundState</nonterminal><bgf:expression><nonterminal>OrState</nonterminal></bgf:expression></bgf:production><bgf:production><nonterminal>CompoundState</nonterminal><bgf:expression><nonterminal>AndState</nonterminal></bgf:expression></bgf:production><bgf:production><nonterminal>CompoundState</nonterminal><bgf:expression><sequence><bgf:expression><selectable><selector>andState</selector><bgf:expression><nonterminal>AndState</nonterminal></bgf:expression></selectable></bgf:expression><bgf:expression><selectable><selector>orState</selector><bgf:expression><nonterminal>OrState</nonterminal></bgf:expression></selectable></bgf:expression></sequence></bgf:expression></bgf:production><bgf:production><nonterminal>PrimitiveState</nonterminal><bgf:expression><nonterminal>Init</nonterminal></bgf:expression></bgf:production><bgf:production><nonterminal>PrimitiveState</nonterminal><bgf:expression><nonterminal>State</nonterminal></bgf:expression></bgf:production><bgf:production><nonterminal>PrimitiveState</nonterminal><bgf:expression><nonterminal>StateDataRelation</nonterminal></bgf:expression></bgf:production><bgf:production><nonterminal>PrimitiveState</nonterminal><bgf:expression><choice><bgf:expression><nonterminal>Init</nonterminal></bgf:expression><bgf:expression><nonterminal>State</nonterminal></bgf:expression><bgf:expression><nonterminal>StateDataRelation</nonterminal></bgf:expression></choice></bgf:expression></bgf:production><bgf:production><nonterminal>Init</nonterminal><bgf:expression><selectable><selector>orState</selector><bgf:expression><nonterminal>OrState</nonterminal></bgf:expression></selectable></bgf:expression></bgf:production><bgf:production><nonterminal>State</nonterminal><bgf:expression><selectable><selector>orState</selector><bgf:expression><nonterminal>OrState</nonterminal></bgf:expression></selectable></bgf:expression></bgf:production><bgf:production><nonterminal>StateDataRelation</nonterminal><bgf:expression><sequence><bgf:expression><selectable><selector>value</selector><bgf:expression><nonterminal>String</nonterminal></bgf:expression></selectable></bgf:expression><bgf:expression><selectable><selector>color</selector><bgf:expression><nonterminal>String</nonterminal></bgf:expression></selectable></bgf:expression><bgf:expression><selectable><selector>orState</selector><bgf:expression><nonterminal>OrState</nonterminal></bgf:expression></selectable></bgf:expression><bgf:expression><selectable><selector>associationDataStateBase1</selector><bgf:expression><nonterminal>AssociationDataStateBase</nonterminal></bgf:expression></selectable></bgf:expression></sequence></bgf:expression></bgf:production><bgf:production><nonterminal>AssociationStateState</nonterminal><bgf:expression><sequence><bgf:expression><selectable><selector>transition</selector><bgf:expression><nonterminal>Transition</nonterminal></bgf:expression></selectable></bgf:expression><bgf:expression><plus><bgf:expression><selectable><selector>dstTransition</selector><bgf:expression><nonterminal>StateBase</nonterminal></bgf:expression></selectable></bgf:expression></plus></bgf:expression><bgf:expression><plus><bgf:expression><selectable><selector>srcTransition</selector><bgf:expression><nonterminal>StateBase</nonterminal></bgf:expression></selectable></bgf:expression></plus></bgf:expression></sequence></bgf:expression></bgf:production><bgf:production><nonterminal>AssociationDataStateBase</nonterminal><bgf:expression><sequence><bgf:expression><selectable><selector>stateDataRelation</selector><bgf:expression><nonterminal>StateDataRelation</nonterminal></bgf:expression></selectable></bgf:expression><bgf:expression><plus><bgf:expression><selectable><selector>dataVar</selector><bgf:expression><nonterminal>DataVar</nonterminal></bgf:expression></selectable></bgf:expression></plus></bgf:expression><bgf:expression><plus><bgf:expression><selectable><selector>stateBase</selector><bgf:expression><nonterminal>StateBase</nonterminal></bgf:expression></selectable></bgf:expression></plus></bgf:expression></sequence></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>Integer</nonterminal><bgf:expression><value>int</value></bgf:expression></bgf:production></bgf:grammar>