title: Recognising EOF File Character in Antlr3 Lexer
body: <p>I'm trying to parse some strings using ANTLR 3...they are to be enclosed in single quotation marks. Therefore, if the user doesn't pass an even number of quotation marks it runs all the way to the end of file as it assumes it's a massive string.</p>
  
  <p>Is there a way to specify ANTLR to recognize the EOF character? I've tried <code>'&lt;EOF&gt;'</code> and <code>'\\z'</code> to now avail.</p>