Finalized lexer structure