Introduction

This project was canceled in favor of the C compiler
In this project you will build a high-level robot control language compiler that compiles down to byte codes for the Lego Mindstorm robot
. There is an assembler and loader for the byte codes and we will use:
Those willing to use Windows might try Microsoft's robot studio
to avoid having to mess with the physical device until you think your compiler is sort of working.
To give you an idea of what the byte codes look like and how to control a robot, here is an example that turns on both the left and right motor (outputs B and C), waits a little bit allowing the robot to move forward, and then reverses the motors for the same time. Finally it turns the robot motors off.
nbc is the byte code assembler that translates NBC to .rxe files. These .rxe files can then be transmitted to the robot via USB/Bluetooth by the nxtcom program:
Once on the robot, you can look in the program directory and tell the robot to execute t.rxe.
The high level language you build has the following instructions/capabilities: