The compiler produces 2 files, tree.txt and symbolTable.txt which are an efficient, yet still human readable, version of the program and symbol table respectively. This submission adds a very simple scanner and parser to be used by the motor interpreter to read in the above files that will be sent over a communication channel. Initially this will be the serial port on the current hardware. The parser will only parse one line at a time. The idea is to send one line of either a program statement or sysmbol table, let the motor parser do its job and fill in its internal table and then send back an achnowledgement indicating to the sending program that it's OK to send another line. A special PROGRAMEND token will be sent at the end of this process which will put the motor hardware into interpret mode and start running the program.
This small scanner and parser are in motor.l and motor.y. The Makefile has been changed to generate a small test program, motorparsetest.exe which currently reads just one sample line from treeMotor.txt and generates its output in motorParse.txt.

Note that each program statement and symbol table entry is bookended with html-like markers. See <STMT> and <stmt>.

The next step is to incorporate this mini parser into the IAR motor code. Not sure how much space it will take up. Even though it's a minimal parser, it's still about 1700 lines of C code. Another thing that will need to be addressed is to change any call that motor.tab.c makes to YYSTACK_ALLOC to use static memory allocation. In addition, the lexer, motor.l, should get its input from the buffer where incoming serial data is stored.