| 1. | Make sure your HW2 Submission has "cop5555.jar" files in it. |
| 2. | The package should include the following files: Scanner.java, SimpleParser.java, and SyntaxException.java |
| 3. | Don't change cop5555.tokens package, and don't submit it. |
| 4. | Scanner.next(); SimpleParser.parse(); should be public. |
| 5. | The msg in the SyntaxException will not be graded, but it will be helpful for you to locate the error. |
| The errors will be an important part for grading, so take care of all kinds of errors. | |
| 6. | The following is a simple test program, you can use this to test your program: |
| Input | Output |
| program test {} | |
| program test1 {{3}} | cop5555.SyntaxException: expected token RBRACE INT_LIT 3:0,16 |
| 456bcd | cop5555.SyntaxException: expected token PROGRAM ERROR Illegal char after int lit:0,0 |