'action:' actions+=Action+;
Action:
- whichMotor=LeftRight 'motor' dir=Direction ('with speed' spd=INT 'acceleration' acc=INT)? |
+ whichMotor=LeftRight 'motor' moveDir=Direction ('with speed' spd=INT 'acceleration' acc=INT)? |
+ 'turn' turnDir=LeftRight degrees=INT ('with speed' spd=INT 'acceleration' acc=INT)? |
'measure' measureWhat=RockLake |
'wait' time=Time;
Time: time=INT 'ms' | {Time} 'forever';
-
+
RockLake: d=RockLakeE;
enum RockLakeE: ROCK='rock' | LAKE='lake';
Direction: d=DirectionE;