Due Date: 2015-3-29, 11:59pm
ObjectiveThis is another two part assignment. The first part will continue looking at the Jack "OS" by implementing the library methods that draw things to the screen. The second part will be the first component of the compiler: the tokenizer/scanner.
Part I: Jack OS PixelsWrite Jack code that implements the following two libraries.
Part II: Tokenizer/ScannerThe tokenizer will break up the string of characters that represents the entire file into specific tokens.
You are given 4 test programs, located in the Data910 folder. You will use these again in the next assignment.
The code for generating the XML is included in the provided source files, as long as you fill out the given data structures. The are main method in the tokenizer will output the XML for the Jack file passed in as input. However, there is also the BigAssignment9 test file, which, given any list of folders and jack files, will find all jack files therein, and tokenize each, and say whether your output matches. Your outputs will be written to files with the "my" prefix, i.e. mySquareT.xml.
To compare your output to the given output, Linux/Mac users can use the command-line tool diff. Windows users can use TextComparer.bat, included with cse365bin. I also highly recommend visual diff tools, like meld.
This assignment requires you to write code. Stubs for Java and Python are provided in your repos. Your code will be run with one of the following commands: