Administrator
|
The supplied test files only use // comments and don't have any syntax errors.
You will want to handle /* */ comments in your compiler, so you might want to learn how to handle them now, but you don't have to.
The easiest way to handle errors is to keep an input line counter and just write a "syntax error on line #" message and halt.
--Mark
|