For example, an invalid program, like invalid_programs/program4.tea, looks like:
1. # an invalid for statement
2.
3. for x if a is 3 in y:
4. out("what")
5. end
with the line numbers denoted. Since comments are ignored, the lines that they take up are also ignored. When an error is (correctly) thrown parsing this program, it reads:
line 2: Expected in, found if
Not a huge deal, but definitely makes it more difficult for a programmer to find his or her errors
For example, an invalid program, like invalid_programs/program4.tea, looks like:
with the line numbers denoted. Since comments are ignored, the lines that they take up are also ignored. When an error is (correctly) thrown parsing this program, it reads:
Not a huge deal, but definitely makes it more difficult for a programmer to find his or her errors