Lex program input doesn't terminate [closed]

On Windows:
You need Ctrl+Z then Enter instead of Ctrl+D, which is available in Unix and Linux (on Linux just Ctrl+D will work)

Note: Both work on empty lines, so after entering any text, press Enter to go to next line (which will be empty), then these key combos will be effective.

Leave a Comment