52 lines
1,011 B
Plaintext
52 lines
1,011 B
Plaintext
|
// automatically generated by Xtext
|
||
|
grammar fr.n7.simplepdl.txt.PDL with org.eclipse.xtext.common.Terminals
|
||
|
|
||
|
import "http://simplepdl"
|
||
|
import "http://www.eclipse.org/emf/2002/Ecore" as ecore
|
||
|
|
||
|
Process returns Process :
|
||
|
{Process}
|
||
|
'process' name=ID '{'
|
||
|
processElements+=ProcessElement*
|
||
|
'}' ;
|
||
|
|
||
|
ProcessElement returns ProcessElement:
|
||
|
WorkDefinition | WorkSequence | Guidance | Resource
|
||
|
;
|
||
|
|
||
|
WorkDefinition returns WorkDefinition :
|
||
|
{WorkDefinition}
|
||
|
'wd' name=ID
|
||
|
requests+=Request*
|
||
|
;
|
||
|
|
||
|
WorkSequence returns WorkSequence :
|
||
|
{WorkSequence}
|
||
|
'ws' linkType=WorkSequenceType
|
||
|
'from' predecessor=[WorkDefinition]
|
||
|
'to' successor=[WorkDefinition]
|
||
|
;
|
||
|
|
||
|
Guidance returns Guidance :
|
||
|
{Guidance}
|
||
|
'note' text=STRING
|
||
|
;
|
||
|
|
||
|
Resource returns Resource :
|
||
|
{Resource}
|
||
|
'res' name=ID quantity=INT
|
||
|
;
|
||
|
|
||
|
Request returns Request :
|
||
|
{Request}
|
||
|
'req' target=[Resource] quantity=INT
|
||
|
;
|
||
|
|
||
|
|
||
|
enum WorkSequenceType returns WorkSequenceType :
|
||
|
startToStart = 's2s'
|
||
|
| finishToStart = 'f2s'
|
||
|
| startToFinish = 's2f'
|
||
|
| finishToFinish = 'f2f'
|
||
|
;
|