I have a text file that looks like this:
shooting-stars "are cool"
I have a lexical analyzer that uses FileInputStream to read the characters one at a time, passing those characters to a switch statement that returns the corresponding lexeme.
In this case, represents assignment so this case passes:
case 'ð' :
return new Lexeme("ASSIGN");
For some reason, the file reader stops at that point, returning a null pointer even though it has yet to process the string (or whatever is after the ). Any time it reads in an emoticon it does this. If there were no emoticons, it gets to the end of file. Any ideas?