Scanner Output
Question:
Answer:
Only the token strings that are listed in the sample scanner output
are specified. The names for any others you recognize are not
specified and I don't know if the provided tests for the scanner are
complete. There is no list of the token strings.
Don't worry about the exact format of any error messages that are not
given in the sample output. Just worry about catching as many errors
in the scanner as you can, and try to match the output of the given
tests. I will look closely at the scanner/parser output for the hidden
tests and I will not simply diff the output against my scanner/parser.
And also, if you really cannot match the output of the scanner
perfectly, don't try too hard, I'll examine any tests that fail to
match the output exactly.
Do you have a comprehensive list somewhere of all the token strings and
error strings that you expect? Or can you at least guarantee that the
public tests contain all of them? It would suck if one of my error messages
didn't match yours because I didn't know what it should look like.
error strings that you expect? Or can you at least guarantee that the
public tests contain all of them? It would suck if one of my error messages
didn't match yours because I didn't know what it should look like.
Answer:
Only the token strings that are listed in the sample scanner output
are specified. The names for any others you recognize are not
specified and I don't know if the provided tests for the scanner are
complete. There is no list of the token strings.
Don't worry about the exact format of any error messages that are not
given in the sample output. Just worry about catching as many errors
in the scanner as you can, and try to match the output of the given
tests. I will look closely at the scanner/parser output for the hidden
tests and I will not simply diff the output against my scanner/parser.
And also, if you really cannot match the output of the scanner
perfectly, don't try too hard, I'll examine any tests that fail to
match the output exactly.

0 Comments:
Post a Comment
<< Home