In the normal boo parser the IndentTokenStreamFilter tacks on an EOS token at the end of the file.
Since the wsa parser doesn't use that filter, I changed wsaboo.g to fix this. The eos rule checks for EOF. And the EOF in the start rule is optional.
You can make test cases in jedit by going to
Utilities->Global Options->Text Area->Hide final end of line -> uncheck that
and delete the final end of line.
Doug H - 24/Feb/06 06:58 PM In the normal boo parser the IndentTokenStreamFilter tacks on an EOS token at the end of the file.
Since the wsa parser doesn't use that filter, I changed wsaboo.g to fix this. The eos rule checks for EOF. And the EOF in the start rule is optional.
You can make test cases in jedit by going to
Utilities->Global Options->Text Area->Hide final end of line -> uncheck that
and delete the final end of line.
Since the wsa parser doesn't use that filter, I changed wsaboo.g to fix this. The eos rule checks for EOF. And the EOF in the start rule is optional.
You can make test cases in jedit by going to
Utilities->Global Options->Text Area->Hide final end of line -> uncheck that
and delete the final end of line.