title: Lex program input doesn't terminate
body: <p>I'm not able to terminate input for a <strong>lex program</strong> even after pressing <strong>ctrl D</strong> it just keeps going on! 
  What might be wrong? I am using <strong>flex</strong> compiler for Windows.</p>