// Compiling the attached code makes scalac give a NPE.

import scala.util.parsing.combinator.syntactical.TokenParsers
import scala.util.parsing.combinator.lexical.StdLexical
import scala.util.parsing.syntax.StdTokens

class MyTokenParsers extends TokenParsers {
  import lexical._
  type Tokens = StdTokens
  type Elem = lexical.Token
  val lexical = new StdLexical
}
