Permalink
Find file
Fetching contributors…
Cannot retrieve contributors at this time
3 lines (2 sloc) 6.04 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>AWKProgram</nonterminal><bgf:expression><sequence><bgf:expression><selectable><selector>name</selector><bgf:expression><nonterminal>String</nonterminal></bgf:expression></selectable></bgf:expression><bgf:expression><selectable><selector>input</selector><bgf:expression><nonterminal>File</nonterminal></bgf:expression></selectable></bgf:expression><bgf:expression><selectable><selector>output</selector><bgf:expression><nonterminal>File</nonterminal></bgf:expression></selectable></bgf:expression><bgf:expression><selectable><selector>script</selector><bgf:expression><nonterminal>Script</nonterminal></bgf:expression></selectable></bgf:expression></sequence></bgf:expression></bgf:production><bgf:production><nonterminal>File</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>records</selector><bgf:expression><nonterminal>Record</nonterminal></bgf:expression></selectable></bgf:expression></plus></bgf:expression></sequence></bgf:expression></bgf:production><bgf:production><nonterminal>Record</nonterminal><bgf:expression><sequence><bgf:expression><selectable><selector>r_file</selector><bgf:expression><nonterminal>File</nonterminal></bgf:expression></selectable></bgf:expression><bgf:expression><plus><bgf:expression><selectable><selector>fields</selector><bgf:expression><nonterminal>Field</nonterminal></bgf:expression></selectable></bgf:expression></plus></bgf:expression></sequence></bgf:expression></bgf:production><bgf:production><nonterminal>Field</nonterminal><bgf:expression><sequence><bgf:expression><selectable><selector>value</selector><bgf:expression><nonterminal>String</nonterminal></bgf:expression></selectable></bgf:expression><bgf:expression><selectable><selector>f_record</selector><bgf:expression><nonterminal>Record</nonterminal></bgf:expression></selectable></bgf:expression></sequence></bgf:expression></bgf:production><bgf:production><nonterminal>Script</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>rules</selector><bgf:expression><nonterminal>Rule</nonterminal></bgf:expression></selectable></bgf:expression></plus></bgf:expression></sequence></bgf:expression></bgf:production><bgf:production><nonterminal>Rule</nonterminal><bgf:expression><nonterminal>InitialRule</nonterminal></bgf:expression></bgf:production><bgf:production><nonterminal>Rule</nonterminal><bgf:expression><nonterminal>FinalRule</nonterminal></bgf:expression></bgf:production><bgf:production><nonterminal>Rule</nonterminal><bgf:expression><sequence><bgf:expression><selectable><selector>r_script</selector><bgf:expression><nonterminal>Script</nonterminal></bgf:expression></selectable></bgf:expression><bgf:expression><selectable><selector>pattern</selector><bgf:expression><nonterminal>Pattern</nonterminal></bgf:expression></selectable></bgf:expression><bgf:expression><selectable><selector>action</selector><bgf:expression><nonterminal>Action</nonterminal></bgf:expression></selectable></bgf:expression></sequence></bgf:expression></bgf:production><bgf:production><nonterminal>Pattern</nonterminal><bgf:expression><selectable><selector>regularExpression</selector><bgf:expression><nonterminal>String</nonterminal></bgf:expression></selectable></bgf:expression></bgf:production><bgf:production><nonterminal>Action</nonterminal><bgf:expression><plus><bgf:expression><selectable><selector>instructions</selector><bgf:expression><nonterminal>Instruction</nonterminal></bgf:expression></selectable></bgf:expression></plus></bgf:expression></bgf:production><bgf:production><nonterminal>Instruction</nonterminal><bgf:expression><sequence><bgf:expression><selectable><selector>value</selector><bgf:expression><nonterminal>String</nonterminal></bgf:expression></selectable></bgf:expression><bgf:expression><selectable><selector>i_action</selector><bgf:expression><nonterminal>Action</nonterminal></bgf:expression></selectable></bgf:expression></sequence></bgf:expression></bgf:production><bgf:production><nonterminal>InitialRule</nonterminal><bgf:expression><sequence><bgf:expression><selectable><selector>r_script</selector><bgf:expression><nonterminal>Script</nonterminal></bgf:expression></selectable></bgf:expression><bgf:expression><selectable><selector>pattern</selector><bgf:expression><nonterminal>Pattern</nonterminal></bgf:expression></selectable></bgf:expression><bgf:expression><selectable><selector>action</selector><bgf:expression><nonterminal>Action</nonterminal></bgf:expression></selectable></bgf:expression></sequence></bgf:expression></bgf:production><bgf:production><nonterminal>FinalRule</nonterminal><bgf:expression><sequence><bgf:expression><selectable><selector>r_script</selector><bgf:expression><nonterminal>Script</nonterminal></bgf:expression></selectable></bgf:expression><bgf:expression><selectable><selector>pattern</selector><bgf:expression><nonterminal>Pattern</nonterminal></bgf:expression></selectable></bgf:expression><bgf:expression><selectable><selector>action</selector><bgf:expression><nonterminal>Action</nonterminal></bgf:expression></selectable></bgf:expression></sequence></bgf:expression></bgf:production></bgf:grammar>