title: ANTLR Parser with manual lexer
body: <p>I'm migrating a C#-based programming language compiler from a manual lexer/parser to Antlr.</p>
  
  <p>Antlr has been giving me severe headaches because it usually <em>mostly</em> works, but then there are the small parts that do not and are incredibly painful to solve.</p>
  
  <p>I discovered that most of my headaches are caused by the lexer parts of Antlr, rather than the parser. Then I noticed <code>parser grammar X;</code> and realized that perhaps I could have my manually written lexer and then an Antlr generated parser.</p>
  
  <p>So I'm looking for more documentation on this topic. I guess a custom ITokenStream could work, but there appears to be virtually no online documentation on this topic...</p>