Search code examples
parsingunixlex

UNIX: unrecognized EOF rule pattern in lex


Using flex offers you the opportunity to handle an end of file with the pattern <<EOF>>.

Is there any similar solution with lex(1)?


Solution

  • No; what you describe is a flex extension.