Closed alexschneider closed 9 years ago
I would say it is necessary because the path name of this file does not include any indication that it is a scanner test. Therefore anyone looking at this file would think the file is valid teascript.
I just suggested to @whusted and @juansc that we have separate directories within the valid
and invalid
example program directions for the scanner, parser, etc. Then we might have the same program in the valid/scanner/
directory and the invalid/parser/
directory.
I think that might get too confusing - I'd rather all our valid programs be completely valid.
The tests have been refactored so that it is clear when a program is only valid for scanning, parsing, etc.
All functions should have an
end
at the end of themhttps://github.com/alexschneider/teascript/blob/master/test/example/input_programs/valid_programs/program2.tea
Not necessary because it's testing the scanner, but it'd be nice if all our valid programs were valid programs.