repositories
/
des2015.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
update code
[des2015.git]
/
dsl
/
xtend
/
src
/
robots
/
missions
/
TaskDSL.xtext
diff --git
a/dsl/xtend/src/robots/missions/TaskDSL.xtext
b/dsl/xtend/src/robots/missions/TaskDSL.xtext
index
afefa5d
..
14a834f
100644
(file)
--- a/
dsl/xtend/src/robots/missions/TaskDSL.xtext
+++ b/
dsl/xtend/src/robots/missions/TaskDSL.xtext
@@
-13,7
+13,7
@@
Mission:
StoppingExpression:
'(' op=Operator s+=StoppingExpression s+=StoppingExpression+ ')' |
StoppingExpression:
'(' op=Operator s+=StoppingExpression s+=StoppingExpression+ ')' |
- 'not ' negscond=Stopping
Condit
ion |
+ 'not ' negscond=Stopping
Express
ion |
scond=StoppingCondition;
StoppingCondition:
scond=StoppingCondition;
StoppingCondition:
@@
-29,9
+29,14
@@
Behaviour: 'Behaviour' name=ID
Action:
whichMotor=LeftRight 'motor' moveDir=Direction ('with speed' spd=INT 'acceleration' acc=INT)? |
Action:
whichMotor=LeftRight 'motor' moveDir=Direction ('with speed' spd=INT 'acceleration' acc=INT)? |
- 'turn' turn
Dir=LeftRight degrees=INT
('with speed' spd=INT 'acceleration' acc=INT)? |
+ 'turn' turn
Type=Turn
('with speed' spd=INT 'acceleration' acc=INT)? |
{Action} 'measure'|
'wait' time=Time;
{Action} 'measure'|
'wait' time=Time;
+
+Turn:
+ turnDir=LeftRight 'exactly' degrees=INT 'degrees'|
+ 'randomly' start=INT 'to' end=INT 'degrees'
+;
Time: time=INT 'ms' | {Time} 'forever';
Time: time=INT 'ms' | {Time} 'forever';