Project 10 | ||
In this part of the course you will have to read chapter 10 of the book (Compiler (b)), after reading the chapter you will have to read the following instructions to be able to implement project 10. Instructions: Objectives: Complete the development of the Jack compiler. The contract: Write the Jack Compiler as described in chapter 10. Build It: We suggest to start by first building the symbol table and using it to extend the Syntax Analyzer created in project 9. In particular, whenever an identifier is encountered in the program, output the following information as well:
Usage: The Jack compiler accepts a single command line argument that specifies either a file name or a directory name: prompt> JackCompiler source If source is a file name of the form xxx.jack, the compiler compiles it into a file named xxx.vm, created in the same folder in which the input xxx.jack is located. If source is a directory name, all the .jack files located in this directory are compiled. For each xxx.jack file in the directory, a corresponding xxx.vm file is created in the same directory. Submission: The program should be named JackCompiler and if it is written in Java it should not be part of a package.
Resources
|
||